diff options
Diffstat (limited to 'Stochastic')
157 files changed, 37045 insertions, 0 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/.classpath b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/.classpath new file mode 100644 index 00000000..9081d4f7 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.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/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/.gitignore b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/.gitignore new file mode 100644 index 00000000..ae3c1726 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/.gitignore | |||
@@ -0,0 +1 @@ | |||
/bin/ | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/.project b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/.project new file mode 100644 index 00000000..7e994188 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/.project | |||
@@ -0,0 +1,34 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <projectDescription> | ||
3 | <name>hu.bme.mit.inf.dslreasoner.faulttree.components.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/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/.settings/org.eclipse.core.resources.prefs b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 00000000..99f26c02 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/.settings/org.eclipse.core.resources.prefs | |||
@@ -0,0 +1,2 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | encoding/<project>=UTF-8 | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/.settings/org.eclipse.jdt.core.prefs b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..0c68a61d --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.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/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/META-INF/MANIFEST.MF b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/META-INF/MANIFEST.MF new file mode 100644 index 00000000..15d6a9f9 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/META-INF/MANIFEST.MF | |||
@@ -0,0 +1,15 @@ | |||
1 | Manifest-Version: 1.0 | ||
2 | Automatic-Module-Name: hu.bme.mit.inf.dslreasoner.faulttree.components.ide | ||
3 | Bundle-ManifestVersion: 2 | ||
4 | Bundle-Name: hu.bme.mit.inf.dslreasoner.faulttree.components.ide | ||
5 | Bundle-Vendor: My Company | ||
6 | Bundle-Version: 1.0.0.qualifier | ||
7 | Bundle-SymbolicName: hu.bme.mit.inf.dslreasoner.faulttree.components.ide; singleton:=true | ||
8 | Bundle-ActivationPolicy: lazy | ||
9 | Require-Bundle: hu.bme.mit.inf.dslreasoner.faulttree.components, | ||
10 | org.eclipse.xtext.ide, | ||
11 | org.eclipse.xtext.xbase.ide, | ||
12 | org.antlr.runtime;bundle-version="[3.2.0,3.2.1)" | ||
13 | Bundle-RequiredExecutionEnvironment: JavaSE-1.8 | ||
14 | Export-Package: hu.bme.mit.inf.dslreasoner.faulttree.components.ide.contentassist.antlr, | ||
15 | hu.bme.mit.inf.dslreasoner.faulttree.components.ide.contentassist.antlr.internal | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/build.properties b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/build.properties new file mode 100644 index 00000000..5c6bbf99 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/build.properties | |||
@@ -0,0 +1,6 @@ | |||
1 | source.. = src/,\ | ||
2 | src-gen/,\ | ||
3 | xtend-gen/ | ||
4 | bin.includes = .,\ | ||
5 | META-INF/ | ||
6 | bin.excludes = **/*.xtend | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src-gen/META-INF/services/org.eclipse.xtext.ISetup b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src-gen/META-INF/services/org.eclipse.xtext.ISetup new file mode 100644 index 00000000..73a0041c --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src-gen/META-INF/services/org.eclipse.xtext.ISetup | |||
@@ -0,0 +1 @@ | |||
hu.bme.mit.inf.dslreasoner.faulttree.components.ide.CftLanguageIdeSetup | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/AbstractCftLanguageIdeModule.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/AbstractCftLanguageIdeModule.java new file mode 100644 index 00000000..f17cf7d5 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/AbstractCftLanguageIdeModule.java | |||
@@ -0,0 +1,60 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.ide; | ||
5 | |||
6 | import com.google.inject.Binder; | ||
7 | import com.google.inject.name.Names; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.ide.contentassist.antlr.CftLanguageParser; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.ide.contentassist.antlr.internal.InternalCftLanguageLexer; | ||
10 | import org.eclipse.xtext.ide.DefaultIdeModule; | ||
11 | import org.eclipse.xtext.ide.LexerIdeBindings; | ||
12 | import org.eclipse.xtext.ide.editor.contentassist.FQNPrefixMatcher; | ||
13 | import org.eclipse.xtext.ide.editor.contentassist.IPrefixMatcher; | ||
14 | import org.eclipse.xtext.ide.editor.contentassist.IProposalConflictHelper; | ||
15 | import org.eclipse.xtext.ide.editor.contentassist.antlr.AntlrProposalConflictHelper; | ||
16 | import org.eclipse.xtext.ide.editor.contentassist.antlr.IContentAssistParser; | ||
17 | import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.Lexer; | ||
18 | import org.eclipse.xtext.ide.refactoring.IRenameStrategy2; | ||
19 | import org.eclipse.xtext.ide.server.rename.IRenameService; | ||
20 | import org.eclipse.xtext.ide.server.rename.RenameService; | ||
21 | |||
22 | /** | ||
23 | * Manual modifications go to {@link CftLanguageIdeModule}. | ||
24 | */ | ||
25 | @SuppressWarnings("all") | ||
26 | public abstract class AbstractCftLanguageIdeModule extends DefaultIdeModule { | ||
27 | |||
28 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
29 | public void configureContentAssistLexer(Binder binder) { | ||
30 | binder.bind(Lexer.class) | ||
31 | .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST)) | ||
32 | .to(InternalCftLanguageLexer.class); | ||
33 | } | ||
34 | |||
35 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
36 | public Class<? extends IContentAssistParser> bindIContentAssistParser() { | ||
37 | return CftLanguageParser.class; | ||
38 | } | ||
39 | |||
40 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
41 | public Class<? extends IProposalConflictHelper> bindIProposalConflictHelper() { | ||
42 | return AntlrProposalConflictHelper.class; | ||
43 | } | ||
44 | |||
45 | // contributed by org.eclipse.xtext.xtext.generator.exporting.QualifiedNamesFragment2 | ||
46 | public Class<? extends IPrefixMatcher> bindIPrefixMatcher() { | ||
47 | return FQNPrefixMatcher.class; | ||
48 | } | ||
49 | |||
50 | // contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2 | ||
51 | public Class<? extends IRenameService> bindIRenameService() { | ||
52 | return RenameService.class; | ||
53 | } | ||
54 | |||
55 | // contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2 | ||
56 | public Class<? extends IRenameStrategy2> bindIRenameStrategy2() { | ||
57 | return IRenameStrategy2.DefaultImpl.class; | ||
58 | } | ||
59 | |||
60 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/contentassist/antlr/CftLanguageParser.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/contentassist/antlr/CftLanguageParser.java new file mode 100644 index 00000000..579a30af --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/contentassist/antlr/CftLanguageParser.java | |||
@@ -0,0 +1,145 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.ide.contentassist.antlr; | ||
5 | |||
6 | import com.google.common.collect.ImmutableMap; | ||
7 | import com.google.inject.Inject; | ||
8 | import com.google.inject.Singleton; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.ide.contentassist.antlr.internal.InternalCftLanguageParser; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.services.CftLanguageGrammarAccess; | ||
11 | import java.util.Map; | ||
12 | import org.eclipse.xtext.AbstractElement; | ||
13 | import org.eclipse.xtext.ide.editor.contentassist.antlr.AbstractContentAssistParser; | ||
14 | |||
15 | public class CftLanguageParser extends AbstractContentAssistParser { | ||
16 | |||
17 | @Singleton | ||
18 | public static final class NameMappings { | ||
19 | |||
20 | private final Map<AbstractElement, String> mappings; | ||
21 | |||
22 | @Inject | ||
23 | public NameMappings(CftLanguageGrammarAccess grammarAccess) { | ||
24 | ImmutableMap.Builder<AbstractElement, String> builder = ImmutableMap.builder(); | ||
25 | init(builder, grammarAccess); | ||
26 | this.mappings = builder.build(); | ||
27 | } | ||
28 | |||
29 | public String getRuleName(AbstractElement element) { | ||
30 | return mappings.get(element); | ||
31 | } | ||
32 | |||
33 | private static void init(ImmutableMap.Builder<AbstractElement, String> builder, CftLanguageGrammarAccess grammarAccess) { | ||
34 | builder.put(grammarAccess.getCftModelAccess().getAlternatives_4(), "rule__CftModel__Alternatives_4"); | ||
35 | builder.put(grammarAccess.getEventDeclarationAccess().getAlternatives(), "rule__EventDeclaration__Alternatives"); | ||
36 | builder.put(grammarAccess.getEventDefinitionAccess().getAlternatives(), "rule__EventDefinition__Alternatives"); | ||
37 | builder.put(grammarAccess.getGateDefinitionAccess().getAlternatives(), "rule__GateDefinition__Alternatives"); | ||
38 | builder.put(grammarAccess.getMappingDefinitionAccess().getAlternatives_8_1_0(), "rule__MappingDefinition__Alternatives_8_1_0"); | ||
39 | builder.put(grammarAccess.getVariableAccess().getAlternatives(), "rule__Variable__Alternatives"); | ||
40 | builder.put(grammarAccess.getAssignmentAccess().getAlternatives_1(), "rule__Assignment__Alternatives_1"); | ||
41 | builder.put(grammarAccess.getCftModelAccess().getGroup(), "rule__CftModel__Group__0"); | ||
42 | builder.put(grammarAccess.getImportDeclarationAccess().getGroup(), "rule__ImportDeclaration__Group__0"); | ||
43 | builder.put(grammarAccess.getComponentDefinitionAccess().getGroup(), "rule__ComponentDefinition__Group__0"); | ||
44 | builder.put(grammarAccess.getComponentDefinitionAccess().getGroup_3_0(), "rule__ComponentDefinition__Group_3_0__0"); | ||
45 | builder.put(grammarAccess.getComponentDefinitionAccess().getGroup_3_1(), "rule__ComponentDefinition__Group_3_1__0"); | ||
46 | builder.put(grammarAccess.getComponentDefinitionAccess().getGroup_4(), "rule__ComponentDefinition__Group_4__0"); | ||
47 | builder.put(grammarAccess.getInputEventAccess().getGroup(), "rule__InputEvent__Group__0"); | ||
48 | builder.put(grammarAccess.getBasicEventDefinitionAccess().getGroup(), "rule__BasicEventDefinition__Group__0"); | ||
49 | builder.put(grammarAccess.getAndGateAccess().getGroup(), "rule__AndGate__Group__0"); | ||
50 | builder.put(grammarAccess.getOrGateAccess().getGroup(), "rule__OrGate__Group__0"); | ||
51 | builder.put(grammarAccess.getTransformationDefinitionAccess().getGroup(), "rule__TransformationDefinition__Group__0"); | ||
52 | builder.put(grammarAccess.getMappingDefinitionAccess().getGroup(), "rule__MappingDefinition__Group__0"); | ||
53 | builder.put(grammarAccess.getMappingDefinitionAccess().getGroup_5(), "rule__MappingDefinition__Group_5__0"); | ||
54 | builder.put(grammarAccess.getMappingDefinitionAccess().getGroup_8(), "rule__MappingDefinition__Group_8__0"); | ||
55 | builder.put(grammarAccess.getMappingDefinitionAccess().getGroup_8_1(), "rule__MappingDefinition__Group_8_1__0"); | ||
56 | builder.put(grammarAccess.getLookupDefinitionAccess().getGroup(), "rule__LookupDefinition__Group__0"); | ||
57 | builder.put(grammarAccess.getLookupDefinitionAccess().getGroup_4(), "rule__LookupDefinition__Group_4__0"); | ||
58 | builder.put(grammarAccess.getAssignmentAccess().getGroup(), "rule__Assignment__Group__0"); | ||
59 | builder.put(grammarAccess.getEventReferenceAccess().getGroup(), "rule__EventReference__Group__0"); | ||
60 | builder.put(grammarAccess.getComponentInstanceAccess().getGroup(), "rule__ComponentInstance__Group__0"); | ||
61 | builder.put(grammarAccess.getQualifiedNameAccess().getGroup(), "rule__QualifiedName__Group__0"); | ||
62 | builder.put(grammarAccess.getQualifiedNameAccess().getGroup_1(), "rule__QualifiedName__Group_1__0"); | ||
63 | builder.put(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup(), "rule__QualifiedNameWithWildcard__Group__0"); | ||
64 | builder.put(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup_1(), "rule__QualifiedNameWithWildcard__Group_1__0"); | ||
65 | builder.put(grammarAccess.getCftModelAccess().getPackageNameAssignment_1(), "rule__CftModel__PackageNameAssignment_1"); | ||
66 | builder.put(grammarAccess.getCftModelAccess().getImportsAssignment_3(), "rule__CftModel__ImportsAssignment_3"); | ||
67 | builder.put(grammarAccess.getCftModelAccess().getComponentDefinitionsAssignment_4_0(), "rule__CftModel__ComponentDefinitionsAssignment_4_0"); | ||
68 | builder.put(grammarAccess.getCftModelAccess().getTransformationDefinitionsAssignment_4_1(), "rule__CftModel__TransformationDefinitionsAssignment_4_1"); | ||
69 | builder.put(grammarAccess.getImportDeclarationAccess().getImportedNamespaceAssignment_1(), "rule__ImportDeclaration__ImportedNamespaceAssignment_1"); | ||
70 | builder.put(grammarAccess.getComponentDefinitionAccess().getNameAssignment_1(), "rule__ComponentDefinition__NameAssignment_1"); | ||
71 | builder.put(grammarAccess.getComponentDefinitionAccess().getInputEventsAssignment_3_0_1(), "rule__ComponentDefinition__InputEventsAssignment_3_0_1"); | ||
72 | builder.put(grammarAccess.getComponentDefinitionAccess().getOutputEventsAssignment_3_1_1(), "rule__ComponentDefinition__OutputEventsAssignment_3_1_1"); | ||
73 | builder.put(grammarAccess.getComponentDefinitionAccess().getEventDefinitionsAssignment_4_0(), "rule__ComponentDefinition__EventDefinitionsAssignment_4_0"); | ||
74 | builder.put(grammarAccess.getInputEventAccess().getNameAssignment_0(), "rule__InputEvent__NameAssignment_0"); | ||
75 | builder.put(grammarAccess.getInputEventAccess().getMultipleAssignment_1(), "rule__InputEvent__MultipleAssignment_1"); | ||
76 | builder.put(grammarAccess.getBasicEventDefinitionAccess().getNameAssignment_0(), "rule__BasicEventDefinition__NameAssignment_0"); | ||
77 | builder.put(grammarAccess.getBasicEventDefinitionAccess().getRateAssignment_3(), "rule__BasicEventDefinition__RateAssignment_3"); | ||
78 | builder.put(grammarAccess.getAndGateAccess().getNameAssignment_0(), "rule__AndGate__NameAssignment_0"); | ||
79 | builder.put(grammarAccess.getAndGateAccess().getInputEventsAssignment_2(), "rule__AndGate__InputEventsAssignment_2"); | ||
80 | builder.put(grammarAccess.getOrGateAccess().getNameAssignment_0(), "rule__OrGate__NameAssignment_0"); | ||
81 | builder.put(grammarAccess.getOrGateAccess().getInputEventsAssignment_2(), "rule__OrGate__InputEventsAssignment_2"); | ||
82 | builder.put(grammarAccess.getTransformationDefinitionAccess().getNameAssignment_1(), "rule__TransformationDefinition__NameAssignment_1"); | ||
83 | builder.put(grammarAccess.getTransformationDefinitionAccess().getMappingDefinitionsAssignment_3(), "rule__TransformationDefinition__MappingDefinitionsAssignment_3"); | ||
84 | builder.put(grammarAccess.getMappingDefinitionAccess().getTopLevelAssignment_0(), "rule__MappingDefinition__TopLevelAssignment_0"); | ||
85 | builder.put(grammarAccess.getMappingDefinitionAccess().getPatternAssignment_2(), "rule__MappingDefinition__PatternAssignment_2"); | ||
86 | builder.put(grammarAccess.getMappingDefinitionAccess().getParametersAssignment_4(), "rule__MappingDefinition__ParametersAssignment_4"); | ||
87 | builder.put(grammarAccess.getMappingDefinitionAccess().getParametersAssignment_5_1(), "rule__MappingDefinition__ParametersAssignment_5_1"); | ||
88 | builder.put(grammarAccess.getMappingDefinitionAccess().getComponentInstanceAssignment_7(), "rule__MappingDefinition__ComponentInstanceAssignment_7"); | ||
89 | builder.put(grammarAccess.getMappingDefinitionAccess().getLookupDefinitionsAssignment_8_1_0_0(), "rule__MappingDefinition__LookupDefinitionsAssignment_8_1_0_0"); | ||
90 | builder.put(grammarAccess.getMappingDefinitionAccess().getAssignmentsAssignment_8_1_0_1(), "rule__MappingDefinition__AssignmentsAssignment_8_1_0_1"); | ||
91 | builder.put(grammarAccess.getMappingParameterAccess().getNameAssignment(), "rule__MappingParameter__NameAssignment"); | ||
92 | builder.put(grammarAccess.getLookupDefinitionAccess().getMappingAssignment_1(), "rule__LookupDefinition__MappingAssignment_1"); | ||
93 | builder.put(grammarAccess.getLookupDefinitionAccess().getArgumentsAssignment_3(), "rule__LookupDefinition__ArgumentsAssignment_3"); | ||
94 | builder.put(grammarAccess.getLookupDefinitionAccess().getArgumentsAssignment_4_1(), "rule__LookupDefinition__ArgumentsAssignment_4_1"); | ||
95 | builder.put(grammarAccess.getLookupDefinitionAccess().getNameAssignment_7(), "rule__LookupDefinition__NameAssignment_7"); | ||
96 | builder.put(grammarAccess.getAssignmentAccess().getInputAssignment_0(), "rule__Assignment__InputAssignment_0"); | ||
97 | builder.put(grammarAccess.getAssignmentAccess().getMultipleAssignment_1_0(), "rule__Assignment__MultipleAssignment_1_0"); | ||
98 | builder.put(grammarAccess.getAssignmentAccess().getOutputAssignment_2(), "rule__Assignment__OutputAssignment_2"); | ||
99 | builder.put(grammarAccess.getEventReferenceAccess().getComponentAssignment_0(), "rule__EventReference__ComponentAssignment_0"); | ||
100 | builder.put(grammarAccess.getEventReferenceAccess().getEventAssignment_2(), "rule__EventReference__EventAssignment_2"); | ||
101 | builder.put(grammarAccess.getComponentInstanceAccess().getComponentTypeAssignment_1(), "rule__ComponentInstance__ComponentTypeAssignment_1"); | ||
102 | builder.put(grammarAccess.getComponentInstanceAccess().getNameAssignment_2(), "rule__ComponentInstance__NameAssignment_2"); | ||
103 | builder.put(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), "rule__ComponentDefinition__UnorderedGroup_3"); | ||
104 | } | ||
105 | } | ||
106 | |||
107 | @Inject | ||
108 | private NameMappings nameMappings; | ||
109 | |||
110 | @Inject | ||
111 | private CftLanguageGrammarAccess grammarAccess; | ||
112 | |||
113 | @Override | ||
114 | protected InternalCftLanguageParser createParser() { | ||
115 | InternalCftLanguageParser result = new InternalCftLanguageParser(null); | ||
116 | result.setGrammarAccess(grammarAccess); | ||
117 | return result; | ||
118 | } | ||
119 | |||
120 | @Override | ||
121 | protected String getRuleName(AbstractElement element) { | ||
122 | return nameMappings.getRuleName(element); | ||
123 | } | ||
124 | |||
125 | @Override | ||
126 | protected String[] getInitialHiddenTokens() { | ||
127 | return new String[] { "RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT" }; | ||
128 | } | ||
129 | |||
130 | public CftLanguageGrammarAccess getGrammarAccess() { | ||
131 | return this.grammarAccess; | ||
132 | } | ||
133 | |||
134 | public void setGrammarAccess(CftLanguageGrammarAccess grammarAccess) { | ||
135 | this.grammarAccess = grammarAccess; | ||
136 | } | ||
137 | |||
138 | public NameMappings getNameMappings() { | ||
139 | return nameMappings; | ||
140 | } | ||
141 | |||
142 | public void setNameMappings(NameMappings nameMappings) { | ||
143 | this.nameMappings = nameMappings; | ||
144 | } | ||
145 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/contentassist/antlr/PartialCftLanguageContentAssistParser.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/contentassist/antlr/PartialCftLanguageContentAssistParser.java new file mode 100644 index 00000000..11f5a864 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/contentassist/antlr/PartialCftLanguageContentAssistParser.java | |||
@@ -0,0 +1,34 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.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 PartialCftLanguageContentAssistParser extends CftLanguageParser 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/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/contentassist/antlr/internal/InternalCftLanguage.g b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/contentassist/antlr/internal/InternalCftLanguage.g new file mode 100644 index 00000000..84bb924e --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/contentassist/antlr/internal/InternalCftLanguage.g | |||
@@ -0,0 +1,3540 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | grammar InternalCftLanguage; | ||
5 | |||
6 | options { | ||
7 | superClass=AbstractInternalContentAssistParser; | ||
8 | } | ||
9 | |||
10 | @lexer::header { | ||
11 | package hu.bme.mit.inf.dslreasoner.faulttree.components.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.faulttree.components.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.faulttree.components.services.CftLanguageGrammarAccess; | ||
32 | |||
33 | } | ||
34 | @parser::members { | ||
35 | private CftLanguageGrammarAccess grammarAccess; | ||
36 | |||
37 | public void setGrammarAccess(CftLanguageGrammarAccess 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 entryRuleCftModel | ||
53 | entryRuleCftModel | ||
54 | : | ||
55 | { before(grammarAccess.getCftModelRule()); } | ||
56 | ruleCftModel | ||
57 | { after(grammarAccess.getCftModelRule()); } | ||
58 | EOF | ||
59 | ; | ||
60 | |||
61 | // Rule CftModel | ||
62 | ruleCftModel | ||
63 | @init { | ||
64 | int stackSize = keepStackSize(); | ||
65 | } | ||
66 | : | ||
67 | ( | ||
68 | { before(grammarAccess.getCftModelAccess().getGroup()); } | ||
69 | (rule__CftModel__Group__0) | ||
70 | { after(grammarAccess.getCftModelAccess().getGroup()); } | ||
71 | ) | ||
72 | ; | ||
73 | finally { | ||
74 | restoreStackSize(stackSize); | ||
75 | } | ||
76 | |||
77 | // Entry rule entryRuleImportDeclaration | ||
78 | entryRuleImportDeclaration | ||
79 | : | ||
80 | { before(grammarAccess.getImportDeclarationRule()); } | ||
81 | ruleImportDeclaration | ||
82 | { after(grammarAccess.getImportDeclarationRule()); } | ||
83 | EOF | ||
84 | ; | ||
85 | |||
86 | // Rule ImportDeclaration | ||
87 | ruleImportDeclaration | ||
88 | @init { | ||
89 | int stackSize = keepStackSize(); | ||
90 | } | ||
91 | : | ||
92 | ( | ||
93 | { before(grammarAccess.getImportDeclarationAccess().getGroup()); } | ||
94 | (rule__ImportDeclaration__Group__0) | ||
95 | { after(grammarAccess.getImportDeclarationAccess().getGroup()); } | ||
96 | ) | ||
97 | ; | ||
98 | finally { | ||
99 | restoreStackSize(stackSize); | ||
100 | } | ||
101 | |||
102 | // Entry rule entryRuleComponentDefinition | ||
103 | entryRuleComponentDefinition | ||
104 | : | ||
105 | { before(grammarAccess.getComponentDefinitionRule()); } | ||
106 | ruleComponentDefinition | ||
107 | { after(grammarAccess.getComponentDefinitionRule()); } | ||
108 | EOF | ||
109 | ; | ||
110 | |||
111 | // Rule ComponentDefinition | ||
112 | ruleComponentDefinition | ||
113 | @init { | ||
114 | int stackSize = keepStackSize(); | ||
115 | } | ||
116 | : | ||
117 | ( | ||
118 | { before(grammarAccess.getComponentDefinitionAccess().getGroup()); } | ||
119 | (rule__ComponentDefinition__Group__0) | ||
120 | { after(grammarAccess.getComponentDefinitionAccess().getGroup()); } | ||
121 | ) | ||
122 | ; | ||
123 | finally { | ||
124 | restoreStackSize(stackSize); | ||
125 | } | ||
126 | |||
127 | // Entry rule entryRuleInputEvent | ||
128 | entryRuleInputEvent | ||
129 | : | ||
130 | { before(grammarAccess.getInputEventRule()); } | ||
131 | ruleInputEvent | ||
132 | { after(grammarAccess.getInputEventRule()); } | ||
133 | EOF | ||
134 | ; | ||
135 | |||
136 | // Rule InputEvent | ||
137 | ruleInputEvent | ||
138 | @init { | ||
139 | int stackSize = keepStackSize(); | ||
140 | } | ||
141 | : | ||
142 | ( | ||
143 | { before(grammarAccess.getInputEventAccess().getGroup()); } | ||
144 | (rule__InputEvent__Group__0) | ||
145 | { after(grammarAccess.getInputEventAccess().getGroup()); } | ||
146 | ) | ||
147 | ; | ||
148 | finally { | ||
149 | restoreStackSize(stackSize); | ||
150 | } | ||
151 | |||
152 | // Entry rule entryRuleEventDefinition | ||
153 | entryRuleEventDefinition | ||
154 | : | ||
155 | { before(grammarAccess.getEventDefinitionRule()); } | ||
156 | ruleEventDefinition | ||
157 | { after(grammarAccess.getEventDefinitionRule()); } | ||
158 | EOF | ||
159 | ; | ||
160 | |||
161 | // Rule EventDefinition | ||
162 | ruleEventDefinition | ||
163 | @init { | ||
164 | int stackSize = keepStackSize(); | ||
165 | } | ||
166 | : | ||
167 | ( | ||
168 | { before(grammarAccess.getEventDefinitionAccess().getAlternatives()); } | ||
169 | (rule__EventDefinition__Alternatives) | ||
170 | { after(grammarAccess.getEventDefinitionAccess().getAlternatives()); } | ||
171 | ) | ||
172 | ; | ||
173 | finally { | ||
174 | restoreStackSize(stackSize); | ||
175 | } | ||
176 | |||
177 | // Entry rule entryRuleBasicEventDefinition | ||
178 | entryRuleBasicEventDefinition | ||
179 | : | ||
180 | { before(grammarAccess.getBasicEventDefinitionRule()); } | ||
181 | ruleBasicEventDefinition | ||
182 | { after(grammarAccess.getBasicEventDefinitionRule()); } | ||
183 | EOF | ||
184 | ; | ||
185 | |||
186 | // Rule BasicEventDefinition | ||
187 | ruleBasicEventDefinition | ||
188 | @init { | ||
189 | int stackSize = keepStackSize(); | ||
190 | } | ||
191 | : | ||
192 | ( | ||
193 | { before(grammarAccess.getBasicEventDefinitionAccess().getGroup()); } | ||
194 | (rule__BasicEventDefinition__Group__0) | ||
195 | { after(grammarAccess.getBasicEventDefinitionAccess().getGroup()); } | ||
196 | ) | ||
197 | ; | ||
198 | finally { | ||
199 | restoreStackSize(stackSize); | ||
200 | } | ||
201 | |||
202 | // Entry rule entryRuleGateDefinition | ||
203 | entryRuleGateDefinition | ||
204 | : | ||
205 | { before(grammarAccess.getGateDefinitionRule()); } | ||
206 | ruleGateDefinition | ||
207 | { after(grammarAccess.getGateDefinitionRule()); } | ||
208 | EOF | ||
209 | ; | ||
210 | |||
211 | // Rule GateDefinition | ||
212 | ruleGateDefinition | ||
213 | @init { | ||
214 | int stackSize = keepStackSize(); | ||
215 | } | ||
216 | : | ||
217 | ( | ||
218 | { before(grammarAccess.getGateDefinitionAccess().getAlternatives()); } | ||
219 | (rule__GateDefinition__Alternatives) | ||
220 | { after(grammarAccess.getGateDefinitionAccess().getAlternatives()); } | ||
221 | ) | ||
222 | ; | ||
223 | finally { | ||
224 | restoreStackSize(stackSize); | ||
225 | } | ||
226 | |||
227 | // Entry rule entryRuleAndGate | ||
228 | entryRuleAndGate | ||
229 | : | ||
230 | { before(grammarAccess.getAndGateRule()); } | ||
231 | ruleAndGate | ||
232 | { after(grammarAccess.getAndGateRule()); } | ||
233 | EOF | ||
234 | ; | ||
235 | |||
236 | // Rule AndGate | ||
237 | ruleAndGate | ||
238 | @init { | ||
239 | int stackSize = keepStackSize(); | ||
240 | } | ||
241 | : | ||
242 | ( | ||
243 | { before(grammarAccess.getAndGateAccess().getGroup()); } | ||
244 | (rule__AndGate__Group__0) | ||
245 | { after(grammarAccess.getAndGateAccess().getGroup()); } | ||
246 | ) | ||
247 | ; | ||
248 | finally { | ||
249 | restoreStackSize(stackSize); | ||
250 | } | ||
251 | |||
252 | // Entry rule entryRuleOrGate | ||
253 | entryRuleOrGate | ||
254 | : | ||
255 | { before(grammarAccess.getOrGateRule()); } | ||
256 | ruleOrGate | ||
257 | { after(grammarAccess.getOrGateRule()); } | ||
258 | EOF | ||
259 | ; | ||
260 | |||
261 | // Rule OrGate | ||
262 | ruleOrGate | ||
263 | @init { | ||
264 | int stackSize = keepStackSize(); | ||
265 | } | ||
266 | : | ||
267 | ( | ||
268 | { before(grammarAccess.getOrGateAccess().getGroup()); } | ||
269 | (rule__OrGate__Group__0) | ||
270 | { after(grammarAccess.getOrGateAccess().getGroup()); } | ||
271 | ) | ||
272 | ; | ||
273 | finally { | ||
274 | restoreStackSize(stackSize); | ||
275 | } | ||
276 | |||
277 | // Entry rule entryRuleTransformationDefinition | ||
278 | entryRuleTransformationDefinition | ||
279 | : | ||
280 | { before(grammarAccess.getTransformationDefinitionRule()); } | ||
281 | ruleTransformationDefinition | ||
282 | { after(grammarAccess.getTransformationDefinitionRule()); } | ||
283 | EOF | ||
284 | ; | ||
285 | |||
286 | // Rule TransformationDefinition | ||
287 | ruleTransformationDefinition | ||
288 | @init { | ||
289 | int stackSize = keepStackSize(); | ||
290 | } | ||
291 | : | ||
292 | ( | ||
293 | { before(grammarAccess.getTransformationDefinitionAccess().getGroup()); } | ||
294 | (rule__TransformationDefinition__Group__0) | ||
295 | { after(grammarAccess.getTransformationDefinitionAccess().getGroup()); } | ||
296 | ) | ||
297 | ; | ||
298 | finally { | ||
299 | restoreStackSize(stackSize); | ||
300 | } | ||
301 | |||
302 | // Entry rule entryRuleMappingDefinition | ||
303 | entryRuleMappingDefinition | ||
304 | : | ||
305 | { before(grammarAccess.getMappingDefinitionRule()); } | ||
306 | ruleMappingDefinition | ||
307 | { after(grammarAccess.getMappingDefinitionRule()); } | ||
308 | EOF | ||
309 | ; | ||
310 | |||
311 | // Rule MappingDefinition | ||
312 | ruleMappingDefinition | ||
313 | @init { | ||
314 | int stackSize = keepStackSize(); | ||
315 | } | ||
316 | : | ||
317 | ( | ||
318 | { before(grammarAccess.getMappingDefinitionAccess().getGroup()); } | ||
319 | (rule__MappingDefinition__Group__0) | ||
320 | { after(grammarAccess.getMappingDefinitionAccess().getGroup()); } | ||
321 | ) | ||
322 | ; | ||
323 | finally { | ||
324 | restoreStackSize(stackSize); | ||
325 | } | ||
326 | |||
327 | // Entry rule entryRuleMappingParameter | ||
328 | entryRuleMappingParameter | ||
329 | : | ||
330 | { before(grammarAccess.getMappingParameterRule()); } | ||
331 | ruleMappingParameter | ||
332 | { after(grammarAccess.getMappingParameterRule()); } | ||
333 | EOF | ||
334 | ; | ||
335 | |||
336 | // Rule MappingParameter | ||
337 | ruleMappingParameter | ||
338 | @init { | ||
339 | int stackSize = keepStackSize(); | ||
340 | } | ||
341 | : | ||
342 | ( | ||
343 | { before(grammarAccess.getMappingParameterAccess().getNameAssignment()); } | ||
344 | (rule__MappingParameter__NameAssignment) | ||
345 | { after(grammarAccess.getMappingParameterAccess().getNameAssignment()); } | ||
346 | ) | ||
347 | ; | ||
348 | finally { | ||
349 | restoreStackSize(stackSize); | ||
350 | } | ||
351 | |||
352 | // Entry rule entryRuleLookupDefinition | ||
353 | entryRuleLookupDefinition | ||
354 | : | ||
355 | { before(grammarAccess.getLookupDefinitionRule()); } | ||
356 | ruleLookupDefinition | ||
357 | { after(grammarAccess.getLookupDefinitionRule()); } | ||
358 | EOF | ||
359 | ; | ||
360 | |||
361 | // Rule LookupDefinition | ||
362 | ruleLookupDefinition | ||
363 | @init { | ||
364 | int stackSize = keepStackSize(); | ||
365 | } | ||
366 | : | ||
367 | ( | ||
368 | { before(grammarAccess.getLookupDefinitionAccess().getGroup()); } | ||
369 | (rule__LookupDefinition__Group__0) | ||
370 | { after(grammarAccess.getLookupDefinitionAccess().getGroup()); } | ||
371 | ) | ||
372 | ; | ||
373 | finally { | ||
374 | restoreStackSize(stackSize); | ||
375 | } | ||
376 | |||
377 | // Entry rule entryRuleAssignment | ||
378 | entryRuleAssignment | ||
379 | : | ||
380 | { before(grammarAccess.getAssignmentRule()); } | ||
381 | ruleAssignment | ||
382 | { after(grammarAccess.getAssignmentRule()); } | ||
383 | EOF | ||
384 | ; | ||
385 | |||
386 | // Rule Assignment | ||
387 | ruleAssignment | ||
388 | @init { | ||
389 | int stackSize = keepStackSize(); | ||
390 | } | ||
391 | : | ||
392 | ( | ||
393 | { before(grammarAccess.getAssignmentAccess().getGroup()); } | ||
394 | (rule__Assignment__Group__0) | ||
395 | { after(grammarAccess.getAssignmentAccess().getGroup()); } | ||
396 | ) | ||
397 | ; | ||
398 | finally { | ||
399 | restoreStackSize(stackSize); | ||
400 | } | ||
401 | |||
402 | // Entry rule entryRuleEventReference | ||
403 | entryRuleEventReference | ||
404 | : | ||
405 | { before(grammarAccess.getEventReferenceRule()); } | ||
406 | ruleEventReference | ||
407 | { after(grammarAccess.getEventReferenceRule()); } | ||
408 | EOF | ||
409 | ; | ||
410 | |||
411 | // Rule EventReference | ||
412 | ruleEventReference | ||
413 | @init { | ||
414 | int stackSize = keepStackSize(); | ||
415 | } | ||
416 | : | ||
417 | ( | ||
418 | { before(grammarAccess.getEventReferenceAccess().getGroup()); } | ||
419 | (rule__EventReference__Group__0) | ||
420 | { after(grammarAccess.getEventReferenceAccess().getGroup()); } | ||
421 | ) | ||
422 | ; | ||
423 | finally { | ||
424 | restoreStackSize(stackSize); | ||
425 | } | ||
426 | |||
427 | // Entry rule entryRuleComponentInstance | ||
428 | entryRuleComponentInstance | ||
429 | : | ||
430 | { before(grammarAccess.getComponentInstanceRule()); } | ||
431 | ruleComponentInstance | ||
432 | { after(grammarAccess.getComponentInstanceRule()); } | ||
433 | EOF | ||
434 | ; | ||
435 | |||
436 | // Rule ComponentInstance | ||
437 | ruleComponentInstance | ||
438 | @init { | ||
439 | int stackSize = keepStackSize(); | ||
440 | } | ||
441 | : | ||
442 | ( | ||
443 | { before(grammarAccess.getComponentInstanceAccess().getGroup()); } | ||
444 | (rule__ComponentInstance__Group__0) | ||
445 | { after(grammarAccess.getComponentInstanceAccess().getGroup()); } | ||
446 | ) | ||
447 | ; | ||
448 | finally { | ||
449 | restoreStackSize(stackSize); | ||
450 | } | ||
451 | |||
452 | // Entry rule entryRuleQualifiedName | ||
453 | entryRuleQualifiedName | ||
454 | : | ||
455 | { before(grammarAccess.getQualifiedNameRule()); } | ||
456 | ruleQualifiedName | ||
457 | { after(grammarAccess.getQualifiedNameRule()); } | ||
458 | EOF | ||
459 | ; | ||
460 | |||
461 | // Rule QualifiedName | ||
462 | ruleQualifiedName | ||
463 | @init { | ||
464 | int stackSize = keepStackSize(); | ||
465 | } | ||
466 | : | ||
467 | ( | ||
468 | { before(grammarAccess.getQualifiedNameAccess().getGroup()); } | ||
469 | (rule__QualifiedName__Group__0) | ||
470 | { after(grammarAccess.getQualifiedNameAccess().getGroup()); } | ||
471 | ) | ||
472 | ; | ||
473 | finally { | ||
474 | restoreStackSize(stackSize); | ||
475 | } | ||
476 | |||
477 | // Entry rule entryRuleQualifiedNameWithWildcard | ||
478 | entryRuleQualifiedNameWithWildcard | ||
479 | : | ||
480 | { before(grammarAccess.getQualifiedNameWithWildcardRule()); } | ||
481 | ruleQualifiedNameWithWildcard | ||
482 | { after(grammarAccess.getQualifiedNameWithWildcardRule()); } | ||
483 | EOF | ||
484 | ; | ||
485 | |||
486 | // Rule QualifiedNameWithWildcard | ||
487 | ruleQualifiedNameWithWildcard | ||
488 | @init { | ||
489 | int stackSize = keepStackSize(); | ||
490 | } | ||
491 | : | ||
492 | ( | ||
493 | { before(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup()); } | ||
494 | (rule__QualifiedNameWithWildcard__Group__0) | ||
495 | { after(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup()); } | ||
496 | ) | ||
497 | ; | ||
498 | finally { | ||
499 | restoreStackSize(stackSize); | ||
500 | } | ||
501 | |||
502 | rule__CftModel__Alternatives_4 | ||
503 | @init { | ||
504 | int stackSize = keepStackSize(); | ||
505 | } | ||
506 | : | ||
507 | ( | ||
508 | { before(grammarAccess.getCftModelAccess().getComponentDefinitionsAssignment_4_0()); } | ||
509 | (rule__CftModel__ComponentDefinitionsAssignment_4_0) | ||
510 | { after(grammarAccess.getCftModelAccess().getComponentDefinitionsAssignment_4_0()); } | ||
511 | ) | ||
512 | | | ||
513 | ( | ||
514 | { before(grammarAccess.getCftModelAccess().getTransformationDefinitionsAssignment_4_1()); } | ||
515 | (rule__CftModel__TransformationDefinitionsAssignment_4_1) | ||
516 | { after(grammarAccess.getCftModelAccess().getTransformationDefinitionsAssignment_4_1()); } | ||
517 | ) | ||
518 | ; | ||
519 | finally { | ||
520 | restoreStackSize(stackSize); | ||
521 | } | ||
522 | |||
523 | rule__EventDefinition__Alternatives | ||
524 | @init { | ||
525 | int stackSize = keepStackSize(); | ||
526 | } | ||
527 | : | ||
528 | ( | ||
529 | { before(grammarAccess.getEventDefinitionAccess().getBasicEventDefinitionParserRuleCall_0()); } | ||
530 | ruleBasicEventDefinition | ||
531 | { after(grammarAccess.getEventDefinitionAccess().getBasicEventDefinitionParserRuleCall_0()); } | ||
532 | ) | ||
533 | | | ||
534 | ( | ||
535 | { before(grammarAccess.getEventDefinitionAccess().getGateDefinitionParserRuleCall_1()); } | ||
536 | ruleGateDefinition | ||
537 | { after(grammarAccess.getEventDefinitionAccess().getGateDefinitionParserRuleCall_1()); } | ||
538 | ) | ||
539 | ; | ||
540 | finally { | ||
541 | restoreStackSize(stackSize); | ||
542 | } | ||
543 | |||
544 | rule__GateDefinition__Alternatives | ||
545 | @init { | ||
546 | int stackSize = keepStackSize(); | ||
547 | } | ||
548 | : | ||
549 | ( | ||
550 | { before(grammarAccess.getGateDefinitionAccess().getAndGateParserRuleCall_0()); } | ||
551 | ruleAndGate | ||
552 | { after(grammarAccess.getGateDefinitionAccess().getAndGateParserRuleCall_0()); } | ||
553 | ) | ||
554 | | | ||
555 | ( | ||
556 | { before(grammarAccess.getGateDefinitionAccess().getOrGateParserRuleCall_1()); } | ||
557 | ruleOrGate | ||
558 | { after(grammarAccess.getGateDefinitionAccess().getOrGateParserRuleCall_1()); } | ||
559 | ) | ||
560 | ; | ||
561 | finally { | ||
562 | restoreStackSize(stackSize); | ||
563 | } | ||
564 | |||
565 | rule__MappingDefinition__Alternatives_8_1_0 | ||
566 | @init { | ||
567 | int stackSize = keepStackSize(); | ||
568 | } | ||
569 | : | ||
570 | ( | ||
571 | { before(grammarAccess.getMappingDefinitionAccess().getLookupDefinitionsAssignment_8_1_0_0()); } | ||
572 | (rule__MappingDefinition__LookupDefinitionsAssignment_8_1_0_0) | ||
573 | { after(grammarAccess.getMappingDefinitionAccess().getLookupDefinitionsAssignment_8_1_0_0()); } | ||
574 | ) | ||
575 | | | ||
576 | ( | ||
577 | { before(grammarAccess.getMappingDefinitionAccess().getAssignmentsAssignment_8_1_0_1()); } | ||
578 | (rule__MappingDefinition__AssignmentsAssignment_8_1_0_1) | ||
579 | { after(grammarAccess.getMappingDefinitionAccess().getAssignmentsAssignment_8_1_0_1()); } | ||
580 | ) | ||
581 | ; | ||
582 | finally { | ||
583 | restoreStackSize(stackSize); | ||
584 | } | ||
585 | |||
586 | rule__Assignment__Alternatives_1 | ||
587 | @init { | ||
588 | int stackSize = keepStackSize(); | ||
589 | } | ||
590 | : | ||
591 | ( | ||
592 | { before(grammarAccess.getAssignmentAccess().getMultipleAssignment_1_0()); } | ||
593 | (rule__Assignment__MultipleAssignment_1_0) | ||
594 | { after(grammarAccess.getAssignmentAccess().getMultipleAssignment_1_0()); } | ||
595 | ) | ||
596 | | | ||
597 | ( | ||
598 | { before(grammarAccess.getAssignmentAccess().getColonEqualsSignKeyword_1_1()); } | ||
599 | ':=' | ||
600 | { after(grammarAccess.getAssignmentAccess().getColonEqualsSignKeyword_1_1()); } | ||
601 | ) | ||
602 | ; | ||
603 | finally { | ||
604 | restoreStackSize(stackSize); | ||
605 | } | ||
606 | |||
607 | rule__CftModel__Group__0 | ||
608 | @init { | ||
609 | int stackSize = keepStackSize(); | ||
610 | } | ||
611 | : | ||
612 | rule__CftModel__Group__0__Impl | ||
613 | rule__CftModel__Group__1 | ||
614 | ; | ||
615 | finally { | ||
616 | restoreStackSize(stackSize); | ||
617 | } | ||
618 | |||
619 | rule__CftModel__Group__0__Impl | ||
620 | @init { | ||
621 | int stackSize = keepStackSize(); | ||
622 | } | ||
623 | : | ||
624 | ( | ||
625 | { before(grammarAccess.getCftModelAccess().getPackageKeyword_0()); } | ||
626 | 'package' | ||
627 | { after(grammarAccess.getCftModelAccess().getPackageKeyword_0()); } | ||
628 | ) | ||
629 | ; | ||
630 | finally { | ||
631 | restoreStackSize(stackSize); | ||
632 | } | ||
633 | |||
634 | rule__CftModel__Group__1 | ||
635 | @init { | ||
636 | int stackSize = keepStackSize(); | ||
637 | } | ||
638 | : | ||
639 | rule__CftModel__Group__1__Impl | ||
640 | rule__CftModel__Group__2 | ||
641 | ; | ||
642 | finally { | ||
643 | restoreStackSize(stackSize); | ||
644 | } | ||
645 | |||
646 | rule__CftModel__Group__1__Impl | ||
647 | @init { | ||
648 | int stackSize = keepStackSize(); | ||
649 | } | ||
650 | : | ||
651 | ( | ||
652 | { before(grammarAccess.getCftModelAccess().getPackageNameAssignment_1()); } | ||
653 | (rule__CftModel__PackageNameAssignment_1) | ||
654 | { after(grammarAccess.getCftModelAccess().getPackageNameAssignment_1()); } | ||
655 | ) | ||
656 | ; | ||
657 | finally { | ||
658 | restoreStackSize(stackSize); | ||
659 | } | ||
660 | |||
661 | rule__CftModel__Group__2 | ||
662 | @init { | ||
663 | int stackSize = keepStackSize(); | ||
664 | } | ||
665 | : | ||
666 | rule__CftModel__Group__2__Impl | ||
667 | rule__CftModel__Group__3 | ||
668 | ; | ||
669 | finally { | ||
670 | restoreStackSize(stackSize); | ||
671 | } | ||
672 | |||
673 | rule__CftModel__Group__2__Impl | ||
674 | @init { | ||
675 | int stackSize = keepStackSize(); | ||
676 | } | ||
677 | : | ||
678 | ( | ||
679 | { before(grammarAccess.getCftModelAccess().getSemicolonKeyword_2()); } | ||
680 | (';')? | ||
681 | { after(grammarAccess.getCftModelAccess().getSemicolonKeyword_2()); } | ||
682 | ) | ||
683 | ; | ||
684 | finally { | ||
685 | restoreStackSize(stackSize); | ||
686 | } | ||
687 | |||
688 | rule__CftModel__Group__3 | ||
689 | @init { | ||
690 | int stackSize = keepStackSize(); | ||
691 | } | ||
692 | : | ||
693 | rule__CftModel__Group__3__Impl | ||
694 | rule__CftModel__Group__4 | ||
695 | ; | ||
696 | finally { | ||
697 | restoreStackSize(stackSize); | ||
698 | } | ||
699 | |||
700 | rule__CftModel__Group__3__Impl | ||
701 | @init { | ||
702 | int stackSize = keepStackSize(); | ||
703 | } | ||
704 | : | ||
705 | ( | ||
706 | { before(grammarAccess.getCftModelAccess().getImportsAssignment_3()); } | ||
707 | (rule__CftModel__ImportsAssignment_3)* | ||
708 | { after(grammarAccess.getCftModelAccess().getImportsAssignment_3()); } | ||
709 | ) | ||
710 | ; | ||
711 | finally { | ||
712 | restoreStackSize(stackSize); | ||
713 | } | ||
714 | |||
715 | rule__CftModel__Group__4 | ||
716 | @init { | ||
717 | int stackSize = keepStackSize(); | ||
718 | } | ||
719 | : | ||
720 | rule__CftModel__Group__4__Impl | ||
721 | ; | ||
722 | finally { | ||
723 | restoreStackSize(stackSize); | ||
724 | } | ||
725 | |||
726 | rule__CftModel__Group__4__Impl | ||
727 | @init { | ||
728 | int stackSize = keepStackSize(); | ||
729 | } | ||
730 | : | ||
731 | ( | ||
732 | { before(grammarAccess.getCftModelAccess().getAlternatives_4()); } | ||
733 | (rule__CftModel__Alternatives_4)* | ||
734 | { after(grammarAccess.getCftModelAccess().getAlternatives_4()); } | ||
735 | ) | ||
736 | ; | ||
737 | finally { | ||
738 | restoreStackSize(stackSize); | ||
739 | } | ||
740 | |||
741 | |||
742 | rule__ImportDeclaration__Group__0 | ||
743 | @init { | ||
744 | int stackSize = keepStackSize(); | ||
745 | } | ||
746 | : | ||
747 | rule__ImportDeclaration__Group__0__Impl | ||
748 | rule__ImportDeclaration__Group__1 | ||
749 | ; | ||
750 | finally { | ||
751 | restoreStackSize(stackSize); | ||
752 | } | ||
753 | |||
754 | rule__ImportDeclaration__Group__0__Impl | ||
755 | @init { | ||
756 | int stackSize = keepStackSize(); | ||
757 | } | ||
758 | : | ||
759 | ( | ||
760 | { before(grammarAccess.getImportDeclarationAccess().getImportKeyword_0()); } | ||
761 | 'import' | ||
762 | { after(grammarAccess.getImportDeclarationAccess().getImportKeyword_0()); } | ||
763 | ) | ||
764 | ; | ||
765 | finally { | ||
766 | restoreStackSize(stackSize); | ||
767 | } | ||
768 | |||
769 | rule__ImportDeclaration__Group__1 | ||
770 | @init { | ||
771 | int stackSize = keepStackSize(); | ||
772 | } | ||
773 | : | ||
774 | rule__ImportDeclaration__Group__1__Impl | ||
775 | rule__ImportDeclaration__Group__2 | ||
776 | ; | ||
777 | finally { | ||
778 | restoreStackSize(stackSize); | ||
779 | } | ||
780 | |||
781 | rule__ImportDeclaration__Group__1__Impl | ||
782 | @init { | ||
783 | int stackSize = keepStackSize(); | ||
784 | } | ||
785 | : | ||
786 | ( | ||
787 | { before(grammarAccess.getImportDeclarationAccess().getImportedNamespaceAssignment_1()); } | ||
788 | (rule__ImportDeclaration__ImportedNamespaceAssignment_1) | ||
789 | { after(grammarAccess.getImportDeclarationAccess().getImportedNamespaceAssignment_1()); } | ||
790 | ) | ||
791 | ; | ||
792 | finally { | ||
793 | restoreStackSize(stackSize); | ||
794 | } | ||
795 | |||
796 | rule__ImportDeclaration__Group__2 | ||
797 | @init { | ||
798 | int stackSize = keepStackSize(); | ||
799 | } | ||
800 | : | ||
801 | rule__ImportDeclaration__Group__2__Impl | ||
802 | ; | ||
803 | finally { | ||
804 | restoreStackSize(stackSize); | ||
805 | } | ||
806 | |||
807 | rule__ImportDeclaration__Group__2__Impl | ||
808 | @init { | ||
809 | int stackSize = keepStackSize(); | ||
810 | } | ||
811 | : | ||
812 | ( | ||
813 | { before(grammarAccess.getImportDeclarationAccess().getSemicolonKeyword_2()); } | ||
814 | (';')? | ||
815 | { after(grammarAccess.getImportDeclarationAccess().getSemicolonKeyword_2()); } | ||
816 | ) | ||
817 | ; | ||
818 | finally { | ||
819 | restoreStackSize(stackSize); | ||
820 | } | ||
821 | |||
822 | |||
823 | rule__ComponentDefinition__Group__0 | ||
824 | @init { | ||
825 | int stackSize = keepStackSize(); | ||
826 | } | ||
827 | : | ||
828 | rule__ComponentDefinition__Group__0__Impl | ||
829 | rule__ComponentDefinition__Group__1 | ||
830 | ; | ||
831 | finally { | ||
832 | restoreStackSize(stackSize); | ||
833 | } | ||
834 | |||
835 | rule__ComponentDefinition__Group__0__Impl | ||
836 | @init { | ||
837 | int stackSize = keepStackSize(); | ||
838 | } | ||
839 | : | ||
840 | ( | ||
841 | { before(grammarAccess.getComponentDefinitionAccess().getCftKeyword_0()); } | ||
842 | 'cft' | ||
843 | { after(grammarAccess.getComponentDefinitionAccess().getCftKeyword_0()); } | ||
844 | ) | ||
845 | ; | ||
846 | finally { | ||
847 | restoreStackSize(stackSize); | ||
848 | } | ||
849 | |||
850 | rule__ComponentDefinition__Group__1 | ||
851 | @init { | ||
852 | int stackSize = keepStackSize(); | ||
853 | } | ||
854 | : | ||
855 | rule__ComponentDefinition__Group__1__Impl | ||
856 | rule__ComponentDefinition__Group__2 | ||
857 | ; | ||
858 | finally { | ||
859 | restoreStackSize(stackSize); | ||
860 | } | ||
861 | |||
862 | rule__ComponentDefinition__Group__1__Impl | ||
863 | @init { | ||
864 | int stackSize = keepStackSize(); | ||
865 | } | ||
866 | : | ||
867 | ( | ||
868 | { before(grammarAccess.getComponentDefinitionAccess().getNameAssignment_1()); } | ||
869 | (rule__ComponentDefinition__NameAssignment_1) | ||
870 | { after(grammarAccess.getComponentDefinitionAccess().getNameAssignment_1()); } | ||
871 | ) | ||
872 | ; | ||
873 | finally { | ||
874 | restoreStackSize(stackSize); | ||
875 | } | ||
876 | |||
877 | rule__ComponentDefinition__Group__2 | ||
878 | @init { | ||
879 | int stackSize = keepStackSize(); | ||
880 | } | ||
881 | : | ||
882 | rule__ComponentDefinition__Group__2__Impl | ||
883 | rule__ComponentDefinition__Group__3 | ||
884 | ; | ||
885 | finally { | ||
886 | restoreStackSize(stackSize); | ||
887 | } | ||
888 | |||
889 | rule__ComponentDefinition__Group__2__Impl | ||
890 | @init { | ||
891 | int stackSize = keepStackSize(); | ||
892 | } | ||
893 | : | ||
894 | ( | ||
895 | { before(grammarAccess.getComponentDefinitionAccess().getLeftCurlyBracketKeyword_2()); } | ||
896 | '{' | ||
897 | { after(grammarAccess.getComponentDefinitionAccess().getLeftCurlyBracketKeyword_2()); } | ||
898 | ) | ||
899 | ; | ||
900 | finally { | ||
901 | restoreStackSize(stackSize); | ||
902 | } | ||
903 | |||
904 | rule__ComponentDefinition__Group__3 | ||
905 | @init { | ||
906 | int stackSize = keepStackSize(); | ||
907 | } | ||
908 | : | ||
909 | rule__ComponentDefinition__Group__3__Impl | ||
910 | rule__ComponentDefinition__Group__4 | ||
911 | ; | ||
912 | finally { | ||
913 | restoreStackSize(stackSize); | ||
914 | } | ||
915 | |||
916 | rule__ComponentDefinition__Group__3__Impl | ||
917 | @init { | ||
918 | int stackSize = keepStackSize(); | ||
919 | } | ||
920 | : | ||
921 | ( | ||
922 | { before(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); } | ||
923 | (rule__ComponentDefinition__UnorderedGroup_3) | ||
924 | { after(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); } | ||
925 | ) | ||
926 | ; | ||
927 | finally { | ||
928 | restoreStackSize(stackSize); | ||
929 | } | ||
930 | |||
931 | rule__ComponentDefinition__Group__4 | ||
932 | @init { | ||
933 | int stackSize = keepStackSize(); | ||
934 | } | ||
935 | : | ||
936 | rule__ComponentDefinition__Group__4__Impl | ||
937 | rule__ComponentDefinition__Group__5 | ||
938 | ; | ||
939 | finally { | ||
940 | restoreStackSize(stackSize); | ||
941 | } | ||
942 | |||
943 | rule__ComponentDefinition__Group__4__Impl | ||
944 | @init { | ||
945 | int stackSize = keepStackSize(); | ||
946 | } | ||
947 | : | ||
948 | ( | ||
949 | { before(grammarAccess.getComponentDefinitionAccess().getGroup_4()); } | ||
950 | (rule__ComponentDefinition__Group_4__0)* | ||
951 | { after(grammarAccess.getComponentDefinitionAccess().getGroup_4()); } | ||
952 | ) | ||
953 | ; | ||
954 | finally { | ||
955 | restoreStackSize(stackSize); | ||
956 | } | ||
957 | |||
958 | rule__ComponentDefinition__Group__5 | ||
959 | @init { | ||
960 | int stackSize = keepStackSize(); | ||
961 | } | ||
962 | : | ||
963 | rule__ComponentDefinition__Group__5__Impl | ||
964 | ; | ||
965 | finally { | ||
966 | restoreStackSize(stackSize); | ||
967 | } | ||
968 | |||
969 | rule__ComponentDefinition__Group__5__Impl | ||
970 | @init { | ||
971 | int stackSize = keepStackSize(); | ||
972 | } | ||
973 | : | ||
974 | ( | ||
975 | { before(grammarAccess.getComponentDefinitionAccess().getRightCurlyBracketKeyword_5()); } | ||
976 | '}' | ||
977 | { after(grammarAccess.getComponentDefinitionAccess().getRightCurlyBracketKeyword_5()); } | ||
978 | ) | ||
979 | ; | ||
980 | finally { | ||
981 | restoreStackSize(stackSize); | ||
982 | } | ||
983 | |||
984 | |||
985 | rule__ComponentDefinition__Group_3_0__0 | ||
986 | @init { | ||
987 | int stackSize = keepStackSize(); | ||
988 | } | ||
989 | : | ||
990 | rule__ComponentDefinition__Group_3_0__0__Impl | ||
991 | rule__ComponentDefinition__Group_3_0__1 | ||
992 | ; | ||
993 | finally { | ||
994 | restoreStackSize(stackSize); | ||
995 | } | ||
996 | |||
997 | rule__ComponentDefinition__Group_3_0__0__Impl | ||
998 | @init { | ||
999 | int stackSize = keepStackSize(); | ||
1000 | } | ||
1001 | : | ||
1002 | ( | ||
1003 | { before(grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()); } | ||
1004 | 'in' | ||
1005 | { after(grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()); } | ||
1006 | ) | ||
1007 | ; | ||
1008 | finally { | ||
1009 | restoreStackSize(stackSize); | ||
1010 | } | ||
1011 | |||
1012 | rule__ComponentDefinition__Group_3_0__1 | ||
1013 | @init { | ||
1014 | int stackSize = keepStackSize(); | ||
1015 | } | ||
1016 | : | ||
1017 | rule__ComponentDefinition__Group_3_0__1__Impl | ||
1018 | rule__ComponentDefinition__Group_3_0__2 | ||
1019 | ; | ||
1020 | finally { | ||
1021 | restoreStackSize(stackSize); | ||
1022 | } | ||
1023 | |||
1024 | rule__ComponentDefinition__Group_3_0__1__Impl | ||
1025 | @init { | ||
1026 | int stackSize = keepStackSize(); | ||
1027 | } | ||
1028 | : | ||
1029 | ( | ||
1030 | { before(grammarAccess.getComponentDefinitionAccess().getInputEventsAssignment_3_0_1()); } | ||
1031 | (rule__ComponentDefinition__InputEventsAssignment_3_0_1)* | ||
1032 | { after(grammarAccess.getComponentDefinitionAccess().getInputEventsAssignment_3_0_1()); } | ||
1033 | ) | ||
1034 | ; | ||
1035 | finally { | ||
1036 | restoreStackSize(stackSize); | ||
1037 | } | ||
1038 | |||
1039 | rule__ComponentDefinition__Group_3_0__2 | ||
1040 | @init { | ||
1041 | int stackSize = keepStackSize(); | ||
1042 | } | ||
1043 | : | ||
1044 | rule__ComponentDefinition__Group_3_0__2__Impl | ||
1045 | ; | ||
1046 | finally { | ||
1047 | restoreStackSize(stackSize); | ||
1048 | } | ||
1049 | |||
1050 | rule__ComponentDefinition__Group_3_0__2__Impl | ||
1051 | @init { | ||
1052 | int stackSize = keepStackSize(); | ||
1053 | } | ||
1054 | : | ||
1055 | ( | ||
1056 | { before(grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()); } | ||
1057 | ';' | ||
1058 | { after(grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()); } | ||
1059 | ) | ||
1060 | ; | ||
1061 | finally { | ||
1062 | restoreStackSize(stackSize); | ||
1063 | } | ||
1064 | |||
1065 | |||
1066 | rule__ComponentDefinition__Group_3_1__0 | ||
1067 | @init { | ||
1068 | int stackSize = keepStackSize(); | ||
1069 | } | ||
1070 | : | ||
1071 | rule__ComponentDefinition__Group_3_1__0__Impl | ||
1072 | rule__ComponentDefinition__Group_3_1__1 | ||
1073 | ; | ||
1074 | finally { | ||
1075 | restoreStackSize(stackSize); | ||
1076 | } | ||
1077 | |||
1078 | rule__ComponentDefinition__Group_3_1__0__Impl | ||
1079 | @init { | ||
1080 | int stackSize = keepStackSize(); | ||
1081 | } | ||
1082 | : | ||
1083 | ( | ||
1084 | { before(grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()); } | ||
1085 | 'out' | ||
1086 | { after(grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()); } | ||
1087 | ) | ||
1088 | ; | ||
1089 | finally { | ||
1090 | restoreStackSize(stackSize); | ||
1091 | } | ||
1092 | |||
1093 | rule__ComponentDefinition__Group_3_1__1 | ||
1094 | @init { | ||
1095 | int stackSize = keepStackSize(); | ||
1096 | } | ||
1097 | : | ||
1098 | rule__ComponentDefinition__Group_3_1__1__Impl | ||
1099 | rule__ComponentDefinition__Group_3_1__2 | ||
1100 | ; | ||
1101 | finally { | ||
1102 | restoreStackSize(stackSize); | ||
1103 | } | ||
1104 | |||
1105 | rule__ComponentDefinition__Group_3_1__1__Impl | ||
1106 | @init { | ||
1107 | int stackSize = keepStackSize(); | ||
1108 | } | ||
1109 | : | ||
1110 | ( | ||
1111 | { before(grammarAccess.getComponentDefinitionAccess().getOutputEventsAssignment_3_1_1()); } | ||
1112 | (rule__ComponentDefinition__OutputEventsAssignment_3_1_1)* | ||
1113 | { after(grammarAccess.getComponentDefinitionAccess().getOutputEventsAssignment_3_1_1()); } | ||
1114 | ) | ||
1115 | ; | ||
1116 | finally { | ||
1117 | restoreStackSize(stackSize); | ||
1118 | } | ||
1119 | |||
1120 | rule__ComponentDefinition__Group_3_1__2 | ||
1121 | @init { | ||
1122 | int stackSize = keepStackSize(); | ||
1123 | } | ||
1124 | : | ||
1125 | rule__ComponentDefinition__Group_3_1__2__Impl | ||
1126 | ; | ||
1127 | finally { | ||
1128 | restoreStackSize(stackSize); | ||
1129 | } | ||
1130 | |||
1131 | rule__ComponentDefinition__Group_3_1__2__Impl | ||
1132 | @init { | ||
1133 | int stackSize = keepStackSize(); | ||
1134 | } | ||
1135 | : | ||
1136 | ( | ||
1137 | { before(grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()); } | ||
1138 | ';' | ||
1139 | { after(grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()); } | ||
1140 | ) | ||
1141 | ; | ||
1142 | finally { | ||
1143 | restoreStackSize(stackSize); | ||
1144 | } | ||
1145 | |||
1146 | |||
1147 | rule__ComponentDefinition__Group_4__0 | ||
1148 | @init { | ||
1149 | int stackSize = keepStackSize(); | ||
1150 | } | ||
1151 | : | ||
1152 | rule__ComponentDefinition__Group_4__0__Impl | ||
1153 | rule__ComponentDefinition__Group_4__1 | ||
1154 | ; | ||
1155 | finally { | ||
1156 | restoreStackSize(stackSize); | ||
1157 | } | ||
1158 | |||
1159 | rule__ComponentDefinition__Group_4__0__Impl | ||
1160 | @init { | ||
1161 | int stackSize = keepStackSize(); | ||
1162 | } | ||
1163 | : | ||
1164 | ( | ||
1165 | { before(grammarAccess.getComponentDefinitionAccess().getEventDefinitionsAssignment_4_0()); } | ||
1166 | (rule__ComponentDefinition__EventDefinitionsAssignment_4_0) | ||
1167 | { after(grammarAccess.getComponentDefinitionAccess().getEventDefinitionsAssignment_4_0()); } | ||
1168 | ) | ||
1169 | ; | ||
1170 | finally { | ||
1171 | restoreStackSize(stackSize); | ||
1172 | } | ||
1173 | |||
1174 | rule__ComponentDefinition__Group_4__1 | ||
1175 | @init { | ||
1176 | int stackSize = keepStackSize(); | ||
1177 | } | ||
1178 | : | ||
1179 | rule__ComponentDefinition__Group_4__1__Impl | ||
1180 | ; | ||
1181 | finally { | ||
1182 | restoreStackSize(stackSize); | ||
1183 | } | ||
1184 | |||
1185 | rule__ComponentDefinition__Group_4__1__Impl | ||
1186 | @init { | ||
1187 | int stackSize = keepStackSize(); | ||
1188 | } | ||
1189 | : | ||
1190 | ( | ||
1191 | { before(grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_4_1()); } | ||
1192 | ';' | ||
1193 | { after(grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_4_1()); } | ||
1194 | ) | ||
1195 | ; | ||
1196 | finally { | ||
1197 | restoreStackSize(stackSize); | ||
1198 | } | ||
1199 | |||
1200 | |||
1201 | rule__InputEvent__Group__0 | ||
1202 | @init { | ||
1203 | int stackSize = keepStackSize(); | ||
1204 | } | ||
1205 | : | ||
1206 | rule__InputEvent__Group__0__Impl | ||
1207 | rule__InputEvent__Group__1 | ||
1208 | ; | ||
1209 | finally { | ||
1210 | restoreStackSize(stackSize); | ||
1211 | } | ||
1212 | |||
1213 | rule__InputEvent__Group__0__Impl | ||
1214 | @init { | ||
1215 | int stackSize = keepStackSize(); | ||
1216 | } | ||
1217 | : | ||
1218 | ( | ||
1219 | { before(grammarAccess.getInputEventAccess().getNameAssignment_0()); } | ||
1220 | (rule__InputEvent__NameAssignment_0) | ||
1221 | { after(grammarAccess.getInputEventAccess().getNameAssignment_0()); } | ||
1222 | ) | ||
1223 | ; | ||
1224 | finally { | ||
1225 | restoreStackSize(stackSize); | ||
1226 | } | ||
1227 | |||
1228 | rule__InputEvent__Group__1 | ||
1229 | @init { | ||
1230 | int stackSize = keepStackSize(); | ||
1231 | } | ||
1232 | : | ||
1233 | rule__InputEvent__Group__1__Impl | ||
1234 | ; | ||
1235 | finally { | ||
1236 | restoreStackSize(stackSize); | ||
1237 | } | ||
1238 | |||
1239 | rule__InputEvent__Group__1__Impl | ||
1240 | @init { | ||
1241 | int stackSize = keepStackSize(); | ||
1242 | } | ||
1243 | : | ||
1244 | ( | ||
1245 | { before(grammarAccess.getInputEventAccess().getMultipleAssignment_1()); } | ||
1246 | (rule__InputEvent__MultipleAssignment_1)? | ||
1247 | { after(grammarAccess.getInputEventAccess().getMultipleAssignment_1()); } | ||
1248 | ) | ||
1249 | ; | ||
1250 | finally { | ||
1251 | restoreStackSize(stackSize); | ||
1252 | } | ||
1253 | |||
1254 | |||
1255 | rule__BasicEventDefinition__Group__0 | ||
1256 | @init { | ||
1257 | int stackSize = keepStackSize(); | ||
1258 | } | ||
1259 | : | ||
1260 | rule__BasicEventDefinition__Group__0__Impl | ||
1261 | rule__BasicEventDefinition__Group__1 | ||
1262 | ; | ||
1263 | finally { | ||
1264 | restoreStackSize(stackSize); | ||
1265 | } | ||
1266 | |||
1267 | rule__BasicEventDefinition__Group__0__Impl | ||
1268 | @init { | ||
1269 | int stackSize = keepStackSize(); | ||
1270 | } | ||
1271 | : | ||
1272 | ( | ||
1273 | { before(grammarAccess.getBasicEventDefinitionAccess().getNameAssignment_0()); } | ||
1274 | (rule__BasicEventDefinition__NameAssignment_0) | ||
1275 | { after(grammarAccess.getBasicEventDefinitionAccess().getNameAssignment_0()); } | ||
1276 | ) | ||
1277 | ; | ||
1278 | finally { | ||
1279 | restoreStackSize(stackSize); | ||
1280 | } | ||
1281 | |||
1282 | rule__BasicEventDefinition__Group__1 | ||
1283 | @init { | ||
1284 | int stackSize = keepStackSize(); | ||
1285 | } | ||
1286 | : | ||
1287 | rule__BasicEventDefinition__Group__1__Impl | ||
1288 | rule__BasicEventDefinition__Group__2 | ||
1289 | ; | ||
1290 | finally { | ||
1291 | restoreStackSize(stackSize); | ||
1292 | } | ||
1293 | |||
1294 | rule__BasicEventDefinition__Group__1__Impl | ||
1295 | @init { | ||
1296 | int stackSize = keepStackSize(); | ||
1297 | } | ||
1298 | : | ||
1299 | ( | ||
1300 | { before(grammarAccess.getBasicEventDefinitionAccess().getLambdaKeyword_1()); } | ||
1301 | 'lambda' | ||
1302 | { after(grammarAccess.getBasicEventDefinitionAccess().getLambdaKeyword_1()); } | ||
1303 | ) | ||
1304 | ; | ||
1305 | finally { | ||
1306 | restoreStackSize(stackSize); | ||
1307 | } | ||
1308 | |||
1309 | rule__BasicEventDefinition__Group__2 | ||
1310 | @init { | ||
1311 | int stackSize = keepStackSize(); | ||
1312 | } | ||
1313 | : | ||
1314 | rule__BasicEventDefinition__Group__2__Impl | ||
1315 | rule__BasicEventDefinition__Group__3 | ||
1316 | ; | ||
1317 | finally { | ||
1318 | restoreStackSize(stackSize); | ||
1319 | } | ||
1320 | |||
1321 | rule__BasicEventDefinition__Group__2__Impl | ||
1322 | @init { | ||
1323 | int stackSize = keepStackSize(); | ||
1324 | } | ||
1325 | : | ||
1326 | ( | ||
1327 | { before(grammarAccess.getBasicEventDefinitionAccess().getEqualsSignKeyword_2()); } | ||
1328 | '=' | ||
1329 | { after(grammarAccess.getBasicEventDefinitionAccess().getEqualsSignKeyword_2()); } | ||
1330 | ) | ||
1331 | ; | ||
1332 | finally { | ||
1333 | restoreStackSize(stackSize); | ||
1334 | } | ||
1335 | |||
1336 | rule__BasicEventDefinition__Group__3 | ||
1337 | @init { | ||
1338 | int stackSize = keepStackSize(); | ||
1339 | } | ||
1340 | : | ||
1341 | rule__BasicEventDefinition__Group__3__Impl | ||
1342 | ; | ||
1343 | finally { | ||
1344 | restoreStackSize(stackSize); | ||
1345 | } | ||
1346 | |||
1347 | rule__BasicEventDefinition__Group__3__Impl | ||
1348 | @init { | ||
1349 | int stackSize = keepStackSize(); | ||
1350 | } | ||
1351 | : | ||
1352 | ( | ||
1353 | { before(grammarAccess.getBasicEventDefinitionAccess().getRateAssignment_3()); } | ||
1354 | (rule__BasicEventDefinition__RateAssignment_3) | ||
1355 | { after(grammarAccess.getBasicEventDefinitionAccess().getRateAssignment_3()); } | ||
1356 | ) | ||
1357 | ; | ||
1358 | finally { | ||
1359 | restoreStackSize(stackSize); | ||
1360 | } | ||
1361 | |||
1362 | |||
1363 | rule__AndGate__Group__0 | ||
1364 | @init { | ||
1365 | int stackSize = keepStackSize(); | ||
1366 | } | ||
1367 | : | ||
1368 | rule__AndGate__Group__0__Impl | ||
1369 | rule__AndGate__Group__1 | ||
1370 | ; | ||
1371 | finally { | ||
1372 | restoreStackSize(stackSize); | ||
1373 | } | ||
1374 | |||
1375 | rule__AndGate__Group__0__Impl | ||
1376 | @init { | ||
1377 | int stackSize = keepStackSize(); | ||
1378 | } | ||
1379 | : | ||
1380 | ( | ||
1381 | { before(grammarAccess.getAndGateAccess().getNameAssignment_0()); } | ||
1382 | (rule__AndGate__NameAssignment_0) | ||
1383 | { after(grammarAccess.getAndGateAccess().getNameAssignment_0()); } | ||
1384 | ) | ||
1385 | ; | ||
1386 | finally { | ||
1387 | restoreStackSize(stackSize); | ||
1388 | } | ||
1389 | |||
1390 | rule__AndGate__Group__1 | ||
1391 | @init { | ||
1392 | int stackSize = keepStackSize(); | ||
1393 | } | ||
1394 | : | ||
1395 | rule__AndGate__Group__1__Impl | ||
1396 | rule__AndGate__Group__2 | ||
1397 | ; | ||
1398 | finally { | ||
1399 | restoreStackSize(stackSize); | ||
1400 | } | ||
1401 | |||
1402 | rule__AndGate__Group__1__Impl | ||
1403 | @init { | ||
1404 | int stackSize = keepStackSize(); | ||
1405 | } | ||
1406 | : | ||
1407 | ( | ||
1408 | { before(grammarAccess.getAndGateAccess().getAndKeyword_1()); } | ||
1409 | 'and' | ||
1410 | { after(grammarAccess.getAndGateAccess().getAndKeyword_1()); } | ||
1411 | ) | ||
1412 | ; | ||
1413 | finally { | ||
1414 | restoreStackSize(stackSize); | ||
1415 | } | ||
1416 | |||
1417 | rule__AndGate__Group__2 | ||
1418 | @init { | ||
1419 | int stackSize = keepStackSize(); | ||
1420 | } | ||
1421 | : | ||
1422 | rule__AndGate__Group__2__Impl | ||
1423 | ; | ||
1424 | finally { | ||
1425 | restoreStackSize(stackSize); | ||
1426 | } | ||
1427 | |||
1428 | rule__AndGate__Group__2__Impl | ||
1429 | @init { | ||
1430 | int stackSize = keepStackSize(); | ||
1431 | } | ||
1432 | : | ||
1433 | ( | ||
1434 | { before(grammarAccess.getAndGateAccess().getInputEventsAssignment_2()); } | ||
1435 | (rule__AndGate__InputEventsAssignment_2)* | ||
1436 | { after(grammarAccess.getAndGateAccess().getInputEventsAssignment_2()); } | ||
1437 | ) | ||
1438 | ; | ||
1439 | finally { | ||
1440 | restoreStackSize(stackSize); | ||
1441 | } | ||
1442 | |||
1443 | |||
1444 | rule__OrGate__Group__0 | ||
1445 | @init { | ||
1446 | int stackSize = keepStackSize(); | ||
1447 | } | ||
1448 | : | ||
1449 | rule__OrGate__Group__0__Impl | ||
1450 | rule__OrGate__Group__1 | ||
1451 | ; | ||
1452 | finally { | ||
1453 | restoreStackSize(stackSize); | ||
1454 | } | ||
1455 | |||
1456 | rule__OrGate__Group__0__Impl | ||
1457 | @init { | ||
1458 | int stackSize = keepStackSize(); | ||
1459 | } | ||
1460 | : | ||
1461 | ( | ||
1462 | { before(grammarAccess.getOrGateAccess().getNameAssignment_0()); } | ||
1463 | (rule__OrGate__NameAssignment_0) | ||
1464 | { after(grammarAccess.getOrGateAccess().getNameAssignment_0()); } | ||
1465 | ) | ||
1466 | ; | ||
1467 | finally { | ||
1468 | restoreStackSize(stackSize); | ||
1469 | } | ||
1470 | |||
1471 | rule__OrGate__Group__1 | ||
1472 | @init { | ||
1473 | int stackSize = keepStackSize(); | ||
1474 | } | ||
1475 | : | ||
1476 | rule__OrGate__Group__1__Impl | ||
1477 | rule__OrGate__Group__2 | ||
1478 | ; | ||
1479 | finally { | ||
1480 | restoreStackSize(stackSize); | ||
1481 | } | ||
1482 | |||
1483 | rule__OrGate__Group__1__Impl | ||
1484 | @init { | ||
1485 | int stackSize = keepStackSize(); | ||
1486 | } | ||
1487 | : | ||
1488 | ( | ||
1489 | { before(grammarAccess.getOrGateAccess().getOrKeyword_1()); } | ||
1490 | 'or' | ||
1491 | { after(grammarAccess.getOrGateAccess().getOrKeyword_1()); } | ||
1492 | ) | ||
1493 | ; | ||
1494 | finally { | ||
1495 | restoreStackSize(stackSize); | ||
1496 | } | ||
1497 | |||
1498 | rule__OrGate__Group__2 | ||
1499 | @init { | ||
1500 | int stackSize = keepStackSize(); | ||
1501 | } | ||
1502 | : | ||
1503 | rule__OrGate__Group__2__Impl | ||
1504 | ; | ||
1505 | finally { | ||
1506 | restoreStackSize(stackSize); | ||
1507 | } | ||
1508 | |||
1509 | rule__OrGate__Group__2__Impl | ||
1510 | @init { | ||
1511 | int stackSize = keepStackSize(); | ||
1512 | } | ||
1513 | : | ||
1514 | ( | ||
1515 | { before(grammarAccess.getOrGateAccess().getInputEventsAssignment_2()); } | ||
1516 | (rule__OrGate__InputEventsAssignment_2)* | ||
1517 | { after(grammarAccess.getOrGateAccess().getInputEventsAssignment_2()); } | ||
1518 | ) | ||
1519 | ; | ||
1520 | finally { | ||
1521 | restoreStackSize(stackSize); | ||
1522 | } | ||
1523 | |||
1524 | |||
1525 | rule__TransformationDefinition__Group__0 | ||
1526 | @init { | ||
1527 | int stackSize = keepStackSize(); | ||
1528 | } | ||
1529 | : | ||
1530 | rule__TransformationDefinition__Group__0__Impl | ||
1531 | rule__TransformationDefinition__Group__1 | ||
1532 | ; | ||
1533 | finally { | ||
1534 | restoreStackSize(stackSize); | ||
1535 | } | ||
1536 | |||
1537 | rule__TransformationDefinition__Group__0__Impl | ||
1538 | @init { | ||
1539 | int stackSize = keepStackSize(); | ||
1540 | } | ||
1541 | : | ||
1542 | ( | ||
1543 | { before(grammarAccess.getTransformationDefinitionAccess().getTransformationKeyword_0()); } | ||
1544 | 'transformation' | ||
1545 | { after(grammarAccess.getTransformationDefinitionAccess().getTransformationKeyword_0()); } | ||
1546 | ) | ||
1547 | ; | ||
1548 | finally { | ||
1549 | restoreStackSize(stackSize); | ||
1550 | } | ||
1551 | |||
1552 | rule__TransformationDefinition__Group__1 | ||
1553 | @init { | ||
1554 | int stackSize = keepStackSize(); | ||
1555 | } | ||
1556 | : | ||
1557 | rule__TransformationDefinition__Group__1__Impl | ||
1558 | rule__TransformationDefinition__Group__2 | ||
1559 | ; | ||
1560 | finally { | ||
1561 | restoreStackSize(stackSize); | ||
1562 | } | ||
1563 | |||
1564 | rule__TransformationDefinition__Group__1__Impl | ||
1565 | @init { | ||
1566 | int stackSize = keepStackSize(); | ||
1567 | } | ||
1568 | : | ||
1569 | ( | ||
1570 | { before(grammarAccess.getTransformationDefinitionAccess().getNameAssignment_1()); } | ||
1571 | (rule__TransformationDefinition__NameAssignment_1) | ||
1572 | { after(grammarAccess.getTransformationDefinitionAccess().getNameAssignment_1()); } | ||
1573 | ) | ||
1574 | ; | ||
1575 | finally { | ||
1576 | restoreStackSize(stackSize); | ||
1577 | } | ||
1578 | |||
1579 | rule__TransformationDefinition__Group__2 | ||
1580 | @init { | ||
1581 | int stackSize = keepStackSize(); | ||
1582 | } | ||
1583 | : | ||
1584 | rule__TransformationDefinition__Group__2__Impl | ||
1585 | rule__TransformationDefinition__Group__3 | ||
1586 | ; | ||
1587 | finally { | ||
1588 | restoreStackSize(stackSize); | ||
1589 | } | ||
1590 | |||
1591 | rule__TransformationDefinition__Group__2__Impl | ||
1592 | @init { | ||
1593 | int stackSize = keepStackSize(); | ||
1594 | } | ||
1595 | : | ||
1596 | ( | ||
1597 | { before(grammarAccess.getTransformationDefinitionAccess().getLeftCurlyBracketKeyword_2()); } | ||
1598 | '{' | ||
1599 | { after(grammarAccess.getTransformationDefinitionAccess().getLeftCurlyBracketKeyword_2()); } | ||
1600 | ) | ||
1601 | ; | ||
1602 | finally { | ||
1603 | restoreStackSize(stackSize); | ||
1604 | } | ||
1605 | |||
1606 | rule__TransformationDefinition__Group__3 | ||
1607 | @init { | ||
1608 | int stackSize = keepStackSize(); | ||
1609 | } | ||
1610 | : | ||
1611 | rule__TransformationDefinition__Group__3__Impl | ||
1612 | rule__TransformationDefinition__Group__4 | ||
1613 | ; | ||
1614 | finally { | ||
1615 | restoreStackSize(stackSize); | ||
1616 | } | ||
1617 | |||
1618 | rule__TransformationDefinition__Group__3__Impl | ||
1619 | @init { | ||
1620 | int stackSize = keepStackSize(); | ||
1621 | } | ||
1622 | : | ||
1623 | ( | ||
1624 | { before(grammarAccess.getTransformationDefinitionAccess().getMappingDefinitionsAssignment_3()); } | ||
1625 | (rule__TransformationDefinition__MappingDefinitionsAssignment_3)* | ||
1626 | { after(grammarAccess.getTransformationDefinitionAccess().getMappingDefinitionsAssignment_3()); } | ||
1627 | ) | ||
1628 | ; | ||
1629 | finally { | ||
1630 | restoreStackSize(stackSize); | ||
1631 | } | ||
1632 | |||
1633 | rule__TransformationDefinition__Group__4 | ||
1634 | @init { | ||
1635 | int stackSize = keepStackSize(); | ||
1636 | } | ||
1637 | : | ||
1638 | rule__TransformationDefinition__Group__4__Impl | ||
1639 | ; | ||
1640 | finally { | ||
1641 | restoreStackSize(stackSize); | ||
1642 | } | ||
1643 | |||
1644 | rule__TransformationDefinition__Group__4__Impl | ||
1645 | @init { | ||
1646 | int stackSize = keepStackSize(); | ||
1647 | } | ||
1648 | : | ||
1649 | ( | ||
1650 | { before(grammarAccess.getTransformationDefinitionAccess().getRightCurlyBracketKeyword_4()); } | ||
1651 | '}' | ||
1652 | { after(grammarAccess.getTransformationDefinitionAccess().getRightCurlyBracketKeyword_4()); } | ||
1653 | ) | ||
1654 | ; | ||
1655 | finally { | ||
1656 | restoreStackSize(stackSize); | ||
1657 | } | ||
1658 | |||
1659 | |||
1660 | rule__MappingDefinition__Group__0 | ||
1661 | @init { | ||
1662 | int stackSize = keepStackSize(); | ||
1663 | } | ||
1664 | : | ||
1665 | rule__MappingDefinition__Group__0__Impl | ||
1666 | rule__MappingDefinition__Group__1 | ||
1667 | ; | ||
1668 | finally { | ||
1669 | restoreStackSize(stackSize); | ||
1670 | } | ||
1671 | |||
1672 | rule__MappingDefinition__Group__0__Impl | ||
1673 | @init { | ||
1674 | int stackSize = keepStackSize(); | ||
1675 | } | ||
1676 | : | ||
1677 | ( | ||
1678 | { before(grammarAccess.getMappingDefinitionAccess().getTopLevelAssignment_0()); } | ||
1679 | (rule__MappingDefinition__TopLevelAssignment_0)? | ||
1680 | { after(grammarAccess.getMappingDefinitionAccess().getTopLevelAssignment_0()); } | ||
1681 | ) | ||
1682 | ; | ||
1683 | finally { | ||
1684 | restoreStackSize(stackSize); | ||
1685 | } | ||
1686 | |||
1687 | rule__MappingDefinition__Group__1 | ||
1688 | @init { | ||
1689 | int stackSize = keepStackSize(); | ||
1690 | } | ||
1691 | : | ||
1692 | rule__MappingDefinition__Group__1__Impl | ||
1693 | rule__MappingDefinition__Group__2 | ||
1694 | ; | ||
1695 | finally { | ||
1696 | restoreStackSize(stackSize); | ||
1697 | } | ||
1698 | |||
1699 | rule__MappingDefinition__Group__1__Impl | ||
1700 | @init { | ||
1701 | int stackSize = keepStackSize(); | ||
1702 | } | ||
1703 | : | ||
1704 | ( | ||
1705 | { before(grammarAccess.getMappingDefinitionAccess().getMappingKeyword_1()); } | ||
1706 | 'mapping' | ||
1707 | { after(grammarAccess.getMappingDefinitionAccess().getMappingKeyword_1()); } | ||
1708 | ) | ||
1709 | ; | ||
1710 | finally { | ||
1711 | restoreStackSize(stackSize); | ||
1712 | } | ||
1713 | |||
1714 | rule__MappingDefinition__Group__2 | ||
1715 | @init { | ||
1716 | int stackSize = keepStackSize(); | ||
1717 | } | ||
1718 | : | ||
1719 | rule__MappingDefinition__Group__2__Impl | ||
1720 | rule__MappingDefinition__Group__3 | ||
1721 | ; | ||
1722 | finally { | ||
1723 | restoreStackSize(stackSize); | ||
1724 | } | ||
1725 | |||
1726 | rule__MappingDefinition__Group__2__Impl | ||
1727 | @init { | ||
1728 | int stackSize = keepStackSize(); | ||
1729 | } | ||
1730 | : | ||
1731 | ( | ||
1732 | { before(grammarAccess.getMappingDefinitionAccess().getPatternAssignment_2()); } | ||
1733 | (rule__MappingDefinition__PatternAssignment_2) | ||
1734 | { after(grammarAccess.getMappingDefinitionAccess().getPatternAssignment_2()); } | ||
1735 | ) | ||
1736 | ; | ||
1737 | finally { | ||
1738 | restoreStackSize(stackSize); | ||
1739 | } | ||
1740 | |||
1741 | rule__MappingDefinition__Group__3 | ||
1742 | @init { | ||
1743 | int stackSize = keepStackSize(); | ||
1744 | } | ||
1745 | : | ||
1746 | rule__MappingDefinition__Group__3__Impl | ||
1747 | rule__MappingDefinition__Group__4 | ||
1748 | ; | ||
1749 | finally { | ||
1750 | restoreStackSize(stackSize); | ||
1751 | } | ||
1752 | |||
1753 | rule__MappingDefinition__Group__3__Impl | ||
1754 | @init { | ||
1755 | int stackSize = keepStackSize(); | ||
1756 | } | ||
1757 | : | ||
1758 | ( | ||
1759 | { before(grammarAccess.getMappingDefinitionAccess().getLeftParenthesisKeyword_3()); } | ||
1760 | '(' | ||
1761 | { after(grammarAccess.getMappingDefinitionAccess().getLeftParenthesisKeyword_3()); } | ||
1762 | ) | ||
1763 | ; | ||
1764 | finally { | ||
1765 | restoreStackSize(stackSize); | ||
1766 | } | ||
1767 | |||
1768 | rule__MappingDefinition__Group__4 | ||
1769 | @init { | ||
1770 | int stackSize = keepStackSize(); | ||
1771 | } | ||
1772 | : | ||
1773 | rule__MappingDefinition__Group__4__Impl | ||
1774 | rule__MappingDefinition__Group__5 | ||
1775 | ; | ||
1776 | finally { | ||
1777 | restoreStackSize(stackSize); | ||
1778 | } | ||
1779 | |||
1780 | rule__MappingDefinition__Group__4__Impl | ||
1781 | @init { | ||
1782 | int stackSize = keepStackSize(); | ||
1783 | } | ||
1784 | : | ||
1785 | ( | ||
1786 | { before(grammarAccess.getMappingDefinitionAccess().getParametersAssignment_4()); } | ||
1787 | (rule__MappingDefinition__ParametersAssignment_4) | ||
1788 | { after(grammarAccess.getMappingDefinitionAccess().getParametersAssignment_4()); } | ||
1789 | ) | ||
1790 | ; | ||
1791 | finally { | ||
1792 | restoreStackSize(stackSize); | ||
1793 | } | ||
1794 | |||
1795 | rule__MappingDefinition__Group__5 | ||
1796 | @init { | ||
1797 | int stackSize = keepStackSize(); | ||
1798 | } | ||
1799 | : | ||
1800 | rule__MappingDefinition__Group__5__Impl | ||
1801 | rule__MappingDefinition__Group__6 | ||
1802 | ; | ||
1803 | finally { | ||
1804 | restoreStackSize(stackSize); | ||
1805 | } | ||
1806 | |||
1807 | rule__MappingDefinition__Group__5__Impl | ||
1808 | @init { | ||
1809 | int stackSize = keepStackSize(); | ||
1810 | } | ||
1811 | : | ||
1812 | ( | ||
1813 | { before(grammarAccess.getMappingDefinitionAccess().getGroup_5()); } | ||
1814 | (rule__MappingDefinition__Group_5__0)* | ||
1815 | { after(grammarAccess.getMappingDefinitionAccess().getGroup_5()); } | ||
1816 | ) | ||
1817 | ; | ||
1818 | finally { | ||
1819 | restoreStackSize(stackSize); | ||
1820 | } | ||
1821 | |||
1822 | rule__MappingDefinition__Group__6 | ||
1823 | @init { | ||
1824 | int stackSize = keepStackSize(); | ||
1825 | } | ||
1826 | : | ||
1827 | rule__MappingDefinition__Group__6__Impl | ||
1828 | rule__MappingDefinition__Group__7 | ||
1829 | ; | ||
1830 | finally { | ||
1831 | restoreStackSize(stackSize); | ||
1832 | } | ||
1833 | |||
1834 | rule__MappingDefinition__Group__6__Impl | ||
1835 | @init { | ||
1836 | int stackSize = keepStackSize(); | ||
1837 | } | ||
1838 | : | ||
1839 | ( | ||
1840 | { before(grammarAccess.getMappingDefinitionAccess().getRightParenthesisKeyword_6()); } | ||
1841 | ')' | ||
1842 | { after(grammarAccess.getMappingDefinitionAccess().getRightParenthesisKeyword_6()); } | ||
1843 | ) | ||
1844 | ; | ||
1845 | finally { | ||
1846 | restoreStackSize(stackSize); | ||
1847 | } | ||
1848 | |||
1849 | rule__MappingDefinition__Group__7 | ||
1850 | @init { | ||
1851 | int stackSize = keepStackSize(); | ||
1852 | } | ||
1853 | : | ||
1854 | rule__MappingDefinition__Group__7__Impl | ||
1855 | rule__MappingDefinition__Group__8 | ||
1856 | ; | ||
1857 | finally { | ||
1858 | restoreStackSize(stackSize); | ||
1859 | } | ||
1860 | |||
1861 | rule__MappingDefinition__Group__7__Impl | ||
1862 | @init { | ||
1863 | int stackSize = keepStackSize(); | ||
1864 | } | ||
1865 | : | ||
1866 | ( | ||
1867 | { before(grammarAccess.getMappingDefinitionAccess().getComponentInstanceAssignment_7()); } | ||
1868 | (rule__MappingDefinition__ComponentInstanceAssignment_7)? | ||
1869 | { after(grammarAccess.getMappingDefinitionAccess().getComponentInstanceAssignment_7()); } | ||
1870 | ) | ||
1871 | ; | ||
1872 | finally { | ||
1873 | restoreStackSize(stackSize); | ||
1874 | } | ||
1875 | |||
1876 | rule__MappingDefinition__Group__8 | ||
1877 | @init { | ||
1878 | int stackSize = keepStackSize(); | ||
1879 | } | ||
1880 | : | ||
1881 | rule__MappingDefinition__Group__8__Impl | ||
1882 | ; | ||
1883 | finally { | ||
1884 | restoreStackSize(stackSize); | ||
1885 | } | ||
1886 | |||
1887 | rule__MappingDefinition__Group__8__Impl | ||
1888 | @init { | ||
1889 | int stackSize = keepStackSize(); | ||
1890 | } | ||
1891 | : | ||
1892 | ( | ||
1893 | { before(grammarAccess.getMappingDefinitionAccess().getGroup_8()); } | ||
1894 | (rule__MappingDefinition__Group_8__0)? | ||
1895 | { after(grammarAccess.getMappingDefinitionAccess().getGroup_8()); } | ||
1896 | ) | ||
1897 | ; | ||
1898 | finally { | ||
1899 | restoreStackSize(stackSize); | ||
1900 | } | ||
1901 | |||
1902 | |||
1903 | rule__MappingDefinition__Group_5__0 | ||
1904 | @init { | ||
1905 | int stackSize = keepStackSize(); | ||
1906 | } | ||
1907 | : | ||
1908 | rule__MappingDefinition__Group_5__0__Impl | ||
1909 | rule__MappingDefinition__Group_5__1 | ||
1910 | ; | ||
1911 | finally { | ||
1912 | restoreStackSize(stackSize); | ||
1913 | } | ||
1914 | |||
1915 | rule__MappingDefinition__Group_5__0__Impl | ||
1916 | @init { | ||
1917 | int stackSize = keepStackSize(); | ||
1918 | } | ||
1919 | : | ||
1920 | ( | ||
1921 | { before(grammarAccess.getMappingDefinitionAccess().getCommaKeyword_5_0()); } | ||
1922 | ',' | ||
1923 | { after(grammarAccess.getMappingDefinitionAccess().getCommaKeyword_5_0()); } | ||
1924 | ) | ||
1925 | ; | ||
1926 | finally { | ||
1927 | restoreStackSize(stackSize); | ||
1928 | } | ||
1929 | |||
1930 | rule__MappingDefinition__Group_5__1 | ||
1931 | @init { | ||
1932 | int stackSize = keepStackSize(); | ||
1933 | } | ||
1934 | : | ||
1935 | rule__MappingDefinition__Group_5__1__Impl | ||
1936 | ; | ||
1937 | finally { | ||
1938 | restoreStackSize(stackSize); | ||
1939 | } | ||
1940 | |||
1941 | rule__MappingDefinition__Group_5__1__Impl | ||
1942 | @init { | ||
1943 | int stackSize = keepStackSize(); | ||
1944 | } | ||
1945 | : | ||
1946 | ( | ||
1947 | { before(grammarAccess.getMappingDefinitionAccess().getParametersAssignment_5_1()); } | ||
1948 | (rule__MappingDefinition__ParametersAssignment_5_1) | ||
1949 | { after(grammarAccess.getMappingDefinitionAccess().getParametersAssignment_5_1()); } | ||
1950 | ) | ||
1951 | ; | ||
1952 | finally { | ||
1953 | restoreStackSize(stackSize); | ||
1954 | } | ||
1955 | |||
1956 | |||
1957 | rule__MappingDefinition__Group_8__0 | ||
1958 | @init { | ||
1959 | int stackSize = keepStackSize(); | ||
1960 | } | ||
1961 | : | ||
1962 | rule__MappingDefinition__Group_8__0__Impl | ||
1963 | rule__MappingDefinition__Group_8__1 | ||
1964 | ; | ||
1965 | finally { | ||
1966 | restoreStackSize(stackSize); | ||
1967 | } | ||
1968 | |||
1969 | rule__MappingDefinition__Group_8__0__Impl | ||
1970 | @init { | ||
1971 | int stackSize = keepStackSize(); | ||
1972 | } | ||
1973 | : | ||
1974 | ( | ||
1975 | { before(grammarAccess.getMappingDefinitionAccess().getLeftCurlyBracketKeyword_8_0()); } | ||
1976 | '{' | ||
1977 | { after(grammarAccess.getMappingDefinitionAccess().getLeftCurlyBracketKeyword_8_0()); } | ||
1978 | ) | ||
1979 | ; | ||
1980 | finally { | ||
1981 | restoreStackSize(stackSize); | ||
1982 | } | ||
1983 | |||
1984 | rule__MappingDefinition__Group_8__1 | ||
1985 | @init { | ||
1986 | int stackSize = keepStackSize(); | ||
1987 | } | ||
1988 | : | ||
1989 | rule__MappingDefinition__Group_8__1__Impl | ||
1990 | rule__MappingDefinition__Group_8__2 | ||
1991 | ; | ||
1992 | finally { | ||
1993 | restoreStackSize(stackSize); | ||
1994 | } | ||
1995 | |||
1996 | rule__MappingDefinition__Group_8__1__Impl | ||
1997 | @init { | ||
1998 | int stackSize = keepStackSize(); | ||
1999 | } | ||
2000 | : | ||
2001 | ( | ||
2002 | { before(grammarAccess.getMappingDefinitionAccess().getGroup_8_1()); } | ||
2003 | (rule__MappingDefinition__Group_8_1__0)* | ||
2004 | { after(grammarAccess.getMappingDefinitionAccess().getGroup_8_1()); } | ||
2005 | ) | ||
2006 | ; | ||
2007 | finally { | ||
2008 | restoreStackSize(stackSize); | ||
2009 | } | ||
2010 | |||
2011 | rule__MappingDefinition__Group_8__2 | ||
2012 | @init { | ||
2013 | int stackSize = keepStackSize(); | ||
2014 | } | ||
2015 | : | ||
2016 | rule__MappingDefinition__Group_8__2__Impl | ||
2017 | ; | ||
2018 | finally { | ||
2019 | restoreStackSize(stackSize); | ||
2020 | } | ||
2021 | |||
2022 | rule__MappingDefinition__Group_8__2__Impl | ||
2023 | @init { | ||
2024 | int stackSize = keepStackSize(); | ||
2025 | } | ||
2026 | : | ||
2027 | ( | ||
2028 | { before(grammarAccess.getMappingDefinitionAccess().getRightCurlyBracketKeyword_8_2()); } | ||
2029 | '}' | ||
2030 | { after(grammarAccess.getMappingDefinitionAccess().getRightCurlyBracketKeyword_8_2()); } | ||
2031 | ) | ||
2032 | ; | ||
2033 | finally { | ||
2034 | restoreStackSize(stackSize); | ||
2035 | } | ||
2036 | |||
2037 | |||
2038 | rule__MappingDefinition__Group_8_1__0 | ||
2039 | @init { | ||
2040 | int stackSize = keepStackSize(); | ||
2041 | } | ||
2042 | : | ||
2043 | rule__MappingDefinition__Group_8_1__0__Impl | ||
2044 | rule__MappingDefinition__Group_8_1__1 | ||
2045 | ; | ||
2046 | finally { | ||
2047 | restoreStackSize(stackSize); | ||
2048 | } | ||
2049 | |||
2050 | rule__MappingDefinition__Group_8_1__0__Impl | ||
2051 | @init { | ||
2052 | int stackSize = keepStackSize(); | ||
2053 | } | ||
2054 | : | ||
2055 | ( | ||
2056 | { before(grammarAccess.getMappingDefinitionAccess().getAlternatives_8_1_0()); } | ||
2057 | (rule__MappingDefinition__Alternatives_8_1_0) | ||
2058 | { after(grammarAccess.getMappingDefinitionAccess().getAlternatives_8_1_0()); } | ||
2059 | ) | ||
2060 | ; | ||
2061 | finally { | ||
2062 | restoreStackSize(stackSize); | ||
2063 | } | ||
2064 | |||
2065 | rule__MappingDefinition__Group_8_1__1 | ||
2066 | @init { | ||
2067 | int stackSize = keepStackSize(); | ||
2068 | } | ||
2069 | : | ||
2070 | rule__MappingDefinition__Group_8_1__1__Impl | ||
2071 | ; | ||
2072 | finally { | ||
2073 | restoreStackSize(stackSize); | ||
2074 | } | ||
2075 | |||
2076 | rule__MappingDefinition__Group_8_1__1__Impl | ||
2077 | @init { | ||
2078 | int stackSize = keepStackSize(); | ||
2079 | } | ||
2080 | : | ||
2081 | ( | ||
2082 | { before(grammarAccess.getMappingDefinitionAccess().getSemicolonKeyword_8_1_1()); } | ||
2083 | ';' | ||
2084 | { after(grammarAccess.getMappingDefinitionAccess().getSemicolonKeyword_8_1_1()); } | ||
2085 | ) | ||
2086 | ; | ||
2087 | finally { | ||
2088 | restoreStackSize(stackSize); | ||
2089 | } | ||
2090 | |||
2091 | |||
2092 | rule__LookupDefinition__Group__0 | ||
2093 | @init { | ||
2094 | int stackSize = keepStackSize(); | ||
2095 | } | ||
2096 | : | ||
2097 | rule__LookupDefinition__Group__0__Impl | ||
2098 | rule__LookupDefinition__Group__1 | ||
2099 | ; | ||
2100 | finally { | ||
2101 | restoreStackSize(stackSize); | ||
2102 | } | ||
2103 | |||
2104 | rule__LookupDefinition__Group__0__Impl | ||
2105 | @init { | ||
2106 | int stackSize = keepStackSize(); | ||
2107 | } | ||
2108 | : | ||
2109 | ( | ||
2110 | { before(grammarAccess.getLookupDefinitionAccess().getLookupKeyword_0()); } | ||
2111 | 'lookup' | ||
2112 | { after(grammarAccess.getLookupDefinitionAccess().getLookupKeyword_0()); } | ||
2113 | ) | ||
2114 | ; | ||
2115 | finally { | ||
2116 | restoreStackSize(stackSize); | ||
2117 | } | ||
2118 | |||
2119 | rule__LookupDefinition__Group__1 | ||
2120 | @init { | ||
2121 | int stackSize = keepStackSize(); | ||
2122 | } | ||
2123 | : | ||
2124 | rule__LookupDefinition__Group__1__Impl | ||
2125 | rule__LookupDefinition__Group__2 | ||
2126 | ; | ||
2127 | finally { | ||
2128 | restoreStackSize(stackSize); | ||
2129 | } | ||
2130 | |||
2131 | rule__LookupDefinition__Group__1__Impl | ||
2132 | @init { | ||
2133 | int stackSize = keepStackSize(); | ||
2134 | } | ||
2135 | : | ||
2136 | ( | ||
2137 | { before(grammarAccess.getLookupDefinitionAccess().getMappingAssignment_1()); } | ||
2138 | (rule__LookupDefinition__MappingAssignment_1) | ||
2139 | { after(grammarAccess.getLookupDefinitionAccess().getMappingAssignment_1()); } | ||
2140 | ) | ||
2141 | ; | ||
2142 | finally { | ||
2143 | restoreStackSize(stackSize); | ||
2144 | } | ||
2145 | |||
2146 | rule__LookupDefinition__Group__2 | ||
2147 | @init { | ||
2148 | int stackSize = keepStackSize(); | ||
2149 | } | ||
2150 | : | ||
2151 | rule__LookupDefinition__Group__2__Impl | ||
2152 | rule__LookupDefinition__Group__3 | ||
2153 | ; | ||
2154 | finally { | ||
2155 | restoreStackSize(stackSize); | ||
2156 | } | ||
2157 | |||
2158 | rule__LookupDefinition__Group__2__Impl | ||
2159 | @init { | ||
2160 | int stackSize = keepStackSize(); | ||
2161 | } | ||
2162 | : | ||
2163 | ( | ||
2164 | { before(grammarAccess.getLookupDefinitionAccess().getLeftParenthesisKeyword_2()); } | ||
2165 | '(' | ||
2166 | { after(grammarAccess.getLookupDefinitionAccess().getLeftParenthesisKeyword_2()); } | ||
2167 | ) | ||
2168 | ; | ||
2169 | finally { | ||
2170 | restoreStackSize(stackSize); | ||
2171 | } | ||
2172 | |||
2173 | rule__LookupDefinition__Group__3 | ||
2174 | @init { | ||
2175 | int stackSize = keepStackSize(); | ||
2176 | } | ||
2177 | : | ||
2178 | rule__LookupDefinition__Group__3__Impl | ||
2179 | rule__LookupDefinition__Group__4 | ||
2180 | ; | ||
2181 | finally { | ||
2182 | restoreStackSize(stackSize); | ||
2183 | } | ||
2184 | |||
2185 | rule__LookupDefinition__Group__3__Impl | ||
2186 | @init { | ||
2187 | int stackSize = keepStackSize(); | ||
2188 | } | ||
2189 | : | ||
2190 | ( | ||
2191 | { before(grammarAccess.getLookupDefinitionAccess().getArgumentsAssignment_3()); } | ||
2192 | (rule__LookupDefinition__ArgumentsAssignment_3) | ||
2193 | { after(grammarAccess.getLookupDefinitionAccess().getArgumentsAssignment_3()); } | ||
2194 | ) | ||
2195 | ; | ||
2196 | finally { | ||
2197 | restoreStackSize(stackSize); | ||
2198 | } | ||
2199 | |||
2200 | rule__LookupDefinition__Group__4 | ||
2201 | @init { | ||
2202 | int stackSize = keepStackSize(); | ||
2203 | } | ||
2204 | : | ||
2205 | rule__LookupDefinition__Group__4__Impl | ||
2206 | rule__LookupDefinition__Group__5 | ||
2207 | ; | ||
2208 | finally { | ||
2209 | restoreStackSize(stackSize); | ||
2210 | } | ||
2211 | |||
2212 | rule__LookupDefinition__Group__4__Impl | ||
2213 | @init { | ||
2214 | int stackSize = keepStackSize(); | ||
2215 | } | ||
2216 | : | ||
2217 | ( | ||
2218 | { before(grammarAccess.getLookupDefinitionAccess().getGroup_4()); } | ||
2219 | (rule__LookupDefinition__Group_4__0)* | ||
2220 | { after(grammarAccess.getLookupDefinitionAccess().getGroup_4()); } | ||
2221 | ) | ||
2222 | ; | ||
2223 | finally { | ||
2224 | restoreStackSize(stackSize); | ||
2225 | } | ||
2226 | |||
2227 | rule__LookupDefinition__Group__5 | ||
2228 | @init { | ||
2229 | int stackSize = keepStackSize(); | ||
2230 | } | ||
2231 | : | ||
2232 | rule__LookupDefinition__Group__5__Impl | ||
2233 | rule__LookupDefinition__Group__6 | ||
2234 | ; | ||
2235 | finally { | ||
2236 | restoreStackSize(stackSize); | ||
2237 | } | ||
2238 | |||
2239 | rule__LookupDefinition__Group__5__Impl | ||
2240 | @init { | ||
2241 | int stackSize = keepStackSize(); | ||
2242 | } | ||
2243 | : | ||
2244 | ( | ||
2245 | { before(grammarAccess.getLookupDefinitionAccess().getRightParenthesisKeyword_5()); } | ||
2246 | ')' | ||
2247 | { after(grammarAccess.getLookupDefinitionAccess().getRightParenthesisKeyword_5()); } | ||
2248 | ) | ||
2249 | ; | ||
2250 | finally { | ||
2251 | restoreStackSize(stackSize); | ||
2252 | } | ||
2253 | |||
2254 | rule__LookupDefinition__Group__6 | ||
2255 | @init { | ||
2256 | int stackSize = keepStackSize(); | ||
2257 | } | ||
2258 | : | ||
2259 | rule__LookupDefinition__Group__6__Impl | ||
2260 | rule__LookupDefinition__Group__7 | ||
2261 | ; | ||
2262 | finally { | ||
2263 | restoreStackSize(stackSize); | ||
2264 | } | ||
2265 | |||
2266 | rule__LookupDefinition__Group__6__Impl | ||
2267 | @init { | ||
2268 | int stackSize = keepStackSize(); | ||
2269 | } | ||
2270 | : | ||
2271 | ( | ||
2272 | { before(grammarAccess.getLookupDefinitionAccess().getAsKeyword_6()); } | ||
2273 | 'as' | ||
2274 | { after(grammarAccess.getLookupDefinitionAccess().getAsKeyword_6()); } | ||
2275 | ) | ||
2276 | ; | ||
2277 | finally { | ||
2278 | restoreStackSize(stackSize); | ||
2279 | } | ||
2280 | |||
2281 | rule__LookupDefinition__Group__7 | ||
2282 | @init { | ||
2283 | int stackSize = keepStackSize(); | ||
2284 | } | ||
2285 | : | ||
2286 | rule__LookupDefinition__Group__7__Impl | ||
2287 | ; | ||
2288 | finally { | ||
2289 | restoreStackSize(stackSize); | ||
2290 | } | ||
2291 | |||
2292 | rule__LookupDefinition__Group__7__Impl | ||
2293 | @init { | ||
2294 | int stackSize = keepStackSize(); | ||
2295 | } | ||
2296 | : | ||
2297 | ( | ||
2298 | { before(grammarAccess.getLookupDefinitionAccess().getNameAssignment_7()); } | ||
2299 | (rule__LookupDefinition__NameAssignment_7) | ||
2300 | { after(grammarAccess.getLookupDefinitionAccess().getNameAssignment_7()); } | ||
2301 | ) | ||
2302 | ; | ||
2303 | finally { | ||
2304 | restoreStackSize(stackSize); | ||
2305 | } | ||
2306 | |||
2307 | |||
2308 | rule__LookupDefinition__Group_4__0 | ||
2309 | @init { | ||
2310 | int stackSize = keepStackSize(); | ||
2311 | } | ||
2312 | : | ||
2313 | rule__LookupDefinition__Group_4__0__Impl | ||
2314 | rule__LookupDefinition__Group_4__1 | ||
2315 | ; | ||
2316 | finally { | ||
2317 | restoreStackSize(stackSize); | ||
2318 | } | ||
2319 | |||
2320 | rule__LookupDefinition__Group_4__0__Impl | ||
2321 | @init { | ||
2322 | int stackSize = keepStackSize(); | ||
2323 | } | ||
2324 | : | ||
2325 | ( | ||
2326 | { before(grammarAccess.getLookupDefinitionAccess().getCommaKeyword_4_0()); } | ||
2327 | ',' | ||
2328 | { after(grammarAccess.getLookupDefinitionAccess().getCommaKeyword_4_0()); } | ||
2329 | ) | ||
2330 | ; | ||
2331 | finally { | ||
2332 | restoreStackSize(stackSize); | ||
2333 | } | ||
2334 | |||
2335 | rule__LookupDefinition__Group_4__1 | ||
2336 | @init { | ||
2337 | int stackSize = keepStackSize(); | ||
2338 | } | ||
2339 | : | ||
2340 | rule__LookupDefinition__Group_4__1__Impl | ||
2341 | ; | ||
2342 | finally { | ||
2343 | restoreStackSize(stackSize); | ||
2344 | } | ||
2345 | |||
2346 | rule__LookupDefinition__Group_4__1__Impl | ||
2347 | @init { | ||
2348 | int stackSize = keepStackSize(); | ||
2349 | } | ||
2350 | : | ||
2351 | ( | ||
2352 | { before(grammarAccess.getLookupDefinitionAccess().getArgumentsAssignment_4_1()); } | ||
2353 | (rule__LookupDefinition__ArgumentsAssignment_4_1) | ||
2354 | { after(grammarAccess.getLookupDefinitionAccess().getArgumentsAssignment_4_1()); } | ||
2355 | ) | ||
2356 | ; | ||
2357 | finally { | ||
2358 | restoreStackSize(stackSize); | ||
2359 | } | ||
2360 | |||
2361 | |||
2362 | rule__Assignment__Group__0 | ||
2363 | @init { | ||
2364 | int stackSize = keepStackSize(); | ||
2365 | } | ||
2366 | : | ||
2367 | rule__Assignment__Group__0__Impl | ||
2368 | rule__Assignment__Group__1 | ||
2369 | ; | ||
2370 | finally { | ||
2371 | restoreStackSize(stackSize); | ||
2372 | } | ||
2373 | |||
2374 | rule__Assignment__Group__0__Impl | ||
2375 | @init { | ||
2376 | int stackSize = keepStackSize(); | ||
2377 | } | ||
2378 | : | ||
2379 | ( | ||
2380 | { before(grammarAccess.getAssignmentAccess().getInputAssignment_0()); } | ||
2381 | (rule__Assignment__InputAssignment_0) | ||
2382 | { after(grammarAccess.getAssignmentAccess().getInputAssignment_0()); } | ||
2383 | ) | ||
2384 | ; | ||
2385 | finally { | ||
2386 | restoreStackSize(stackSize); | ||
2387 | } | ||
2388 | |||
2389 | rule__Assignment__Group__1 | ||
2390 | @init { | ||
2391 | int stackSize = keepStackSize(); | ||
2392 | } | ||
2393 | : | ||
2394 | rule__Assignment__Group__1__Impl | ||
2395 | rule__Assignment__Group__2 | ||
2396 | ; | ||
2397 | finally { | ||
2398 | restoreStackSize(stackSize); | ||
2399 | } | ||
2400 | |||
2401 | rule__Assignment__Group__1__Impl | ||
2402 | @init { | ||
2403 | int stackSize = keepStackSize(); | ||
2404 | } | ||
2405 | : | ||
2406 | ( | ||
2407 | { before(grammarAccess.getAssignmentAccess().getAlternatives_1()); } | ||
2408 | (rule__Assignment__Alternatives_1) | ||
2409 | { after(grammarAccess.getAssignmentAccess().getAlternatives_1()); } | ||
2410 | ) | ||
2411 | ; | ||
2412 | finally { | ||
2413 | restoreStackSize(stackSize); | ||
2414 | } | ||
2415 | |||
2416 | rule__Assignment__Group__2 | ||
2417 | @init { | ||
2418 | int stackSize = keepStackSize(); | ||
2419 | } | ||
2420 | : | ||
2421 | rule__Assignment__Group__2__Impl | ||
2422 | ; | ||
2423 | finally { | ||
2424 | restoreStackSize(stackSize); | ||
2425 | } | ||
2426 | |||
2427 | rule__Assignment__Group__2__Impl | ||
2428 | @init { | ||
2429 | int stackSize = keepStackSize(); | ||
2430 | } | ||
2431 | : | ||
2432 | ( | ||
2433 | { before(grammarAccess.getAssignmentAccess().getOutputAssignment_2()); } | ||
2434 | (rule__Assignment__OutputAssignment_2) | ||
2435 | { after(grammarAccess.getAssignmentAccess().getOutputAssignment_2()); } | ||
2436 | ) | ||
2437 | ; | ||
2438 | finally { | ||
2439 | restoreStackSize(stackSize); | ||
2440 | } | ||
2441 | |||
2442 | |||
2443 | rule__EventReference__Group__0 | ||
2444 | @init { | ||
2445 | int stackSize = keepStackSize(); | ||
2446 | } | ||
2447 | : | ||
2448 | rule__EventReference__Group__0__Impl | ||
2449 | rule__EventReference__Group__1 | ||
2450 | ; | ||
2451 | finally { | ||
2452 | restoreStackSize(stackSize); | ||
2453 | } | ||
2454 | |||
2455 | rule__EventReference__Group__0__Impl | ||
2456 | @init { | ||
2457 | int stackSize = keepStackSize(); | ||
2458 | } | ||
2459 | : | ||
2460 | ( | ||
2461 | { before(grammarAccess.getEventReferenceAccess().getComponentAssignment_0()); } | ||
2462 | (rule__EventReference__ComponentAssignment_0) | ||
2463 | { after(grammarAccess.getEventReferenceAccess().getComponentAssignment_0()); } | ||
2464 | ) | ||
2465 | ; | ||
2466 | finally { | ||
2467 | restoreStackSize(stackSize); | ||
2468 | } | ||
2469 | |||
2470 | rule__EventReference__Group__1 | ||
2471 | @init { | ||
2472 | int stackSize = keepStackSize(); | ||
2473 | } | ||
2474 | : | ||
2475 | rule__EventReference__Group__1__Impl | ||
2476 | rule__EventReference__Group__2 | ||
2477 | ; | ||
2478 | finally { | ||
2479 | restoreStackSize(stackSize); | ||
2480 | } | ||
2481 | |||
2482 | rule__EventReference__Group__1__Impl | ||
2483 | @init { | ||
2484 | int stackSize = keepStackSize(); | ||
2485 | } | ||
2486 | : | ||
2487 | ( | ||
2488 | { before(grammarAccess.getEventReferenceAccess().getFullStopKeyword_1()); } | ||
2489 | '.' | ||
2490 | { after(grammarAccess.getEventReferenceAccess().getFullStopKeyword_1()); } | ||
2491 | ) | ||
2492 | ; | ||
2493 | finally { | ||
2494 | restoreStackSize(stackSize); | ||
2495 | } | ||
2496 | |||
2497 | rule__EventReference__Group__2 | ||
2498 | @init { | ||
2499 | int stackSize = keepStackSize(); | ||
2500 | } | ||
2501 | : | ||
2502 | rule__EventReference__Group__2__Impl | ||
2503 | ; | ||
2504 | finally { | ||
2505 | restoreStackSize(stackSize); | ||
2506 | } | ||
2507 | |||
2508 | rule__EventReference__Group__2__Impl | ||
2509 | @init { | ||
2510 | int stackSize = keepStackSize(); | ||
2511 | } | ||
2512 | : | ||
2513 | ( | ||
2514 | { before(grammarAccess.getEventReferenceAccess().getEventAssignment_2()); } | ||
2515 | (rule__EventReference__EventAssignment_2) | ||
2516 | { after(grammarAccess.getEventReferenceAccess().getEventAssignment_2()); } | ||
2517 | ) | ||
2518 | ; | ||
2519 | finally { | ||
2520 | restoreStackSize(stackSize); | ||
2521 | } | ||
2522 | |||
2523 | |||
2524 | rule__ComponentInstance__Group__0 | ||
2525 | @init { | ||
2526 | int stackSize = keepStackSize(); | ||
2527 | } | ||
2528 | : | ||
2529 | rule__ComponentInstance__Group__0__Impl | ||
2530 | rule__ComponentInstance__Group__1 | ||
2531 | ; | ||
2532 | finally { | ||
2533 | restoreStackSize(stackSize); | ||
2534 | } | ||
2535 | |||
2536 | rule__ComponentInstance__Group__0__Impl | ||
2537 | @init { | ||
2538 | int stackSize = keepStackSize(); | ||
2539 | } | ||
2540 | : | ||
2541 | ( | ||
2542 | { before(grammarAccess.getComponentInstanceAccess().getEqualsSignGreaterThanSignKeyword_0()); } | ||
2543 | '=>' | ||
2544 | { after(grammarAccess.getComponentInstanceAccess().getEqualsSignGreaterThanSignKeyword_0()); } | ||
2545 | ) | ||
2546 | ; | ||
2547 | finally { | ||
2548 | restoreStackSize(stackSize); | ||
2549 | } | ||
2550 | |||
2551 | rule__ComponentInstance__Group__1 | ||
2552 | @init { | ||
2553 | int stackSize = keepStackSize(); | ||
2554 | } | ||
2555 | : | ||
2556 | rule__ComponentInstance__Group__1__Impl | ||
2557 | rule__ComponentInstance__Group__2 | ||
2558 | ; | ||
2559 | finally { | ||
2560 | restoreStackSize(stackSize); | ||
2561 | } | ||
2562 | |||
2563 | rule__ComponentInstance__Group__1__Impl | ||
2564 | @init { | ||
2565 | int stackSize = keepStackSize(); | ||
2566 | } | ||
2567 | : | ||
2568 | ( | ||
2569 | { before(grammarAccess.getComponentInstanceAccess().getComponentTypeAssignment_1()); } | ||
2570 | (rule__ComponentInstance__ComponentTypeAssignment_1) | ||
2571 | { after(grammarAccess.getComponentInstanceAccess().getComponentTypeAssignment_1()); } | ||
2572 | ) | ||
2573 | ; | ||
2574 | finally { | ||
2575 | restoreStackSize(stackSize); | ||
2576 | } | ||
2577 | |||
2578 | rule__ComponentInstance__Group__2 | ||
2579 | @init { | ||
2580 | int stackSize = keepStackSize(); | ||
2581 | } | ||
2582 | : | ||
2583 | rule__ComponentInstance__Group__2__Impl | ||
2584 | ; | ||
2585 | finally { | ||
2586 | restoreStackSize(stackSize); | ||
2587 | } | ||
2588 | |||
2589 | rule__ComponentInstance__Group__2__Impl | ||
2590 | @init { | ||
2591 | int stackSize = keepStackSize(); | ||
2592 | } | ||
2593 | : | ||
2594 | ( | ||
2595 | { before(grammarAccess.getComponentInstanceAccess().getNameAssignment_2()); } | ||
2596 | (rule__ComponentInstance__NameAssignment_2)? | ||
2597 | { after(grammarAccess.getComponentInstanceAccess().getNameAssignment_2()); } | ||
2598 | ) | ||
2599 | ; | ||
2600 | finally { | ||
2601 | restoreStackSize(stackSize); | ||
2602 | } | ||
2603 | |||
2604 | |||
2605 | rule__QualifiedName__Group__0 | ||
2606 | @init { | ||
2607 | int stackSize = keepStackSize(); | ||
2608 | } | ||
2609 | : | ||
2610 | rule__QualifiedName__Group__0__Impl | ||
2611 | rule__QualifiedName__Group__1 | ||
2612 | ; | ||
2613 | finally { | ||
2614 | restoreStackSize(stackSize); | ||
2615 | } | ||
2616 | |||
2617 | rule__QualifiedName__Group__0__Impl | ||
2618 | @init { | ||
2619 | int stackSize = keepStackSize(); | ||
2620 | } | ||
2621 | : | ||
2622 | ( | ||
2623 | { before(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); } | ||
2624 | RULE_ID | ||
2625 | { after(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); } | ||
2626 | ) | ||
2627 | ; | ||
2628 | finally { | ||
2629 | restoreStackSize(stackSize); | ||
2630 | } | ||
2631 | |||
2632 | rule__QualifiedName__Group__1 | ||
2633 | @init { | ||
2634 | int stackSize = keepStackSize(); | ||
2635 | } | ||
2636 | : | ||
2637 | rule__QualifiedName__Group__1__Impl | ||
2638 | ; | ||
2639 | finally { | ||
2640 | restoreStackSize(stackSize); | ||
2641 | } | ||
2642 | |||
2643 | rule__QualifiedName__Group__1__Impl | ||
2644 | @init { | ||
2645 | int stackSize = keepStackSize(); | ||
2646 | } | ||
2647 | : | ||
2648 | ( | ||
2649 | { before(grammarAccess.getQualifiedNameAccess().getGroup_1()); } | ||
2650 | (rule__QualifiedName__Group_1__0)* | ||
2651 | { after(grammarAccess.getQualifiedNameAccess().getGroup_1()); } | ||
2652 | ) | ||
2653 | ; | ||
2654 | finally { | ||
2655 | restoreStackSize(stackSize); | ||
2656 | } | ||
2657 | |||
2658 | |||
2659 | rule__QualifiedName__Group_1__0 | ||
2660 | @init { | ||
2661 | int stackSize = keepStackSize(); | ||
2662 | } | ||
2663 | : | ||
2664 | rule__QualifiedName__Group_1__0__Impl | ||
2665 | rule__QualifiedName__Group_1__1 | ||
2666 | ; | ||
2667 | finally { | ||
2668 | restoreStackSize(stackSize); | ||
2669 | } | ||
2670 | |||
2671 | rule__QualifiedName__Group_1__0__Impl | ||
2672 | @init { | ||
2673 | int stackSize = keepStackSize(); | ||
2674 | } | ||
2675 | : | ||
2676 | ( | ||
2677 | { before(grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); } | ||
2678 | '.' | ||
2679 | { after(grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); } | ||
2680 | ) | ||
2681 | ; | ||
2682 | finally { | ||
2683 | restoreStackSize(stackSize); | ||
2684 | } | ||
2685 | |||
2686 | rule__QualifiedName__Group_1__1 | ||
2687 | @init { | ||
2688 | int stackSize = keepStackSize(); | ||
2689 | } | ||
2690 | : | ||
2691 | rule__QualifiedName__Group_1__1__Impl | ||
2692 | ; | ||
2693 | finally { | ||
2694 | restoreStackSize(stackSize); | ||
2695 | } | ||
2696 | |||
2697 | rule__QualifiedName__Group_1__1__Impl | ||
2698 | @init { | ||
2699 | int stackSize = keepStackSize(); | ||
2700 | } | ||
2701 | : | ||
2702 | ( | ||
2703 | { before(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); } | ||
2704 | RULE_ID | ||
2705 | { after(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); } | ||
2706 | ) | ||
2707 | ; | ||
2708 | finally { | ||
2709 | restoreStackSize(stackSize); | ||
2710 | } | ||
2711 | |||
2712 | |||
2713 | rule__QualifiedNameWithWildcard__Group__0 | ||
2714 | @init { | ||
2715 | int stackSize = keepStackSize(); | ||
2716 | } | ||
2717 | : | ||
2718 | rule__QualifiedNameWithWildcard__Group__0__Impl | ||
2719 | rule__QualifiedNameWithWildcard__Group__1 | ||
2720 | ; | ||
2721 | finally { | ||
2722 | restoreStackSize(stackSize); | ||
2723 | } | ||
2724 | |||
2725 | rule__QualifiedNameWithWildcard__Group__0__Impl | ||
2726 | @init { | ||
2727 | int stackSize = keepStackSize(); | ||
2728 | } | ||
2729 | : | ||
2730 | ( | ||
2731 | { before(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); } | ||
2732 | ruleQualifiedName | ||
2733 | { after(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); } | ||
2734 | ) | ||
2735 | ; | ||
2736 | finally { | ||
2737 | restoreStackSize(stackSize); | ||
2738 | } | ||
2739 | |||
2740 | rule__QualifiedNameWithWildcard__Group__1 | ||
2741 | @init { | ||
2742 | int stackSize = keepStackSize(); | ||
2743 | } | ||
2744 | : | ||
2745 | rule__QualifiedNameWithWildcard__Group__1__Impl | ||
2746 | ; | ||
2747 | finally { | ||
2748 | restoreStackSize(stackSize); | ||
2749 | } | ||
2750 | |||
2751 | rule__QualifiedNameWithWildcard__Group__1__Impl | ||
2752 | @init { | ||
2753 | int stackSize = keepStackSize(); | ||
2754 | } | ||
2755 | : | ||
2756 | ( | ||
2757 | { before(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup_1()); } | ||
2758 | (rule__QualifiedNameWithWildcard__Group_1__0)? | ||
2759 | { after(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup_1()); } | ||
2760 | ) | ||
2761 | ; | ||
2762 | finally { | ||
2763 | restoreStackSize(stackSize); | ||
2764 | } | ||
2765 | |||
2766 | |||
2767 | rule__QualifiedNameWithWildcard__Group_1__0 | ||
2768 | @init { | ||
2769 | int stackSize = keepStackSize(); | ||
2770 | } | ||
2771 | : | ||
2772 | rule__QualifiedNameWithWildcard__Group_1__0__Impl | ||
2773 | rule__QualifiedNameWithWildcard__Group_1__1 | ||
2774 | ; | ||
2775 | finally { | ||
2776 | restoreStackSize(stackSize); | ||
2777 | } | ||
2778 | |||
2779 | rule__QualifiedNameWithWildcard__Group_1__0__Impl | ||
2780 | @init { | ||
2781 | int stackSize = keepStackSize(); | ||
2782 | } | ||
2783 | : | ||
2784 | ( | ||
2785 | { before(grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1_0()); } | ||
2786 | '.' | ||
2787 | { after(grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1_0()); } | ||
2788 | ) | ||
2789 | ; | ||
2790 | finally { | ||
2791 | restoreStackSize(stackSize); | ||
2792 | } | ||
2793 | |||
2794 | rule__QualifiedNameWithWildcard__Group_1__1 | ||
2795 | @init { | ||
2796 | int stackSize = keepStackSize(); | ||
2797 | } | ||
2798 | : | ||
2799 | rule__QualifiedNameWithWildcard__Group_1__1__Impl | ||
2800 | ; | ||
2801 | finally { | ||
2802 | restoreStackSize(stackSize); | ||
2803 | } | ||
2804 | |||
2805 | rule__QualifiedNameWithWildcard__Group_1__1__Impl | ||
2806 | @init { | ||
2807 | int stackSize = keepStackSize(); | ||
2808 | } | ||
2809 | : | ||
2810 | ( | ||
2811 | { before(grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_1_1()); } | ||
2812 | '*' | ||
2813 | { after(grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_1_1()); } | ||
2814 | ) | ||
2815 | ; | ||
2816 | finally { | ||
2817 | restoreStackSize(stackSize); | ||
2818 | } | ||
2819 | |||
2820 | |||
2821 | rule__ComponentDefinition__UnorderedGroup_3 | ||
2822 | @init { | ||
2823 | int stackSize = keepStackSize(); | ||
2824 | getUnorderedGroupHelper().enter(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
2825 | } | ||
2826 | : | ||
2827 | rule__ComponentDefinition__UnorderedGroup_3__0 | ||
2828 | ? | ||
2829 | ; | ||
2830 | finally { | ||
2831 | getUnorderedGroupHelper().leave(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
2832 | restoreStackSize(stackSize); | ||
2833 | } | ||
2834 | |||
2835 | rule__ComponentDefinition__UnorderedGroup_3__Impl | ||
2836 | @init { | ||
2837 | int stackSize = keepStackSize(); | ||
2838 | boolean selected = false; | ||
2839 | } | ||
2840 | : | ||
2841 | ( | ||
2842 | ( | ||
2843 | {getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0)}?=>( | ||
2844 | { | ||
2845 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0); | ||
2846 | } | ||
2847 | { | ||
2848 | selected = true; | ||
2849 | } | ||
2850 | ( | ||
2851 | { before(grammarAccess.getComponentDefinitionAccess().getGroup_3_0()); } | ||
2852 | (rule__ComponentDefinition__Group_3_0__0) | ||
2853 | { after(grammarAccess.getComponentDefinitionAccess().getGroup_3_0()); } | ||
2854 | ) | ||
2855 | ) | ||
2856 | )| | ||
2857 | ( | ||
2858 | {getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1)}?=>( | ||
2859 | { | ||
2860 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1); | ||
2861 | } | ||
2862 | { | ||
2863 | selected = true; | ||
2864 | } | ||
2865 | ( | ||
2866 | { before(grammarAccess.getComponentDefinitionAccess().getGroup_3_1()); } | ||
2867 | (rule__ComponentDefinition__Group_3_1__0) | ||
2868 | { after(grammarAccess.getComponentDefinitionAccess().getGroup_3_1()); } | ||
2869 | ) | ||
2870 | ) | ||
2871 | ) | ||
2872 | ) | ||
2873 | ; | ||
2874 | finally { | ||
2875 | if (selected) | ||
2876 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
2877 | restoreStackSize(stackSize); | ||
2878 | } | ||
2879 | |||
2880 | rule__ComponentDefinition__UnorderedGroup_3__0 | ||
2881 | @init { | ||
2882 | int stackSize = keepStackSize(); | ||
2883 | } | ||
2884 | : | ||
2885 | rule__ComponentDefinition__UnorderedGroup_3__Impl | ||
2886 | rule__ComponentDefinition__UnorderedGroup_3__1? | ||
2887 | ; | ||
2888 | finally { | ||
2889 | restoreStackSize(stackSize); | ||
2890 | } | ||
2891 | |||
2892 | rule__ComponentDefinition__UnorderedGroup_3__1 | ||
2893 | @init { | ||
2894 | int stackSize = keepStackSize(); | ||
2895 | } | ||
2896 | : | ||
2897 | rule__ComponentDefinition__UnorderedGroup_3__Impl | ||
2898 | ; | ||
2899 | finally { | ||
2900 | restoreStackSize(stackSize); | ||
2901 | } | ||
2902 | |||
2903 | |||
2904 | rule__CftModel__PackageNameAssignment_1 | ||
2905 | @init { | ||
2906 | int stackSize = keepStackSize(); | ||
2907 | } | ||
2908 | : | ||
2909 | ( | ||
2910 | { before(grammarAccess.getCftModelAccess().getPackageNameQualifiedNameParserRuleCall_1_0()); } | ||
2911 | ruleQualifiedName | ||
2912 | { after(grammarAccess.getCftModelAccess().getPackageNameQualifiedNameParserRuleCall_1_0()); } | ||
2913 | ) | ||
2914 | ; | ||
2915 | finally { | ||
2916 | restoreStackSize(stackSize); | ||
2917 | } | ||
2918 | |||
2919 | rule__CftModel__ImportsAssignment_3 | ||
2920 | @init { | ||
2921 | int stackSize = keepStackSize(); | ||
2922 | } | ||
2923 | : | ||
2924 | ( | ||
2925 | { before(grammarAccess.getCftModelAccess().getImportsImportDeclarationParserRuleCall_3_0()); } | ||
2926 | ruleImportDeclaration | ||
2927 | { after(grammarAccess.getCftModelAccess().getImportsImportDeclarationParserRuleCall_3_0()); } | ||
2928 | ) | ||
2929 | ; | ||
2930 | finally { | ||
2931 | restoreStackSize(stackSize); | ||
2932 | } | ||
2933 | |||
2934 | rule__CftModel__ComponentDefinitionsAssignment_4_0 | ||
2935 | @init { | ||
2936 | int stackSize = keepStackSize(); | ||
2937 | } | ||
2938 | : | ||
2939 | ( | ||
2940 | { before(grammarAccess.getCftModelAccess().getComponentDefinitionsComponentDefinitionParserRuleCall_4_0_0()); } | ||
2941 | ruleComponentDefinition | ||
2942 | { after(grammarAccess.getCftModelAccess().getComponentDefinitionsComponentDefinitionParserRuleCall_4_0_0()); } | ||
2943 | ) | ||
2944 | ; | ||
2945 | finally { | ||
2946 | restoreStackSize(stackSize); | ||
2947 | } | ||
2948 | |||
2949 | rule__CftModel__TransformationDefinitionsAssignment_4_1 | ||
2950 | @init { | ||
2951 | int stackSize = keepStackSize(); | ||
2952 | } | ||
2953 | : | ||
2954 | ( | ||
2955 | { before(grammarAccess.getCftModelAccess().getTransformationDefinitionsTransformationDefinitionParserRuleCall_4_1_0()); } | ||
2956 | ruleTransformationDefinition | ||
2957 | { after(grammarAccess.getCftModelAccess().getTransformationDefinitionsTransformationDefinitionParserRuleCall_4_1_0()); } | ||
2958 | ) | ||
2959 | ; | ||
2960 | finally { | ||
2961 | restoreStackSize(stackSize); | ||
2962 | } | ||
2963 | |||
2964 | rule__ImportDeclaration__ImportedNamespaceAssignment_1 | ||
2965 | @init { | ||
2966 | int stackSize = keepStackSize(); | ||
2967 | } | ||
2968 | : | ||
2969 | ( | ||
2970 | { before(grammarAccess.getImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_0()); } | ||
2971 | ruleQualifiedNameWithWildcard | ||
2972 | { after(grammarAccess.getImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_0()); } | ||
2973 | ) | ||
2974 | ; | ||
2975 | finally { | ||
2976 | restoreStackSize(stackSize); | ||
2977 | } | ||
2978 | |||
2979 | rule__ComponentDefinition__NameAssignment_1 | ||
2980 | @init { | ||
2981 | int stackSize = keepStackSize(); | ||
2982 | } | ||
2983 | : | ||
2984 | ( | ||
2985 | { before(grammarAccess.getComponentDefinitionAccess().getNameIDTerminalRuleCall_1_0()); } | ||
2986 | RULE_ID | ||
2987 | { after(grammarAccess.getComponentDefinitionAccess().getNameIDTerminalRuleCall_1_0()); } | ||
2988 | ) | ||
2989 | ; | ||
2990 | finally { | ||
2991 | restoreStackSize(stackSize); | ||
2992 | } | ||
2993 | |||
2994 | rule__ComponentDefinition__InputEventsAssignment_3_0_1 | ||
2995 | @init { | ||
2996 | int stackSize = keepStackSize(); | ||
2997 | } | ||
2998 | : | ||
2999 | ( | ||
3000 | { before(grammarAccess.getComponentDefinitionAccess().getInputEventsInputEventParserRuleCall_3_0_1_0()); } | ||
3001 | ruleInputEvent | ||
3002 | { after(grammarAccess.getComponentDefinitionAccess().getInputEventsInputEventParserRuleCall_3_0_1_0()); } | ||
3003 | ) | ||
3004 | ; | ||
3005 | finally { | ||
3006 | restoreStackSize(stackSize); | ||
3007 | } | ||
3008 | |||
3009 | rule__ComponentDefinition__OutputEventsAssignment_3_1_1 | ||
3010 | @init { | ||
3011 | int stackSize = keepStackSize(); | ||
3012 | } | ||
3013 | : | ||
3014 | ( | ||
3015 | { before(grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationCrossReference_3_1_1_0()); } | ||
3016 | ( | ||
3017 | { before(grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationIDTerminalRuleCall_3_1_1_0_1()); } | ||
3018 | RULE_ID | ||
3019 | { after(grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationIDTerminalRuleCall_3_1_1_0_1()); } | ||
3020 | ) | ||
3021 | { after(grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationCrossReference_3_1_1_0()); } | ||
3022 | ) | ||
3023 | ; | ||
3024 | finally { | ||
3025 | restoreStackSize(stackSize); | ||
3026 | } | ||
3027 | |||
3028 | rule__ComponentDefinition__EventDefinitionsAssignment_4_0 | ||
3029 | @init { | ||
3030 | int stackSize = keepStackSize(); | ||
3031 | } | ||
3032 | : | ||
3033 | ( | ||
3034 | { before(grammarAccess.getComponentDefinitionAccess().getEventDefinitionsEventDefinitionParserRuleCall_4_0_0()); } | ||
3035 | ruleEventDefinition | ||
3036 | { after(grammarAccess.getComponentDefinitionAccess().getEventDefinitionsEventDefinitionParserRuleCall_4_0_0()); } | ||
3037 | ) | ||
3038 | ; | ||
3039 | finally { | ||
3040 | restoreStackSize(stackSize); | ||
3041 | } | ||
3042 | |||
3043 | rule__InputEvent__NameAssignment_0 | ||
3044 | @init { | ||
3045 | int stackSize = keepStackSize(); | ||
3046 | } | ||
3047 | : | ||
3048 | ( | ||
3049 | { before(grammarAccess.getInputEventAccess().getNameIDTerminalRuleCall_0_0()); } | ||
3050 | RULE_ID | ||
3051 | { after(grammarAccess.getInputEventAccess().getNameIDTerminalRuleCall_0_0()); } | ||
3052 | ) | ||
3053 | ; | ||
3054 | finally { | ||
3055 | restoreStackSize(stackSize); | ||
3056 | } | ||
3057 | |||
3058 | rule__InputEvent__MultipleAssignment_1 | ||
3059 | @init { | ||
3060 | int stackSize = keepStackSize(); | ||
3061 | } | ||
3062 | : | ||
3063 | ( | ||
3064 | { before(grammarAccess.getInputEventAccess().getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0()); } | ||
3065 | ( | ||
3066 | { before(grammarAccess.getInputEventAccess().getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0()); } | ||
3067 | '[]' | ||
3068 | { after(grammarAccess.getInputEventAccess().getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0()); } | ||
3069 | ) | ||
3070 | { after(grammarAccess.getInputEventAccess().getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0()); } | ||
3071 | ) | ||
3072 | ; | ||
3073 | finally { | ||
3074 | restoreStackSize(stackSize); | ||
3075 | } | ||
3076 | |||
3077 | rule__BasicEventDefinition__NameAssignment_0 | ||
3078 | @init { | ||
3079 | int stackSize = keepStackSize(); | ||
3080 | } | ||
3081 | : | ||
3082 | ( | ||
3083 | { before(grammarAccess.getBasicEventDefinitionAccess().getNameIDTerminalRuleCall_0_0()); } | ||
3084 | RULE_ID | ||
3085 | { after(grammarAccess.getBasicEventDefinitionAccess().getNameIDTerminalRuleCall_0_0()); } | ||
3086 | ) | ||
3087 | ; | ||
3088 | finally { | ||
3089 | restoreStackSize(stackSize); | ||
3090 | } | ||
3091 | |||
3092 | rule__BasicEventDefinition__RateAssignment_3 | ||
3093 | @init { | ||
3094 | int stackSize = keepStackSize(); | ||
3095 | } | ||
3096 | : | ||
3097 | ( | ||
3098 | { before(grammarAccess.getBasicEventDefinitionAccess().getRateDOULBETerminalRuleCall_3_0()); } | ||
3099 | RULE_DOULBE | ||
3100 | { after(grammarAccess.getBasicEventDefinitionAccess().getRateDOULBETerminalRuleCall_3_0()); } | ||
3101 | ) | ||
3102 | ; | ||
3103 | finally { | ||
3104 | restoreStackSize(stackSize); | ||
3105 | } | ||
3106 | |||
3107 | rule__AndGate__NameAssignment_0 | ||
3108 | @init { | ||
3109 | int stackSize = keepStackSize(); | ||
3110 | } | ||
3111 | : | ||
3112 | ( | ||
3113 | { before(grammarAccess.getAndGateAccess().getNameIDTerminalRuleCall_0_0()); } | ||
3114 | RULE_ID | ||
3115 | { after(grammarAccess.getAndGateAccess().getNameIDTerminalRuleCall_0_0()); } | ||
3116 | ) | ||
3117 | ; | ||
3118 | finally { | ||
3119 | restoreStackSize(stackSize); | ||
3120 | } | ||
3121 | |||
3122 | rule__AndGate__InputEventsAssignment_2 | ||
3123 | @init { | ||
3124 | int stackSize = keepStackSize(); | ||
3125 | } | ||
3126 | : | ||
3127 | ( | ||
3128 | { before(grammarAccess.getAndGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); } | ||
3129 | ( | ||
3130 | { before(grammarAccess.getAndGateAccess().getInputEventsEventDeclarationIDTerminalRuleCall_2_0_1()); } | ||
3131 | RULE_ID | ||
3132 | { after(grammarAccess.getAndGateAccess().getInputEventsEventDeclarationIDTerminalRuleCall_2_0_1()); } | ||
3133 | ) | ||
3134 | { after(grammarAccess.getAndGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); } | ||
3135 | ) | ||
3136 | ; | ||
3137 | finally { | ||
3138 | restoreStackSize(stackSize); | ||
3139 | } | ||
3140 | |||
3141 | rule__OrGate__NameAssignment_0 | ||
3142 | @init { | ||
3143 | int stackSize = keepStackSize(); | ||
3144 | } | ||
3145 | : | ||
3146 | ( | ||
3147 | { before(grammarAccess.getOrGateAccess().getNameIDTerminalRuleCall_0_0()); } | ||
3148 | RULE_ID | ||
3149 | { after(grammarAccess.getOrGateAccess().getNameIDTerminalRuleCall_0_0()); } | ||
3150 | ) | ||
3151 | ; | ||
3152 | finally { | ||
3153 | restoreStackSize(stackSize); | ||
3154 | } | ||
3155 | |||
3156 | rule__OrGate__InputEventsAssignment_2 | ||
3157 | @init { | ||
3158 | int stackSize = keepStackSize(); | ||
3159 | } | ||
3160 | : | ||
3161 | ( | ||
3162 | { before(grammarAccess.getOrGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); } | ||
3163 | ( | ||
3164 | { before(grammarAccess.getOrGateAccess().getInputEventsEventDeclarationIDTerminalRuleCall_2_0_1()); } | ||
3165 | RULE_ID | ||
3166 | { after(grammarAccess.getOrGateAccess().getInputEventsEventDeclarationIDTerminalRuleCall_2_0_1()); } | ||
3167 | ) | ||
3168 | { after(grammarAccess.getOrGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); } | ||
3169 | ) | ||
3170 | ; | ||
3171 | finally { | ||
3172 | restoreStackSize(stackSize); | ||
3173 | } | ||
3174 | |||
3175 | rule__TransformationDefinition__NameAssignment_1 | ||
3176 | @init { | ||
3177 | int stackSize = keepStackSize(); | ||
3178 | } | ||
3179 | : | ||
3180 | ( | ||
3181 | { before(grammarAccess.getTransformationDefinitionAccess().getNameIDTerminalRuleCall_1_0()); } | ||
3182 | RULE_ID | ||
3183 | { after(grammarAccess.getTransformationDefinitionAccess().getNameIDTerminalRuleCall_1_0()); } | ||
3184 | ) | ||
3185 | ; | ||
3186 | finally { | ||
3187 | restoreStackSize(stackSize); | ||
3188 | } | ||
3189 | |||
3190 | rule__TransformationDefinition__MappingDefinitionsAssignment_3 | ||
3191 | @init { | ||
3192 | int stackSize = keepStackSize(); | ||
3193 | } | ||
3194 | : | ||
3195 | ( | ||
3196 | { before(grammarAccess.getTransformationDefinitionAccess().getMappingDefinitionsMappingDefinitionParserRuleCall_3_0()); } | ||
3197 | ruleMappingDefinition | ||
3198 | { after(grammarAccess.getTransformationDefinitionAccess().getMappingDefinitionsMappingDefinitionParserRuleCall_3_0()); } | ||
3199 | ) | ||
3200 | ; | ||
3201 | finally { | ||
3202 | restoreStackSize(stackSize); | ||
3203 | } | ||
3204 | |||
3205 | rule__MappingDefinition__TopLevelAssignment_0 | ||
3206 | @init { | ||
3207 | int stackSize = keepStackSize(); | ||
3208 | } | ||
3209 | : | ||
3210 | ( | ||
3211 | { before(grammarAccess.getMappingDefinitionAccess().getTopLevelToplevelKeyword_0_0()); } | ||
3212 | ( | ||
3213 | { before(grammarAccess.getMappingDefinitionAccess().getTopLevelToplevelKeyword_0_0()); } | ||
3214 | 'toplevel' | ||
3215 | { after(grammarAccess.getMappingDefinitionAccess().getTopLevelToplevelKeyword_0_0()); } | ||
3216 | ) | ||
3217 | { after(grammarAccess.getMappingDefinitionAccess().getTopLevelToplevelKeyword_0_0()); } | ||
3218 | ) | ||
3219 | ; | ||
3220 | finally { | ||
3221 | restoreStackSize(stackSize); | ||
3222 | } | ||
3223 | |||
3224 | rule__MappingDefinition__PatternAssignment_2 | ||
3225 | @init { | ||
3226 | int stackSize = keepStackSize(); | ||
3227 | } | ||
3228 | : | ||
3229 | ( | ||
3230 | { before(grammarAccess.getMappingDefinitionAccess().getPatternPatternCrossReference_2_0()); } | ||
3231 | ( | ||
3232 | { before(grammarAccess.getMappingDefinitionAccess().getPatternPatternQualifiedNameParserRuleCall_2_0_1()); } | ||
3233 | ruleQualifiedName | ||
3234 | { after(grammarAccess.getMappingDefinitionAccess().getPatternPatternQualifiedNameParserRuleCall_2_0_1()); } | ||
3235 | ) | ||
3236 | { after(grammarAccess.getMappingDefinitionAccess().getPatternPatternCrossReference_2_0()); } | ||
3237 | ) | ||
3238 | ; | ||
3239 | finally { | ||
3240 | restoreStackSize(stackSize); | ||
3241 | } | ||
3242 | |||
3243 | rule__MappingDefinition__ParametersAssignment_4 | ||
3244 | @init { | ||
3245 | int stackSize = keepStackSize(); | ||
3246 | } | ||
3247 | : | ||
3248 | ( | ||
3249 | { before(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_4_0()); } | ||
3250 | ruleMappingParameter | ||
3251 | { after(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_4_0()); } | ||
3252 | ) | ||
3253 | ; | ||
3254 | finally { | ||
3255 | restoreStackSize(stackSize); | ||
3256 | } | ||
3257 | |||
3258 | rule__MappingDefinition__ParametersAssignment_5_1 | ||
3259 | @init { | ||
3260 | int stackSize = keepStackSize(); | ||
3261 | } | ||
3262 | : | ||
3263 | ( | ||
3264 | { before(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_5_1_0()); } | ||
3265 | ruleMappingParameter | ||
3266 | { after(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_5_1_0()); } | ||
3267 | ) | ||
3268 | ; | ||
3269 | finally { | ||
3270 | restoreStackSize(stackSize); | ||
3271 | } | ||
3272 | |||
3273 | rule__MappingDefinition__ComponentInstanceAssignment_7 | ||
3274 | @init { | ||
3275 | int stackSize = keepStackSize(); | ||
3276 | } | ||
3277 | : | ||
3278 | ( | ||
3279 | { before(grammarAccess.getMappingDefinitionAccess().getComponentInstanceComponentInstanceParserRuleCall_7_0()); } | ||
3280 | ruleComponentInstance | ||
3281 | { after(grammarAccess.getMappingDefinitionAccess().getComponentInstanceComponentInstanceParserRuleCall_7_0()); } | ||
3282 | ) | ||
3283 | ; | ||
3284 | finally { | ||
3285 | restoreStackSize(stackSize); | ||
3286 | } | ||
3287 | |||
3288 | rule__MappingDefinition__LookupDefinitionsAssignment_8_1_0_0 | ||
3289 | @init { | ||
3290 | int stackSize = keepStackSize(); | ||
3291 | } | ||
3292 | : | ||
3293 | ( | ||
3294 | { before(grammarAccess.getMappingDefinitionAccess().getLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0()); } | ||
3295 | ruleLookupDefinition | ||
3296 | { after(grammarAccess.getMappingDefinitionAccess().getLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0()); } | ||
3297 | ) | ||
3298 | ; | ||
3299 | finally { | ||
3300 | restoreStackSize(stackSize); | ||
3301 | } | ||
3302 | |||
3303 | rule__MappingDefinition__AssignmentsAssignment_8_1_0_1 | ||
3304 | @init { | ||
3305 | int stackSize = keepStackSize(); | ||
3306 | } | ||
3307 | : | ||
3308 | ( | ||
3309 | { before(grammarAccess.getMappingDefinitionAccess().getAssignmentsAssignmentParserRuleCall_8_1_0_1_0()); } | ||
3310 | ruleAssignment | ||
3311 | { after(grammarAccess.getMappingDefinitionAccess().getAssignmentsAssignmentParserRuleCall_8_1_0_1_0()); } | ||
3312 | ) | ||
3313 | ; | ||
3314 | finally { | ||
3315 | restoreStackSize(stackSize); | ||
3316 | } | ||
3317 | |||
3318 | rule__MappingParameter__NameAssignment | ||
3319 | @init { | ||
3320 | int stackSize = keepStackSize(); | ||
3321 | } | ||
3322 | : | ||
3323 | ( | ||
3324 | { before(grammarAccess.getMappingParameterAccess().getNameIDTerminalRuleCall_0()); } | ||
3325 | RULE_ID | ||
3326 | { after(grammarAccess.getMappingParameterAccess().getNameIDTerminalRuleCall_0()); } | ||
3327 | ) | ||
3328 | ; | ||
3329 | finally { | ||
3330 | restoreStackSize(stackSize); | ||
3331 | } | ||
3332 | |||
3333 | rule__LookupDefinition__MappingAssignment_1 | ||
3334 | @init { | ||
3335 | int stackSize = keepStackSize(); | ||
3336 | } | ||
3337 | : | ||
3338 | ( | ||
3339 | { before(grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionCrossReference_1_0()); } | ||
3340 | ( | ||
3341 | { before(grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionIDTerminalRuleCall_1_0_1()); } | ||
3342 | RULE_ID | ||
3343 | { after(grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionIDTerminalRuleCall_1_0_1()); } | ||
3344 | ) | ||
3345 | { after(grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionCrossReference_1_0()); } | ||
3346 | ) | ||
3347 | ; | ||
3348 | finally { | ||
3349 | restoreStackSize(stackSize); | ||
3350 | } | ||
3351 | |||
3352 | rule__LookupDefinition__ArgumentsAssignment_3 | ||
3353 | @init { | ||
3354 | int stackSize = keepStackSize(); | ||
3355 | } | ||
3356 | : | ||
3357 | ( | ||
3358 | { before(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_3_0()); } | ||
3359 | ( | ||
3360 | { before(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterIDTerminalRuleCall_3_0_1()); } | ||
3361 | RULE_ID | ||
3362 | { after(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterIDTerminalRuleCall_3_0_1()); } | ||
3363 | ) | ||
3364 | { after(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_3_0()); } | ||
3365 | ) | ||
3366 | ; | ||
3367 | finally { | ||
3368 | restoreStackSize(stackSize); | ||
3369 | } | ||
3370 | |||
3371 | rule__LookupDefinition__ArgumentsAssignment_4_1 | ||
3372 | @init { | ||
3373 | int stackSize = keepStackSize(); | ||
3374 | } | ||
3375 | : | ||
3376 | ( | ||
3377 | { before(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_4_1_0()); } | ||
3378 | ( | ||
3379 | { before(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterIDTerminalRuleCall_4_1_0_1()); } | ||
3380 | RULE_ID | ||
3381 | { after(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterIDTerminalRuleCall_4_1_0_1()); } | ||
3382 | ) | ||
3383 | { after(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_4_1_0()); } | ||
3384 | ) | ||
3385 | ; | ||
3386 | finally { | ||
3387 | restoreStackSize(stackSize); | ||
3388 | } | ||
3389 | |||
3390 | rule__LookupDefinition__NameAssignment_7 | ||
3391 | @init { | ||
3392 | int stackSize = keepStackSize(); | ||
3393 | } | ||
3394 | : | ||
3395 | ( | ||
3396 | { before(grammarAccess.getLookupDefinitionAccess().getNameIDTerminalRuleCall_7_0()); } | ||
3397 | RULE_ID | ||
3398 | { after(grammarAccess.getLookupDefinitionAccess().getNameIDTerminalRuleCall_7_0()); } | ||
3399 | ) | ||
3400 | ; | ||
3401 | finally { | ||
3402 | restoreStackSize(stackSize); | ||
3403 | } | ||
3404 | |||
3405 | rule__Assignment__InputAssignment_0 | ||
3406 | @init { | ||
3407 | int stackSize = keepStackSize(); | ||
3408 | } | ||
3409 | : | ||
3410 | ( | ||
3411 | { before(grammarAccess.getAssignmentAccess().getInputEventReferenceParserRuleCall_0_0()); } | ||
3412 | ruleEventReference | ||
3413 | { after(grammarAccess.getAssignmentAccess().getInputEventReferenceParserRuleCall_0_0()); } | ||
3414 | ) | ||
3415 | ; | ||
3416 | finally { | ||
3417 | restoreStackSize(stackSize); | ||
3418 | } | ||
3419 | |||
3420 | rule__Assignment__MultipleAssignment_1_0 | ||
3421 | @init { | ||
3422 | int stackSize = keepStackSize(); | ||
3423 | } | ||
3424 | : | ||
3425 | ( | ||
3426 | { before(grammarAccess.getAssignmentAccess().getMultiplePlusSignEqualsSignKeyword_1_0_0()); } | ||
3427 | ( | ||
3428 | { before(grammarAccess.getAssignmentAccess().getMultiplePlusSignEqualsSignKeyword_1_0_0()); } | ||
3429 | '+=' | ||
3430 | { after(grammarAccess.getAssignmentAccess().getMultiplePlusSignEqualsSignKeyword_1_0_0()); } | ||
3431 | ) | ||
3432 | { after(grammarAccess.getAssignmentAccess().getMultiplePlusSignEqualsSignKeyword_1_0_0()); } | ||
3433 | ) | ||
3434 | ; | ||
3435 | finally { | ||
3436 | restoreStackSize(stackSize); | ||
3437 | } | ||
3438 | |||
3439 | rule__Assignment__OutputAssignment_2 | ||
3440 | @init { | ||
3441 | int stackSize = keepStackSize(); | ||
3442 | } | ||
3443 | : | ||
3444 | ( | ||
3445 | { before(grammarAccess.getAssignmentAccess().getOutputEventReferenceParserRuleCall_2_0()); } | ||
3446 | ruleEventReference | ||
3447 | { after(grammarAccess.getAssignmentAccess().getOutputEventReferenceParserRuleCall_2_0()); } | ||
3448 | ) | ||
3449 | ; | ||
3450 | finally { | ||
3451 | restoreStackSize(stackSize); | ||
3452 | } | ||
3453 | |||
3454 | rule__EventReference__ComponentAssignment_0 | ||
3455 | @init { | ||
3456 | int stackSize = keepStackSize(); | ||
3457 | } | ||
3458 | : | ||
3459 | ( | ||
3460 | { before(grammarAccess.getEventReferenceAccess().getComponentVariableCrossReference_0_0()); } | ||
3461 | ( | ||
3462 | { before(grammarAccess.getEventReferenceAccess().getComponentVariableIDTerminalRuleCall_0_0_1()); } | ||
3463 | RULE_ID | ||
3464 | { after(grammarAccess.getEventReferenceAccess().getComponentVariableIDTerminalRuleCall_0_0_1()); } | ||
3465 | ) | ||
3466 | { after(grammarAccess.getEventReferenceAccess().getComponentVariableCrossReference_0_0()); } | ||
3467 | ) | ||
3468 | ; | ||
3469 | finally { | ||
3470 | restoreStackSize(stackSize); | ||
3471 | } | ||
3472 | |||
3473 | rule__EventReference__EventAssignment_2 | ||
3474 | @init { | ||
3475 | int stackSize = keepStackSize(); | ||
3476 | } | ||
3477 | : | ||
3478 | ( | ||
3479 | { before(grammarAccess.getEventReferenceAccess().getEventEventDeclarationCrossReference_2_0()); } | ||
3480 | ( | ||
3481 | { before(grammarAccess.getEventReferenceAccess().getEventEventDeclarationIDTerminalRuleCall_2_0_1()); } | ||
3482 | RULE_ID | ||
3483 | { after(grammarAccess.getEventReferenceAccess().getEventEventDeclarationIDTerminalRuleCall_2_0_1()); } | ||
3484 | ) | ||
3485 | { after(grammarAccess.getEventReferenceAccess().getEventEventDeclarationCrossReference_2_0()); } | ||
3486 | ) | ||
3487 | ; | ||
3488 | finally { | ||
3489 | restoreStackSize(stackSize); | ||
3490 | } | ||
3491 | |||
3492 | rule__ComponentInstance__ComponentTypeAssignment_1 | ||
3493 | @init { | ||
3494 | int stackSize = keepStackSize(); | ||
3495 | } | ||
3496 | : | ||
3497 | ( | ||
3498 | { before(grammarAccess.getComponentInstanceAccess().getComponentTypeComponentDefinitionCrossReference_1_0()); } | ||
3499 | ( | ||
3500 | { before(grammarAccess.getComponentInstanceAccess().getComponentTypeComponentDefinitionQualifiedNameParserRuleCall_1_0_1()); } | ||
3501 | ruleQualifiedName | ||
3502 | { after(grammarAccess.getComponentInstanceAccess().getComponentTypeComponentDefinitionQualifiedNameParserRuleCall_1_0_1()); } | ||
3503 | ) | ||
3504 | { after(grammarAccess.getComponentInstanceAccess().getComponentTypeComponentDefinitionCrossReference_1_0()); } | ||
3505 | ) | ||
3506 | ; | ||
3507 | finally { | ||
3508 | restoreStackSize(stackSize); | ||
3509 | } | ||
3510 | |||
3511 | rule__ComponentInstance__NameAssignment_2 | ||
3512 | @init { | ||
3513 | int stackSize = keepStackSize(); | ||
3514 | } | ||
3515 | : | ||
3516 | ( | ||
3517 | { before(grammarAccess.getComponentInstanceAccess().getNameIDTerminalRuleCall_2_0()); } | ||
3518 | RULE_ID | ||
3519 | { after(grammarAccess.getComponentInstanceAccess().getNameIDTerminalRuleCall_2_0()); } | ||
3520 | ) | ||
3521 | ; | ||
3522 | finally { | ||
3523 | restoreStackSize(stackSize); | ||
3524 | } | ||
3525 | |||
3526 | RULE_DOULBE : ('0'..'9')+ ('.' ('0'..'9')+|('.' ('0'..'9')+)? ('e'|'E') ('+'|'-')? ('0'..'9')+); | ||
3527 | |||
3528 | RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; | ||
3529 | |||
3530 | RULE_INT : ('0'..'9')+; | ||
3531 | |||
3532 | RULE_STRING : ('"' ('\\' .|~(('\\'|'"')))* '"'|'\'' ('\\' .|~(('\\'|'\'')))* '\''); | ||
3533 | |||
3534 | RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/'; | ||
3535 | |||
3536 | RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?; | ||
3537 | |||
3538 | RULE_WS : (' '|'\t'|'\r'|'\n')+; | ||
3539 | |||
3540 | RULE_ANY_OTHER : .; | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/contentassist/antlr/internal/InternalCftLanguage.tokens b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/contentassist/antlr/internal/InternalCftLanguage.tokens new file mode 100644 index 00000000..77eb6696 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/contentassist/antlr/internal/InternalCftLanguage.tokens | |||
@@ -0,0 +1,60 @@ | |||
1 | '('=27 | ||
2 | ')'=28 | ||
3 | '*'=34 | ||
4 | '+='=37 | ||
5 | ','=29 | ||
6 | '.'=32 | ||
7 | ':='=12 | ||
8 | ';'=14 | ||
9 | '='=22 | ||
10 | '=>'=33 | ||
11 | '[]'=35 | ||
12 | 'and'=23 | ||
13 | 'as'=31 | ||
14 | 'cft'=16 | ||
15 | 'import'=15 | ||
16 | 'in'=19 | ||
17 | 'lambda'=21 | ||
18 | 'lookup'=30 | ||
19 | 'mapping'=26 | ||
20 | 'or'=24 | ||
21 | 'out'=20 | ||
22 | 'package'=13 | ||
23 | 'toplevel'=36 | ||
24 | 'transformation'=25 | ||
25 | '{'=17 | ||
26 | '}'=18 | ||
27 | RULE_ANY_OTHER=11 | ||
28 | RULE_DOULBE=5 | ||
29 | RULE_ID=4 | ||
30 | RULE_INT=6 | ||
31 | RULE_ML_COMMENT=8 | ||
32 | RULE_SL_COMMENT=9 | ||
33 | RULE_STRING=7 | ||
34 | RULE_WS=10 | ||
35 | T__12=12 | ||
36 | T__13=13 | ||
37 | T__14=14 | ||
38 | T__15=15 | ||
39 | T__16=16 | ||
40 | T__17=17 | ||
41 | T__18=18 | ||
42 | T__19=19 | ||
43 | T__20=20 | ||
44 | T__21=21 | ||
45 | T__22=22 | ||
46 | T__23=23 | ||
47 | T__24=24 | ||
48 | T__25=25 | ||
49 | T__26=26 | ||
50 | T__27=27 | ||
51 | T__28=28 | ||
52 | T__29=29 | ||
53 | T__30=30 | ||
54 | T__31=31 | ||
55 | T__32=32 | ||
56 | T__33=33 | ||
57 | T__34=34 | ||
58 | T__35=35 | ||
59 | T__36=36 | ||
60 | T__37=37 | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/contentassist/antlr/internal/InternalCftLanguageLexer.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/contentassist/antlr/internal/InternalCftLanguageLexer.java new file mode 100644 index 00000000..d80b13c6 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/contentassist/antlr/internal/InternalCftLanguageLexer.java | |||
@@ -0,0 +1,1876 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.faulttree.components.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 InternalCftLanguageLexer extends Lexer { | ||
15 | public static final int RULE_STRING=7; | ||
16 | public static final int RULE_SL_COMMENT=9; | ||
17 | public static final int T__19=19; | ||
18 | public static final int T__15=15; | ||
19 | public static final int T__37=37; | ||
20 | public static final int T__16=16; | ||
21 | public static final int T__17=17; | ||
22 | public static final int T__18=18; | ||
23 | public static final int T__33=33; | ||
24 | public static final int T__12=12; | ||
25 | public static final int T__34=34; | ||
26 | public static final int T__13=13; | ||
27 | public static final int T__35=35; | ||
28 | public static final int T__14=14; | ||
29 | public static final int T__36=36; | ||
30 | public static final int EOF=-1; | ||
31 | public static final int T__30=30; | ||
32 | public static final int T__31=31; | ||
33 | public static final int T__32=32; | ||
34 | public static final int RULE_ID=4; | ||
35 | public static final int RULE_WS=10; | ||
36 | public static final int RULE_DOULBE=5; | ||
37 | public static final int RULE_ANY_OTHER=11; | ||
38 | public static final int T__26=26; | ||
39 | public static final int T__27=27; | ||
40 | public static final int T__28=28; | ||
41 | public static final int RULE_INT=6; | ||
42 | public static final int T__29=29; | ||
43 | public static final int T__22=22; | ||
44 | public static final int RULE_ML_COMMENT=8; | ||
45 | public static final int T__23=23; | ||
46 | public static final int T__24=24; | ||
47 | public static final int T__25=25; | ||
48 | public static final int T__20=20; | ||
49 | public static final int T__21=21; | ||
50 | |||
51 | // delegates | ||
52 | // delegators | ||
53 | |||
54 | public InternalCftLanguageLexer() {;} | ||
55 | public InternalCftLanguageLexer(CharStream input) { | ||
56 | this(input, new RecognizerSharedState()); | ||
57 | } | ||
58 | public InternalCftLanguageLexer(CharStream input, RecognizerSharedState state) { | ||
59 | super(input,state); | ||
60 | |||
61 | } | ||
62 | public String getGrammarFileName() { return "InternalCftLanguage.g"; } | ||
63 | |||
64 | // $ANTLR start "T__12" | ||
65 | public final void mT__12() throws RecognitionException { | ||
66 | try { | ||
67 | int _type = T__12; | ||
68 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
69 | // InternalCftLanguage.g:11:7: ( ':=' ) | ||
70 | // InternalCftLanguage.g:11:9: ':=' | ||
71 | { | ||
72 | match(":="); | ||
73 | |||
74 | |||
75 | } | ||
76 | |||
77 | state.type = _type; | ||
78 | state.channel = _channel; | ||
79 | } | ||
80 | finally { | ||
81 | } | ||
82 | } | ||
83 | // $ANTLR end "T__12" | ||
84 | |||
85 | // $ANTLR start "T__13" | ||
86 | public final void mT__13() throws RecognitionException { | ||
87 | try { | ||
88 | int _type = T__13; | ||
89 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
90 | // InternalCftLanguage.g:12:7: ( 'package' ) | ||
91 | // InternalCftLanguage.g:12:9: 'package' | ||
92 | { | ||
93 | match("package"); | ||
94 | |||
95 | |||
96 | } | ||
97 | |||
98 | state.type = _type; | ||
99 | state.channel = _channel; | ||
100 | } | ||
101 | finally { | ||
102 | } | ||
103 | } | ||
104 | // $ANTLR end "T__13" | ||
105 | |||
106 | // $ANTLR start "T__14" | ||
107 | public final void mT__14() throws RecognitionException { | ||
108 | try { | ||
109 | int _type = T__14; | ||
110 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
111 | // InternalCftLanguage.g:13:7: ( ';' ) | ||
112 | // InternalCftLanguage.g:13:9: ';' | ||
113 | { | ||
114 | match(';'); | ||
115 | |||
116 | } | ||
117 | |||
118 | state.type = _type; | ||
119 | state.channel = _channel; | ||
120 | } | ||
121 | finally { | ||
122 | } | ||
123 | } | ||
124 | // $ANTLR end "T__14" | ||
125 | |||
126 | // $ANTLR start "T__15" | ||
127 | public final void mT__15() throws RecognitionException { | ||
128 | try { | ||
129 | int _type = T__15; | ||
130 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
131 | // InternalCftLanguage.g:14:7: ( 'import' ) | ||
132 | // InternalCftLanguage.g:14:9: 'import' | ||
133 | { | ||
134 | match("import"); | ||
135 | |||
136 | |||
137 | } | ||
138 | |||
139 | state.type = _type; | ||
140 | state.channel = _channel; | ||
141 | } | ||
142 | finally { | ||
143 | } | ||
144 | } | ||
145 | // $ANTLR end "T__15" | ||
146 | |||
147 | // $ANTLR start "T__16" | ||
148 | public final void mT__16() throws RecognitionException { | ||
149 | try { | ||
150 | int _type = T__16; | ||
151 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
152 | // InternalCftLanguage.g:15:7: ( 'cft' ) | ||
153 | // InternalCftLanguage.g:15:9: 'cft' | ||
154 | { | ||
155 | match("cft"); | ||
156 | |||
157 | |||
158 | } | ||
159 | |||
160 | state.type = _type; | ||
161 | state.channel = _channel; | ||
162 | } | ||
163 | finally { | ||
164 | } | ||
165 | } | ||
166 | // $ANTLR end "T__16" | ||
167 | |||
168 | // $ANTLR start "T__17" | ||
169 | public final void mT__17() throws RecognitionException { | ||
170 | try { | ||
171 | int _type = T__17; | ||
172 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
173 | // InternalCftLanguage.g:16:7: ( '{' ) | ||
174 | // InternalCftLanguage.g:16:9: '{' | ||
175 | { | ||
176 | match('{'); | ||
177 | |||
178 | } | ||
179 | |||
180 | state.type = _type; | ||
181 | state.channel = _channel; | ||
182 | } | ||
183 | finally { | ||
184 | } | ||
185 | } | ||
186 | // $ANTLR end "T__17" | ||
187 | |||
188 | // $ANTLR start "T__18" | ||
189 | public final void mT__18() throws RecognitionException { | ||
190 | try { | ||
191 | int _type = T__18; | ||
192 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
193 | // InternalCftLanguage.g:17:7: ( '}' ) | ||
194 | // InternalCftLanguage.g:17:9: '}' | ||
195 | { | ||
196 | match('}'); | ||
197 | |||
198 | } | ||
199 | |||
200 | state.type = _type; | ||
201 | state.channel = _channel; | ||
202 | } | ||
203 | finally { | ||
204 | } | ||
205 | } | ||
206 | // $ANTLR end "T__18" | ||
207 | |||
208 | // $ANTLR start "T__19" | ||
209 | public final void mT__19() throws RecognitionException { | ||
210 | try { | ||
211 | int _type = T__19; | ||
212 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
213 | // InternalCftLanguage.g:18:7: ( 'in' ) | ||
214 | // InternalCftLanguage.g:18:9: 'in' | ||
215 | { | ||
216 | match("in"); | ||
217 | |||
218 | |||
219 | } | ||
220 | |||
221 | state.type = _type; | ||
222 | state.channel = _channel; | ||
223 | } | ||
224 | finally { | ||
225 | } | ||
226 | } | ||
227 | // $ANTLR end "T__19" | ||
228 | |||
229 | // $ANTLR start "T__20" | ||
230 | public final void mT__20() throws RecognitionException { | ||
231 | try { | ||
232 | int _type = T__20; | ||
233 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
234 | // InternalCftLanguage.g:19:7: ( 'out' ) | ||
235 | // InternalCftLanguage.g:19:9: 'out' | ||
236 | { | ||
237 | match("out"); | ||
238 | |||
239 | |||
240 | } | ||
241 | |||
242 | state.type = _type; | ||
243 | state.channel = _channel; | ||
244 | } | ||
245 | finally { | ||
246 | } | ||
247 | } | ||
248 | // $ANTLR end "T__20" | ||
249 | |||
250 | // $ANTLR start "T__21" | ||
251 | public final void mT__21() throws RecognitionException { | ||
252 | try { | ||
253 | int _type = T__21; | ||
254 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
255 | // InternalCftLanguage.g:20:7: ( 'lambda' ) | ||
256 | // InternalCftLanguage.g:20:9: 'lambda' | ||
257 | { | ||
258 | match("lambda"); | ||
259 | |||
260 | |||
261 | } | ||
262 | |||
263 | state.type = _type; | ||
264 | state.channel = _channel; | ||
265 | } | ||
266 | finally { | ||
267 | } | ||
268 | } | ||
269 | // $ANTLR end "T__21" | ||
270 | |||
271 | // $ANTLR start "T__22" | ||
272 | public final void mT__22() throws RecognitionException { | ||
273 | try { | ||
274 | int _type = T__22; | ||
275 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
276 | // InternalCftLanguage.g:21:7: ( '=' ) | ||
277 | // InternalCftLanguage.g:21:9: '=' | ||
278 | { | ||
279 | match('='); | ||
280 | |||
281 | } | ||
282 | |||
283 | state.type = _type; | ||
284 | state.channel = _channel; | ||
285 | } | ||
286 | finally { | ||
287 | } | ||
288 | } | ||
289 | // $ANTLR end "T__22" | ||
290 | |||
291 | // $ANTLR start "T__23" | ||
292 | public final void mT__23() throws RecognitionException { | ||
293 | try { | ||
294 | int _type = T__23; | ||
295 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
296 | // InternalCftLanguage.g:22:7: ( 'and' ) | ||
297 | // InternalCftLanguage.g:22:9: 'and' | ||
298 | { | ||
299 | match("and"); | ||
300 | |||
301 | |||
302 | } | ||
303 | |||
304 | state.type = _type; | ||
305 | state.channel = _channel; | ||
306 | } | ||
307 | finally { | ||
308 | } | ||
309 | } | ||
310 | // $ANTLR end "T__23" | ||
311 | |||
312 | // $ANTLR start "T__24" | ||
313 | public final void mT__24() throws RecognitionException { | ||
314 | try { | ||
315 | int _type = T__24; | ||
316 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
317 | // InternalCftLanguage.g:23:7: ( 'or' ) | ||
318 | // InternalCftLanguage.g:23:9: 'or' | ||
319 | { | ||
320 | match("or"); | ||
321 | |||
322 | |||
323 | } | ||
324 | |||
325 | state.type = _type; | ||
326 | state.channel = _channel; | ||
327 | } | ||
328 | finally { | ||
329 | } | ||
330 | } | ||
331 | // $ANTLR end "T__24" | ||
332 | |||
333 | // $ANTLR start "T__25" | ||
334 | public final void mT__25() throws RecognitionException { | ||
335 | try { | ||
336 | int _type = T__25; | ||
337 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
338 | // InternalCftLanguage.g:24:7: ( 'transformation' ) | ||
339 | // InternalCftLanguage.g:24:9: 'transformation' | ||
340 | { | ||
341 | match("transformation"); | ||
342 | |||
343 | |||
344 | } | ||
345 | |||
346 | state.type = _type; | ||
347 | state.channel = _channel; | ||
348 | } | ||
349 | finally { | ||
350 | } | ||
351 | } | ||
352 | // $ANTLR end "T__25" | ||
353 | |||
354 | // $ANTLR start "T__26" | ||
355 | public final void mT__26() throws RecognitionException { | ||
356 | try { | ||
357 | int _type = T__26; | ||
358 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
359 | // InternalCftLanguage.g:25:7: ( 'mapping' ) | ||
360 | // InternalCftLanguage.g:25:9: 'mapping' | ||
361 | { | ||
362 | match("mapping"); | ||
363 | |||
364 | |||
365 | } | ||
366 | |||
367 | state.type = _type; | ||
368 | state.channel = _channel; | ||
369 | } | ||
370 | finally { | ||
371 | } | ||
372 | } | ||
373 | // $ANTLR end "T__26" | ||
374 | |||
375 | // $ANTLR start "T__27" | ||
376 | public final void mT__27() throws RecognitionException { | ||
377 | try { | ||
378 | int _type = T__27; | ||
379 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
380 | // InternalCftLanguage.g:26:7: ( '(' ) | ||
381 | // InternalCftLanguage.g:26:9: '(' | ||
382 | { | ||
383 | match('('); | ||
384 | |||
385 | } | ||
386 | |||
387 | state.type = _type; | ||
388 | state.channel = _channel; | ||
389 | } | ||
390 | finally { | ||
391 | } | ||
392 | } | ||
393 | // $ANTLR end "T__27" | ||
394 | |||
395 | // $ANTLR start "T__28" | ||
396 | public final void mT__28() throws RecognitionException { | ||
397 | try { | ||
398 | int _type = T__28; | ||
399 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
400 | // InternalCftLanguage.g:27:7: ( ')' ) | ||
401 | // InternalCftLanguage.g:27:9: ')' | ||
402 | { | ||
403 | match(')'); | ||
404 | |||
405 | } | ||
406 | |||
407 | state.type = _type; | ||
408 | state.channel = _channel; | ||
409 | } | ||
410 | finally { | ||
411 | } | ||
412 | } | ||
413 | // $ANTLR end "T__28" | ||
414 | |||
415 | // $ANTLR start "T__29" | ||
416 | public final void mT__29() throws RecognitionException { | ||
417 | try { | ||
418 | int _type = T__29; | ||
419 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
420 | // InternalCftLanguage.g:28:7: ( ',' ) | ||
421 | // InternalCftLanguage.g:28:9: ',' | ||
422 | { | ||
423 | match(','); | ||
424 | |||
425 | } | ||
426 | |||
427 | state.type = _type; | ||
428 | state.channel = _channel; | ||
429 | } | ||
430 | finally { | ||
431 | } | ||
432 | } | ||
433 | // $ANTLR end "T__29" | ||
434 | |||
435 | // $ANTLR start "T__30" | ||
436 | public final void mT__30() throws RecognitionException { | ||
437 | try { | ||
438 | int _type = T__30; | ||
439 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
440 | // InternalCftLanguage.g:29:7: ( 'lookup' ) | ||
441 | // InternalCftLanguage.g:29:9: 'lookup' | ||
442 | { | ||
443 | match("lookup"); | ||
444 | |||
445 | |||
446 | } | ||
447 | |||
448 | state.type = _type; | ||
449 | state.channel = _channel; | ||
450 | } | ||
451 | finally { | ||
452 | } | ||
453 | } | ||
454 | // $ANTLR end "T__30" | ||
455 | |||
456 | // $ANTLR start "T__31" | ||
457 | public final void mT__31() throws RecognitionException { | ||
458 | try { | ||
459 | int _type = T__31; | ||
460 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
461 | // InternalCftLanguage.g:30:7: ( 'as' ) | ||
462 | // InternalCftLanguage.g:30:9: 'as' | ||
463 | { | ||
464 | match("as"); | ||
465 | |||
466 | |||
467 | } | ||
468 | |||
469 | state.type = _type; | ||
470 | state.channel = _channel; | ||
471 | } | ||
472 | finally { | ||
473 | } | ||
474 | } | ||
475 | // $ANTLR end "T__31" | ||
476 | |||
477 | // $ANTLR start "T__32" | ||
478 | public final void mT__32() throws RecognitionException { | ||
479 | try { | ||
480 | int _type = T__32; | ||
481 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
482 | // InternalCftLanguage.g:31:7: ( '.' ) | ||
483 | // InternalCftLanguage.g:31:9: '.' | ||
484 | { | ||
485 | match('.'); | ||
486 | |||
487 | } | ||
488 | |||
489 | state.type = _type; | ||
490 | state.channel = _channel; | ||
491 | } | ||
492 | finally { | ||
493 | } | ||
494 | } | ||
495 | // $ANTLR end "T__32" | ||
496 | |||
497 | // $ANTLR start "T__33" | ||
498 | public final void mT__33() throws RecognitionException { | ||
499 | try { | ||
500 | int _type = T__33; | ||
501 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
502 | // InternalCftLanguage.g:32:7: ( '=>' ) | ||
503 | // InternalCftLanguage.g:32:9: '=>' | ||
504 | { | ||
505 | match("=>"); | ||
506 | |||
507 | |||
508 | } | ||
509 | |||
510 | state.type = _type; | ||
511 | state.channel = _channel; | ||
512 | } | ||
513 | finally { | ||
514 | } | ||
515 | } | ||
516 | // $ANTLR end "T__33" | ||
517 | |||
518 | // $ANTLR start "T__34" | ||
519 | public final void mT__34() throws RecognitionException { | ||
520 | try { | ||
521 | int _type = T__34; | ||
522 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
523 | // InternalCftLanguage.g:33:7: ( '*' ) | ||
524 | // InternalCftLanguage.g:33:9: '*' | ||
525 | { | ||
526 | match('*'); | ||
527 | |||
528 | } | ||
529 | |||
530 | state.type = _type; | ||
531 | state.channel = _channel; | ||
532 | } | ||
533 | finally { | ||
534 | } | ||
535 | } | ||
536 | // $ANTLR end "T__34" | ||
537 | |||
538 | // $ANTLR start "T__35" | ||
539 | public final void mT__35() throws RecognitionException { | ||
540 | try { | ||
541 | int _type = T__35; | ||
542 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
543 | // InternalCftLanguage.g:34:7: ( '[]' ) | ||
544 | // InternalCftLanguage.g:34:9: '[]' | ||
545 | { | ||
546 | match("[]"); | ||
547 | |||
548 | |||
549 | } | ||
550 | |||
551 | state.type = _type; | ||
552 | state.channel = _channel; | ||
553 | } | ||
554 | finally { | ||
555 | } | ||
556 | } | ||
557 | // $ANTLR end "T__35" | ||
558 | |||
559 | // $ANTLR start "T__36" | ||
560 | public final void mT__36() throws RecognitionException { | ||
561 | try { | ||
562 | int _type = T__36; | ||
563 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
564 | // InternalCftLanguage.g:35:7: ( 'toplevel' ) | ||
565 | // InternalCftLanguage.g:35:9: 'toplevel' | ||
566 | { | ||
567 | match("toplevel"); | ||
568 | |||
569 | |||
570 | } | ||
571 | |||
572 | state.type = _type; | ||
573 | state.channel = _channel; | ||
574 | } | ||
575 | finally { | ||
576 | } | ||
577 | } | ||
578 | // $ANTLR end "T__36" | ||
579 | |||
580 | // $ANTLR start "T__37" | ||
581 | public final void mT__37() throws RecognitionException { | ||
582 | try { | ||
583 | int _type = T__37; | ||
584 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
585 | // InternalCftLanguage.g:36:7: ( '+=' ) | ||
586 | // InternalCftLanguage.g:36:9: '+=' | ||
587 | { | ||
588 | match("+="); | ||
589 | |||
590 | |||
591 | } | ||
592 | |||
593 | state.type = _type; | ||
594 | state.channel = _channel; | ||
595 | } | ||
596 | finally { | ||
597 | } | ||
598 | } | ||
599 | // $ANTLR end "T__37" | ||
600 | |||
601 | // $ANTLR start "RULE_DOULBE" | ||
602 | public final void mRULE_DOULBE() throws RecognitionException { | ||
603 | try { | ||
604 | int _type = RULE_DOULBE; | ||
605 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
606 | // InternalCftLanguage.g:3526:13: ( ( '0' .. '9' )+ ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) ) | ||
607 | // InternalCftLanguage.g:3526:15: ( '0' .. '9' )+ ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) | ||
608 | { | ||
609 | // InternalCftLanguage.g:3526:15: ( '0' .. '9' )+ | ||
610 | int cnt1=0; | ||
611 | loop1: | ||
612 | do { | ||
613 | int alt1=2; | ||
614 | int LA1_0 = input.LA(1); | ||
615 | |||
616 | if ( ((LA1_0>='0' && LA1_0<='9')) ) { | ||
617 | alt1=1; | ||
618 | } | ||
619 | |||
620 | |||
621 | switch (alt1) { | ||
622 | case 1 : | ||
623 | // InternalCftLanguage.g:3526:16: '0' .. '9' | ||
624 | { | ||
625 | matchRange('0','9'); | ||
626 | |||
627 | } | ||
628 | break; | ||
629 | |||
630 | default : | ||
631 | if ( cnt1 >= 1 ) break loop1; | ||
632 | EarlyExitException eee = | ||
633 | new EarlyExitException(1, input); | ||
634 | throw eee; | ||
635 | } | ||
636 | cnt1++; | ||
637 | } while (true); | ||
638 | |||
639 | // InternalCftLanguage.g:3526:27: ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) | ||
640 | int alt7=2; | ||
641 | alt7 = dfa7.predict(input); | ||
642 | switch (alt7) { | ||
643 | case 1 : | ||
644 | // InternalCftLanguage.g:3526:28: '.' ( '0' .. '9' )+ | ||
645 | { | ||
646 | match('.'); | ||
647 | // InternalCftLanguage.g:3526:32: ( '0' .. '9' )+ | ||
648 | int cnt2=0; | ||
649 | loop2: | ||
650 | do { | ||
651 | int alt2=2; | ||
652 | int LA2_0 = input.LA(1); | ||
653 | |||
654 | if ( ((LA2_0>='0' && LA2_0<='9')) ) { | ||
655 | alt2=1; | ||
656 | } | ||
657 | |||
658 | |||
659 | switch (alt2) { | ||
660 | case 1 : | ||
661 | // InternalCftLanguage.g:3526:33: '0' .. '9' | ||
662 | { | ||
663 | matchRange('0','9'); | ||
664 | |||
665 | } | ||
666 | break; | ||
667 | |||
668 | default : | ||
669 | if ( cnt2 >= 1 ) break loop2; | ||
670 | EarlyExitException eee = | ||
671 | new EarlyExitException(2, input); | ||
672 | throw eee; | ||
673 | } | ||
674 | cnt2++; | ||
675 | } while (true); | ||
676 | |||
677 | |||
678 | } | ||
679 | break; | ||
680 | case 2 : | ||
681 | // InternalCftLanguage.g:3526:44: ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ | ||
682 | { | ||
683 | // InternalCftLanguage.g:3526:44: ( '.' ( '0' .. '9' )+ )? | ||
684 | int alt4=2; | ||
685 | int LA4_0 = input.LA(1); | ||
686 | |||
687 | if ( (LA4_0=='.') ) { | ||
688 | alt4=1; | ||
689 | } | ||
690 | switch (alt4) { | ||
691 | case 1 : | ||
692 | // InternalCftLanguage.g:3526:45: '.' ( '0' .. '9' )+ | ||
693 | { | ||
694 | match('.'); | ||
695 | // InternalCftLanguage.g:3526:49: ( '0' .. '9' )+ | ||
696 | int cnt3=0; | ||
697 | loop3: | ||
698 | do { | ||
699 | int alt3=2; | ||
700 | int LA3_0 = input.LA(1); | ||
701 | |||
702 | if ( ((LA3_0>='0' && LA3_0<='9')) ) { | ||
703 | alt3=1; | ||
704 | } | ||
705 | |||
706 | |||
707 | switch (alt3) { | ||
708 | case 1 : | ||
709 | // InternalCftLanguage.g:3526:50: '0' .. '9' | ||
710 | { | ||
711 | matchRange('0','9'); | ||
712 | |||
713 | } | ||
714 | break; | ||
715 | |||
716 | default : | ||
717 | if ( cnt3 >= 1 ) break loop3; | ||
718 | EarlyExitException eee = | ||
719 | new EarlyExitException(3, input); | ||
720 | throw eee; | ||
721 | } | ||
722 | cnt3++; | ||
723 | } while (true); | ||
724 | |||
725 | |||
726 | } | ||
727 | break; | ||
728 | |||
729 | } | ||
730 | |||
731 | if ( input.LA(1)=='E'||input.LA(1)=='e' ) { | ||
732 | input.consume(); | ||
733 | |||
734 | } | ||
735 | else { | ||
736 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
737 | recover(mse); | ||
738 | throw mse;} | ||
739 | |||
740 | // InternalCftLanguage.g:3526:73: ( '+' | '-' )? | ||
741 | int alt5=2; | ||
742 | int LA5_0 = input.LA(1); | ||
743 | |||
744 | if ( (LA5_0=='+'||LA5_0=='-') ) { | ||
745 | alt5=1; | ||
746 | } | ||
747 | switch (alt5) { | ||
748 | case 1 : | ||
749 | // InternalCftLanguage.g: | ||
750 | { | ||
751 | if ( input.LA(1)=='+'||input.LA(1)=='-' ) { | ||
752 | input.consume(); | ||
753 | |||
754 | } | ||
755 | else { | ||
756 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
757 | recover(mse); | ||
758 | throw mse;} | ||
759 | |||
760 | |||
761 | } | ||
762 | break; | ||
763 | |||
764 | } | ||
765 | |||
766 | // InternalCftLanguage.g:3526:84: ( '0' .. '9' )+ | ||
767 | int cnt6=0; | ||
768 | loop6: | ||
769 | do { | ||
770 | int alt6=2; | ||
771 | int LA6_0 = input.LA(1); | ||
772 | |||
773 | if ( ((LA6_0>='0' && LA6_0<='9')) ) { | ||
774 | alt6=1; | ||
775 | } | ||
776 | |||
777 | |||
778 | switch (alt6) { | ||
779 | case 1 : | ||
780 | // InternalCftLanguage.g:3526:85: '0' .. '9' | ||
781 | { | ||
782 | matchRange('0','9'); | ||
783 | |||
784 | } | ||
785 | break; | ||
786 | |||
787 | default : | ||
788 | if ( cnt6 >= 1 ) break loop6; | ||
789 | EarlyExitException eee = | ||
790 | new EarlyExitException(6, input); | ||
791 | throw eee; | ||
792 | } | ||
793 | cnt6++; | ||
794 | } while (true); | ||
795 | |||
796 | |||
797 | } | ||
798 | break; | ||
799 | |||
800 | } | ||
801 | |||
802 | |||
803 | } | ||
804 | |||
805 | state.type = _type; | ||
806 | state.channel = _channel; | ||
807 | } | ||
808 | finally { | ||
809 | } | ||
810 | } | ||
811 | // $ANTLR end "RULE_DOULBE" | ||
812 | |||
813 | // $ANTLR start "RULE_ID" | ||
814 | public final void mRULE_ID() throws RecognitionException { | ||
815 | try { | ||
816 | int _type = RULE_ID; | ||
817 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
818 | // InternalCftLanguage.g:3528:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) | ||
819 | // InternalCftLanguage.g:3528:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | ||
820 | { | ||
821 | // InternalCftLanguage.g:3528:11: ( '^' )? | ||
822 | int alt8=2; | ||
823 | int LA8_0 = input.LA(1); | ||
824 | |||
825 | if ( (LA8_0=='^') ) { | ||
826 | alt8=1; | ||
827 | } | ||
828 | switch (alt8) { | ||
829 | case 1 : | ||
830 | // InternalCftLanguage.g:3528:11: '^' | ||
831 | { | ||
832 | match('^'); | ||
833 | |||
834 | } | ||
835 | break; | ||
836 | |||
837 | } | ||
838 | |||
839 | if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { | ||
840 | input.consume(); | ||
841 | |||
842 | } | ||
843 | else { | ||
844 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
845 | recover(mse); | ||
846 | throw mse;} | ||
847 | |||
848 | // InternalCftLanguage.g:3528:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | ||
849 | loop9: | ||
850 | do { | ||
851 | int alt9=2; | ||
852 | int LA9_0 = input.LA(1); | ||
853 | |||
854 | if ( ((LA9_0>='0' && LA9_0<='9')||(LA9_0>='A' && LA9_0<='Z')||LA9_0=='_'||(LA9_0>='a' && LA9_0<='z')) ) { | ||
855 | alt9=1; | ||
856 | } | ||
857 | |||
858 | |||
859 | switch (alt9) { | ||
860 | case 1 : | ||
861 | // InternalCftLanguage.g: | ||
862 | { | ||
863 | 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') ) { | ||
864 | input.consume(); | ||
865 | |||
866 | } | ||
867 | else { | ||
868 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
869 | recover(mse); | ||
870 | throw mse;} | ||
871 | |||
872 | |||
873 | } | ||
874 | break; | ||
875 | |||
876 | default : | ||
877 | break loop9; | ||
878 | } | ||
879 | } while (true); | ||
880 | |||
881 | |||
882 | } | ||
883 | |||
884 | state.type = _type; | ||
885 | state.channel = _channel; | ||
886 | } | ||
887 | finally { | ||
888 | } | ||
889 | } | ||
890 | // $ANTLR end "RULE_ID" | ||
891 | |||
892 | // $ANTLR start "RULE_INT" | ||
893 | public final void mRULE_INT() throws RecognitionException { | ||
894 | try { | ||
895 | int _type = RULE_INT; | ||
896 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
897 | // InternalCftLanguage.g:3530:10: ( ( '0' .. '9' )+ ) | ||
898 | // InternalCftLanguage.g:3530:12: ( '0' .. '9' )+ | ||
899 | { | ||
900 | // InternalCftLanguage.g:3530:12: ( '0' .. '9' )+ | ||
901 | int cnt10=0; | ||
902 | loop10: | ||
903 | do { | ||
904 | int alt10=2; | ||
905 | int LA10_0 = input.LA(1); | ||
906 | |||
907 | if ( ((LA10_0>='0' && LA10_0<='9')) ) { | ||
908 | alt10=1; | ||
909 | } | ||
910 | |||
911 | |||
912 | switch (alt10) { | ||
913 | case 1 : | ||
914 | // InternalCftLanguage.g:3530:13: '0' .. '9' | ||
915 | { | ||
916 | matchRange('0','9'); | ||
917 | |||
918 | } | ||
919 | break; | ||
920 | |||
921 | default : | ||
922 | if ( cnt10 >= 1 ) break loop10; | ||
923 | EarlyExitException eee = | ||
924 | new EarlyExitException(10, input); | ||
925 | throw eee; | ||
926 | } | ||
927 | cnt10++; | ||
928 | } while (true); | ||
929 | |||
930 | |||
931 | } | ||
932 | |||
933 | state.type = _type; | ||
934 | state.channel = _channel; | ||
935 | } | ||
936 | finally { | ||
937 | } | ||
938 | } | ||
939 | // $ANTLR end "RULE_INT" | ||
940 | |||
941 | // $ANTLR start "RULE_STRING" | ||
942 | public final void mRULE_STRING() throws RecognitionException { | ||
943 | try { | ||
944 | int _type = RULE_STRING; | ||
945 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
946 | // InternalCftLanguage.g:3532:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) ) | ||
947 | // InternalCftLanguage.g:3532:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) | ||
948 | { | ||
949 | // InternalCftLanguage.g:3532:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) | ||
950 | int alt13=2; | ||
951 | int LA13_0 = input.LA(1); | ||
952 | |||
953 | if ( (LA13_0=='\"') ) { | ||
954 | alt13=1; | ||
955 | } | ||
956 | else if ( (LA13_0=='\'') ) { | ||
957 | alt13=2; | ||
958 | } | ||
959 | else { | ||
960 | NoViableAltException nvae = | ||
961 | new NoViableAltException("", 13, 0, input); | ||
962 | |||
963 | throw nvae; | ||
964 | } | ||
965 | switch (alt13) { | ||
966 | case 1 : | ||
967 | // InternalCftLanguage.g:3532:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | ||
968 | { | ||
969 | match('\"'); | ||
970 | // InternalCftLanguage.g:3532:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* | ||
971 | loop11: | ||
972 | do { | ||
973 | int alt11=3; | ||
974 | int LA11_0 = input.LA(1); | ||
975 | |||
976 | if ( (LA11_0=='\\') ) { | ||
977 | alt11=1; | ||
978 | } | ||
979 | else if ( ((LA11_0>='\u0000' && LA11_0<='!')||(LA11_0>='#' && LA11_0<='[')||(LA11_0>=']' && LA11_0<='\uFFFF')) ) { | ||
980 | alt11=2; | ||
981 | } | ||
982 | |||
983 | |||
984 | switch (alt11) { | ||
985 | case 1 : | ||
986 | // InternalCftLanguage.g:3532:21: '\\\\' . | ||
987 | { | ||
988 | match('\\'); | ||
989 | matchAny(); | ||
990 | |||
991 | } | ||
992 | break; | ||
993 | case 2 : | ||
994 | // InternalCftLanguage.g:3532:28: ~ ( ( '\\\\' | '\"' ) ) | ||
995 | { | ||
996 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { | ||
997 | input.consume(); | ||
998 | |||
999 | } | ||
1000 | else { | ||
1001 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1002 | recover(mse); | ||
1003 | throw mse;} | ||
1004 | |||
1005 | |||
1006 | } | ||
1007 | break; | ||
1008 | |||
1009 | default : | ||
1010 | break loop11; | ||
1011 | } | ||
1012 | } while (true); | ||
1013 | |||
1014 | match('\"'); | ||
1015 | |||
1016 | } | ||
1017 | break; | ||
1018 | case 2 : | ||
1019 | // InternalCftLanguage.g:3532:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' | ||
1020 | { | ||
1021 | match('\''); | ||
1022 | // InternalCftLanguage.g:3532:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* | ||
1023 | loop12: | ||
1024 | do { | ||
1025 | int alt12=3; | ||
1026 | int LA12_0 = input.LA(1); | ||
1027 | |||
1028 | if ( (LA12_0=='\\') ) { | ||
1029 | alt12=1; | ||
1030 | } | ||
1031 | else if ( ((LA12_0>='\u0000' && LA12_0<='&')||(LA12_0>='(' && LA12_0<='[')||(LA12_0>=']' && LA12_0<='\uFFFF')) ) { | ||
1032 | alt12=2; | ||
1033 | } | ||
1034 | |||
1035 | |||
1036 | switch (alt12) { | ||
1037 | case 1 : | ||
1038 | // InternalCftLanguage.g:3532:54: '\\\\' . | ||
1039 | { | ||
1040 | match('\\'); | ||
1041 | matchAny(); | ||
1042 | |||
1043 | } | ||
1044 | break; | ||
1045 | case 2 : | ||
1046 | // InternalCftLanguage.g:3532:61: ~ ( ( '\\\\' | '\\'' ) ) | ||
1047 | { | ||
1048 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { | ||
1049 | input.consume(); | ||
1050 | |||
1051 | } | ||
1052 | else { | ||
1053 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1054 | recover(mse); | ||
1055 | throw mse;} | ||
1056 | |||
1057 | |||
1058 | } | ||
1059 | break; | ||
1060 | |||
1061 | default : | ||
1062 | break loop12; | ||
1063 | } | ||
1064 | } while (true); | ||
1065 | |||
1066 | match('\''); | ||
1067 | |||
1068 | } | ||
1069 | break; | ||
1070 | |||
1071 | } | ||
1072 | |||
1073 | |||
1074 | } | ||
1075 | |||
1076 | state.type = _type; | ||
1077 | state.channel = _channel; | ||
1078 | } | ||
1079 | finally { | ||
1080 | } | ||
1081 | } | ||
1082 | // $ANTLR end "RULE_STRING" | ||
1083 | |||
1084 | // $ANTLR start "RULE_ML_COMMENT" | ||
1085 | public final void mRULE_ML_COMMENT() throws RecognitionException { | ||
1086 | try { | ||
1087 | int _type = RULE_ML_COMMENT; | ||
1088 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1089 | // InternalCftLanguage.g:3534:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) | ||
1090 | // InternalCftLanguage.g:3534:19: '/*' ( options {greedy=false; } : . )* '*/' | ||
1091 | { | ||
1092 | match("/*"); | ||
1093 | |||
1094 | // InternalCftLanguage.g:3534:24: ( options {greedy=false; } : . )* | ||
1095 | loop14: | ||
1096 | do { | ||
1097 | int alt14=2; | ||
1098 | int LA14_0 = input.LA(1); | ||
1099 | |||
1100 | if ( (LA14_0=='*') ) { | ||
1101 | int LA14_1 = input.LA(2); | ||
1102 | |||
1103 | if ( (LA14_1=='/') ) { | ||
1104 | alt14=2; | ||
1105 | } | ||
1106 | else if ( ((LA14_1>='\u0000' && LA14_1<='.')||(LA14_1>='0' && LA14_1<='\uFFFF')) ) { | ||
1107 | alt14=1; | ||
1108 | } | ||
1109 | |||
1110 | |||
1111 | } | ||
1112 | else if ( ((LA14_0>='\u0000' && LA14_0<=')')||(LA14_0>='+' && LA14_0<='\uFFFF')) ) { | ||
1113 | alt14=1; | ||
1114 | } | ||
1115 | |||
1116 | |||
1117 | switch (alt14) { | ||
1118 | case 1 : | ||
1119 | // InternalCftLanguage.g:3534:52: . | ||
1120 | { | ||
1121 | matchAny(); | ||
1122 | |||
1123 | } | ||
1124 | break; | ||
1125 | |||
1126 | default : | ||
1127 | break loop14; | ||
1128 | } | ||
1129 | } while (true); | ||
1130 | |||
1131 | match("*/"); | ||
1132 | |||
1133 | |||
1134 | } | ||
1135 | |||
1136 | state.type = _type; | ||
1137 | state.channel = _channel; | ||
1138 | } | ||
1139 | finally { | ||
1140 | } | ||
1141 | } | ||
1142 | // $ANTLR end "RULE_ML_COMMENT" | ||
1143 | |||
1144 | // $ANTLR start "RULE_SL_COMMENT" | ||
1145 | public final void mRULE_SL_COMMENT() throws RecognitionException { | ||
1146 | try { | ||
1147 | int _type = RULE_SL_COMMENT; | ||
1148 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1149 | // InternalCftLanguage.g:3536:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) | ||
1150 | // InternalCftLanguage.g:3536:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? | ||
1151 | { | ||
1152 | match("//"); | ||
1153 | |||
1154 | // InternalCftLanguage.g:3536:24: (~ ( ( '\\n' | '\\r' ) ) )* | ||
1155 | loop15: | ||
1156 | do { | ||
1157 | int alt15=2; | ||
1158 | int LA15_0 = input.LA(1); | ||
1159 | |||
1160 | if ( ((LA15_0>='\u0000' && LA15_0<='\t')||(LA15_0>='\u000B' && LA15_0<='\f')||(LA15_0>='\u000E' && LA15_0<='\uFFFF')) ) { | ||
1161 | alt15=1; | ||
1162 | } | ||
1163 | |||
1164 | |||
1165 | switch (alt15) { | ||
1166 | case 1 : | ||
1167 | // InternalCftLanguage.g:3536:24: ~ ( ( '\\n' | '\\r' ) ) | ||
1168 | { | ||
1169 | 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') ) { | ||
1170 | input.consume(); | ||
1171 | |||
1172 | } | ||
1173 | else { | ||
1174 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1175 | recover(mse); | ||
1176 | throw mse;} | ||
1177 | |||
1178 | |||
1179 | } | ||
1180 | break; | ||
1181 | |||
1182 | default : | ||
1183 | break loop15; | ||
1184 | } | ||
1185 | } while (true); | ||
1186 | |||
1187 | // InternalCftLanguage.g:3536:40: ( ( '\\r' )? '\\n' )? | ||
1188 | int alt17=2; | ||
1189 | int LA17_0 = input.LA(1); | ||
1190 | |||
1191 | if ( (LA17_0=='\n'||LA17_0=='\r') ) { | ||
1192 | alt17=1; | ||
1193 | } | ||
1194 | switch (alt17) { | ||
1195 | case 1 : | ||
1196 | // InternalCftLanguage.g:3536:41: ( '\\r' )? '\\n' | ||
1197 | { | ||
1198 | // InternalCftLanguage.g:3536:41: ( '\\r' )? | ||
1199 | int alt16=2; | ||
1200 | int LA16_0 = input.LA(1); | ||
1201 | |||
1202 | if ( (LA16_0=='\r') ) { | ||
1203 | alt16=1; | ||
1204 | } | ||
1205 | switch (alt16) { | ||
1206 | case 1 : | ||
1207 | // InternalCftLanguage.g:3536:41: '\\r' | ||
1208 | { | ||
1209 | match('\r'); | ||
1210 | |||
1211 | } | ||
1212 | break; | ||
1213 | |||
1214 | } | ||
1215 | |||
1216 | match('\n'); | ||
1217 | |||
1218 | } | ||
1219 | break; | ||
1220 | |||
1221 | } | ||
1222 | |||
1223 | |||
1224 | } | ||
1225 | |||
1226 | state.type = _type; | ||
1227 | state.channel = _channel; | ||
1228 | } | ||
1229 | finally { | ||
1230 | } | ||
1231 | } | ||
1232 | // $ANTLR end "RULE_SL_COMMENT" | ||
1233 | |||
1234 | // $ANTLR start "RULE_WS" | ||
1235 | public final void mRULE_WS() throws RecognitionException { | ||
1236 | try { | ||
1237 | int _type = RULE_WS; | ||
1238 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1239 | // InternalCftLanguage.g:3538:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) | ||
1240 | // InternalCftLanguage.g:3538:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ | ||
1241 | { | ||
1242 | // InternalCftLanguage.g:3538:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ | ||
1243 | int cnt18=0; | ||
1244 | loop18: | ||
1245 | do { | ||
1246 | int alt18=2; | ||
1247 | int LA18_0 = input.LA(1); | ||
1248 | |||
1249 | if ( ((LA18_0>='\t' && LA18_0<='\n')||LA18_0=='\r'||LA18_0==' ') ) { | ||
1250 | alt18=1; | ||
1251 | } | ||
1252 | |||
1253 | |||
1254 | switch (alt18) { | ||
1255 | case 1 : | ||
1256 | // InternalCftLanguage.g: | ||
1257 | { | ||
1258 | if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) { | ||
1259 | input.consume(); | ||
1260 | |||
1261 | } | ||
1262 | else { | ||
1263 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1264 | recover(mse); | ||
1265 | throw mse;} | ||
1266 | |||
1267 | |||
1268 | } | ||
1269 | break; | ||
1270 | |||
1271 | default : | ||
1272 | if ( cnt18 >= 1 ) break loop18; | ||
1273 | EarlyExitException eee = | ||
1274 | new EarlyExitException(18, input); | ||
1275 | throw eee; | ||
1276 | } | ||
1277 | cnt18++; | ||
1278 | } while (true); | ||
1279 | |||
1280 | |||
1281 | } | ||
1282 | |||
1283 | state.type = _type; | ||
1284 | state.channel = _channel; | ||
1285 | } | ||
1286 | finally { | ||
1287 | } | ||
1288 | } | ||
1289 | // $ANTLR end "RULE_WS" | ||
1290 | |||
1291 | // $ANTLR start "RULE_ANY_OTHER" | ||
1292 | public final void mRULE_ANY_OTHER() throws RecognitionException { | ||
1293 | try { | ||
1294 | int _type = RULE_ANY_OTHER; | ||
1295 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1296 | // InternalCftLanguage.g:3540:16: ( . ) | ||
1297 | // InternalCftLanguage.g:3540:18: . | ||
1298 | { | ||
1299 | matchAny(); | ||
1300 | |||
1301 | } | ||
1302 | |||
1303 | state.type = _type; | ||
1304 | state.channel = _channel; | ||
1305 | } | ||
1306 | finally { | ||
1307 | } | ||
1308 | } | ||
1309 | // $ANTLR end "RULE_ANY_OTHER" | ||
1310 | |||
1311 | public void mTokens() throws RecognitionException { | ||
1312 | // InternalCftLanguage.g:1:8: ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | RULE_DOULBE | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER ) | ||
1313 | int alt19=34; | ||
1314 | alt19 = dfa19.predict(input); | ||
1315 | switch (alt19) { | ||
1316 | case 1 : | ||
1317 | // InternalCftLanguage.g:1:10: T__12 | ||
1318 | { | ||
1319 | mT__12(); | ||
1320 | |||
1321 | } | ||
1322 | break; | ||
1323 | case 2 : | ||
1324 | // InternalCftLanguage.g:1:16: T__13 | ||
1325 | { | ||
1326 | mT__13(); | ||
1327 | |||
1328 | } | ||
1329 | break; | ||
1330 | case 3 : | ||
1331 | // InternalCftLanguage.g:1:22: T__14 | ||
1332 | { | ||
1333 | mT__14(); | ||
1334 | |||
1335 | } | ||
1336 | break; | ||
1337 | case 4 : | ||
1338 | // InternalCftLanguage.g:1:28: T__15 | ||
1339 | { | ||
1340 | mT__15(); | ||
1341 | |||
1342 | } | ||
1343 | break; | ||
1344 | case 5 : | ||
1345 | // InternalCftLanguage.g:1:34: T__16 | ||
1346 | { | ||
1347 | mT__16(); | ||
1348 | |||
1349 | } | ||
1350 | break; | ||
1351 | case 6 : | ||
1352 | // InternalCftLanguage.g:1:40: T__17 | ||
1353 | { | ||
1354 | mT__17(); | ||
1355 | |||
1356 | } | ||
1357 | break; | ||
1358 | case 7 : | ||
1359 | // InternalCftLanguage.g:1:46: T__18 | ||
1360 | { | ||
1361 | mT__18(); | ||
1362 | |||
1363 | } | ||
1364 | break; | ||
1365 | case 8 : | ||
1366 | // InternalCftLanguage.g:1:52: T__19 | ||
1367 | { | ||
1368 | mT__19(); | ||
1369 | |||
1370 | } | ||
1371 | break; | ||
1372 | case 9 : | ||
1373 | // InternalCftLanguage.g:1:58: T__20 | ||
1374 | { | ||
1375 | mT__20(); | ||
1376 | |||
1377 | } | ||
1378 | break; | ||
1379 | case 10 : | ||
1380 | // InternalCftLanguage.g:1:64: T__21 | ||
1381 | { | ||
1382 | mT__21(); | ||
1383 | |||
1384 | } | ||
1385 | break; | ||
1386 | case 11 : | ||
1387 | // InternalCftLanguage.g:1:70: T__22 | ||
1388 | { | ||
1389 | mT__22(); | ||
1390 | |||
1391 | } | ||
1392 | break; | ||
1393 | case 12 : | ||
1394 | // InternalCftLanguage.g:1:76: T__23 | ||
1395 | { | ||
1396 | mT__23(); | ||
1397 | |||
1398 | } | ||
1399 | break; | ||
1400 | case 13 : | ||
1401 | // InternalCftLanguage.g:1:82: T__24 | ||
1402 | { | ||
1403 | mT__24(); | ||
1404 | |||
1405 | } | ||
1406 | break; | ||
1407 | case 14 : | ||
1408 | // InternalCftLanguage.g:1:88: T__25 | ||
1409 | { | ||
1410 | mT__25(); | ||
1411 | |||
1412 | } | ||
1413 | break; | ||
1414 | case 15 : | ||
1415 | // InternalCftLanguage.g:1:94: T__26 | ||
1416 | { | ||
1417 | mT__26(); | ||
1418 | |||
1419 | } | ||
1420 | break; | ||
1421 | case 16 : | ||
1422 | // InternalCftLanguage.g:1:100: T__27 | ||
1423 | { | ||
1424 | mT__27(); | ||
1425 | |||
1426 | } | ||
1427 | break; | ||
1428 | case 17 : | ||
1429 | // InternalCftLanguage.g:1:106: T__28 | ||
1430 | { | ||
1431 | mT__28(); | ||
1432 | |||
1433 | } | ||
1434 | break; | ||
1435 | case 18 : | ||
1436 | // InternalCftLanguage.g:1:112: T__29 | ||
1437 | { | ||
1438 | mT__29(); | ||
1439 | |||
1440 | } | ||
1441 | break; | ||
1442 | case 19 : | ||
1443 | // InternalCftLanguage.g:1:118: T__30 | ||
1444 | { | ||
1445 | mT__30(); | ||
1446 | |||
1447 | } | ||
1448 | break; | ||
1449 | case 20 : | ||
1450 | // InternalCftLanguage.g:1:124: T__31 | ||
1451 | { | ||
1452 | mT__31(); | ||
1453 | |||
1454 | } | ||
1455 | break; | ||
1456 | case 21 : | ||
1457 | // InternalCftLanguage.g:1:130: T__32 | ||
1458 | { | ||
1459 | mT__32(); | ||
1460 | |||
1461 | } | ||
1462 | break; | ||
1463 | case 22 : | ||
1464 | // InternalCftLanguage.g:1:136: T__33 | ||
1465 | { | ||
1466 | mT__33(); | ||
1467 | |||
1468 | } | ||
1469 | break; | ||
1470 | case 23 : | ||
1471 | // InternalCftLanguage.g:1:142: T__34 | ||
1472 | { | ||
1473 | mT__34(); | ||
1474 | |||
1475 | } | ||
1476 | break; | ||
1477 | case 24 : | ||
1478 | // InternalCftLanguage.g:1:148: T__35 | ||
1479 | { | ||
1480 | mT__35(); | ||
1481 | |||
1482 | } | ||
1483 | break; | ||
1484 | case 25 : | ||
1485 | // InternalCftLanguage.g:1:154: T__36 | ||
1486 | { | ||
1487 | mT__36(); | ||
1488 | |||
1489 | } | ||
1490 | break; | ||
1491 | case 26 : | ||
1492 | // InternalCftLanguage.g:1:160: T__37 | ||
1493 | { | ||
1494 | mT__37(); | ||
1495 | |||
1496 | } | ||
1497 | break; | ||
1498 | case 27 : | ||
1499 | // InternalCftLanguage.g:1:166: RULE_DOULBE | ||
1500 | { | ||
1501 | mRULE_DOULBE(); | ||
1502 | |||
1503 | } | ||
1504 | break; | ||
1505 | case 28 : | ||
1506 | // InternalCftLanguage.g:1:178: RULE_ID | ||
1507 | { | ||
1508 | mRULE_ID(); | ||
1509 | |||
1510 | } | ||
1511 | break; | ||
1512 | case 29 : | ||
1513 | // InternalCftLanguage.g:1:186: RULE_INT | ||
1514 | { | ||
1515 | mRULE_INT(); | ||
1516 | |||
1517 | } | ||
1518 | break; | ||
1519 | case 30 : | ||
1520 | // InternalCftLanguage.g:1:195: RULE_STRING | ||
1521 | { | ||
1522 | mRULE_STRING(); | ||
1523 | |||
1524 | } | ||
1525 | break; | ||
1526 | case 31 : | ||
1527 | // InternalCftLanguage.g:1:207: RULE_ML_COMMENT | ||
1528 | { | ||
1529 | mRULE_ML_COMMENT(); | ||
1530 | |||
1531 | } | ||
1532 | break; | ||
1533 | case 32 : | ||
1534 | // InternalCftLanguage.g:1:223: RULE_SL_COMMENT | ||
1535 | { | ||
1536 | mRULE_SL_COMMENT(); | ||
1537 | |||
1538 | } | ||
1539 | break; | ||
1540 | case 33 : | ||
1541 | // InternalCftLanguage.g:1:239: RULE_WS | ||
1542 | { | ||
1543 | mRULE_WS(); | ||
1544 | |||
1545 | } | ||
1546 | break; | ||
1547 | case 34 : | ||
1548 | // InternalCftLanguage.g:1:247: RULE_ANY_OTHER | ||
1549 | { | ||
1550 | mRULE_ANY_OTHER(); | ||
1551 | |||
1552 | } | ||
1553 | break; | ||
1554 | |||
1555 | } | ||
1556 | |||
1557 | } | ||
1558 | |||
1559 | |||
1560 | protected DFA7 dfa7 = new DFA7(this); | ||
1561 | protected DFA19 dfa19 = new DFA19(this); | ||
1562 | static final String DFA7_eotS = | ||
1563 | "\3\uffff\1\4\1\uffff"; | ||
1564 | static final String DFA7_eofS = | ||
1565 | "\5\uffff"; | ||
1566 | static final String DFA7_minS = | ||
1567 | "\1\56\1\60\1\uffff\1\60\1\uffff"; | ||
1568 | static final String DFA7_maxS = | ||
1569 | "\1\145\1\71\1\uffff\1\145\1\uffff"; | ||
1570 | static final String DFA7_acceptS = | ||
1571 | "\2\uffff\1\2\1\uffff\1\1"; | ||
1572 | static final String DFA7_specialS = | ||
1573 | "\5\uffff}>"; | ||
1574 | static final String[] DFA7_transitionS = { | ||
1575 | "\1\1\26\uffff\1\2\37\uffff\1\2", | ||
1576 | "\12\3", | ||
1577 | "", | ||
1578 | "\12\3\13\uffff\1\2\37\uffff\1\2", | ||
1579 | "" | ||
1580 | }; | ||
1581 | |||
1582 | static final short[] DFA7_eot = DFA.unpackEncodedString(DFA7_eotS); | ||
1583 | static final short[] DFA7_eof = DFA.unpackEncodedString(DFA7_eofS); | ||
1584 | static final char[] DFA7_min = DFA.unpackEncodedStringToUnsignedChars(DFA7_minS); | ||
1585 | static final char[] DFA7_max = DFA.unpackEncodedStringToUnsignedChars(DFA7_maxS); | ||
1586 | static final short[] DFA7_accept = DFA.unpackEncodedString(DFA7_acceptS); | ||
1587 | static final short[] DFA7_special = DFA.unpackEncodedString(DFA7_specialS); | ||
1588 | static final short[][] DFA7_transition; | ||
1589 | |||
1590 | static { | ||
1591 | int numStates = DFA7_transitionS.length; | ||
1592 | DFA7_transition = new short[numStates][]; | ||
1593 | for (int i=0; i<numStates; i++) { | ||
1594 | DFA7_transition[i] = DFA.unpackEncodedString(DFA7_transitionS[i]); | ||
1595 | } | ||
1596 | } | ||
1597 | |||
1598 | class DFA7 extends DFA { | ||
1599 | |||
1600 | public DFA7(BaseRecognizer recognizer) { | ||
1601 | this.recognizer = recognizer; | ||
1602 | this.decisionNumber = 7; | ||
1603 | this.eot = DFA7_eot; | ||
1604 | this.eof = DFA7_eof; | ||
1605 | this.min = DFA7_min; | ||
1606 | this.max = DFA7_max; | ||
1607 | this.accept = DFA7_accept; | ||
1608 | this.special = DFA7_special; | ||
1609 | this.transition = DFA7_transition; | ||
1610 | } | ||
1611 | public String getDescription() { | ||
1612 | return "3526:27: ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ )"; | ||
1613 | } | ||
1614 | } | ||
1615 | static final String DFA19_eotS = | ||
1616 | "\1\uffff\1\34\1\37\1\uffff\2\37\2\uffff\2\37\1\53\3\37\5\uffff\2\34\1\72\1\34\1\uffff\3\34\3\uffff\1\37\2\uffff\1\37\1\101\1\37\2\uffff\1\37\1\104\2\37\2\uffff\1\37\1\110\3\37\10\uffff\1\72\5\uffff\2\37\1\uffff\1\116\1\117\1\uffff\2\37\1\122\1\uffff\5\37\2\uffff\2\37\1\uffff\13\37\1\145\1\146\1\147\3\37\1\153\3\uffff\2\37\1\156\1\uffff\1\37\1\160\1\uffff\1\37\1\uffff\4\37\1\166\1\uffff"; | ||
1617 | static final String DFA19_eofS = | ||
1618 | "\167\uffff"; | ||
1619 | static final String DFA19_minS = | ||
1620 | "\1\0\1\75\1\141\1\uffff\1\155\1\146\2\uffff\1\162\1\141\1\76\1\156\1\157\1\141\5\uffff\1\135\1\75\1\56\1\101\1\uffff\2\0\1\52\3\uffff\1\143\2\uffff\1\160\1\60\1\164\2\uffff\1\164\1\60\1\155\1\157\2\uffff\1\144\1\60\1\141\2\160\10\uffff\1\56\5\uffff\1\153\1\157\1\uffff\2\60\1\uffff\1\142\1\153\1\60\1\uffff\1\156\1\154\1\160\1\141\1\162\2\uffff\1\144\1\165\1\uffff\1\163\1\145\1\151\1\147\1\164\1\141\1\160\1\146\1\166\1\156\1\145\3\60\1\157\1\145\1\147\1\60\3\uffff\1\162\1\154\1\60\1\uffff\1\155\1\60\1\uffff\1\141\1\uffff\1\164\1\151\1\157\1\156\1\60\1\uffff"; | ||
1621 | static final String DFA19_maxS = | ||
1622 | "\1\uffff\1\75\1\141\1\uffff\1\156\1\146\2\uffff\1\165\1\157\1\76\1\163\1\162\1\141\5\uffff\1\135\1\75\1\145\1\172\1\uffff\2\uffff\1\57\3\uffff\1\143\2\uffff\1\160\1\172\1\164\2\uffff\1\164\1\172\1\155\1\157\2\uffff\1\144\1\172\1\141\2\160\10\uffff\1\145\5\uffff\1\153\1\157\1\uffff\2\172\1\uffff\1\142\1\153\1\172\1\uffff\1\156\1\154\1\160\1\141\1\162\2\uffff\1\144\1\165\1\uffff\1\163\1\145\1\151\1\147\1\164\1\141\1\160\1\146\1\166\1\156\1\145\3\172\1\157\1\145\1\147\1\172\3\uffff\1\162\1\154\1\172\1\uffff\1\155\1\172\1\uffff\1\141\1\uffff\1\164\1\151\1\157\1\156\1\172\1\uffff"; | ||
1623 | static final String DFA19_acceptS = | ||
1624 | "\3\uffff\1\3\2\uffff\1\6\1\7\6\uffff\1\20\1\21\1\22\1\25\1\27\4\uffff\1\34\3\uffff\1\41\1\42\1\1\1\uffff\1\34\1\3\3\uffff\1\6\1\7\4\uffff\1\26\1\13\5\uffff\1\20\1\21\1\22\1\25\1\27\1\30\1\32\1\33\1\uffff\1\35\1\36\1\37\1\40\1\41\2\uffff\1\10\2\uffff\1\15\3\uffff\1\24\5\uffff\1\5\1\11\2\uffff\1\14\22\uffff\1\4\1\12\1\23\3\uffff\1\2\2\uffff\1\17\1\uffff\1\31\5\uffff\1\16"; | ||
1625 | static final String DFA19_specialS = | ||
1626 | "\1\2\27\uffff\1\1\1\0\135\uffff}>"; | ||
1627 | static final String[] DFA19_transitionS = { | ||
1628 | "\11\34\2\33\2\34\1\33\22\34\1\33\1\34\1\30\4\34\1\31\1\16\1\17\1\22\1\24\1\20\1\34\1\21\1\32\12\25\1\1\1\3\1\34\1\12\3\34\32\27\1\23\2\34\1\26\1\27\1\34\1\13\1\27\1\5\5\27\1\4\2\27\1\11\1\15\1\27\1\10\1\2\3\27\1\14\6\27\1\6\1\34\1\7\uff82\34", | ||
1629 | "\1\35", | ||
1630 | "\1\36", | ||
1631 | "", | ||
1632 | "\1\41\1\42", | ||
1633 | "\1\43", | ||
1634 | "", | ||
1635 | "", | ||
1636 | "\1\47\2\uffff\1\46", | ||
1637 | "\1\50\15\uffff\1\51", | ||
1638 | "\1\52", | ||
1639 | "\1\54\4\uffff\1\55", | ||
1640 | "\1\57\2\uffff\1\56", | ||
1641 | "\1\60", | ||
1642 | "", | ||
1643 | "", | ||
1644 | "", | ||
1645 | "", | ||
1646 | "", | ||
1647 | "\1\66", | ||
1648 | "\1\67", | ||
1649 | "\1\70\1\uffff\12\71\13\uffff\1\70\37\uffff\1\70", | ||
1650 | "\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1651 | "", | ||
1652 | "\0\73", | ||
1653 | "\0\73", | ||
1654 | "\1\74\4\uffff\1\75", | ||
1655 | "", | ||
1656 | "", | ||
1657 | "", | ||
1658 | "\1\77", | ||
1659 | "", | ||
1660 | "", | ||
1661 | "\1\100", | ||
1662 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1663 | "\1\102", | ||
1664 | "", | ||
1665 | "", | ||
1666 | "\1\103", | ||
1667 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1668 | "\1\105", | ||
1669 | "\1\106", | ||
1670 | "", | ||
1671 | "", | ||
1672 | "\1\107", | ||
1673 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1674 | "\1\111", | ||
1675 | "\1\112", | ||
1676 | "\1\113", | ||
1677 | "", | ||
1678 | "", | ||
1679 | "", | ||
1680 | "", | ||
1681 | "", | ||
1682 | "", | ||
1683 | "", | ||
1684 | "", | ||
1685 | "\1\70\1\uffff\12\71\13\uffff\1\70\37\uffff\1\70", | ||
1686 | "", | ||
1687 | "", | ||
1688 | "", | ||
1689 | "", | ||
1690 | "", | ||
1691 | "\1\114", | ||
1692 | "\1\115", | ||
1693 | "", | ||
1694 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1695 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1696 | "", | ||
1697 | "\1\120", | ||
1698 | "\1\121", | ||
1699 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1700 | "", | ||
1701 | "\1\123", | ||
1702 | "\1\124", | ||
1703 | "\1\125", | ||
1704 | "\1\126", | ||
1705 | "\1\127", | ||
1706 | "", | ||
1707 | "", | ||
1708 | "\1\130", | ||
1709 | "\1\131", | ||
1710 | "", | ||
1711 | "\1\132", | ||
1712 | "\1\133", | ||
1713 | "\1\134", | ||
1714 | "\1\135", | ||
1715 | "\1\136", | ||
1716 | "\1\137", | ||
1717 | "\1\140", | ||
1718 | "\1\141", | ||
1719 | "\1\142", | ||
1720 | "\1\143", | ||
1721 | "\1\144", | ||
1722 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1723 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1724 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1725 | "\1\150", | ||
1726 | "\1\151", | ||
1727 | "\1\152", | ||
1728 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1729 | "", | ||
1730 | "", | ||
1731 | "", | ||
1732 | "\1\154", | ||
1733 | "\1\155", | ||
1734 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1735 | "", | ||
1736 | "\1\157", | ||
1737 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1738 | "", | ||
1739 | "\1\161", | ||
1740 | "", | ||
1741 | "\1\162", | ||
1742 | "\1\163", | ||
1743 | "\1\164", | ||
1744 | "\1\165", | ||
1745 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1746 | "" | ||
1747 | }; | ||
1748 | |||
1749 | static final short[] DFA19_eot = DFA.unpackEncodedString(DFA19_eotS); | ||
1750 | static final short[] DFA19_eof = DFA.unpackEncodedString(DFA19_eofS); | ||
1751 | static final char[] DFA19_min = DFA.unpackEncodedStringToUnsignedChars(DFA19_minS); | ||
1752 | static final char[] DFA19_max = DFA.unpackEncodedStringToUnsignedChars(DFA19_maxS); | ||
1753 | static final short[] DFA19_accept = DFA.unpackEncodedString(DFA19_acceptS); | ||
1754 | static final short[] DFA19_special = DFA.unpackEncodedString(DFA19_specialS); | ||
1755 | static final short[][] DFA19_transition; | ||
1756 | |||
1757 | static { | ||
1758 | int numStates = DFA19_transitionS.length; | ||
1759 | DFA19_transition = new short[numStates][]; | ||
1760 | for (int i=0; i<numStates; i++) { | ||
1761 | DFA19_transition[i] = DFA.unpackEncodedString(DFA19_transitionS[i]); | ||
1762 | } | ||
1763 | } | ||
1764 | |||
1765 | class DFA19 extends DFA { | ||
1766 | |||
1767 | public DFA19(BaseRecognizer recognizer) { | ||
1768 | this.recognizer = recognizer; | ||
1769 | this.decisionNumber = 19; | ||
1770 | this.eot = DFA19_eot; | ||
1771 | this.eof = DFA19_eof; | ||
1772 | this.min = DFA19_min; | ||
1773 | this.max = DFA19_max; | ||
1774 | this.accept = DFA19_accept; | ||
1775 | this.special = DFA19_special; | ||
1776 | this.transition = DFA19_transition; | ||
1777 | } | ||
1778 | public String getDescription() { | ||
1779 | return "1:1: Tokens : ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | RULE_DOULBE | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER );"; | ||
1780 | } | ||
1781 | public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { | ||
1782 | IntStream input = _input; | ||
1783 | int _s = s; | ||
1784 | switch ( s ) { | ||
1785 | case 0 : | ||
1786 | int LA19_25 = input.LA(1); | ||
1787 | |||
1788 | s = -1; | ||
1789 | if ( ((LA19_25>='\u0000' && LA19_25<='\uFFFF')) ) {s = 59;} | ||
1790 | |||
1791 | else s = 28; | ||
1792 | |||
1793 | if ( s>=0 ) return s; | ||
1794 | break; | ||
1795 | case 1 : | ||
1796 | int LA19_24 = input.LA(1); | ||
1797 | |||
1798 | s = -1; | ||
1799 | if ( ((LA19_24>='\u0000' && LA19_24<='\uFFFF')) ) {s = 59;} | ||
1800 | |||
1801 | else s = 28; | ||
1802 | |||
1803 | if ( s>=0 ) return s; | ||
1804 | break; | ||
1805 | case 2 : | ||
1806 | int LA19_0 = input.LA(1); | ||
1807 | |||
1808 | s = -1; | ||
1809 | if ( (LA19_0==':') ) {s = 1;} | ||
1810 | |||
1811 | else if ( (LA19_0=='p') ) {s = 2;} | ||
1812 | |||
1813 | else if ( (LA19_0==';') ) {s = 3;} | ||
1814 | |||
1815 | else if ( (LA19_0=='i') ) {s = 4;} | ||
1816 | |||
1817 | else if ( (LA19_0=='c') ) {s = 5;} | ||
1818 | |||
1819 | else if ( (LA19_0=='{') ) {s = 6;} | ||
1820 | |||
1821 | else if ( (LA19_0=='}') ) {s = 7;} | ||
1822 | |||
1823 | else if ( (LA19_0=='o') ) {s = 8;} | ||
1824 | |||
1825 | else if ( (LA19_0=='l') ) {s = 9;} | ||
1826 | |||
1827 | else if ( (LA19_0=='=') ) {s = 10;} | ||
1828 | |||
1829 | else if ( (LA19_0=='a') ) {s = 11;} | ||
1830 | |||
1831 | else if ( (LA19_0=='t') ) {s = 12;} | ||
1832 | |||
1833 | else if ( (LA19_0=='m') ) {s = 13;} | ||
1834 | |||
1835 | else if ( (LA19_0=='(') ) {s = 14;} | ||
1836 | |||
1837 | else if ( (LA19_0==')') ) {s = 15;} | ||
1838 | |||
1839 | else if ( (LA19_0==',') ) {s = 16;} | ||
1840 | |||
1841 | else if ( (LA19_0=='.') ) {s = 17;} | ||
1842 | |||
1843 | else if ( (LA19_0=='*') ) {s = 18;} | ||
1844 | |||
1845 | else if ( (LA19_0=='[') ) {s = 19;} | ||
1846 | |||
1847 | else if ( (LA19_0=='+') ) {s = 20;} | ||
1848 | |||
1849 | else if ( ((LA19_0>='0' && LA19_0<='9')) ) {s = 21;} | ||
1850 | |||
1851 | else if ( (LA19_0=='^') ) {s = 22;} | ||
1852 | |||
1853 | else if ( ((LA19_0>='A' && LA19_0<='Z')||LA19_0=='_'||LA19_0=='b'||(LA19_0>='d' && LA19_0<='h')||(LA19_0>='j' && LA19_0<='k')||LA19_0=='n'||(LA19_0>='q' && LA19_0<='s')||(LA19_0>='u' && LA19_0<='z')) ) {s = 23;} | ||
1854 | |||
1855 | else if ( (LA19_0=='\"') ) {s = 24;} | ||
1856 | |||
1857 | else if ( (LA19_0=='\'') ) {s = 25;} | ||
1858 | |||
1859 | else if ( (LA19_0=='/') ) {s = 26;} | ||
1860 | |||
1861 | else if ( ((LA19_0>='\t' && LA19_0<='\n')||LA19_0=='\r'||LA19_0==' ') ) {s = 27;} | ||
1862 | |||
1863 | else if ( ((LA19_0>='\u0000' && LA19_0<='\b')||(LA19_0>='\u000B' && LA19_0<='\f')||(LA19_0>='\u000E' && LA19_0<='\u001F')||LA19_0=='!'||(LA19_0>='#' && LA19_0<='&')||LA19_0=='-'||LA19_0=='<'||(LA19_0>='>' && LA19_0<='@')||(LA19_0>='\\' && LA19_0<=']')||LA19_0=='`'||LA19_0=='|'||(LA19_0>='~' && LA19_0<='\uFFFF')) ) {s = 28;} | ||
1864 | |||
1865 | if ( s>=0 ) return s; | ||
1866 | break; | ||
1867 | } | ||
1868 | NoViableAltException nvae = | ||
1869 | new NoViableAltException(getDescription(), 19, _s, input); | ||
1870 | error(nvae); | ||
1871 | throw nvae; | ||
1872 | } | ||
1873 | } | ||
1874 | |||
1875 | |||
1876 | } \ No newline at end of file | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/contentassist/antlr/internal/InternalCftLanguageParser.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/contentassist/antlr/internal/InternalCftLanguageParser.java new file mode 100644 index 00000000..a12d9fd8 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/contentassist/antlr/internal/InternalCftLanguageParser.java | |||
@@ -0,0 +1,10617 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.faulttree.components.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.faulttree.components.services.CftLanguageGrammarAccess; | ||
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 InternalCftLanguageParser extends AbstractInternalContentAssistParser { | ||
24 | public static final String[] tokenNames = new String[] { | ||
25 | "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_DOULBE", "RULE_INT", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "':='", "'package'", "';'", "'import'", "'cft'", "'{'", "'}'", "'in'", "'out'", "'lambda'", "'='", "'and'", "'or'", "'transformation'", "'mapping'", "'('", "')'", "','", "'lookup'", "'as'", "'.'", "'=>'", "'*'", "'[]'", "'toplevel'", "'+='" | ||
26 | }; | ||
27 | public static final int RULE_STRING=7; | ||
28 | public static final int RULE_SL_COMMENT=9; | ||
29 | public static final int T__19=19; | ||
30 | public static final int T__15=15; | ||
31 | public static final int T__37=37; | ||
32 | public static final int T__16=16; | ||
33 | public static final int T__17=17; | ||
34 | public static final int T__18=18; | ||
35 | public static final int T__33=33; | ||
36 | public static final int T__12=12; | ||
37 | public static final int T__34=34; | ||
38 | public static final int T__13=13; | ||
39 | public static final int T__35=35; | ||
40 | public static final int T__14=14; | ||
41 | public static final int T__36=36; | ||
42 | public static final int EOF=-1; | ||
43 | public static final int T__30=30; | ||
44 | public static final int T__31=31; | ||
45 | public static final int T__32=32; | ||
46 | public static final int RULE_ID=4; | ||
47 | public static final int RULE_WS=10; | ||
48 | public static final int RULE_DOULBE=5; | ||
49 | public static final int RULE_ANY_OTHER=11; | ||
50 | public static final int T__26=26; | ||
51 | public static final int T__27=27; | ||
52 | public static final int T__28=28; | ||
53 | public static final int RULE_INT=6; | ||
54 | public static final int T__29=29; | ||
55 | public static final int T__22=22; | ||
56 | public static final int RULE_ML_COMMENT=8; | ||
57 | public static final int T__23=23; | ||
58 | public static final int T__24=24; | ||
59 | public static final int T__25=25; | ||
60 | public static final int T__20=20; | ||
61 | public static final int T__21=21; | ||
62 | |||
63 | // delegates | ||
64 | // delegators | ||
65 | |||
66 | |||
67 | public InternalCftLanguageParser(TokenStream input) { | ||
68 | this(input, new RecognizerSharedState()); | ||
69 | } | ||
70 | public InternalCftLanguageParser(TokenStream input, RecognizerSharedState state) { | ||
71 | super(input, state); | ||
72 | |||
73 | } | ||
74 | |||
75 | |||
76 | public String[] getTokenNames() { return InternalCftLanguageParser.tokenNames; } | ||
77 | public String getGrammarFileName() { return "InternalCftLanguage.g"; } | ||
78 | |||
79 | |||
80 | private CftLanguageGrammarAccess grammarAccess; | ||
81 | |||
82 | public void setGrammarAccess(CftLanguageGrammarAccess grammarAccess) { | ||
83 | this.grammarAccess = grammarAccess; | ||
84 | } | ||
85 | |||
86 | @Override | ||
87 | protected Grammar getGrammar() { | ||
88 | return grammarAccess.getGrammar(); | ||
89 | } | ||
90 | |||
91 | @Override | ||
92 | protected String getValueForTokenName(String tokenName) { | ||
93 | return tokenName; | ||
94 | } | ||
95 | |||
96 | |||
97 | |||
98 | // $ANTLR start "entryRuleCftModel" | ||
99 | // InternalCftLanguage.g:53:1: entryRuleCftModel : ruleCftModel EOF ; | ||
100 | public final void entryRuleCftModel() throws RecognitionException { | ||
101 | try { | ||
102 | // InternalCftLanguage.g:54:1: ( ruleCftModel EOF ) | ||
103 | // InternalCftLanguage.g:55:1: ruleCftModel EOF | ||
104 | { | ||
105 | before(grammarAccess.getCftModelRule()); | ||
106 | pushFollow(FOLLOW_1); | ||
107 | ruleCftModel(); | ||
108 | |||
109 | state._fsp--; | ||
110 | |||
111 | after(grammarAccess.getCftModelRule()); | ||
112 | match(input,EOF,FOLLOW_2); | ||
113 | |||
114 | } | ||
115 | |||
116 | } | ||
117 | catch (RecognitionException re) { | ||
118 | reportError(re); | ||
119 | recover(input,re); | ||
120 | } | ||
121 | finally { | ||
122 | } | ||
123 | return ; | ||
124 | } | ||
125 | // $ANTLR end "entryRuleCftModel" | ||
126 | |||
127 | |||
128 | // $ANTLR start "ruleCftModel" | ||
129 | // InternalCftLanguage.g:62:1: ruleCftModel : ( ( rule__CftModel__Group__0 ) ) ; | ||
130 | public final void ruleCftModel() throws RecognitionException { | ||
131 | |||
132 | int stackSize = keepStackSize(); | ||
133 | |||
134 | try { | ||
135 | // InternalCftLanguage.g:66:2: ( ( ( rule__CftModel__Group__0 ) ) ) | ||
136 | // InternalCftLanguage.g:67:2: ( ( rule__CftModel__Group__0 ) ) | ||
137 | { | ||
138 | // InternalCftLanguage.g:67:2: ( ( rule__CftModel__Group__0 ) ) | ||
139 | // InternalCftLanguage.g:68:3: ( rule__CftModel__Group__0 ) | ||
140 | { | ||
141 | before(grammarAccess.getCftModelAccess().getGroup()); | ||
142 | // InternalCftLanguage.g:69:3: ( rule__CftModel__Group__0 ) | ||
143 | // InternalCftLanguage.g:69:4: rule__CftModel__Group__0 | ||
144 | { | ||
145 | pushFollow(FOLLOW_2); | ||
146 | rule__CftModel__Group__0(); | ||
147 | |||
148 | state._fsp--; | ||
149 | |||
150 | |||
151 | } | ||
152 | |||
153 | after(grammarAccess.getCftModelAccess().getGroup()); | ||
154 | |||
155 | } | ||
156 | |||
157 | |||
158 | } | ||
159 | |||
160 | } | ||
161 | catch (RecognitionException re) { | ||
162 | reportError(re); | ||
163 | recover(input,re); | ||
164 | } | ||
165 | finally { | ||
166 | |||
167 | restoreStackSize(stackSize); | ||
168 | |||
169 | } | ||
170 | return ; | ||
171 | } | ||
172 | // $ANTLR end "ruleCftModel" | ||
173 | |||
174 | |||
175 | // $ANTLR start "entryRuleImportDeclaration" | ||
176 | // InternalCftLanguage.g:78:1: entryRuleImportDeclaration : ruleImportDeclaration EOF ; | ||
177 | public final void entryRuleImportDeclaration() throws RecognitionException { | ||
178 | try { | ||
179 | // InternalCftLanguage.g:79:1: ( ruleImportDeclaration EOF ) | ||
180 | // InternalCftLanguage.g:80:1: ruleImportDeclaration EOF | ||
181 | { | ||
182 | before(grammarAccess.getImportDeclarationRule()); | ||
183 | pushFollow(FOLLOW_1); | ||
184 | ruleImportDeclaration(); | ||
185 | |||
186 | state._fsp--; | ||
187 | |||
188 | after(grammarAccess.getImportDeclarationRule()); | ||
189 | match(input,EOF,FOLLOW_2); | ||
190 | |||
191 | } | ||
192 | |||
193 | } | ||
194 | catch (RecognitionException re) { | ||
195 | reportError(re); | ||
196 | recover(input,re); | ||
197 | } | ||
198 | finally { | ||
199 | } | ||
200 | return ; | ||
201 | } | ||
202 | // $ANTLR end "entryRuleImportDeclaration" | ||
203 | |||
204 | |||
205 | // $ANTLR start "ruleImportDeclaration" | ||
206 | // InternalCftLanguage.g:87:1: ruleImportDeclaration : ( ( rule__ImportDeclaration__Group__0 ) ) ; | ||
207 | public final void ruleImportDeclaration() throws RecognitionException { | ||
208 | |||
209 | int stackSize = keepStackSize(); | ||
210 | |||
211 | try { | ||
212 | // InternalCftLanguage.g:91:2: ( ( ( rule__ImportDeclaration__Group__0 ) ) ) | ||
213 | // InternalCftLanguage.g:92:2: ( ( rule__ImportDeclaration__Group__0 ) ) | ||
214 | { | ||
215 | // InternalCftLanguage.g:92:2: ( ( rule__ImportDeclaration__Group__0 ) ) | ||
216 | // InternalCftLanguage.g:93:3: ( rule__ImportDeclaration__Group__0 ) | ||
217 | { | ||
218 | before(grammarAccess.getImportDeclarationAccess().getGroup()); | ||
219 | // InternalCftLanguage.g:94:3: ( rule__ImportDeclaration__Group__0 ) | ||
220 | // InternalCftLanguage.g:94:4: rule__ImportDeclaration__Group__0 | ||
221 | { | ||
222 | pushFollow(FOLLOW_2); | ||
223 | rule__ImportDeclaration__Group__0(); | ||
224 | |||
225 | state._fsp--; | ||
226 | |||
227 | |||
228 | } | ||
229 | |||
230 | after(grammarAccess.getImportDeclarationAccess().getGroup()); | ||
231 | |||
232 | } | ||
233 | |||
234 | |||
235 | } | ||
236 | |||
237 | } | ||
238 | catch (RecognitionException re) { | ||
239 | reportError(re); | ||
240 | recover(input,re); | ||
241 | } | ||
242 | finally { | ||
243 | |||
244 | restoreStackSize(stackSize); | ||
245 | |||
246 | } | ||
247 | return ; | ||
248 | } | ||
249 | // $ANTLR end "ruleImportDeclaration" | ||
250 | |||
251 | |||
252 | // $ANTLR start "entryRuleComponentDefinition" | ||
253 | // InternalCftLanguage.g:103:1: entryRuleComponentDefinition : ruleComponentDefinition EOF ; | ||
254 | public final void entryRuleComponentDefinition() throws RecognitionException { | ||
255 | try { | ||
256 | // InternalCftLanguage.g:104:1: ( ruleComponentDefinition EOF ) | ||
257 | // InternalCftLanguage.g:105:1: ruleComponentDefinition EOF | ||
258 | { | ||
259 | before(grammarAccess.getComponentDefinitionRule()); | ||
260 | pushFollow(FOLLOW_1); | ||
261 | ruleComponentDefinition(); | ||
262 | |||
263 | state._fsp--; | ||
264 | |||
265 | after(grammarAccess.getComponentDefinitionRule()); | ||
266 | match(input,EOF,FOLLOW_2); | ||
267 | |||
268 | } | ||
269 | |||
270 | } | ||
271 | catch (RecognitionException re) { | ||
272 | reportError(re); | ||
273 | recover(input,re); | ||
274 | } | ||
275 | finally { | ||
276 | } | ||
277 | return ; | ||
278 | } | ||
279 | // $ANTLR end "entryRuleComponentDefinition" | ||
280 | |||
281 | |||
282 | // $ANTLR start "ruleComponentDefinition" | ||
283 | // InternalCftLanguage.g:112:1: ruleComponentDefinition : ( ( rule__ComponentDefinition__Group__0 ) ) ; | ||
284 | public final void ruleComponentDefinition() throws RecognitionException { | ||
285 | |||
286 | int stackSize = keepStackSize(); | ||
287 | |||
288 | try { | ||
289 | // InternalCftLanguage.g:116:2: ( ( ( rule__ComponentDefinition__Group__0 ) ) ) | ||
290 | // InternalCftLanguage.g:117:2: ( ( rule__ComponentDefinition__Group__0 ) ) | ||
291 | { | ||
292 | // InternalCftLanguage.g:117:2: ( ( rule__ComponentDefinition__Group__0 ) ) | ||
293 | // InternalCftLanguage.g:118:3: ( rule__ComponentDefinition__Group__0 ) | ||
294 | { | ||
295 | before(grammarAccess.getComponentDefinitionAccess().getGroup()); | ||
296 | // InternalCftLanguage.g:119:3: ( rule__ComponentDefinition__Group__0 ) | ||
297 | // InternalCftLanguage.g:119:4: rule__ComponentDefinition__Group__0 | ||
298 | { | ||
299 | pushFollow(FOLLOW_2); | ||
300 | rule__ComponentDefinition__Group__0(); | ||
301 | |||
302 | state._fsp--; | ||
303 | |||
304 | |||
305 | } | ||
306 | |||
307 | after(grammarAccess.getComponentDefinitionAccess().getGroup()); | ||
308 | |||
309 | } | ||
310 | |||
311 | |||
312 | } | ||
313 | |||
314 | } | ||
315 | catch (RecognitionException re) { | ||
316 | reportError(re); | ||
317 | recover(input,re); | ||
318 | } | ||
319 | finally { | ||
320 | |||
321 | restoreStackSize(stackSize); | ||
322 | |||
323 | } | ||
324 | return ; | ||
325 | } | ||
326 | // $ANTLR end "ruleComponentDefinition" | ||
327 | |||
328 | |||
329 | // $ANTLR start "entryRuleInputEvent" | ||
330 | // InternalCftLanguage.g:128:1: entryRuleInputEvent : ruleInputEvent EOF ; | ||
331 | public final void entryRuleInputEvent() throws RecognitionException { | ||
332 | try { | ||
333 | // InternalCftLanguage.g:129:1: ( ruleInputEvent EOF ) | ||
334 | // InternalCftLanguage.g:130:1: ruleInputEvent EOF | ||
335 | { | ||
336 | before(grammarAccess.getInputEventRule()); | ||
337 | pushFollow(FOLLOW_1); | ||
338 | ruleInputEvent(); | ||
339 | |||
340 | state._fsp--; | ||
341 | |||
342 | after(grammarAccess.getInputEventRule()); | ||
343 | match(input,EOF,FOLLOW_2); | ||
344 | |||
345 | } | ||
346 | |||
347 | } | ||
348 | catch (RecognitionException re) { | ||
349 | reportError(re); | ||
350 | recover(input,re); | ||
351 | } | ||
352 | finally { | ||
353 | } | ||
354 | return ; | ||
355 | } | ||
356 | // $ANTLR end "entryRuleInputEvent" | ||
357 | |||
358 | |||
359 | // $ANTLR start "ruleInputEvent" | ||
360 | // InternalCftLanguage.g:137:1: ruleInputEvent : ( ( rule__InputEvent__Group__0 ) ) ; | ||
361 | public final void ruleInputEvent() throws RecognitionException { | ||
362 | |||
363 | int stackSize = keepStackSize(); | ||
364 | |||
365 | try { | ||
366 | // InternalCftLanguage.g:141:2: ( ( ( rule__InputEvent__Group__0 ) ) ) | ||
367 | // InternalCftLanguage.g:142:2: ( ( rule__InputEvent__Group__0 ) ) | ||
368 | { | ||
369 | // InternalCftLanguage.g:142:2: ( ( rule__InputEvent__Group__0 ) ) | ||
370 | // InternalCftLanguage.g:143:3: ( rule__InputEvent__Group__0 ) | ||
371 | { | ||
372 | before(grammarAccess.getInputEventAccess().getGroup()); | ||
373 | // InternalCftLanguage.g:144:3: ( rule__InputEvent__Group__0 ) | ||
374 | // InternalCftLanguage.g:144:4: rule__InputEvent__Group__0 | ||
375 | { | ||
376 | pushFollow(FOLLOW_2); | ||
377 | rule__InputEvent__Group__0(); | ||
378 | |||
379 | state._fsp--; | ||
380 | |||
381 | |||
382 | } | ||
383 | |||
384 | after(grammarAccess.getInputEventAccess().getGroup()); | ||
385 | |||
386 | } | ||
387 | |||
388 | |||
389 | } | ||
390 | |||
391 | } | ||
392 | catch (RecognitionException re) { | ||
393 | reportError(re); | ||
394 | recover(input,re); | ||
395 | } | ||
396 | finally { | ||
397 | |||
398 | restoreStackSize(stackSize); | ||
399 | |||
400 | } | ||
401 | return ; | ||
402 | } | ||
403 | // $ANTLR end "ruleInputEvent" | ||
404 | |||
405 | |||
406 | // $ANTLR start "entryRuleEventDefinition" | ||
407 | // InternalCftLanguage.g:153:1: entryRuleEventDefinition : ruleEventDefinition EOF ; | ||
408 | public final void entryRuleEventDefinition() throws RecognitionException { | ||
409 | try { | ||
410 | // InternalCftLanguage.g:154:1: ( ruleEventDefinition EOF ) | ||
411 | // InternalCftLanguage.g:155:1: ruleEventDefinition EOF | ||
412 | { | ||
413 | before(grammarAccess.getEventDefinitionRule()); | ||
414 | pushFollow(FOLLOW_1); | ||
415 | ruleEventDefinition(); | ||
416 | |||
417 | state._fsp--; | ||
418 | |||
419 | after(grammarAccess.getEventDefinitionRule()); | ||
420 | match(input,EOF,FOLLOW_2); | ||
421 | |||
422 | } | ||
423 | |||
424 | } | ||
425 | catch (RecognitionException re) { | ||
426 | reportError(re); | ||
427 | recover(input,re); | ||
428 | } | ||
429 | finally { | ||
430 | } | ||
431 | return ; | ||
432 | } | ||
433 | // $ANTLR end "entryRuleEventDefinition" | ||
434 | |||
435 | |||
436 | // $ANTLR start "ruleEventDefinition" | ||
437 | // InternalCftLanguage.g:162:1: ruleEventDefinition : ( ( rule__EventDefinition__Alternatives ) ) ; | ||
438 | public final void ruleEventDefinition() throws RecognitionException { | ||
439 | |||
440 | int stackSize = keepStackSize(); | ||
441 | |||
442 | try { | ||
443 | // InternalCftLanguage.g:166:2: ( ( ( rule__EventDefinition__Alternatives ) ) ) | ||
444 | // InternalCftLanguage.g:167:2: ( ( rule__EventDefinition__Alternatives ) ) | ||
445 | { | ||
446 | // InternalCftLanguage.g:167:2: ( ( rule__EventDefinition__Alternatives ) ) | ||
447 | // InternalCftLanguage.g:168:3: ( rule__EventDefinition__Alternatives ) | ||
448 | { | ||
449 | before(grammarAccess.getEventDefinitionAccess().getAlternatives()); | ||
450 | // InternalCftLanguage.g:169:3: ( rule__EventDefinition__Alternatives ) | ||
451 | // InternalCftLanguage.g:169:4: rule__EventDefinition__Alternatives | ||
452 | { | ||
453 | pushFollow(FOLLOW_2); | ||
454 | rule__EventDefinition__Alternatives(); | ||
455 | |||
456 | state._fsp--; | ||
457 | |||
458 | |||
459 | } | ||
460 | |||
461 | after(grammarAccess.getEventDefinitionAccess().getAlternatives()); | ||
462 | |||
463 | } | ||
464 | |||
465 | |||
466 | } | ||
467 | |||
468 | } | ||
469 | catch (RecognitionException re) { | ||
470 | reportError(re); | ||
471 | recover(input,re); | ||
472 | } | ||
473 | finally { | ||
474 | |||
475 | restoreStackSize(stackSize); | ||
476 | |||
477 | } | ||
478 | return ; | ||
479 | } | ||
480 | // $ANTLR end "ruleEventDefinition" | ||
481 | |||
482 | |||
483 | // $ANTLR start "entryRuleBasicEventDefinition" | ||
484 | // InternalCftLanguage.g:178:1: entryRuleBasicEventDefinition : ruleBasicEventDefinition EOF ; | ||
485 | public final void entryRuleBasicEventDefinition() throws RecognitionException { | ||
486 | try { | ||
487 | // InternalCftLanguage.g:179:1: ( ruleBasicEventDefinition EOF ) | ||
488 | // InternalCftLanguage.g:180:1: ruleBasicEventDefinition EOF | ||
489 | { | ||
490 | before(grammarAccess.getBasicEventDefinitionRule()); | ||
491 | pushFollow(FOLLOW_1); | ||
492 | ruleBasicEventDefinition(); | ||
493 | |||
494 | state._fsp--; | ||
495 | |||
496 | after(grammarAccess.getBasicEventDefinitionRule()); | ||
497 | match(input,EOF,FOLLOW_2); | ||
498 | |||
499 | } | ||
500 | |||
501 | } | ||
502 | catch (RecognitionException re) { | ||
503 | reportError(re); | ||
504 | recover(input,re); | ||
505 | } | ||
506 | finally { | ||
507 | } | ||
508 | return ; | ||
509 | } | ||
510 | // $ANTLR end "entryRuleBasicEventDefinition" | ||
511 | |||
512 | |||
513 | // $ANTLR start "ruleBasicEventDefinition" | ||
514 | // InternalCftLanguage.g:187:1: ruleBasicEventDefinition : ( ( rule__BasicEventDefinition__Group__0 ) ) ; | ||
515 | public final void ruleBasicEventDefinition() throws RecognitionException { | ||
516 | |||
517 | int stackSize = keepStackSize(); | ||
518 | |||
519 | try { | ||
520 | // InternalCftLanguage.g:191:2: ( ( ( rule__BasicEventDefinition__Group__0 ) ) ) | ||
521 | // InternalCftLanguage.g:192:2: ( ( rule__BasicEventDefinition__Group__0 ) ) | ||
522 | { | ||
523 | // InternalCftLanguage.g:192:2: ( ( rule__BasicEventDefinition__Group__0 ) ) | ||
524 | // InternalCftLanguage.g:193:3: ( rule__BasicEventDefinition__Group__0 ) | ||
525 | { | ||
526 | before(grammarAccess.getBasicEventDefinitionAccess().getGroup()); | ||
527 | // InternalCftLanguage.g:194:3: ( rule__BasicEventDefinition__Group__0 ) | ||
528 | // InternalCftLanguage.g:194:4: rule__BasicEventDefinition__Group__0 | ||
529 | { | ||
530 | pushFollow(FOLLOW_2); | ||
531 | rule__BasicEventDefinition__Group__0(); | ||
532 | |||
533 | state._fsp--; | ||
534 | |||
535 | |||
536 | } | ||
537 | |||
538 | after(grammarAccess.getBasicEventDefinitionAccess().getGroup()); | ||
539 | |||
540 | } | ||
541 | |||
542 | |||
543 | } | ||
544 | |||
545 | } | ||
546 | catch (RecognitionException re) { | ||
547 | reportError(re); | ||
548 | recover(input,re); | ||
549 | } | ||
550 | finally { | ||
551 | |||
552 | restoreStackSize(stackSize); | ||
553 | |||
554 | } | ||
555 | return ; | ||
556 | } | ||
557 | // $ANTLR end "ruleBasicEventDefinition" | ||
558 | |||
559 | |||
560 | // $ANTLR start "entryRuleGateDefinition" | ||
561 | // InternalCftLanguage.g:203:1: entryRuleGateDefinition : ruleGateDefinition EOF ; | ||
562 | public final void entryRuleGateDefinition() throws RecognitionException { | ||
563 | try { | ||
564 | // InternalCftLanguage.g:204:1: ( ruleGateDefinition EOF ) | ||
565 | // InternalCftLanguage.g:205:1: ruleGateDefinition EOF | ||
566 | { | ||
567 | before(grammarAccess.getGateDefinitionRule()); | ||
568 | pushFollow(FOLLOW_1); | ||
569 | ruleGateDefinition(); | ||
570 | |||
571 | state._fsp--; | ||
572 | |||
573 | after(grammarAccess.getGateDefinitionRule()); | ||
574 | match(input,EOF,FOLLOW_2); | ||
575 | |||
576 | } | ||
577 | |||
578 | } | ||
579 | catch (RecognitionException re) { | ||
580 | reportError(re); | ||
581 | recover(input,re); | ||
582 | } | ||
583 | finally { | ||
584 | } | ||
585 | return ; | ||
586 | } | ||
587 | // $ANTLR end "entryRuleGateDefinition" | ||
588 | |||
589 | |||
590 | // $ANTLR start "ruleGateDefinition" | ||
591 | // InternalCftLanguage.g:212:1: ruleGateDefinition : ( ( rule__GateDefinition__Alternatives ) ) ; | ||
592 | public final void ruleGateDefinition() throws RecognitionException { | ||
593 | |||
594 | int stackSize = keepStackSize(); | ||
595 | |||
596 | try { | ||
597 | // InternalCftLanguage.g:216:2: ( ( ( rule__GateDefinition__Alternatives ) ) ) | ||
598 | // InternalCftLanguage.g:217:2: ( ( rule__GateDefinition__Alternatives ) ) | ||
599 | { | ||
600 | // InternalCftLanguage.g:217:2: ( ( rule__GateDefinition__Alternatives ) ) | ||
601 | // InternalCftLanguage.g:218:3: ( rule__GateDefinition__Alternatives ) | ||
602 | { | ||
603 | before(grammarAccess.getGateDefinitionAccess().getAlternatives()); | ||
604 | // InternalCftLanguage.g:219:3: ( rule__GateDefinition__Alternatives ) | ||
605 | // InternalCftLanguage.g:219:4: rule__GateDefinition__Alternatives | ||
606 | { | ||
607 | pushFollow(FOLLOW_2); | ||
608 | rule__GateDefinition__Alternatives(); | ||
609 | |||
610 | state._fsp--; | ||
611 | |||
612 | |||
613 | } | ||
614 | |||
615 | after(grammarAccess.getGateDefinitionAccess().getAlternatives()); | ||
616 | |||
617 | } | ||
618 | |||
619 | |||
620 | } | ||
621 | |||
622 | } | ||
623 | catch (RecognitionException re) { | ||
624 | reportError(re); | ||
625 | recover(input,re); | ||
626 | } | ||
627 | finally { | ||
628 | |||
629 | restoreStackSize(stackSize); | ||
630 | |||
631 | } | ||
632 | return ; | ||
633 | } | ||
634 | // $ANTLR end "ruleGateDefinition" | ||
635 | |||
636 | |||
637 | // $ANTLR start "entryRuleAndGate" | ||
638 | // InternalCftLanguage.g:228:1: entryRuleAndGate : ruleAndGate EOF ; | ||
639 | public final void entryRuleAndGate() throws RecognitionException { | ||
640 | try { | ||
641 | // InternalCftLanguage.g:229:1: ( ruleAndGate EOF ) | ||
642 | // InternalCftLanguage.g:230:1: ruleAndGate EOF | ||
643 | { | ||
644 | before(grammarAccess.getAndGateRule()); | ||
645 | pushFollow(FOLLOW_1); | ||
646 | ruleAndGate(); | ||
647 | |||
648 | state._fsp--; | ||
649 | |||
650 | after(grammarAccess.getAndGateRule()); | ||
651 | match(input,EOF,FOLLOW_2); | ||
652 | |||
653 | } | ||
654 | |||
655 | } | ||
656 | catch (RecognitionException re) { | ||
657 | reportError(re); | ||
658 | recover(input,re); | ||
659 | } | ||
660 | finally { | ||
661 | } | ||
662 | return ; | ||
663 | } | ||
664 | // $ANTLR end "entryRuleAndGate" | ||
665 | |||
666 | |||
667 | // $ANTLR start "ruleAndGate" | ||
668 | // InternalCftLanguage.g:237:1: ruleAndGate : ( ( rule__AndGate__Group__0 ) ) ; | ||
669 | public final void ruleAndGate() throws RecognitionException { | ||
670 | |||
671 | int stackSize = keepStackSize(); | ||
672 | |||
673 | try { | ||
674 | // InternalCftLanguage.g:241:2: ( ( ( rule__AndGate__Group__0 ) ) ) | ||
675 | // InternalCftLanguage.g:242:2: ( ( rule__AndGate__Group__0 ) ) | ||
676 | { | ||
677 | // InternalCftLanguage.g:242:2: ( ( rule__AndGate__Group__0 ) ) | ||
678 | // InternalCftLanguage.g:243:3: ( rule__AndGate__Group__0 ) | ||
679 | { | ||
680 | before(grammarAccess.getAndGateAccess().getGroup()); | ||
681 | // InternalCftLanguage.g:244:3: ( rule__AndGate__Group__0 ) | ||
682 | // InternalCftLanguage.g:244:4: rule__AndGate__Group__0 | ||
683 | { | ||
684 | pushFollow(FOLLOW_2); | ||
685 | rule__AndGate__Group__0(); | ||
686 | |||
687 | state._fsp--; | ||
688 | |||
689 | |||
690 | } | ||
691 | |||
692 | after(grammarAccess.getAndGateAccess().getGroup()); | ||
693 | |||
694 | } | ||
695 | |||
696 | |||
697 | } | ||
698 | |||
699 | } | ||
700 | catch (RecognitionException re) { | ||
701 | reportError(re); | ||
702 | recover(input,re); | ||
703 | } | ||
704 | finally { | ||
705 | |||
706 | restoreStackSize(stackSize); | ||
707 | |||
708 | } | ||
709 | return ; | ||
710 | } | ||
711 | // $ANTLR end "ruleAndGate" | ||
712 | |||
713 | |||
714 | // $ANTLR start "entryRuleOrGate" | ||
715 | // InternalCftLanguage.g:253:1: entryRuleOrGate : ruleOrGate EOF ; | ||
716 | public final void entryRuleOrGate() throws RecognitionException { | ||
717 | try { | ||
718 | // InternalCftLanguage.g:254:1: ( ruleOrGate EOF ) | ||
719 | // InternalCftLanguage.g:255:1: ruleOrGate EOF | ||
720 | { | ||
721 | before(grammarAccess.getOrGateRule()); | ||
722 | pushFollow(FOLLOW_1); | ||
723 | ruleOrGate(); | ||
724 | |||
725 | state._fsp--; | ||
726 | |||
727 | after(grammarAccess.getOrGateRule()); | ||
728 | match(input,EOF,FOLLOW_2); | ||
729 | |||
730 | } | ||
731 | |||
732 | } | ||
733 | catch (RecognitionException re) { | ||
734 | reportError(re); | ||
735 | recover(input,re); | ||
736 | } | ||
737 | finally { | ||
738 | } | ||
739 | return ; | ||
740 | } | ||
741 | // $ANTLR end "entryRuleOrGate" | ||
742 | |||
743 | |||
744 | // $ANTLR start "ruleOrGate" | ||
745 | // InternalCftLanguage.g:262:1: ruleOrGate : ( ( rule__OrGate__Group__0 ) ) ; | ||
746 | public final void ruleOrGate() throws RecognitionException { | ||
747 | |||
748 | int stackSize = keepStackSize(); | ||
749 | |||
750 | try { | ||
751 | // InternalCftLanguage.g:266:2: ( ( ( rule__OrGate__Group__0 ) ) ) | ||
752 | // InternalCftLanguage.g:267:2: ( ( rule__OrGate__Group__0 ) ) | ||
753 | { | ||
754 | // InternalCftLanguage.g:267:2: ( ( rule__OrGate__Group__0 ) ) | ||
755 | // InternalCftLanguage.g:268:3: ( rule__OrGate__Group__0 ) | ||
756 | { | ||
757 | before(grammarAccess.getOrGateAccess().getGroup()); | ||
758 | // InternalCftLanguage.g:269:3: ( rule__OrGate__Group__0 ) | ||
759 | // InternalCftLanguage.g:269:4: rule__OrGate__Group__0 | ||
760 | { | ||
761 | pushFollow(FOLLOW_2); | ||
762 | rule__OrGate__Group__0(); | ||
763 | |||
764 | state._fsp--; | ||
765 | |||
766 | |||
767 | } | ||
768 | |||
769 | after(grammarAccess.getOrGateAccess().getGroup()); | ||
770 | |||
771 | } | ||
772 | |||
773 | |||
774 | } | ||
775 | |||
776 | } | ||
777 | catch (RecognitionException re) { | ||
778 | reportError(re); | ||
779 | recover(input,re); | ||
780 | } | ||
781 | finally { | ||
782 | |||
783 | restoreStackSize(stackSize); | ||
784 | |||
785 | } | ||
786 | return ; | ||
787 | } | ||
788 | // $ANTLR end "ruleOrGate" | ||
789 | |||
790 | |||
791 | // $ANTLR start "entryRuleTransformationDefinition" | ||
792 | // InternalCftLanguage.g:278:1: entryRuleTransformationDefinition : ruleTransformationDefinition EOF ; | ||
793 | public final void entryRuleTransformationDefinition() throws RecognitionException { | ||
794 | try { | ||
795 | // InternalCftLanguage.g:279:1: ( ruleTransformationDefinition EOF ) | ||
796 | // InternalCftLanguage.g:280:1: ruleTransformationDefinition EOF | ||
797 | { | ||
798 | before(grammarAccess.getTransformationDefinitionRule()); | ||
799 | pushFollow(FOLLOW_1); | ||
800 | ruleTransformationDefinition(); | ||
801 | |||
802 | state._fsp--; | ||
803 | |||
804 | after(grammarAccess.getTransformationDefinitionRule()); | ||
805 | match(input,EOF,FOLLOW_2); | ||
806 | |||
807 | } | ||
808 | |||
809 | } | ||
810 | catch (RecognitionException re) { | ||
811 | reportError(re); | ||
812 | recover(input,re); | ||
813 | } | ||
814 | finally { | ||
815 | } | ||
816 | return ; | ||
817 | } | ||
818 | // $ANTLR end "entryRuleTransformationDefinition" | ||
819 | |||
820 | |||
821 | // $ANTLR start "ruleTransformationDefinition" | ||
822 | // InternalCftLanguage.g:287:1: ruleTransformationDefinition : ( ( rule__TransformationDefinition__Group__0 ) ) ; | ||
823 | public final void ruleTransformationDefinition() throws RecognitionException { | ||
824 | |||
825 | int stackSize = keepStackSize(); | ||
826 | |||
827 | try { | ||
828 | // InternalCftLanguage.g:291:2: ( ( ( rule__TransformationDefinition__Group__0 ) ) ) | ||
829 | // InternalCftLanguage.g:292:2: ( ( rule__TransformationDefinition__Group__0 ) ) | ||
830 | { | ||
831 | // InternalCftLanguage.g:292:2: ( ( rule__TransformationDefinition__Group__0 ) ) | ||
832 | // InternalCftLanguage.g:293:3: ( rule__TransformationDefinition__Group__0 ) | ||
833 | { | ||
834 | before(grammarAccess.getTransformationDefinitionAccess().getGroup()); | ||
835 | // InternalCftLanguage.g:294:3: ( rule__TransformationDefinition__Group__0 ) | ||
836 | // InternalCftLanguage.g:294:4: rule__TransformationDefinition__Group__0 | ||
837 | { | ||
838 | pushFollow(FOLLOW_2); | ||
839 | rule__TransformationDefinition__Group__0(); | ||
840 | |||
841 | state._fsp--; | ||
842 | |||
843 | |||
844 | } | ||
845 | |||
846 | after(grammarAccess.getTransformationDefinitionAccess().getGroup()); | ||
847 | |||
848 | } | ||
849 | |||
850 | |||
851 | } | ||
852 | |||
853 | } | ||
854 | catch (RecognitionException re) { | ||
855 | reportError(re); | ||
856 | recover(input,re); | ||
857 | } | ||
858 | finally { | ||
859 | |||
860 | restoreStackSize(stackSize); | ||
861 | |||
862 | } | ||
863 | return ; | ||
864 | } | ||
865 | // $ANTLR end "ruleTransformationDefinition" | ||
866 | |||
867 | |||
868 | // $ANTLR start "entryRuleMappingDefinition" | ||
869 | // InternalCftLanguage.g:303:1: entryRuleMappingDefinition : ruleMappingDefinition EOF ; | ||
870 | public final void entryRuleMappingDefinition() throws RecognitionException { | ||
871 | try { | ||
872 | // InternalCftLanguage.g:304:1: ( ruleMappingDefinition EOF ) | ||
873 | // InternalCftLanguage.g:305:1: ruleMappingDefinition EOF | ||
874 | { | ||
875 | before(grammarAccess.getMappingDefinitionRule()); | ||
876 | pushFollow(FOLLOW_1); | ||
877 | ruleMappingDefinition(); | ||
878 | |||
879 | state._fsp--; | ||
880 | |||
881 | after(grammarAccess.getMappingDefinitionRule()); | ||
882 | match(input,EOF,FOLLOW_2); | ||
883 | |||
884 | } | ||
885 | |||
886 | } | ||
887 | catch (RecognitionException re) { | ||
888 | reportError(re); | ||
889 | recover(input,re); | ||
890 | } | ||
891 | finally { | ||
892 | } | ||
893 | return ; | ||
894 | } | ||
895 | // $ANTLR end "entryRuleMappingDefinition" | ||
896 | |||
897 | |||
898 | // $ANTLR start "ruleMappingDefinition" | ||
899 | // InternalCftLanguage.g:312:1: ruleMappingDefinition : ( ( rule__MappingDefinition__Group__0 ) ) ; | ||
900 | public final void ruleMappingDefinition() throws RecognitionException { | ||
901 | |||
902 | int stackSize = keepStackSize(); | ||
903 | |||
904 | try { | ||
905 | // InternalCftLanguage.g:316:2: ( ( ( rule__MappingDefinition__Group__0 ) ) ) | ||
906 | // InternalCftLanguage.g:317:2: ( ( rule__MappingDefinition__Group__0 ) ) | ||
907 | { | ||
908 | // InternalCftLanguage.g:317:2: ( ( rule__MappingDefinition__Group__0 ) ) | ||
909 | // InternalCftLanguage.g:318:3: ( rule__MappingDefinition__Group__0 ) | ||
910 | { | ||
911 | before(grammarAccess.getMappingDefinitionAccess().getGroup()); | ||
912 | // InternalCftLanguage.g:319:3: ( rule__MappingDefinition__Group__0 ) | ||
913 | // InternalCftLanguage.g:319:4: rule__MappingDefinition__Group__0 | ||
914 | { | ||
915 | pushFollow(FOLLOW_2); | ||
916 | rule__MappingDefinition__Group__0(); | ||
917 | |||
918 | state._fsp--; | ||
919 | |||
920 | |||
921 | } | ||
922 | |||
923 | after(grammarAccess.getMappingDefinitionAccess().getGroup()); | ||
924 | |||
925 | } | ||
926 | |||
927 | |||
928 | } | ||
929 | |||
930 | } | ||
931 | catch (RecognitionException re) { | ||
932 | reportError(re); | ||
933 | recover(input,re); | ||
934 | } | ||
935 | finally { | ||
936 | |||
937 | restoreStackSize(stackSize); | ||
938 | |||
939 | } | ||
940 | return ; | ||
941 | } | ||
942 | // $ANTLR end "ruleMappingDefinition" | ||
943 | |||
944 | |||
945 | // $ANTLR start "entryRuleMappingParameter" | ||
946 | // InternalCftLanguage.g:328:1: entryRuleMappingParameter : ruleMappingParameter EOF ; | ||
947 | public final void entryRuleMappingParameter() throws RecognitionException { | ||
948 | try { | ||
949 | // InternalCftLanguage.g:329:1: ( ruleMappingParameter EOF ) | ||
950 | // InternalCftLanguage.g:330:1: ruleMappingParameter EOF | ||
951 | { | ||
952 | before(grammarAccess.getMappingParameterRule()); | ||
953 | pushFollow(FOLLOW_1); | ||
954 | ruleMappingParameter(); | ||
955 | |||
956 | state._fsp--; | ||
957 | |||
958 | after(grammarAccess.getMappingParameterRule()); | ||
959 | match(input,EOF,FOLLOW_2); | ||
960 | |||
961 | } | ||
962 | |||
963 | } | ||
964 | catch (RecognitionException re) { | ||
965 | reportError(re); | ||
966 | recover(input,re); | ||
967 | } | ||
968 | finally { | ||
969 | } | ||
970 | return ; | ||
971 | } | ||
972 | // $ANTLR end "entryRuleMappingParameter" | ||
973 | |||
974 | |||
975 | // $ANTLR start "ruleMappingParameter" | ||
976 | // InternalCftLanguage.g:337:1: ruleMappingParameter : ( ( rule__MappingParameter__NameAssignment ) ) ; | ||
977 | public final void ruleMappingParameter() throws RecognitionException { | ||
978 | |||
979 | int stackSize = keepStackSize(); | ||
980 | |||
981 | try { | ||
982 | // InternalCftLanguage.g:341:2: ( ( ( rule__MappingParameter__NameAssignment ) ) ) | ||
983 | // InternalCftLanguage.g:342:2: ( ( rule__MappingParameter__NameAssignment ) ) | ||
984 | { | ||
985 | // InternalCftLanguage.g:342:2: ( ( rule__MappingParameter__NameAssignment ) ) | ||
986 | // InternalCftLanguage.g:343:3: ( rule__MappingParameter__NameAssignment ) | ||
987 | { | ||
988 | before(grammarAccess.getMappingParameterAccess().getNameAssignment()); | ||
989 | // InternalCftLanguage.g:344:3: ( rule__MappingParameter__NameAssignment ) | ||
990 | // InternalCftLanguage.g:344:4: rule__MappingParameter__NameAssignment | ||
991 | { | ||
992 | pushFollow(FOLLOW_2); | ||
993 | rule__MappingParameter__NameAssignment(); | ||
994 | |||
995 | state._fsp--; | ||
996 | |||
997 | |||
998 | } | ||
999 | |||
1000 | after(grammarAccess.getMappingParameterAccess().getNameAssignment()); | ||
1001 | |||
1002 | } | ||
1003 | |||
1004 | |||
1005 | } | ||
1006 | |||
1007 | } | ||
1008 | catch (RecognitionException re) { | ||
1009 | reportError(re); | ||
1010 | recover(input,re); | ||
1011 | } | ||
1012 | finally { | ||
1013 | |||
1014 | restoreStackSize(stackSize); | ||
1015 | |||
1016 | } | ||
1017 | return ; | ||
1018 | } | ||
1019 | // $ANTLR end "ruleMappingParameter" | ||
1020 | |||
1021 | |||
1022 | // $ANTLR start "entryRuleLookupDefinition" | ||
1023 | // InternalCftLanguage.g:353:1: entryRuleLookupDefinition : ruleLookupDefinition EOF ; | ||
1024 | public final void entryRuleLookupDefinition() throws RecognitionException { | ||
1025 | try { | ||
1026 | // InternalCftLanguage.g:354:1: ( ruleLookupDefinition EOF ) | ||
1027 | // InternalCftLanguage.g:355:1: ruleLookupDefinition EOF | ||
1028 | { | ||
1029 | before(grammarAccess.getLookupDefinitionRule()); | ||
1030 | pushFollow(FOLLOW_1); | ||
1031 | ruleLookupDefinition(); | ||
1032 | |||
1033 | state._fsp--; | ||
1034 | |||
1035 | after(grammarAccess.getLookupDefinitionRule()); | ||
1036 | match(input,EOF,FOLLOW_2); | ||
1037 | |||
1038 | } | ||
1039 | |||
1040 | } | ||
1041 | catch (RecognitionException re) { | ||
1042 | reportError(re); | ||
1043 | recover(input,re); | ||
1044 | } | ||
1045 | finally { | ||
1046 | } | ||
1047 | return ; | ||
1048 | } | ||
1049 | // $ANTLR end "entryRuleLookupDefinition" | ||
1050 | |||
1051 | |||
1052 | // $ANTLR start "ruleLookupDefinition" | ||
1053 | // InternalCftLanguage.g:362:1: ruleLookupDefinition : ( ( rule__LookupDefinition__Group__0 ) ) ; | ||
1054 | public final void ruleLookupDefinition() throws RecognitionException { | ||
1055 | |||
1056 | int stackSize = keepStackSize(); | ||
1057 | |||
1058 | try { | ||
1059 | // InternalCftLanguage.g:366:2: ( ( ( rule__LookupDefinition__Group__0 ) ) ) | ||
1060 | // InternalCftLanguage.g:367:2: ( ( rule__LookupDefinition__Group__0 ) ) | ||
1061 | { | ||
1062 | // InternalCftLanguage.g:367:2: ( ( rule__LookupDefinition__Group__0 ) ) | ||
1063 | // InternalCftLanguage.g:368:3: ( rule__LookupDefinition__Group__0 ) | ||
1064 | { | ||
1065 | before(grammarAccess.getLookupDefinitionAccess().getGroup()); | ||
1066 | // InternalCftLanguage.g:369:3: ( rule__LookupDefinition__Group__0 ) | ||
1067 | // InternalCftLanguage.g:369:4: rule__LookupDefinition__Group__0 | ||
1068 | { | ||
1069 | pushFollow(FOLLOW_2); | ||
1070 | rule__LookupDefinition__Group__0(); | ||
1071 | |||
1072 | state._fsp--; | ||
1073 | |||
1074 | |||
1075 | } | ||
1076 | |||
1077 | after(grammarAccess.getLookupDefinitionAccess().getGroup()); | ||
1078 | |||
1079 | } | ||
1080 | |||
1081 | |||
1082 | } | ||
1083 | |||
1084 | } | ||
1085 | catch (RecognitionException re) { | ||
1086 | reportError(re); | ||
1087 | recover(input,re); | ||
1088 | } | ||
1089 | finally { | ||
1090 | |||
1091 | restoreStackSize(stackSize); | ||
1092 | |||
1093 | } | ||
1094 | return ; | ||
1095 | } | ||
1096 | // $ANTLR end "ruleLookupDefinition" | ||
1097 | |||
1098 | |||
1099 | // $ANTLR start "entryRuleAssignment" | ||
1100 | // InternalCftLanguage.g:378:1: entryRuleAssignment : ruleAssignment EOF ; | ||
1101 | public final void entryRuleAssignment() throws RecognitionException { | ||
1102 | try { | ||
1103 | // InternalCftLanguage.g:379:1: ( ruleAssignment EOF ) | ||
1104 | // InternalCftLanguage.g:380:1: ruleAssignment EOF | ||
1105 | { | ||
1106 | before(grammarAccess.getAssignmentRule()); | ||
1107 | pushFollow(FOLLOW_1); | ||
1108 | ruleAssignment(); | ||
1109 | |||
1110 | state._fsp--; | ||
1111 | |||
1112 | after(grammarAccess.getAssignmentRule()); | ||
1113 | match(input,EOF,FOLLOW_2); | ||
1114 | |||
1115 | } | ||
1116 | |||
1117 | } | ||
1118 | catch (RecognitionException re) { | ||
1119 | reportError(re); | ||
1120 | recover(input,re); | ||
1121 | } | ||
1122 | finally { | ||
1123 | } | ||
1124 | return ; | ||
1125 | } | ||
1126 | // $ANTLR end "entryRuleAssignment" | ||
1127 | |||
1128 | |||
1129 | // $ANTLR start "ruleAssignment" | ||
1130 | // InternalCftLanguage.g:387:1: ruleAssignment : ( ( rule__Assignment__Group__0 ) ) ; | ||
1131 | public final void ruleAssignment() throws RecognitionException { | ||
1132 | |||
1133 | int stackSize = keepStackSize(); | ||
1134 | |||
1135 | try { | ||
1136 | // InternalCftLanguage.g:391:2: ( ( ( rule__Assignment__Group__0 ) ) ) | ||
1137 | // InternalCftLanguage.g:392:2: ( ( rule__Assignment__Group__0 ) ) | ||
1138 | { | ||
1139 | // InternalCftLanguage.g:392:2: ( ( rule__Assignment__Group__0 ) ) | ||
1140 | // InternalCftLanguage.g:393:3: ( rule__Assignment__Group__0 ) | ||
1141 | { | ||
1142 | before(grammarAccess.getAssignmentAccess().getGroup()); | ||
1143 | // InternalCftLanguage.g:394:3: ( rule__Assignment__Group__0 ) | ||
1144 | // InternalCftLanguage.g:394:4: rule__Assignment__Group__0 | ||
1145 | { | ||
1146 | pushFollow(FOLLOW_2); | ||
1147 | rule__Assignment__Group__0(); | ||
1148 | |||
1149 | state._fsp--; | ||
1150 | |||
1151 | |||
1152 | } | ||
1153 | |||
1154 | after(grammarAccess.getAssignmentAccess().getGroup()); | ||
1155 | |||
1156 | } | ||
1157 | |||
1158 | |||
1159 | } | ||
1160 | |||
1161 | } | ||
1162 | catch (RecognitionException re) { | ||
1163 | reportError(re); | ||
1164 | recover(input,re); | ||
1165 | } | ||
1166 | finally { | ||
1167 | |||
1168 | restoreStackSize(stackSize); | ||
1169 | |||
1170 | } | ||
1171 | return ; | ||
1172 | } | ||
1173 | // $ANTLR end "ruleAssignment" | ||
1174 | |||
1175 | |||
1176 | // $ANTLR start "entryRuleEventReference" | ||
1177 | // InternalCftLanguage.g:403:1: entryRuleEventReference : ruleEventReference EOF ; | ||
1178 | public final void entryRuleEventReference() throws RecognitionException { | ||
1179 | try { | ||
1180 | // InternalCftLanguage.g:404:1: ( ruleEventReference EOF ) | ||
1181 | // InternalCftLanguage.g:405:1: ruleEventReference EOF | ||
1182 | { | ||
1183 | before(grammarAccess.getEventReferenceRule()); | ||
1184 | pushFollow(FOLLOW_1); | ||
1185 | ruleEventReference(); | ||
1186 | |||
1187 | state._fsp--; | ||
1188 | |||
1189 | after(grammarAccess.getEventReferenceRule()); | ||
1190 | match(input,EOF,FOLLOW_2); | ||
1191 | |||
1192 | } | ||
1193 | |||
1194 | } | ||
1195 | catch (RecognitionException re) { | ||
1196 | reportError(re); | ||
1197 | recover(input,re); | ||
1198 | } | ||
1199 | finally { | ||
1200 | } | ||
1201 | return ; | ||
1202 | } | ||
1203 | // $ANTLR end "entryRuleEventReference" | ||
1204 | |||
1205 | |||
1206 | // $ANTLR start "ruleEventReference" | ||
1207 | // InternalCftLanguage.g:412:1: ruleEventReference : ( ( rule__EventReference__Group__0 ) ) ; | ||
1208 | public final void ruleEventReference() throws RecognitionException { | ||
1209 | |||
1210 | int stackSize = keepStackSize(); | ||
1211 | |||
1212 | try { | ||
1213 | // InternalCftLanguage.g:416:2: ( ( ( rule__EventReference__Group__0 ) ) ) | ||
1214 | // InternalCftLanguage.g:417:2: ( ( rule__EventReference__Group__0 ) ) | ||
1215 | { | ||
1216 | // InternalCftLanguage.g:417:2: ( ( rule__EventReference__Group__0 ) ) | ||
1217 | // InternalCftLanguage.g:418:3: ( rule__EventReference__Group__0 ) | ||
1218 | { | ||
1219 | before(grammarAccess.getEventReferenceAccess().getGroup()); | ||
1220 | // InternalCftLanguage.g:419:3: ( rule__EventReference__Group__0 ) | ||
1221 | // InternalCftLanguage.g:419:4: rule__EventReference__Group__0 | ||
1222 | { | ||
1223 | pushFollow(FOLLOW_2); | ||
1224 | rule__EventReference__Group__0(); | ||
1225 | |||
1226 | state._fsp--; | ||
1227 | |||
1228 | |||
1229 | } | ||
1230 | |||
1231 | after(grammarAccess.getEventReferenceAccess().getGroup()); | ||
1232 | |||
1233 | } | ||
1234 | |||
1235 | |||
1236 | } | ||
1237 | |||
1238 | } | ||
1239 | catch (RecognitionException re) { | ||
1240 | reportError(re); | ||
1241 | recover(input,re); | ||
1242 | } | ||
1243 | finally { | ||
1244 | |||
1245 | restoreStackSize(stackSize); | ||
1246 | |||
1247 | } | ||
1248 | return ; | ||
1249 | } | ||
1250 | // $ANTLR end "ruleEventReference" | ||
1251 | |||
1252 | |||
1253 | // $ANTLR start "entryRuleComponentInstance" | ||
1254 | // InternalCftLanguage.g:428:1: entryRuleComponentInstance : ruleComponentInstance EOF ; | ||
1255 | public final void entryRuleComponentInstance() throws RecognitionException { | ||
1256 | try { | ||
1257 | // InternalCftLanguage.g:429:1: ( ruleComponentInstance EOF ) | ||
1258 | // InternalCftLanguage.g:430:1: ruleComponentInstance EOF | ||
1259 | { | ||
1260 | before(grammarAccess.getComponentInstanceRule()); | ||
1261 | pushFollow(FOLLOW_1); | ||
1262 | ruleComponentInstance(); | ||
1263 | |||
1264 | state._fsp--; | ||
1265 | |||
1266 | after(grammarAccess.getComponentInstanceRule()); | ||
1267 | match(input,EOF,FOLLOW_2); | ||
1268 | |||
1269 | } | ||
1270 | |||
1271 | } | ||
1272 | catch (RecognitionException re) { | ||
1273 | reportError(re); | ||
1274 | recover(input,re); | ||
1275 | } | ||
1276 | finally { | ||
1277 | } | ||
1278 | return ; | ||
1279 | } | ||
1280 | // $ANTLR end "entryRuleComponentInstance" | ||
1281 | |||
1282 | |||
1283 | // $ANTLR start "ruleComponentInstance" | ||
1284 | // InternalCftLanguage.g:437:1: ruleComponentInstance : ( ( rule__ComponentInstance__Group__0 ) ) ; | ||
1285 | public final void ruleComponentInstance() throws RecognitionException { | ||
1286 | |||
1287 | int stackSize = keepStackSize(); | ||
1288 | |||
1289 | try { | ||
1290 | // InternalCftLanguage.g:441:2: ( ( ( rule__ComponentInstance__Group__0 ) ) ) | ||
1291 | // InternalCftLanguage.g:442:2: ( ( rule__ComponentInstance__Group__0 ) ) | ||
1292 | { | ||
1293 | // InternalCftLanguage.g:442:2: ( ( rule__ComponentInstance__Group__0 ) ) | ||
1294 | // InternalCftLanguage.g:443:3: ( rule__ComponentInstance__Group__0 ) | ||
1295 | { | ||
1296 | before(grammarAccess.getComponentInstanceAccess().getGroup()); | ||
1297 | // InternalCftLanguage.g:444:3: ( rule__ComponentInstance__Group__0 ) | ||
1298 | // InternalCftLanguage.g:444:4: rule__ComponentInstance__Group__0 | ||
1299 | { | ||
1300 | pushFollow(FOLLOW_2); | ||
1301 | rule__ComponentInstance__Group__0(); | ||
1302 | |||
1303 | state._fsp--; | ||
1304 | |||
1305 | |||
1306 | } | ||
1307 | |||
1308 | after(grammarAccess.getComponentInstanceAccess().getGroup()); | ||
1309 | |||
1310 | } | ||
1311 | |||
1312 | |||
1313 | } | ||
1314 | |||
1315 | } | ||
1316 | catch (RecognitionException re) { | ||
1317 | reportError(re); | ||
1318 | recover(input,re); | ||
1319 | } | ||
1320 | finally { | ||
1321 | |||
1322 | restoreStackSize(stackSize); | ||
1323 | |||
1324 | } | ||
1325 | return ; | ||
1326 | } | ||
1327 | // $ANTLR end "ruleComponentInstance" | ||
1328 | |||
1329 | |||
1330 | // $ANTLR start "entryRuleQualifiedName" | ||
1331 | // InternalCftLanguage.g:453:1: entryRuleQualifiedName : ruleQualifiedName EOF ; | ||
1332 | public final void entryRuleQualifiedName() throws RecognitionException { | ||
1333 | try { | ||
1334 | // InternalCftLanguage.g:454:1: ( ruleQualifiedName EOF ) | ||
1335 | // InternalCftLanguage.g:455:1: ruleQualifiedName EOF | ||
1336 | { | ||
1337 | before(grammarAccess.getQualifiedNameRule()); | ||
1338 | pushFollow(FOLLOW_1); | ||
1339 | ruleQualifiedName(); | ||
1340 | |||
1341 | state._fsp--; | ||
1342 | |||
1343 | after(grammarAccess.getQualifiedNameRule()); | ||
1344 | match(input,EOF,FOLLOW_2); | ||
1345 | |||
1346 | } | ||
1347 | |||
1348 | } | ||
1349 | catch (RecognitionException re) { | ||
1350 | reportError(re); | ||
1351 | recover(input,re); | ||
1352 | } | ||
1353 | finally { | ||
1354 | } | ||
1355 | return ; | ||
1356 | } | ||
1357 | // $ANTLR end "entryRuleQualifiedName" | ||
1358 | |||
1359 | |||
1360 | // $ANTLR start "ruleQualifiedName" | ||
1361 | // InternalCftLanguage.g:462:1: ruleQualifiedName : ( ( rule__QualifiedName__Group__0 ) ) ; | ||
1362 | public final void ruleQualifiedName() throws RecognitionException { | ||
1363 | |||
1364 | int stackSize = keepStackSize(); | ||
1365 | |||
1366 | try { | ||
1367 | // InternalCftLanguage.g:466:2: ( ( ( rule__QualifiedName__Group__0 ) ) ) | ||
1368 | // InternalCftLanguage.g:467:2: ( ( rule__QualifiedName__Group__0 ) ) | ||
1369 | { | ||
1370 | // InternalCftLanguage.g:467:2: ( ( rule__QualifiedName__Group__0 ) ) | ||
1371 | // InternalCftLanguage.g:468:3: ( rule__QualifiedName__Group__0 ) | ||
1372 | { | ||
1373 | before(grammarAccess.getQualifiedNameAccess().getGroup()); | ||
1374 | // InternalCftLanguage.g:469:3: ( rule__QualifiedName__Group__0 ) | ||
1375 | // InternalCftLanguage.g:469:4: rule__QualifiedName__Group__0 | ||
1376 | { | ||
1377 | pushFollow(FOLLOW_2); | ||
1378 | rule__QualifiedName__Group__0(); | ||
1379 | |||
1380 | state._fsp--; | ||
1381 | |||
1382 | |||
1383 | } | ||
1384 | |||
1385 | after(grammarAccess.getQualifiedNameAccess().getGroup()); | ||
1386 | |||
1387 | } | ||
1388 | |||
1389 | |||
1390 | } | ||
1391 | |||
1392 | } | ||
1393 | catch (RecognitionException re) { | ||
1394 | reportError(re); | ||
1395 | recover(input,re); | ||
1396 | } | ||
1397 | finally { | ||
1398 | |||
1399 | restoreStackSize(stackSize); | ||
1400 | |||
1401 | } | ||
1402 | return ; | ||
1403 | } | ||
1404 | // $ANTLR end "ruleQualifiedName" | ||
1405 | |||
1406 | |||
1407 | // $ANTLR start "entryRuleQualifiedNameWithWildcard" | ||
1408 | // InternalCftLanguage.g:478:1: entryRuleQualifiedNameWithWildcard : ruleQualifiedNameWithWildcard EOF ; | ||
1409 | public final void entryRuleQualifiedNameWithWildcard() throws RecognitionException { | ||
1410 | try { | ||
1411 | // InternalCftLanguage.g:479:1: ( ruleQualifiedNameWithWildcard EOF ) | ||
1412 | // InternalCftLanguage.g:480:1: ruleQualifiedNameWithWildcard EOF | ||
1413 | { | ||
1414 | before(grammarAccess.getQualifiedNameWithWildcardRule()); | ||
1415 | pushFollow(FOLLOW_1); | ||
1416 | ruleQualifiedNameWithWildcard(); | ||
1417 | |||
1418 | state._fsp--; | ||
1419 | |||
1420 | after(grammarAccess.getQualifiedNameWithWildcardRule()); | ||
1421 | match(input,EOF,FOLLOW_2); | ||
1422 | |||
1423 | } | ||
1424 | |||
1425 | } | ||
1426 | catch (RecognitionException re) { | ||
1427 | reportError(re); | ||
1428 | recover(input,re); | ||
1429 | } | ||
1430 | finally { | ||
1431 | } | ||
1432 | return ; | ||
1433 | } | ||
1434 | // $ANTLR end "entryRuleQualifiedNameWithWildcard" | ||
1435 | |||
1436 | |||
1437 | // $ANTLR start "ruleQualifiedNameWithWildcard" | ||
1438 | // InternalCftLanguage.g:487:1: ruleQualifiedNameWithWildcard : ( ( rule__QualifiedNameWithWildcard__Group__0 ) ) ; | ||
1439 | public final void ruleQualifiedNameWithWildcard() throws RecognitionException { | ||
1440 | |||
1441 | int stackSize = keepStackSize(); | ||
1442 | |||
1443 | try { | ||
1444 | // InternalCftLanguage.g:491:2: ( ( ( rule__QualifiedNameWithWildcard__Group__0 ) ) ) | ||
1445 | // InternalCftLanguage.g:492:2: ( ( rule__QualifiedNameWithWildcard__Group__0 ) ) | ||
1446 | { | ||
1447 | // InternalCftLanguage.g:492:2: ( ( rule__QualifiedNameWithWildcard__Group__0 ) ) | ||
1448 | // InternalCftLanguage.g:493:3: ( rule__QualifiedNameWithWildcard__Group__0 ) | ||
1449 | { | ||
1450 | before(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup()); | ||
1451 | // InternalCftLanguage.g:494:3: ( rule__QualifiedNameWithWildcard__Group__0 ) | ||
1452 | // InternalCftLanguage.g:494:4: rule__QualifiedNameWithWildcard__Group__0 | ||
1453 | { | ||
1454 | pushFollow(FOLLOW_2); | ||
1455 | rule__QualifiedNameWithWildcard__Group__0(); | ||
1456 | |||
1457 | state._fsp--; | ||
1458 | |||
1459 | |||
1460 | } | ||
1461 | |||
1462 | after(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup()); | ||
1463 | |||
1464 | } | ||
1465 | |||
1466 | |||
1467 | } | ||
1468 | |||
1469 | } | ||
1470 | catch (RecognitionException re) { | ||
1471 | reportError(re); | ||
1472 | recover(input,re); | ||
1473 | } | ||
1474 | finally { | ||
1475 | |||
1476 | restoreStackSize(stackSize); | ||
1477 | |||
1478 | } | ||
1479 | return ; | ||
1480 | } | ||
1481 | // $ANTLR end "ruleQualifiedNameWithWildcard" | ||
1482 | |||
1483 | |||
1484 | // $ANTLR start "rule__CftModel__Alternatives_4" | ||
1485 | // InternalCftLanguage.g:502:1: rule__CftModel__Alternatives_4 : ( ( ( rule__CftModel__ComponentDefinitionsAssignment_4_0 ) ) | ( ( rule__CftModel__TransformationDefinitionsAssignment_4_1 ) ) ); | ||
1486 | public final void rule__CftModel__Alternatives_4() throws RecognitionException { | ||
1487 | |||
1488 | int stackSize = keepStackSize(); | ||
1489 | |||
1490 | try { | ||
1491 | // InternalCftLanguage.g:506:1: ( ( ( rule__CftModel__ComponentDefinitionsAssignment_4_0 ) ) | ( ( rule__CftModel__TransformationDefinitionsAssignment_4_1 ) ) ) | ||
1492 | int alt1=2; | ||
1493 | int LA1_0 = input.LA(1); | ||
1494 | |||
1495 | if ( (LA1_0==16) ) { | ||
1496 | alt1=1; | ||
1497 | } | ||
1498 | else if ( (LA1_0==25) ) { | ||
1499 | alt1=2; | ||
1500 | } | ||
1501 | else { | ||
1502 | NoViableAltException nvae = | ||
1503 | new NoViableAltException("", 1, 0, input); | ||
1504 | |||
1505 | throw nvae; | ||
1506 | } | ||
1507 | switch (alt1) { | ||
1508 | case 1 : | ||
1509 | // InternalCftLanguage.g:507:2: ( ( rule__CftModel__ComponentDefinitionsAssignment_4_0 ) ) | ||
1510 | { | ||
1511 | // InternalCftLanguage.g:507:2: ( ( rule__CftModel__ComponentDefinitionsAssignment_4_0 ) ) | ||
1512 | // InternalCftLanguage.g:508:3: ( rule__CftModel__ComponentDefinitionsAssignment_4_0 ) | ||
1513 | { | ||
1514 | before(grammarAccess.getCftModelAccess().getComponentDefinitionsAssignment_4_0()); | ||
1515 | // InternalCftLanguage.g:509:3: ( rule__CftModel__ComponentDefinitionsAssignment_4_0 ) | ||
1516 | // InternalCftLanguage.g:509:4: rule__CftModel__ComponentDefinitionsAssignment_4_0 | ||
1517 | { | ||
1518 | pushFollow(FOLLOW_2); | ||
1519 | rule__CftModel__ComponentDefinitionsAssignment_4_0(); | ||
1520 | |||
1521 | state._fsp--; | ||
1522 | |||
1523 | |||
1524 | } | ||
1525 | |||
1526 | after(grammarAccess.getCftModelAccess().getComponentDefinitionsAssignment_4_0()); | ||
1527 | |||
1528 | } | ||
1529 | |||
1530 | |||
1531 | } | ||
1532 | break; | ||
1533 | case 2 : | ||
1534 | // InternalCftLanguage.g:513:2: ( ( rule__CftModel__TransformationDefinitionsAssignment_4_1 ) ) | ||
1535 | { | ||
1536 | // InternalCftLanguage.g:513:2: ( ( rule__CftModel__TransformationDefinitionsAssignment_4_1 ) ) | ||
1537 | // InternalCftLanguage.g:514:3: ( rule__CftModel__TransformationDefinitionsAssignment_4_1 ) | ||
1538 | { | ||
1539 | before(grammarAccess.getCftModelAccess().getTransformationDefinitionsAssignment_4_1()); | ||
1540 | // InternalCftLanguage.g:515:3: ( rule__CftModel__TransformationDefinitionsAssignment_4_1 ) | ||
1541 | // InternalCftLanguage.g:515:4: rule__CftModel__TransformationDefinitionsAssignment_4_1 | ||
1542 | { | ||
1543 | pushFollow(FOLLOW_2); | ||
1544 | rule__CftModel__TransformationDefinitionsAssignment_4_1(); | ||
1545 | |||
1546 | state._fsp--; | ||
1547 | |||
1548 | |||
1549 | } | ||
1550 | |||
1551 | after(grammarAccess.getCftModelAccess().getTransformationDefinitionsAssignment_4_1()); | ||
1552 | |||
1553 | } | ||
1554 | |||
1555 | |||
1556 | } | ||
1557 | break; | ||
1558 | |||
1559 | } | ||
1560 | } | ||
1561 | catch (RecognitionException re) { | ||
1562 | reportError(re); | ||
1563 | recover(input,re); | ||
1564 | } | ||
1565 | finally { | ||
1566 | |||
1567 | restoreStackSize(stackSize); | ||
1568 | |||
1569 | } | ||
1570 | return ; | ||
1571 | } | ||
1572 | // $ANTLR end "rule__CftModel__Alternatives_4" | ||
1573 | |||
1574 | |||
1575 | // $ANTLR start "rule__EventDefinition__Alternatives" | ||
1576 | // InternalCftLanguage.g:523:1: rule__EventDefinition__Alternatives : ( ( ruleBasicEventDefinition ) | ( ruleGateDefinition ) ); | ||
1577 | public final void rule__EventDefinition__Alternatives() throws RecognitionException { | ||
1578 | |||
1579 | int stackSize = keepStackSize(); | ||
1580 | |||
1581 | try { | ||
1582 | // InternalCftLanguage.g:527:1: ( ( ruleBasicEventDefinition ) | ( ruleGateDefinition ) ) | ||
1583 | int alt2=2; | ||
1584 | int LA2_0 = input.LA(1); | ||
1585 | |||
1586 | if ( (LA2_0==RULE_ID) ) { | ||
1587 | int LA2_1 = input.LA(2); | ||
1588 | |||
1589 | if ( (LA2_1==21) ) { | ||
1590 | alt2=1; | ||
1591 | } | ||
1592 | else if ( ((LA2_1>=23 && LA2_1<=24)) ) { | ||
1593 | alt2=2; | ||
1594 | } | ||
1595 | else { | ||
1596 | NoViableAltException nvae = | ||
1597 | new NoViableAltException("", 2, 1, input); | ||
1598 | |||
1599 | throw nvae; | ||
1600 | } | ||
1601 | } | ||
1602 | else { | ||
1603 | NoViableAltException nvae = | ||
1604 | new NoViableAltException("", 2, 0, input); | ||
1605 | |||
1606 | throw nvae; | ||
1607 | } | ||
1608 | switch (alt2) { | ||
1609 | case 1 : | ||
1610 | // InternalCftLanguage.g:528:2: ( ruleBasicEventDefinition ) | ||
1611 | { | ||
1612 | // InternalCftLanguage.g:528:2: ( ruleBasicEventDefinition ) | ||
1613 | // InternalCftLanguage.g:529:3: ruleBasicEventDefinition | ||
1614 | { | ||
1615 | before(grammarAccess.getEventDefinitionAccess().getBasicEventDefinitionParserRuleCall_0()); | ||
1616 | pushFollow(FOLLOW_2); | ||
1617 | ruleBasicEventDefinition(); | ||
1618 | |||
1619 | state._fsp--; | ||
1620 | |||
1621 | after(grammarAccess.getEventDefinitionAccess().getBasicEventDefinitionParserRuleCall_0()); | ||
1622 | |||
1623 | } | ||
1624 | |||
1625 | |||
1626 | } | ||
1627 | break; | ||
1628 | case 2 : | ||
1629 | // InternalCftLanguage.g:534:2: ( ruleGateDefinition ) | ||
1630 | { | ||
1631 | // InternalCftLanguage.g:534:2: ( ruleGateDefinition ) | ||
1632 | // InternalCftLanguage.g:535:3: ruleGateDefinition | ||
1633 | { | ||
1634 | before(grammarAccess.getEventDefinitionAccess().getGateDefinitionParserRuleCall_1()); | ||
1635 | pushFollow(FOLLOW_2); | ||
1636 | ruleGateDefinition(); | ||
1637 | |||
1638 | state._fsp--; | ||
1639 | |||
1640 | after(grammarAccess.getEventDefinitionAccess().getGateDefinitionParserRuleCall_1()); | ||
1641 | |||
1642 | } | ||
1643 | |||
1644 | |||
1645 | } | ||
1646 | break; | ||
1647 | |||
1648 | } | ||
1649 | } | ||
1650 | catch (RecognitionException re) { | ||
1651 | reportError(re); | ||
1652 | recover(input,re); | ||
1653 | } | ||
1654 | finally { | ||
1655 | |||
1656 | restoreStackSize(stackSize); | ||
1657 | |||
1658 | } | ||
1659 | return ; | ||
1660 | } | ||
1661 | // $ANTLR end "rule__EventDefinition__Alternatives" | ||
1662 | |||
1663 | |||
1664 | // $ANTLR start "rule__GateDefinition__Alternatives" | ||
1665 | // InternalCftLanguage.g:544:1: rule__GateDefinition__Alternatives : ( ( ruleAndGate ) | ( ruleOrGate ) ); | ||
1666 | public final void rule__GateDefinition__Alternatives() throws RecognitionException { | ||
1667 | |||
1668 | int stackSize = keepStackSize(); | ||
1669 | |||
1670 | try { | ||
1671 | // InternalCftLanguage.g:548:1: ( ( ruleAndGate ) | ( ruleOrGate ) ) | ||
1672 | int alt3=2; | ||
1673 | int LA3_0 = input.LA(1); | ||
1674 | |||
1675 | if ( (LA3_0==RULE_ID) ) { | ||
1676 | int LA3_1 = input.LA(2); | ||
1677 | |||
1678 | if ( (LA3_1==23) ) { | ||
1679 | alt3=1; | ||
1680 | } | ||
1681 | else if ( (LA3_1==24) ) { | ||
1682 | alt3=2; | ||
1683 | } | ||
1684 | else { | ||
1685 | NoViableAltException nvae = | ||
1686 | new NoViableAltException("", 3, 1, input); | ||
1687 | |||
1688 | throw nvae; | ||
1689 | } | ||
1690 | } | ||
1691 | else { | ||
1692 | NoViableAltException nvae = | ||
1693 | new NoViableAltException("", 3, 0, input); | ||
1694 | |||
1695 | throw nvae; | ||
1696 | } | ||
1697 | switch (alt3) { | ||
1698 | case 1 : | ||
1699 | // InternalCftLanguage.g:549:2: ( ruleAndGate ) | ||
1700 | { | ||
1701 | // InternalCftLanguage.g:549:2: ( ruleAndGate ) | ||
1702 | // InternalCftLanguage.g:550:3: ruleAndGate | ||
1703 | { | ||
1704 | before(grammarAccess.getGateDefinitionAccess().getAndGateParserRuleCall_0()); | ||
1705 | pushFollow(FOLLOW_2); | ||
1706 | ruleAndGate(); | ||
1707 | |||
1708 | state._fsp--; | ||
1709 | |||
1710 | after(grammarAccess.getGateDefinitionAccess().getAndGateParserRuleCall_0()); | ||
1711 | |||
1712 | } | ||
1713 | |||
1714 | |||
1715 | } | ||
1716 | break; | ||
1717 | case 2 : | ||
1718 | // InternalCftLanguage.g:555:2: ( ruleOrGate ) | ||
1719 | { | ||
1720 | // InternalCftLanguage.g:555:2: ( ruleOrGate ) | ||
1721 | // InternalCftLanguage.g:556:3: ruleOrGate | ||
1722 | { | ||
1723 | before(grammarAccess.getGateDefinitionAccess().getOrGateParserRuleCall_1()); | ||
1724 | pushFollow(FOLLOW_2); | ||
1725 | ruleOrGate(); | ||
1726 | |||
1727 | state._fsp--; | ||
1728 | |||
1729 | after(grammarAccess.getGateDefinitionAccess().getOrGateParserRuleCall_1()); | ||
1730 | |||
1731 | } | ||
1732 | |||
1733 | |||
1734 | } | ||
1735 | break; | ||
1736 | |||
1737 | } | ||
1738 | } | ||
1739 | catch (RecognitionException re) { | ||
1740 | reportError(re); | ||
1741 | recover(input,re); | ||
1742 | } | ||
1743 | finally { | ||
1744 | |||
1745 | restoreStackSize(stackSize); | ||
1746 | |||
1747 | } | ||
1748 | return ; | ||
1749 | } | ||
1750 | // $ANTLR end "rule__GateDefinition__Alternatives" | ||
1751 | |||
1752 | |||
1753 | // $ANTLR start "rule__MappingDefinition__Alternatives_8_1_0" | ||
1754 | // InternalCftLanguage.g:565:1: rule__MappingDefinition__Alternatives_8_1_0 : ( ( ( rule__MappingDefinition__LookupDefinitionsAssignment_8_1_0_0 ) ) | ( ( rule__MappingDefinition__AssignmentsAssignment_8_1_0_1 ) ) ); | ||
1755 | public final void rule__MappingDefinition__Alternatives_8_1_0() throws RecognitionException { | ||
1756 | |||
1757 | int stackSize = keepStackSize(); | ||
1758 | |||
1759 | try { | ||
1760 | // InternalCftLanguage.g:569:1: ( ( ( rule__MappingDefinition__LookupDefinitionsAssignment_8_1_0_0 ) ) | ( ( rule__MappingDefinition__AssignmentsAssignment_8_1_0_1 ) ) ) | ||
1761 | int alt4=2; | ||
1762 | int LA4_0 = input.LA(1); | ||
1763 | |||
1764 | if ( (LA4_0==30) ) { | ||
1765 | alt4=1; | ||
1766 | } | ||
1767 | else if ( (LA4_0==RULE_ID) ) { | ||
1768 | alt4=2; | ||
1769 | } | ||
1770 | else { | ||
1771 | NoViableAltException nvae = | ||
1772 | new NoViableAltException("", 4, 0, input); | ||
1773 | |||
1774 | throw nvae; | ||
1775 | } | ||
1776 | switch (alt4) { | ||
1777 | case 1 : | ||
1778 | // InternalCftLanguage.g:570:2: ( ( rule__MappingDefinition__LookupDefinitionsAssignment_8_1_0_0 ) ) | ||
1779 | { | ||
1780 | // InternalCftLanguage.g:570:2: ( ( rule__MappingDefinition__LookupDefinitionsAssignment_8_1_0_0 ) ) | ||
1781 | // InternalCftLanguage.g:571:3: ( rule__MappingDefinition__LookupDefinitionsAssignment_8_1_0_0 ) | ||
1782 | { | ||
1783 | before(grammarAccess.getMappingDefinitionAccess().getLookupDefinitionsAssignment_8_1_0_0()); | ||
1784 | // InternalCftLanguage.g:572:3: ( rule__MappingDefinition__LookupDefinitionsAssignment_8_1_0_0 ) | ||
1785 | // InternalCftLanguage.g:572:4: rule__MappingDefinition__LookupDefinitionsAssignment_8_1_0_0 | ||
1786 | { | ||
1787 | pushFollow(FOLLOW_2); | ||
1788 | rule__MappingDefinition__LookupDefinitionsAssignment_8_1_0_0(); | ||
1789 | |||
1790 | state._fsp--; | ||
1791 | |||
1792 | |||
1793 | } | ||
1794 | |||
1795 | after(grammarAccess.getMappingDefinitionAccess().getLookupDefinitionsAssignment_8_1_0_0()); | ||
1796 | |||
1797 | } | ||
1798 | |||
1799 | |||
1800 | } | ||
1801 | break; | ||
1802 | case 2 : | ||
1803 | // InternalCftLanguage.g:576:2: ( ( rule__MappingDefinition__AssignmentsAssignment_8_1_0_1 ) ) | ||
1804 | { | ||
1805 | // InternalCftLanguage.g:576:2: ( ( rule__MappingDefinition__AssignmentsAssignment_8_1_0_1 ) ) | ||
1806 | // InternalCftLanguage.g:577:3: ( rule__MappingDefinition__AssignmentsAssignment_8_1_0_1 ) | ||
1807 | { | ||
1808 | before(grammarAccess.getMappingDefinitionAccess().getAssignmentsAssignment_8_1_0_1()); | ||
1809 | // InternalCftLanguage.g:578:3: ( rule__MappingDefinition__AssignmentsAssignment_8_1_0_1 ) | ||
1810 | // InternalCftLanguage.g:578:4: rule__MappingDefinition__AssignmentsAssignment_8_1_0_1 | ||
1811 | { | ||
1812 | pushFollow(FOLLOW_2); | ||
1813 | rule__MappingDefinition__AssignmentsAssignment_8_1_0_1(); | ||
1814 | |||
1815 | state._fsp--; | ||
1816 | |||
1817 | |||
1818 | } | ||
1819 | |||
1820 | after(grammarAccess.getMappingDefinitionAccess().getAssignmentsAssignment_8_1_0_1()); | ||
1821 | |||
1822 | } | ||
1823 | |||
1824 | |||
1825 | } | ||
1826 | break; | ||
1827 | |||
1828 | } | ||
1829 | } | ||
1830 | catch (RecognitionException re) { | ||
1831 | reportError(re); | ||
1832 | recover(input,re); | ||
1833 | } | ||
1834 | finally { | ||
1835 | |||
1836 | restoreStackSize(stackSize); | ||
1837 | |||
1838 | } | ||
1839 | return ; | ||
1840 | } | ||
1841 | // $ANTLR end "rule__MappingDefinition__Alternatives_8_1_0" | ||
1842 | |||
1843 | |||
1844 | // $ANTLR start "rule__Assignment__Alternatives_1" | ||
1845 | // InternalCftLanguage.g:586:1: rule__Assignment__Alternatives_1 : ( ( ( rule__Assignment__MultipleAssignment_1_0 ) ) | ( ':=' ) ); | ||
1846 | public final void rule__Assignment__Alternatives_1() throws RecognitionException { | ||
1847 | |||
1848 | int stackSize = keepStackSize(); | ||
1849 | |||
1850 | try { | ||
1851 | // InternalCftLanguage.g:590:1: ( ( ( rule__Assignment__MultipleAssignment_1_0 ) ) | ( ':=' ) ) | ||
1852 | int alt5=2; | ||
1853 | int LA5_0 = input.LA(1); | ||
1854 | |||
1855 | if ( (LA5_0==37) ) { | ||
1856 | alt5=1; | ||
1857 | } | ||
1858 | else if ( (LA5_0==12) ) { | ||
1859 | alt5=2; | ||
1860 | } | ||
1861 | else { | ||
1862 | NoViableAltException nvae = | ||
1863 | new NoViableAltException("", 5, 0, input); | ||
1864 | |||
1865 | throw nvae; | ||
1866 | } | ||
1867 | switch (alt5) { | ||
1868 | case 1 : | ||
1869 | // InternalCftLanguage.g:591:2: ( ( rule__Assignment__MultipleAssignment_1_0 ) ) | ||
1870 | { | ||
1871 | // InternalCftLanguage.g:591:2: ( ( rule__Assignment__MultipleAssignment_1_0 ) ) | ||
1872 | // InternalCftLanguage.g:592:3: ( rule__Assignment__MultipleAssignment_1_0 ) | ||
1873 | { | ||
1874 | before(grammarAccess.getAssignmentAccess().getMultipleAssignment_1_0()); | ||
1875 | // InternalCftLanguage.g:593:3: ( rule__Assignment__MultipleAssignment_1_0 ) | ||
1876 | // InternalCftLanguage.g:593:4: rule__Assignment__MultipleAssignment_1_0 | ||
1877 | { | ||
1878 | pushFollow(FOLLOW_2); | ||
1879 | rule__Assignment__MultipleAssignment_1_0(); | ||
1880 | |||
1881 | state._fsp--; | ||
1882 | |||
1883 | |||
1884 | } | ||
1885 | |||
1886 | after(grammarAccess.getAssignmentAccess().getMultipleAssignment_1_0()); | ||
1887 | |||
1888 | } | ||
1889 | |||
1890 | |||
1891 | } | ||
1892 | break; | ||
1893 | case 2 : | ||
1894 | // InternalCftLanguage.g:597:2: ( ':=' ) | ||
1895 | { | ||
1896 | // InternalCftLanguage.g:597:2: ( ':=' ) | ||
1897 | // InternalCftLanguage.g:598:3: ':=' | ||
1898 | { | ||
1899 | before(grammarAccess.getAssignmentAccess().getColonEqualsSignKeyword_1_1()); | ||
1900 | match(input,12,FOLLOW_2); | ||
1901 | after(grammarAccess.getAssignmentAccess().getColonEqualsSignKeyword_1_1()); | ||
1902 | |||
1903 | } | ||
1904 | |||
1905 | |||
1906 | } | ||
1907 | break; | ||
1908 | |||
1909 | } | ||
1910 | } | ||
1911 | catch (RecognitionException re) { | ||
1912 | reportError(re); | ||
1913 | recover(input,re); | ||
1914 | } | ||
1915 | finally { | ||
1916 | |||
1917 | restoreStackSize(stackSize); | ||
1918 | |||
1919 | } | ||
1920 | return ; | ||
1921 | } | ||
1922 | // $ANTLR end "rule__Assignment__Alternatives_1" | ||
1923 | |||
1924 | |||
1925 | // $ANTLR start "rule__CftModel__Group__0" | ||
1926 | // InternalCftLanguage.g:607:1: rule__CftModel__Group__0 : rule__CftModel__Group__0__Impl rule__CftModel__Group__1 ; | ||
1927 | public final void rule__CftModel__Group__0() throws RecognitionException { | ||
1928 | |||
1929 | int stackSize = keepStackSize(); | ||
1930 | |||
1931 | try { | ||
1932 | // InternalCftLanguage.g:611:1: ( rule__CftModel__Group__0__Impl rule__CftModel__Group__1 ) | ||
1933 | // InternalCftLanguage.g:612:2: rule__CftModel__Group__0__Impl rule__CftModel__Group__1 | ||
1934 | { | ||
1935 | pushFollow(FOLLOW_3); | ||
1936 | rule__CftModel__Group__0__Impl(); | ||
1937 | |||
1938 | state._fsp--; | ||
1939 | |||
1940 | pushFollow(FOLLOW_2); | ||
1941 | rule__CftModel__Group__1(); | ||
1942 | |||
1943 | state._fsp--; | ||
1944 | |||
1945 | |||
1946 | } | ||
1947 | |||
1948 | } | ||
1949 | catch (RecognitionException re) { | ||
1950 | reportError(re); | ||
1951 | recover(input,re); | ||
1952 | } | ||
1953 | finally { | ||
1954 | |||
1955 | restoreStackSize(stackSize); | ||
1956 | |||
1957 | } | ||
1958 | return ; | ||
1959 | } | ||
1960 | // $ANTLR end "rule__CftModel__Group__0" | ||
1961 | |||
1962 | |||
1963 | // $ANTLR start "rule__CftModel__Group__0__Impl" | ||
1964 | // InternalCftLanguage.g:619:1: rule__CftModel__Group__0__Impl : ( 'package' ) ; | ||
1965 | public final void rule__CftModel__Group__0__Impl() throws RecognitionException { | ||
1966 | |||
1967 | int stackSize = keepStackSize(); | ||
1968 | |||
1969 | try { | ||
1970 | // InternalCftLanguage.g:623:1: ( ( 'package' ) ) | ||
1971 | // InternalCftLanguage.g:624:1: ( 'package' ) | ||
1972 | { | ||
1973 | // InternalCftLanguage.g:624:1: ( 'package' ) | ||
1974 | // InternalCftLanguage.g:625:2: 'package' | ||
1975 | { | ||
1976 | before(grammarAccess.getCftModelAccess().getPackageKeyword_0()); | ||
1977 | match(input,13,FOLLOW_2); | ||
1978 | after(grammarAccess.getCftModelAccess().getPackageKeyword_0()); | ||
1979 | |||
1980 | } | ||
1981 | |||
1982 | |||
1983 | } | ||
1984 | |||
1985 | } | ||
1986 | catch (RecognitionException re) { | ||
1987 | reportError(re); | ||
1988 | recover(input,re); | ||
1989 | } | ||
1990 | finally { | ||
1991 | |||
1992 | restoreStackSize(stackSize); | ||
1993 | |||
1994 | } | ||
1995 | return ; | ||
1996 | } | ||
1997 | // $ANTLR end "rule__CftModel__Group__0__Impl" | ||
1998 | |||
1999 | |||
2000 | // $ANTLR start "rule__CftModel__Group__1" | ||
2001 | // InternalCftLanguage.g:634:1: rule__CftModel__Group__1 : rule__CftModel__Group__1__Impl rule__CftModel__Group__2 ; | ||
2002 | public final void rule__CftModel__Group__1() throws RecognitionException { | ||
2003 | |||
2004 | int stackSize = keepStackSize(); | ||
2005 | |||
2006 | try { | ||
2007 | // InternalCftLanguage.g:638:1: ( rule__CftModel__Group__1__Impl rule__CftModel__Group__2 ) | ||
2008 | // InternalCftLanguage.g:639:2: rule__CftModel__Group__1__Impl rule__CftModel__Group__2 | ||
2009 | { | ||
2010 | pushFollow(FOLLOW_4); | ||
2011 | rule__CftModel__Group__1__Impl(); | ||
2012 | |||
2013 | state._fsp--; | ||
2014 | |||
2015 | pushFollow(FOLLOW_2); | ||
2016 | rule__CftModel__Group__2(); | ||
2017 | |||
2018 | state._fsp--; | ||
2019 | |||
2020 | |||
2021 | } | ||
2022 | |||
2023 | } | ||
2024 | catch (RecognitionException re) { | ||
2025 | reportError(re); | ||
2026 | recover(input,re); | ||
2027 | } | ||
2028 | finally { | ||
2029 | |||
2030 | restoreStackSize(stackSize); | ||
2031 | |||
2032 | } | ||
2033 | return ; | ||
2034 | } | ||
2035 | // $ANTLR end "rule__CftModel__Group__1" | ||
2036 | |||
2037 | |||
2038 | // $ANTLR start "rule__CftModel__Group__1__Impl" | ||
2039 | // InternalCftLanguage.g:646:1: rule__CftModel__Group__1__Impl : ( ( rule__CftModel__PackageNameAssignment_1 ) ) ; | ||
2040 | public final void rule__CftModel__Group__1__Impl() throws RecognitionException { | ||
2041 | |||
2042 | int stackSize = keepStackSize(); | ||
2043 | |||
2044 | try { | ||
2045 | // InternalCftLanguage.g:650:1: ( ( ( rule__CftModel__PackageNameAssignment_1 ) ) ) | ||
2046 | // InternalCftLanguage.g:651:1: ( ( rule__CftModel__PackageNameAssignment_1 ) ) | ||
2047 | { | ||
2048 | // InternalCftLanguage.g:651:1: ( ( rule__CftModel__PackageNameAssignment_1 ) ) | ||
2049 | // InternalCftLanguage.g:652:2: ( rule__CftModel__PackageNameAssignment_1 ) | ||
2050 | { | ||
2051 | before(grammarAccess.getCftModelAccess().getPackageNameAssignment_1()); | ||
2052 | // InternalCftLanguage.g:653:2: ( rule__CftModel__PackageNameAssignment_1 ) | ||
2053 | // InternalCftLanguage.g:653:3: rule__CftModel__PackageNameAssignment_1 | ||
2054 | { | ||
2055 | pushFollow(FOLLOW_2); | ||
2056 | rule__CftModel__PackageNameAssignment_1(); | ||
2057 | |||
2058 | state._fsp--; | ||
2059 | |||
2060 | |||
2061 | } | ||
2062 | |||
2063 | after(grammarAccess.getCftModelAccess().getPackageNameAssignment_1()); | ||
2064 | |||
2065 | } | ||
2066 | |||
2067 | |||
2068 | } | ||
2069 | |||
2070 | } | ||
2071 | catch (RecognitionException re) { | ||
2072 | reportError(re); | ||
2073 | recover(input,re); | ||
2074 | } | ||
2075 | finally { | ||
2076 | |||
2077 | restoreStackSize(stackSize); | ||
2078 | |||
2079 | } | ||
2080 | return ; | ||
2081 | } | ||
2082 | // $ANTLR end "rule__CftModel__Group__1__Impl" | ||
2083 | |||
2084 | |||
2085 | // $ANTLR start "rule__CftModel__Group__2" | ||
2086 | // InternalCftLanguage.g:661:1: rule__CftModel__Group__2 : rule__CftModel__Group__2__Impl rule__CftModel__Group__3 ; | ||
2087 | public final void rule__CftModel__Group__2() throws RecognitionException { | ||
2088 | |||
2089 | int stackSize = keepStackSize(); | ||
2090 | |||
2091 | try { | ||
2092 | // InternalCftLanguage.g:665:1: ( rule__CftModel__Group__2__Impl rule__CftModel__Group__3 ) | ||
2093 | // InternalCftLanguage.g:666:2: rule__CftModel__Group__2__Impl rule__CftModel__Group__3 | ||
2094 | { | ||
2095 | pushFollow(FOLLOW_4); | ||
2096 | rule__CftModel__Group__2__Impl(); | ||
2097 | |||
2098 | state._fsp--; | ||
2099 | |||
2100 | pushFollow(FOLLOW_2); | ||
2101 | rule__CftModel__Group__3(); | ||
2102 | |||
2103 | state._fsp--; | ||
2104 | |||
2105 | |||
2106 | } | ||
2107 | |||
2108 | } | ||
2109 | catch (RecognitionException re) { | ||
2110 | reportError(re); | ||
2111 | recover(input,re); | ||
2112 | } | ||
2113 | finally { | ||
2114 | |||
2115 | restoreStackSize(stackSize); | ||
2116 | |||
2117 | } | ||
2118 | return ; | ||
2119 | } | ||
2120 | // $ANTLR end "rule__CftModel__Group__2" | ||
2121 | |||
2122 | |||
2123 | // $ANTLR start "rule__CftModel__Group__2__Impl" | ||
2124 | // InternalCftLanguage.g:673:1: rule__CftModel__Group__2__Impl : ( ( ';' )? ) ; | ||
2125 | public final void rule__CftModel__Group__2__Impl() throws RecognitionException { | ||
2126 | |||
2127 | int stackSize = keepStackSize(); | ||
2128 | |||
2129 | try { | ||
2130 | // InternalCftLanguage.g:677:1: ( ( ( ';' )? ) ) | ||
2131 | // InternalCftLanguage.g:678:1: ( ( ';' )? ) | ||
2132 | { | ||
2133 | // InternalCftLanguage.g:678:1: ( ( ';' )? ) | ||
2134 | // InternalCftLanguage.g:679:2: ( ';' )? | ||
2135 | { | ||
2136 | before(grammarAccess.getCftModelAccess().getSemicolonKeyword_2()); | ||
2137 | // InternalCftLanguage.g:680:2: ( ';' )? | ||
2138 | int alt6=2; | ||
2139 | int LA6_0 = input.LA(1); | ||
2140 | |||
2141 | if ( (LA6_0==14) ) { | ||
2142 | alt6=1; | ||
2143 | } | ||
2144 | switch (alt6) { | ||
2145 | case 1 : | ||
2146 | // InternalCftLanguage.g:680:3: ';' | ||
2147 | { | ||
2148 | match(input,14,FOLLOW_2); | ||
2149 | |||
2150 | } | ||
2151 | break; | ||
2152 | |||
2153 | } | ||
2154 | |||
2155 | after(grammarAccess.getCftModelAccess().getSemicolonKeyword_2()); | ||
2156 | |||
2157 | } | ||
2158 | |||
2159 | |||
2160 | } | ||
2161 | |||
2162 | } | ||
2163 | catch (RecognitionException re) { | ||
2164 | reportError(re); | ||
2165 | recover(input,re); | ||
2166 | } | ||
2167 | finally { | ||
2168 | |||
2169 | restoreStackSize(stackSize); | ||
2170 | |||
2171 | } | ||
2172 | return ; | ||
2173 | } | ||
2174 | // $ANTLR end "rule__CftModel__Group__2__Impl" | ||
2175 | |||
2176 | |||
2177 | // $ANTLR start "rule__CftModel__Group__3" | ||
2178 | // InternalCftLanguage.g:688:1: rule__CftModel__Group__3 : rule__CftModel__Group__3__Impl rule__CftModel__Group__4 ; | ||
2179 | public final void rule__CftModel__Group__3() throws RecognitionException { | ||
2180 | |||
2181 | int stackSize = keepStackSize(); | ||
2182 | |||
2183 | try { | ||
2184 | // InternalCftLanguage.g:692:1: ( rule__CftModel__Group__3__Impl rule__CftModel__Group__4 ) | ||
2185 | // InternalCftLanguage.g:693:2: rule__CftModel__Group__3__Impl rule__CftModel__Group__4 | ||
2186 | { | ||
2187 | pushFollow(FOLLOW_4); | ||
2188 | rule__CftModel__Group__3__Impl(); | ||
2189 | |||
2190 | state._fsp--; | ||
2191 | |||
2192 | pushFollow(FOLLOW_2); | ||
2193 | rule__CftModel__Group__4(); | ||
2194 | |||
2195 | state._fsp--; | ||
2196 | |||
2197 | |||
2198 | } | ||
2199 | |||
2200 | } | ||
2201 | catch (RecognitionException re) { | ||
2202 | reportError(re); | ||
2203 | recover(input,re); | ||
2204 | } | ||
2205 | finally { | ||
2206 | |||
2207 | restoreStackSize(stackSize); | ||
2208 | |||
2209 | } | ||
2210 | return ; | ||
2211 | } | ||
2212 | // $ANTLR end "rule__CftModel__Group__3" | ||
2213 | |||
2214 | |||
2215 | // $ANTLR start "rule__CftModel__Group__3__Impl" | ||
2216 | // InternalCftLanguage.g:700:1: rule__CftModel__Group__3__Impl : ( ( rule__CftModel__ImportsAssignment_3 )* ) ; | ||
2217 | public final void rule__CftModel__Group__3__Impl() throws RecognitionException { | ||
2218 | |||
2219 | int stackSize = keepStackSize(); | ||
2220 | |||
2221 | try { | ||
2222 | // InternalCftLanguage.g:704:1: ( ( ( rule__CftModel__ImportsAssignment_3 )* ) ) | ||
2223 | // InternalCftLanguage.g:705:1: ( ( rule__CftModel__ImportsAssignment_3 )* ) | ||
2224 | { | ||
2225 | // InternalCftLanguage.g:705:1: ( ( rule__CftModel__ImportsAssignment_3 )* ) | ||
2226 | // InternalCftLanguage.g:706:2: ( rule__CftModel__ImportsAssignment_3 )* | ||
2227 | { | ||
2228 | before(grammarAccess.getCftModelAccess().getImportsAssignment_3()); | ||
2229 | // InternalCftLanguage.g:707:2: ( rule__CftModel__ImportsAssignment_3 )* | ||
2230 | loop7: | ||
2231 | do { | ||
2232 | int alt7=2; | ||
2233 | int LA7_0 = input.LA(1); | ||
2234 | |||
2235 | if ( (LA7_0==15) ) { | ||
2236 | alt7=1; | ||
2237 | } | ||
2238 | |||
2239 | |||
2240 | switch (alt7) { | ||
2241 | case 1 : | ||
2242 | // InternalCftLanguage.g:707:3: rule__CftModel__ImportsAssignment_3 | ||
2243 | { | ||
2244 | pushFollow(FOLLOW_5); | ||
2245 | rule__CftModel__ImportsAssignment_3(); | ||
2246 | |||
2247 | state._fsp--; | ||
2248 | |||
2249 | |||
2250 | } | ||
2251 | break; | ||
2252 | |||
2253 | default : | ||
2254 | break loop7; | ||
2255 | } | ||
2256 | } while (true); | ||
2257 | |||
2258 | after(grammarAccess.getCftModelAccess().getImportsAssignment_3()); | ||
2259 | |||
2260 | } | ||
2261 | |||
2262 | |||
2263 | } | ||
2264 | |||
2265 | } | ||
2266 | catch (RecognitionException re) { | ||
2267 | reportError(re); | ||
2268 | recover(input,re); | ||
2269 | } | ||
2270 | finally { | ||
2271 | |||
2272 | restoreStackSize(stackSize); | ||
2273 | |||
2274 | } | ||
2275 | return ; | ||
2276 | } | ||
2277 | // $ANTLR end "rule__CftModel__Group__3__Impl" | ||
2278 | |||
2279 | |||
2280 | // $ANTLR start "rule__CftModel__Group__4" | ||
2281 | // InternalCftLanguage.g:715:1: rule__CftModel__Group__4 : rule__CftModel__Group__4__Impl ; | ||
2282 | public final void rule__CftModel__Group__4() throws RecognitionException { | ||
2283 | |||
2284 | int stackSize = keepStackSize(); | ||
2285 | |||
2286 | try { | ||
2287 | // InternalCftLanguage.g:719:1: ( rule__CftModel__Group__4__Impl ) | ||
2288 | // InternalCftLanguage.g:720:2: rule__CftModel__Group__4__Impl | ||
2289 | { | ||
2290 | pushFollow(FOLLOW_2); | ||
2291 | rule__CftModel__Group__4__Impl(); | ||
2292 | |||
2293 | state._fsp--; | ||
2294 | |||
2295 | |||
2296 | } | ||
2297 | |||
2298 | } | ||
2299 | catch (RecognitionException re) { | ||
2300 | reportError(re); | ||
2301 | recover(input,re); | ||
2302 | } | ||
2303 | finally { | ||
2304 | |||
2305 | restoreStackSize(stackSize); | ||
2306 | |||
2307 | } | ||
2308 | return ; | ||
2309 | } | ||
2310 | // $ANTLR end "rule__CftModel__Group__4" | ||
2311 | |||
2312 | |||
2313 | // $ANTLR start "rule__CftModel__Group__4__Impl" | ||
2314 | // InternalCftLanguage.g:726:1: rule__CftModel__Group__4__Impl : ( ( rule__CftModel__Alternatives_4 )* ) ; | ||
2315 | public final void rule__CftModel__Group__4__Impl() throws RecognitionException { | ||
2316 | |||
2317 | int stackSize = keepStackSize(); | ||
2318 | |||
2319 | try { | ||
2320 | // InternalCftLanguage.g:730:1: ( ( ( rule__CftModel__Alternatives_4 )* ) ) | ||
2321 | // InternalCftLanguage.g:731:1: ( ( rule__CftModel__Alternatives_4 )* ) | ||
2322 | { | ||
2323 | // InternalCftLanguage.g:731:1: ( ( rule__CftModel__Alternatives_4 )* ) | ||
2324 | // InternalCftLanguage.g:732:2: ( rule__CftModel__Alternatives_4 )* | ||
2325 | { | ||
2326 | before(grammarAccess.getCftModelAccess().getAlternatives_4()); | ||
2327 | // InternalCftLanguage.g:733:2: ( rule__CftModel__Alternatives_4 )* | ||
2328 | loop8: | ||
2329 | do { | ||
2330 | int alt8=2; | ||
2331 | int LA8_0 = input.LA(1); | ||
2332 | |||
2333 | if ( (LA8_0==16||LA8_0==25) ) { | ||
2334 | alt8=1; | ||
2335 | } | ||
2336 | |||
2337 | |||
2338 | switch (alt8) { | ||
2339 | case 1 : | ||
2340 | // InternalCftLanguage.g:733:3: rule__CftModel__Alternatives_4 | ||
2341 | { | ||
2342 | pushFollow(FOLLOW_6); | ||
2343 | rule__CftModel__Alternatives_4(); | ||
2344 | |||
2345 | state._fsp--; | ||
2346 | |||
2347 | |||
2348 | } | ||
2349 | break; | ||
2350 | |||
2351 | default : | ||
2352 | break loop8; | ||
2353 | } | ||
2354 | } while (true); | ||
2355 | |||
2356 | after(grammarAccess.getCftModelAccess().getAlternatives_4()); | ||
2357 | |||
2358 | } | ||
2359 | |||
2360 | |||
2361 | } | ||
2362 | |||
2363 | } | ||
2364 | catch (RecognitionException re) { | ||
2365 | reportError(re); | ||
2366 | recover(input,re); | ||
2367 | } | ||
2368 | finally { | ||
2369 | |||
2370 | restoreStackSize(stackSize); | ||
2371 | |||
2372 | } | ||
2373 | return ; | ||
2374 | } | ||
2375 | // $ANTLR end "rule__CftModel__Group__4__Impl" | ||
2376 | |||
2377 | |||
2378 | // $ANTLR start "rule__ImportDeclaration__Group__0" | ||
2379 | // InternalCftLanguage.g:742:1: rule__ImportDeclaration__Group__0 : rule__ImportDeclaration__Group__0__Impl rule__ImportDeclaration__Group__1 ; | ||
2380 | public final void rule__ImportDeclaration__Group__0() throws RecognitionException { | ||
2381 | |||
2382 | int stackSize = keepStackSize(); | ||
2383 | |||
2384 | try { | ||
2385 | // InternalCftLanguage.g:746:1: ( rule__ImportDeclaration__Group__0__Impl rule__ImportDeclaration__Group__1 ) | ||
2386 | // InternalCftLanguage.g:747:2: rule__ImportDeclaration__Group__0__Impl rule__ImportDeclaration__Group__1 | ||
2387 | { | ||
2388 | pushFollow(FOLLOW_3); | ||
2389 | rule__ImportDeclaration__Group__0__Impl(); | ||
2390 | |||
2391 | state._fsp--; | ||
2392 | |||
2393 | pushFollow(FOLLOW_2); | ||
2394 | rule__ImportDeclaration__Group__1(); | ||
2395 | |||
2396 | state._fsp--; | ||
2397 | |||
2398 | |||
2399 | } | ||
2400 | |||
2401 | } | ||
2402 | catch (RecognitionException re) { | ||
2403 | reportError(re); | ||
2404 | recover(input,re); | ||
2405 | } | ||
2406 | finally { | ||
2407 | |||
2408 | restoreStackSize(stackSize); | ||
2409 | |||
2410 | } | ||
2411 | return ; | ||
2412 | } | ||
2413 | // $ANTLR end "rule__ImportDeclaration__Group__0" | ||
2414 | |||
2415 | |||
2416 | // $ANTLR start "rule__ImportDeclaration__Group__0__Impl" | ||
2417 | // InternalCftLanguage.g:754:1: rule__ImportDeclaration__Group__0__Impl : ( 'import' ) ; | ||
2418 | public final void rule__ImportDeclaration__Group__0__Impl() throws RecognitionException { | ||
2419 | |||
2420 | int stackSize = keepStackSize(); | ||
2421 | |||
2422 | try { | ||
2423 | // InternalCftLanguage.g:758:1: ( ( 'import' ) ) | ||
2424 | // InternalCftLanguage.g:759:1: ( 'import' ) | ||
2425 | { | ||
2426 | // InternalCftLanguage.g:759:1: ( 'import' ) | ||
2427 | // InternalCftLanguage.g:760:2: 'import' | ||
2428 | { | ||
2429 | before(grammarAccess.getImportDeclarationAccess().getImportKeyword_0()); | ||
2430 | match(input,15,FOLLOW_2); | ||
2431 | after(grammarAccess.getImportDeclarationAccess().getImportKeyword_0()); | ||
2432 | |||
2433 | } | ||
2434 | |||
2435 | |||
2436 | } | ||
2437 | |||
2438 | } | ||
2439 | catch (RecognitionException re) { | ||
2440 | reportError(re); | ||
2441 | recover(input,re); | ||
2442 | } | ||
2443 | finally { | ||
2444 | |||
2445 | restoreStackSize(stackSize); | ||
2446 | |||
2447 | } | ||
2448 | return ; | ||
2449 | } | ||
2450 | // $ANTLR end "rule__ImportDeclaration__Group__0__Impl" | ||
2451 | |||
2452 | |||
2453 | // $ANTLR start "rule__ImportDeclaration__Group__1" | ||
2454 | // InternalCftLanguage.g:769:1: rule__ImportDeclaration__Group__1 : rule__ImportDeclaration__Group__1__Impl rule__ImportDeclaration__Group__2 ; | ||
2455 | public final void rule__ImportDeclaration__Group__1() throws RecognitionException { | ||
2456 | |||
2457 | int stackSize = keepStackSize(); | ||
2458 | |||
2459 | try { | ||
2460 | // InternalCftLanguage.g:773:1: ( rule__ImportDeclaration__Group__1__Impl rule__ImportDeclaration__Group__2 ) | ||
2461 | // InternalCftLanguage.g:774:2: rule__ImportDeclaration__Group__1__Impl rule__ImportDeclaration__Group__2 | ||
2462 | { | ||
2463 | pushFollow(FOLLOW_7); | ||
2464 | rule__ImportDeclaration__Group__1__Impl(); | ||
2465 | |||
2466 | state._fsp--; | ||
2467 | |||
2468 | pushFollow(FOLLOW_2); | ||
2469 | rule__ImportDeclaration__Group__2(); | ||
2470 | |||
2471 | state._fsp--; | ||
2472 | |||
2473 | |||
2474 | } | ||
2475 | |||
2476 | } | ||
2477 | catch (RecognitionException re) { | ||
2478 | reportError(re); | ||
2479 | recover(input,re); | ||
2480 | } | ||
2481 | finally { | ||
2482 | |||
2483 | restoreStackSize(stackSize); | ||
2484 | |||
2485 | } | ||
2486 | return ; | ||
2487 | } | ||
2488 | // $ANTLR end "rule__ImportDeclaration__Group__1" | ||
2489 | |||
2490 | |||
2491 | // $ANTLR start "rule__ImportDeclaration__Group__1__Impl" | ||
2492 | // InternalCftLanguage.g:781:1: rule__ImportDeclaration__Group__1__Impl : ( ( rule__ImportDeclaration__ImportedNamespaceAssignment_1 ) ) ; | ||
2493 | public final void rule__ImportDeclaration__Group__1__Impl() throws RecognitionException { | ||
2494 | |||
2495 | int stackSize = keepStackSize(); | ||
2496 | |||
2497 | try { | ||
2498 | // InternalCftLanguage.g:785:1: ( ( ( rule__ImportDeclaration__ImportedNamespaceAssignment_1 ) ) ) | ||
2499 | // InternalCftLanguage.g:786:1: ( ( rule__ImportDeclaration__ImportedNamespaceAssignment_1 ) ) | ||
2500 | { | ||
2501 | // InternalCftLanguage.g:786:1: ( ( rule__ImportDeclaration__ImportedNamespaceAssignment_1 ) ) | ||
2502 | // InternalCftLanguage.g:787:2: ( rule__ImportDeclaration__ImportedNamespaceAssignment_1 ) | ||
2503 | { | ||
2504 | before(grammarAccess.getImportDeclarationAccess().getImportedNamespaceAssignment_1()); | ||
2505 | // InternalCftLanguage.g:788:2: ( rule__ImportDeclaration__ImportedNamespaceAssignment_1 ) | ||
2506 | // InternalCftLanguage.g:788:3: rule__ImportDeclaration__ImportedNamespaceAssignment_1 | ||
2507 | { | ||
2508 | pushFollow(FOLLOW_2); | ||
2509 | rule__ImportDeclaration__ImportedNamespaceAssignment_1(); | ||
2510 | |||
2511 | state._fsp--; | ||
2512 | |||
2513 | |||
2514 | } | ||
2515 | |||
2516 | after(grammarAccess.getImportDeclarationAccess().getImportedNamespaceAssignment_1()); | ||
2517 | |||
2518 | } | ||
2519 | |||
2520 | |||
2521 | } | ||
2522 | |||
2523 | } | ||
2524 | catch (RecognitionException re) { | ||
2525 | reportError(re); | ||
2526 | recover(input,re); | ||
2527 | } | ||
2528 | finally { | ||
2529 | |||
2530 | restoreStackSize(stackSize); | ||
2531 | |||
2532 | } | ||
2533 | return ; | ||
2534 | } | ||
2535 | // $ANTLR end "rule__ImportDeclaration__Group__1__Impl" | ||
2536 | |||
2537 | |||
2538 | // $ANTLR start "rule__ImportDeclaration__Group__2" | ||
2539 | // InternalCftLanguage.g:796:1: rule__ImportDeclaration__Group__2 : rule__ImportDeclaration__Group__2__Impl ; | ||
2540 | public final void rule__ImportDeclaration__Group__2() throws RecognitionException { | ||
2541 | |||
2542 | int stackSize = keepStackSize(); | ||
2543 | |||
2544 | try { | ||
2545 | // InternalCftLanguage.g:800:1: ( rule__ImportDeclaration__Group__2__Impl ) | ||
2546 | // InternalCftLanguage.g:801:2: rule__ImportDeclaration__Group__2__Impl | ||
2547 | { | ||
2548 | pushFollow(FOLLOW_2); | ||
2549 | rule__ImportDeclaration__Group__2__Impl(); | ||
2550 | |||
2551 | state._fsp--; | ||
2552 | |||
2553 | |||
2554 | } | ||
2555 | |||
2556 | } | ||
2557 | catch (RecognitionException re) { | ||
2558 | reportError(re); | ||
2559 | recover(input,re); | ||
2560 | } | ||
2561 | finally { | ||
2562 | |||
2563 | restoreStackSize(stackSize); | ||
2564 | |||
2565 | } | ||
2566 | return ; | ||
2567 | } | ||
2568 | // $ANTLR end "rule__ImportDeclaration__Group__2" | ||
2569 | |||
2570 | |||
2571 | // $ANTLR start "rule__ImportDeclaration__Group__2__Impl" | ||
2572 | // InternalCftLanguage.g:807:1: rule__ImportDeclaration__Group__2__Impl : ( ( ';' )? ) ; | ||
2573 | public final void rule__ImportDeclaration__Group__2__Impl() throws RecognitionException { | ||
2574 | |||
2575 | int stackSize = keepStackSize(); | ||
2576 | |||
2577 | try { | ||
2578 | // InternalCftLanguage.g:811:1: ( ( ( ';' )? ) ) | ||
2579 | // InternalCftLanguage.g:812:1: ( ( ';' )? ) | ||
2580 | { | ||
2581 | // InternalCftLanguage.g:812:1: ( ( ';' )? ) | ||
2582 | // InternalCftLanguage.g:813:2: ( ';' )? | ||
2583 | { | ||
2584 | before(grammarAccess.getImportDeclarationAccess().getSemicolonKeyword_2()); | ||
2585 | // InternalCftLanguage.g:814:2: ( ';' )? | ||
2586 | int alt9=2; | ||
2587 | int LA9_0 = input.LA(1); | ||
2588 | |||
2589 | if ( (LA9_0==14) ) { | ||
2590 | alt9=1; | ||
2591 | } | ||
2592 | switch (alt9) { | ||
2593 | case 1 : | ||
2594 | // InternalCftLanguage.g:814:3: ';' | ||
2595 | { | ||
2596 | match(input,14,FOLLOW_2); | ||
2597 | |||
2598 | } | ||
2599 | break; | ||
2600 | |||
2601 | } | ||
2602 | |||
2603 | after(grammarAccess.getImportDeclarationAccess().getSemicolonKeyword_2()); | ||
2604 | |||
2605 | } | ||
2606 | |||
2607 | |||
2608 | } | ||
2609 | |||
2610 | } | ||
2611 | catch (RecognitionException re) { | ||
2612 | reportError(re); | ||
2613 | recover(input,re); | ||
2614 | } | ||
2615 | finally { | ||
2616 | |||
2617 | restoreStackSize(stackSize); | ||
2618 | |||
2619 | } | ||
2620 | return ; | ||
2621 | } | ||
2622 | // $ANTLR end "rule__ImportDeclaration__Group__2__Impl" | ||
2623 | |||
2624 | |||
2625 | // $ANTLR start "rule__ComponentDefinition__Group__0" | ||
2626 | // InternalCftLanguage.g:823:1: rule__ComponentDefinition__Group__0 : rule__ComponentDefinition__Group__0__Impl rule__ComponentDefinition__Group__1 ; | ||
2627 | public final void rule__ComponentDefinition__Group__0() throws RecognitionException { | ||
2628 | |||
2629 | int stackSize = keepStackSize(); | ||
2630 | |||
2631 | try { | ||
2632 | // InternalCftLanguage.g:827:1: ( rule__ComponentDefinition__Group__0__Impl rule__ComponentDefinition__Group__1 ) | ||
2633 | // InternalCftLanguage.g:828:2: rule__ComponentDefinition__Group__0__Impl rule__ComponentDefinition__Group__1 | ||
2634 | { | ||
2635 | pushFollow(FOLLOW_3); | ||
2636 | rule__ComponentDefinition__Group__0__Impl(); | ||
2637 | |||
2638 | state._fsp--; | ||
2639 | |||
2640 | pushFollow(FOLLOW_2); | ||
2641 | rule__ComponentDefinition__Group__1(); | ||
2642 | |||
2643 | state._fsp--; | ||
2644 | |||
2645 | |||
2646 | } | ||
2647 | |||
2648 | } | ||
2649 | catch (RecognitionException re) { | ||
2650 | reportError(re); | ||
2651 | recover(input,re); | ||
2652 | } | ||
2653 | finally { | ||
2654 | |||
2655 | restoreStackSize(stackSize); | ||
2656 | |||
2657 | } | ||
2658 | return ; | ||
2659 | } | ||
2660 | // $ANTLR end "rule__ComponentDefinition__Group__0" | ||
2661 | |||
2662 | |||
2663 | // $ANTLR start "rule__ComponentDefinition__Group__0__Impl" | ||
2664 | // InternalCftLanguage.g:835:1: rule__ComponentDefinition__Group__0__Impl : ( 'cft' ) ; | ||
2665 | public final void rule__ComponentDefinition__Group__0__Impl() throws RecognitionException { | ||
2666 | |||
2667 | int stackSize = keepStackSize(); | ||
2668 | |||
2669 | try { | ||
2670 | // InternalCftLanguage.g:839:1: ( ( 'cft' ) ) | ||
2671 | // InternalCftLanguage.g:840:1: ( 'cft' ) | ||
2672 | { | ||
2673 | // InternalCftLanguage.g:840:1: ( 'cft' ) | ||
2674 | // InternalCftLanguage.g:841:2: 'cft' | ||
2675 | { | ||
2676 | before(grammarAccess.getComponentDefinitionAccess().getCftKeyword_0()); | ||
2677 | match(input,16,FOLLOW_2); | ||
2678 | after(grammarAccess.getComponentDefinitionAccess().getCftKeyword_0()); | ||
2679 | |||
2680 | } | ||
2681 | |||
2682 | |||
2683 | } | ||
2684 | |||
2685 | } | ||
2686 | catch (RecognitionException re) { | ||
2687 | reportError(re); | ||
2688 | recover(input,re); | ||
2689 | } | ||
2690 | finally { | ||
2691 | |||
2692 | restoreStackSize(stackSize); | ||
2693 | |||
2694 | } | ||
2695 | return ; | ||
2696 | } | ||
2697 | // $ANTLR end "rule__ComponentDefinition__Group__0__Impl" | ||
2698 | |||
2699 | |||
2700 | // $ANTLR start "rule__ComponentDefinition__Group__1" | ||
2701 | // InternalCftLanguage.g:850:1: rule__ComponentDefinition__Group__1 : rule__ComponentDefinition__Group__1__Impl rule__ComponentDefinition__Group__2 ; | ||
2702 | public final void rule__ComponentDefinition__Group__1() throws RecognitionException { | ||
2703 | |||
2704 | int stackSize = keepStackSize(); | ||
2705 | |||
2706 | try { | ||
2707 | // InternalCftLanguage.g:854:1: ( rule__ComponentDefinition__Group__1__Impl rule__ComponentDefinition__Group__2 ) | ||
2708 | // InternalCftLanguage.g:855:2: rule__ComponentDefinition__Group__1__Impl rule__ComponentDefinition__Group__2 | ||
2709 | { | ||
2710 | pushFollow(FOLLOW_8); | ||
2711 | rule__ComponentDefinition__Group__1__Impl(); | ||
2712 | |||
2713 | state._fsp--; | ||
2714 | |||
2715 | pushFollow(FOLLOW_2); | ||
2716 | rule__ComponentDefinition__Group__2(); | ||
2717 | |||
2718 | state._fsp--; | ||
2719 | |||
2720 | |||
2721 | } | ||
2722 | |||
2723 | } | ||
2724 | catch (RecognitionException re) { | ||
2725 | reportError(re); | ||
2726 | recover(input,re); | ||
2727 | } | ||
2728 | finally { | ||
2729 | |||
2730 | restoreStackSize(stackSize); | ||
2731 | |||
2732 | } | ||
2733 | return ; | ||
2734 | } | ||
2735 | // $ANTLR end "rule__ComponentDefinition__Group__1" | ||
2736 | |||
2737 | |||
2738 | // $ANTLR start "rule__ComponentDefinition__Group__1__Impl" | ||
2739 | // InternalCftLanguage.g:862:1: rule__ComponentDefinition__Group__1__Impl : ( ( rule__ComponentDefinition__NameAssignment_1 ) ) ; | ||
2740 | public final void rule__ComponentDefinition__Group__1__Impl() throws RecognitionException { | ||
2741 | |||
2742 | int stackSize = keepStackSize(); | ||
2743 | |||
2744 | try { | ||
2745 | // InternalCftLanguage.g:866:1: ( ( ( rule__ComponentDefinition__NameAssignment_1 ) ) ) | ||
2746 | // InternalCftLanguage.g:867:1: ( ( rule__ComponentDefinition__NameAssignment_1 ) ) | ||
2747 | { | ||
2748 | // InternalCftLanguage.g:867:1: ( ( rule__ComponentDefinition__NameAssignment_1 ) ) | ||
2749 | // InternalCftLanguage.g:868:2: ( rule__ComponentDefinition__NameAssignment_1 ) | ||
2750 | { | ||
2751 | before(grammarAccess.getComponentDefinitionAccess().getNameAssignment_1()); | ||
2752 | // InternalCftLanguage.g:869:2: ( rule__ComponentDefinition__NameAssignment_1 ) | ||
2753 | // InternalCftLanguage.g:869:3: rule__ComponentDefinition__NameAssignment_1 | ||
2754 | { | ||
2755 | pushFollow(FOLLOW_2); | ||
2756 | rule__ComponentDefinition__NameAssignment_1(); | ||
2757 | |||
2758 | state._fsp--; | ||
2759 | |||
2760 | |||
2761 | } | ||
2762 | |||
2763 | after(grammarAccess.getComponentDefinitionAccess().getNameAssignment_1()); | ||
2764 | |||
2765 | } | ||
2766 | |||
2767 | |||
2768 | } | ||
2769 | |||
2770 | } | ||
2771 | catch (RecognitionException re) { | ||
2772 | reportError(re); | ||
2773 | recover(input,re); | ||
2774 | } | ||
2775 | finally { | ||
2776 | |||
2777 | restoreStackSize(stackSize); | ||
2778 | |||
2779 | } | ||
2780 | return ; | ||
2781 | } | ||
2782 | // $ANTLR end "rule__ComponentDefinition__Group__1__Impl" | ||
2783 | |||
2784 | |||
2785 | // $ANTLR start "rule__ComponentDefinition__Group__2" | ||
2786 | // InternalCftLanguage.g:877:1: rule__ComponentDefinition__Group__2 : rule__ComponentDefinition__Group__2__Impl rule__ComponentDefinition__Group__3 ; | ||
2787 | public final void rule__ComponentDefinition__Group__2() throws RecognitionException { | ||
2788 | |||
2789 | int stackSize = keepStackSize(); | ||
2790 | |||
2791 | try { | ||
2792 | // InternalCftLanguage.g:881:1: ( rule__ComponentDefinition__Group__2__Impl rule__ComponentDefinition__Group__3 ) | ||
2793 | // InternalCftLanguage.g:882:2: rule__ComponentDefinition__Group__2__Impl rule__ComponentDefinition__Group__3 | ||
2794 | { | ||
2795 | pushFollow(FOLLOW_9); | ||
2796 | rule__ComponentDefinition__Group__2__Impl(); | ||
2797 | |||
2798 | state._fsp--; | ||
2799 | |||
2800 | pushFollow(FOLLOW_2); | ||
2801 | rule__ComponentDefinition__Group__3(); | ||
2802 | |||
2803 | state._fsp--; | ||
2804 | |||
2805 | |||
2806 | } | ||
2807 | |||
2808 | } | ||
2809 | catch (RecognitionException re) { | ||
2810 | reportError(re); | ||
2811 | recover(input,re); | ||
2812 | } | ||
2813 | finally { | ||
2814 | |||
2815 | restoreStackSize(stackSize); | ||
2816 | |||
2817 | } | ||
2818 | return ; | ||
2819 | } | ||
2820 | // $ANTLR end "rule__ComponentDefinition__Group__2" | ||
2821 | |||
2822 | |||
2823 | // $ANTLR start "rule__ComponentDefinition__Group__2__Impl" | ||
2824 | // InternalCftLanguage.g:889:1: rule__ComponentDefinition__Group__2__Impl : ( '{' ) ; | ||
2825 | public final void rule__ComponentDefinition__Group__2__Impl() throws RecognitionException { | ||
2826 | |||
2827 | int stackSize = keepStackSize(); | ||
2828 | |||
2829 | try { | ||
2830 | // InternalCftLanguage.g:893:1: ( ( '{' ) ) | ||
2831 | // InternalCftLanguage.g:894:1: ( '{' ) | ||
2832 | { | ||
2833 | // InternalCftLanguage.g:894:1: ( '{' ) | ||
2834 | // InternalCftLanguage.g:895:2: '{' | ||
2835 | { | ||
2836 | before(grammarAccess.getComponentDefinitionAccess().getLeftCurlyBracketKeyword_2()); | ||
2837 | match(input,17,FOLLOW_2); | ||
2838 | after(grammarAccess.getComponentDefinitionAccess().getLeftCurlyBracketKeyword_2()); | ||
2839 | |||
2840 | } | ||
2841 | |||
2842 | |||
2843 | } | ||
2844 | |||
2845 | } | ||
2846 | catch (RecognitionException re) { | ||
2847 | reportError(re); | ||
2848 | recover(input,re); | ||
2849 | } | ||
2850 | finally { | ||
2851 | |||
2852 | restoreStackSize(stackSize); | ||
2853 | |||
2854 | } | ||
2855 | return ; | ||
2856 | } | ||
2857 | // $ANTLR end "rule__ComponentDefinition__Group__2__Impl" | ||
2858 | |||
2859 | |||
2860 | // $ANTLR start "rule__ComponentDefinition__Group__3" | ||
2861 | // InternalCftLanguage.g:904:1: rule__ComponentDefinition__Group__3 : rule__ComponentDefinition__Group__3__Impl rule__ComponentDefinition__Group__4 ; | ||
2862 | public final void rule__ComponentDefinition__Group__3() throws RecognitionException { | ||
2863 | |||
2864 | int stackSize = keepStackSize(); | ||
2865 | |||
2866 | try { | ||
2867 | // InternalCftLanguage.g:908:1: ( rule__ComponentDefinition__Group__3__Impl rule__ComponentDefinition__Group__4 ) | ||
2868 | // InternalCftLanguage.g:909:2: rule__ComponentDefinition__Group__3__Impl rule__ComponentDefinition__Group__4 | ||
2869 | { | ||
2870 | pushFollow(FOLLOW_10); | ||
2871 | rule__ComponentDefinition__Group__3__Impl(); | ||
2872 | |||
2873 | state._fsp--; | ||
2874 | |||
2875 | pushFollow(FOLLOW_2); | ||
2876 | rule__ComponentDefinition__Group__4(); | ||
2877 | |||
2878 | state._fsp--; | ||
2879 | |||
2880 | |||
2881 | } | ||
2882 | |||
2883 | } | ||
2884 | catch (RecognitionException re) { | ||
2885 | reportError(re); | ||
2886 | recover(input,re); | ||
2887 | } | ||
2888 | finally { | ||
2889 | |||
2890 | restoreStackSize(stackSize); | ||
2891 | |||
2892 | } | ||
2893 | return ; | ||
2894 | } | ||
2895 | // $ANTLR end "rule__ComponentDefinition__Group__3" | ||
2896 | |||
2897 | |||
2898 | // $ANTLR start "rule__ComponentDefinition__Group__3__Impl" | ||
2899 | // InternalCftLanguage.g:916:1: rule__ComponentDefinition__Group__3__Impl : ( ( rule__ComponentDefinition__UnorderedGroup_3 ) ) ; | ||
2900 | public final void rule__ComponentDefinition__Group__3__Impl() throws RecognitionException { | ||
2901 | |||
2902 | int stackSize = keepStackSize(); | ||
2903 | |||
2904 | try { | ||
2905 | // InternalCftLanguage.g:920:1: ( ( ( rule__ComponentDefinition__UnorderedGroup_3 ) ) ) | ||
2906 | // InternalCftLanguage.g:921:1: ( ( rule__ComponentDefinition__UnorderedGroup_3 ) ) | ||
2907 | { | ||
2908 | // InternalCftLanguage.g:921:1: ( ( rule__ComponentDefinition__UnorderedGroup_3 ) ) | ||
2909 | // InternalCftLanguage.g:922:2: ( rule__ComponentDefinition__UnorderedGroup_3 ) | ||
2910 | { | ||
2911 | before(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
2912 | // InternalCftLanguage.g:923:2: ( rule__ComponentDefinition__UnorderedGroup_3 ) | ||
2913 | // InternalCftLanguage.g:923:3: rule__ComponentDefinition__UnorderedGroup_3 | ||
2914 | { | ||
2915 | pushFollow(FOLLOW_2); | ||
2916 | rule__ComponentDefinition__UnorderedGroup_3(); | ||
2917 | |||
2918 | state._fsp--; | ||
2919 | |||
2920 | |||
2921 | } | ||
2922 | |||
2923 | after(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
2924 | |||
2925 | } | ||
2926 | |||
2927 | |||
2928 | } | ||
2929 | |||
2930 | } | ||
2931 | catch (RecognitionException re) { | ||
2932 | reportError(re); | ||
2933 | recover(input,re); | ||
2934 | } | ||
2935 | finally { | ||
2936 | |||
2937 | restoreStackSize(stackSize); | ||
2938 | |||
2939 | } | ||
2940 | return ; | ||
2941 | } | ||
2942 | // $ANTLR end "rule__ComponentDefinition__Group__3__Impl" | ||
2943 | |||
2944 | |||
2945 | // $ANTLR start "rule__ComponentDefinition__Group__4" | ||
2946 | // InternalCftLanguage.g:931:1: rule__ComponentDefinition__Group__4 : rule__ComponentDefinition__Group__4__Impl rule__ComponentDefinition__Group__5 ; | ||
2947 | public final void rule__ComponentDefinition__Group__4() throws RecognitionException { | ||
2948 | |||
2949 | int stackSize = keepStackSize(); | ||
2950 | |||
2951 | try { | ||
2952 | // InternalCftLanguage.g:935:1: ( rule__ComponentDefinition__Group__4__Impl rule__ComponentDefinition__Group__5 ) | ||
2953 | // InternalCftLanguage.g:936:2: rule__ComponentDefinition__Group__4__Impl rule__ComponentDefinition__Group__5 | ||
2954 | { | ||
2955 | pushFollow(FOLLOW_10); | ||
2956 | rule__ComponentDefinition__Group__4__Impl(); | ||
2957 | |||
2958 | state._fsp--; | ||
2959 | |||
2960 | pushFollow(FOLLOW_2); | ||
2961 | rule__ComponentDefinition__Group__5(); | ||
2962 | |||
2963 | state._fsp--; | ||
2964 | |||
2965 | |||
2966 | } | ||
2967 | |||
2968 | } | ||
2969 | catch (RecognitionException re) { | ||
2970 | reportError(re); | ||
2971 | recover(input,re); | ||
2972 | } | ||
2973 | finally { | ||
2974 | |||
2975 | restoreStackSize(stackSize); | ||
2976 | |||
2977 | } | ||
2978 | return ; | ||
2979 | } | ||
2980 | // $ANTLR end "rule__ComponentDefinition__Group__4" | ||
2981 | |||
2982 | |||
2983 | // $ANTLR start "rule__ComponentDefinition__Group__4__Impl" | ||
2984 | // InternalCftLanguage.g:943:1: rule__ComponentDefinition__Group__4__Impl : ( ( rule__ComponentDefinition__Group_4__0 )* ) ; | ||
2985 | public final void rule__ComponentDefinition__Group__4__Impl() throws RecognitionException { | ||
2986 | |||
2987 | int stackSize = keepStackSize(); | ||
2988 | |||
2989 | try { | ||
2990 | // InternalCftLanguage.g:947:1: ( ( ( rule__ComponentDefinition__Group_4__0 )* ) ) | ||
2991 | // InternalCftLanguage.g:948:1: ( ( rule__ComponentDefinition__Group_4__0 )* ) | ||
2992 | { | ||
2993 | // InternalCftLanguage.g:948:1: ( ( rule__ComponentDefinition__Group_4__0 )* ) | ||
2994 | // InternalCftLanguage.g:949:2: ( rule__ComponentDefinition__Group_4__0 )* | ||
2995 | { | ||
2996 | before(grammarAccess.getComponentDefinitionAccess().getGroup_4()); | ||
2997 | // InternalCftLanguage.g:950:2: ( rule__ComponentDefinition__Group_4__0 )* | ||
2998 | loop10: | ||
2999 | do { | ||
3000 | int alt10=2; | ||
3001 | int LA10_0 = input.LA(1); | ||
3002 | |||
3003 | if ( (LA10_0==RULE_ID) ) { | ||
3004 | alt10=1; | ||
3005 | } | ||
3006 | |||
3007 | |||
3008 | switch (alt10) { | ||
3009 | case 1 : | ||
3010 | // InternalCftLanguage.g:950:3: rule__ComponentDefinition__Group_4__0 | ||
3011 | { | ||
3012 | pushFollow(FOLLOW_11); | ||
3013 | rule__ComponentDefinition__Group_4__0(); | ||
3014 | |||
3015 | state._fsp--; | ||
3016 | |||
3017 | |||
3018 | } | ||
3019 | break; | ||
3020 | |||
3021 | default : | ||
3022 | break loop10; | ||
3023 | } | ||
3024 | } while (true); | ||
3025 | |||
3026 | after(grammarAccess.getComponentDefinitionAccess().getGroup_4()); | ||
3027 | |||
3028 | } | ||
3029 | |||
3030 | |||
3031 | } | ||
3032 | |||
3033 | } | ||
3034 | catch (RecognitionException re) { | ||
3035 | reportError(re); | ||
3036 | recover(input,re); | ||
3037 | } | ||
3038 | finally { | ||
3039 | |||
3040 | restoreStackSize(stackSize); | ||
3041 | |||
3042 | } | ||
3043 | return ; | ||
3044 | } | ||
3045 | // $ANTLR end "rule__ComponentDefinition__Group__4__Impl" | ||
3046 | |||
3047 | |||
3048 | // $ANTLR start "rule__ComponentDefinition__Group__5" | ||
3049 | // InternalCftLanguage.g:958:1: rule__ComponentDefinition__Group__5 : rule__ComponentDefinition__Group__5__Impl ; | ||
3050 | public final void rule__ComponentDefinition__Group__5() throws RecognitionException { | ||
3051 | |||
3052 | int stackSize = keepStackSize(); | ||
3053 | |||
3054 | try { | ||
3055 | // InternalCftLanguage.g:962:1: ( rule__ComponentDefinition__Group__5__Impl ) | ||
3056 | // InternalCftLanguage.g:963:2: rule__ComponentDefinition__Group__5__Impl | ||
3057 | { | ||
3058 | pushFollow(FOLLOW_2); | ||
3059 | rule__ComponentDefinition__Group__5__Impl(); | ||
3060 | |||
3061 | state._fsp--; | ||
3062 | |||
3063 | |||
3064 | } | ||
3065 | |||
3066 | } | ||
3067 | catch (RecognitionException re) { | ||
3068 | reportError(re); | ||
3069 | recover(input,re); | ||
3070 | } | ||
3071 | finally { | ||
3072 | |||
3073 | restoreStackSize(stackSize); | ||
3074 | |||
3075 | } | ||
3076 | return ; | ||
3077 | } | ||
3078 | // $ANTLR end "rule__ComponentDefinition__Group__5" | ||
3079 | |||
3080 | |||
3081 | // $ANTLR start "rule__ComponentDefinition__Group__5__Impl" | ||
3082 | // InternalCftLanguage.g:969:1: rule__ComponentDefinition__Group__5__Impl : ( '}' ) ; | ||
3083 | public final void rule__ComponentDefinition__Group__5__Impl() throws RecognitionException { | ||
3084 | |||
3085 | int stackSize = keepStackSize(); | ||
3086 | |||
3087 | try { | ||
3088 | // InternalCftLanguage.g:973:1: ( ( '}' ) ) | ||
3089 | // InternalCftLanguage.g:974:1: ( '}' ) | ||
3090 | { | ||
3091 | // InternalCftLanguage.g:974:1: ( '}' ) | ||
3092 | // InternalCftLanguage.g:975:2: '}' | ||
3093 | { | ||
3094 | before(grammarAccess.getComponentDefinitionAccess().getRightCurlyBracketKeyword_5()); | ||
3095 | match(input,18,FOLLOW_2); | ||
3096 | after(grammarAccess.getComponentDefinitionAccess().getRightCurlyBracketKeyword_5()); | ||
3097 | |||
3098 | } | ||
3099 | |||
3100 | |||
3101 | } | ||
3102 | |||
3103 | } | ||
3104 | catch (RecognitionException re) { | ||
3105 | reportError(re); | ||
3106 | recover(input,re); | ||
3107 | } | ||
3108 | finally { | ||
3109 | |||
3110 | restoreStackSize(stackSize); | ||
3111 | |||
3112 | } | ||
3113 | return ; | ||
3114 | } | ||
3115 | // $ANTLR end "rule__ComponentDefinition__Group__5__Impl" | ||
3116 | |||
3117 | |||
3118 | // $ANTLR start "rule__ComponentDefinition__Group_3_0__0" | ||
3119 | // InternalCftLanguage.g:985:1: rule__ComponentDefinition__Group_3_0__0 : rule__ComponentDefinition__Group_3_0__0__Impl rule__ComponentDefinition__Group_3_0__1 ; | ||
3120 | public final void rule__ComponentDefinition__Group_3_0__0() throws RecognitionException { | ||
3121 | |||
3122 | int stackSize = keepStackSize(); | ||
3123 | |||
3124 | try { | ||
3125 | // InternalCftLanguage.g:989:1: ( rule__ComponentDefinition__Group_3_0__0__Impl rule__ComponentDefinition__Group_3_0__1 ) | ||
3126 | // InternalCftLanguage.g:990:2: rule__ComponentDefinition__Group_3_0__0__Impl rule__ComponentDefinition__Group_3_0__1 | ||
3127 | { | ||
3128 | pushFollow(FOLLOW_12); | ||
3129 | rule__ComponentDefinition__Group_3_0__0__Impl(); | ||
3130 | |||
3131 | state._fsp--; | ||
3132 | |||
3133 | pushFollow(FOLLOW_2); | ||
3134 | rule__ComponentDefinition__Group_3_0__1(); | ||
3135 | |||
3136 | state._fsp--; | ||
3137 | |||
3138 | |||
3139 | } | ||
3140 | |||
3141 | } | ||
3142 | catch (RecognitionException re) { | ||
3143 | reportError(re); | ||
3144 | recover(input,re); | ||
3145 | } | ||
3146 | finally { | ||
3147 | |||
3148 | restoreStackSize(stackSize); | ||
3149 | |||
3150 | } | ||
3151 | return ; | ||
3152 | } | ||
3153 | // $ANTLR end "rule__ComponentDefinition__Group_3_0__0" | ||
3154 | |||
3155 | |||
3156 | // $ANTLR start "rule__ComponentDefinition__Group_3_0__0__Impl" | ||
3157 | // InternalCftLanguage.g:997:1: rule__ComponentDefinition__Group_3_0__0__Impl : ( 'in' ) ; | ||
3158 | public final void rule__ComponentDefinition__Group_3_0__0__Impl() throws RecognitionException { | ||
3159 | |||
3160 | int stackSize = keepStackSize(); | ||
3161 | |||
3162 | try { | ||
3163 | // InternalCftLanguage.g:1001:1: ( ( 'in' ) ) | ||
3164 | // InternalCftLanguage.g:1002:1: ( 'in' ) | ||
3165 | { | ||
3166 | // InternalCftLanguage.g:1002:1: ( 'in' ) | ||
3167 | // InternalCftLanguage.g:1003:2: 'in' | ||
3168 | { | ||
3169 | before(grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()); | ||
3170 | match(input,19,FOLLOW_2); | ||
3171 | after(grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()); | ||
3172 | |||
3173 | } | ||
3174 | |||
3175 | |||
3176 | } | ||
3177 | |||
3178 | } | ||
3179 | catch (RecognitionException re) { | ||
3180 | reportError(re); | ||
3181 | recover(input,re); | ||
3182 | } | ||
3183 | finally { | ||
3184 | |||
3185 | restoreStackSize(stackSize); | ||
3186 | |||
3187 | } | ||
3188 | return ; | ||
3189 | } | ||
3190 | // $ANTLR end "rule__ComponentDefinition__Group_3_0__0__Impl" | ||
3191 | |||
3192 | |||
3193 | // $ANTLR start "rule__ComponentDefinition__Group_3_0__1" | ||
3194 | // InternalCftLanguage.g:1012:1: rule__ComponentDefinition__Group_3_0__1 : rule__ComponentDefinition__Group_3_0__1__Impl rule__ComponentDefinition__Group_3_0__2 ; | ||
3195 | public final void rule__ComponentDefinition__Group_3_0__1() throws RecognitionException { | ||
3196 | |||
3197 | int stackSize = keepStackSize(); | ||
3198 | |||
3199 | try { | ||
3200 | // InternalCftLanguage.g:1016:1: ( rule__ComponentDefinition__Group_3_0__1__Impl rule__ComponentDefinition__Group_3_0__2 ) | ||
3201 | // InternalCftLanguage.g:1017:2: rule__ComponentDefinition__Group_3_0__1__Impl rule__ComponentDefinition__Group_3_0__2 | ||
3202 | { | ||
3203 | pushFollow(FOLLOW_12); | ||
3204 | rule__ComponentDefinition__Group_3_0__1__Impl(); | ||
3205 | |||
3206 | state._fsp--; | ||
3207 | |||
3208 | pushFollow(FOLLOW_2); | ||
3209 | rule__ComponentDefinition__Group_3_0__2(); | ||
3210 | |||
3211 | state._fsp--; | ||
3212 | |||
3213 | |||
3214 | } | ||
3215 | |||
3216 | } | ||
3217 | catch (RecognitionException re) { | ||
3218 | reportError(re); | ||
3219 | recover(input,re); | ||
3220 | } | ||
3221 | finally { | ||
3222 | |||
3223 | restoreStackSize(stackSize); | ||
3224 | |||
3225 | } | ||
3226 | return ; | ||
3227 | } | ||
3228 | // $ANTLR end "rule__ComponentDefinition__Group_3_0__1" | ||
3229 | |||
3230 | |||
3231 | // $ANTLR start "rule__ComponentDefinition__Group_3_0__1__Impl" | ||
3232 | // InternalCftLanguage.g:1024:1: rule__ComponentDefinition__Group_3_0__1__Impl : ( ( rule__ComponentDefinition__InputEventsAssignment_3_0_1 )* ) ; | ||
3233 | public final void rule__ComponentDefinition__Group_3_0__1__Impl() throws RecognitionException { | ||
3234 | |||
3235 | int stackSize = keepStackSize(); | ||
3236 | |||
3237 | try { | ||
3238 | // InternalCftLanguage.g:1028:1: ( ( ( rule__ComponentDefinition__InputEventsAssignment_3_0_1 )* ) ) | ||
3239 | // InternalCftLanguage.g:1029:1: ( ( rule__ComponentDefinition__InputEventsAssignment_3_0_1 )* ) | ||
3240 | { | ||
3241 | // InternalCftLanguage.g:1029:1: ( ( rule__ComponentDefinition__InputEventsAssignment_3_0_1 )* ) | ||
3242 | // InternalCftLanguage.g:1030:2: ( rule__ComponentDefinition__InputEventsAssignment_3_0_1 )* | ||
3243 | { | ||
3244 | before(grammarAccess.getComponentDefinitionAccess().getInputEventsAssignment_3_0_1()); | ||
3245 | // InternalCftLanguage.g:1031:2: ( rule__ComponentDefinition__InputEventsAssignment_3_0_1 )* | ||
3246 | loop11: | ||
3247 | do { | ||
3248 | int alt11=2; | ||
3249 | int LA11_0 = input.LA(1); | ||
3250 | |||
3251 | if ( (LA11_0==RULE_ID) ) { | ||
3252 | alt11=1; | ||
3253 | } | ||
3254 | |||
3255 | |||
3256 | switch (alt11) { | ||
3257 | case 1 : | ||
3258 | // InternalCftLanguage.g:1031:3: rule__ComponentDefinition__InputEventsAssignment_3_0_1 | ||
3259 | { | ||
3260 | pushFollow(FOLLOW_11); | ||
3261 | rule__ComponentDefinition__InputEventsAssignment_3_0_1(); | ||
3262 | |||
3263 | state._fsp--; | ||
3264 | |||
3265 | |||
3266 | } | ||
3267 | break; | ||
3268 | |||
3269 | default : | ||
3270 | break loop11; | ||
3271 | } | ||
3272 | } while (true); | ||
3273 | |||
3274 | after(grammarAccess.getComponentDefinitionAccess().getInputEventsAssignment_3_0_1()); | ||
3275 | |||
3276 | } | ||
3277 | |||
3278 | |||
3279 | } | ||
3280 | |||
3281 | } | ||
3282 | catch (RecognitionException re) { | ||
3283 | reportError(re); | ||
3284 | recover(input,re); | ||
3285 | } | ||
3286 | finally { | ||
3287 | |||
3288 | restoreStackSize(stackSize); | ||
3289 | |||
3290 | } | ||
3291 | return ; | ||
3292 | } | ||
3293 | // $ANTLR end "rule__ComponentDefinition__Group_3_0__1__Impl" | ||
3294 | |||
3295 | |||
3296 | // $ANTLR start "rule__ComponentDefinition__Group_3_0__2" | ||
3297 | // InternalCftLanguage.g:1039:1: rule__ComponentDefinition__Group_3_0__2 : rule__ComponentDefinition__Group_3_0__2__Impl ; | ||
3298 | public final void rule__ComponentDefinition__Group_3_0__2() throws RecognitionException { | ||
3299 | |||
3300 | int stackSize = keepStackSize(); | ||
3301 | |||
3302 | try { | ||
3303 | // InternalCftLanguage.g:1043:1: ( rule__ComponentDefinition__Group_3_0__2__Impl ) | ||
3304 | // InternalCftLanguage.g:1044:2: rule__ComponentDefinition__Group_3_0__2__Impl | ||
3305 | { | ||
3306 | pushFollow(FOLLOW_2); | ||
3307 | rule__ComponentDefinition__Group_3_0__2__Impl(); | ||
3308 | |||
3309 | state._fsp--; | ||
3310 | |||
3311 | |||
3312 | } | ||
3313 | |||
3314 | } | ||
3315 | catch (RecognitionException re) { | ||
3316 | reportError(re); | ||
3317 | recover(input,re); | ||
3318 | } | ||
3319 | finally { | ||
3320 | |||
3321 | restoreStackSize(stackSize); | ||
3322 | |||
3323 | } | ||
3324 | return ; | ||
3325 | } | ||
3326 | // $ANTLR end "rule__ComponentDefinition__Group_3_0__2" | ||
3327 | |||
3328 | |||
3329 | // $ANTLR start "rule__ComponentDefinition__Group_3_0__2__Impl" | ||
3330 | // InternalCftLanguage.g:1050:1: rule__ComponentDefinition__Group_3_0__2__Impl : ( ';' ) ; | ||
3331 | public final void rule__ComponentDefinition__Group_3_0__2__Impl() throws RecognitionException { | ||
3332 | |||
3333 | int stackSize = keepStackSize(); | ||
3334 | |||
3335 | try { | ||
3336 | // InternalCftLanguage.g:1054:1: ( ( ';' ) ) | ||
3337 | // InternalCftLanguage.g:1055:1: ( ';' ) | ||
3338 | { | ||
3339 | // InternalCftLanguage.g:1055:1: ( ';' ) | ||
3340 | // InternalCftLanguage.g:1056:2: ';' | ||
3341 | { | ||
3342 | before(grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()); | ||
3343 | match(input,14,FOLLOW_2); | ||
3344 | after(grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()); | ||
3345 | |||
3346 | } | ||
3347 | |||
3348 | |||
3349 | } | ||
3350 | |||
3351 | } | ||
3352 | catch (RecognitionException re) { | ||
3353 | reportError(re); | ||
3354 | recover(input,re); | ||
3355 | } | ||
3356 | finally { | ||
3357 | |||
3358 | restoreStackSize(stackSize); | ||
3359 | |||
3360 | } | ||
3361 | return ; | ||
3362 | } | ||
3363 | // $ANTLR end "rule__ComponentDefinition__Group_3_0__2__Impl" | ||
3364 | |||
3365 | |||
3366 | // $ANTLR start "rule__ComponentDefinition__Group_3_1__0" | ||
3367 | // InternalCftLanguage.g:1066:1: rule__ComponentDefinition__Group_3_1__0 : rule__ComponentDefinition__Group_3_1__0__Impl rule__ComponentDefinition__Group_3_1__1 ; | ||
3368 | public final void rule__ComponentDefinition__Group_3_1__0() throws RecognitionException { | ||
3369 | |||
3370 | int stackSize = keepStackSize(); | ||
3371 | |||
3372 | try { | ||
3373 | // InternalCftLanguage.g:1070:1: ( rule__ComponentDefinition__Group_3_1__0__Impl rule__ComponentDefinition__Group_3_1__1 ) | ||
3374 | // InternalCftLanguage.g:1071:2: rule__ComponentDefinition__Group_3_1__0__Impl rule__ComponentDefinition__Group_3_1__1 | ||
3375 | { | ||
3376 | pushFollow(FOLLOW_12); | ||
3377 | rule__ComponentDefinition__Group_3_1__0__Impl(); | ||
3378 | |||
3379 | state._fsp--; | ||
3380 | |||
3381 | pushFollow(FOLLOW_2); | ||
3382 | rule__ComponentDefinition__Group_3_1__1(); | ||
3383 | |||
3384 | state._fsp--; | ||
3385 | |||
3386 | |||
3387 | } | ||
3388 | |||
3389 | } | ||
3390 | catch (RecognitionException re) { | ||
3391 | reportError(re); | ||
3392 | recover(input,re); | ||
3393 | } | ||
3394 | finally { | ||
3395 | |||
3396 | restoreStackSize(stackSize); | ||
3397 | |||
3398 | } | ||
3399 | return ; | ||
3400 | } | ||
3401 | // $ANTLR end "rule__ComponentDefinition__Group_3_1__0" | ||
3402 | |||
3403 | |||
3404 | // $ANTLR start "rule__ComponentDefinition__Group_3_1__0__Impl" | ||
3405 | // InternalCftLanguage.g:1078:1: rule__ComponentDefinition__Group_3_1__0__Impl : ( 'out' ) ; | ||
3406 | public final void rule__ComponentDefinition__Group_3_1__0__Impl() throws RecognitionException { | ||
3407 | |||
3408 | int stackSize = keepStackSize(); | ||
3409 | |||
3410 | try { | ||
3411 | // InternalCftLanguage.g:1082:1: ( ( 'out' ) ) | ||
3412 | // InternalCftLanguage.g:1083:1: ( 'out' ) | ||
3413 | { | ||
3414 | // InternalCftLanguage.g:1083:1: ( 'out' ) | ||
3415 | // InternalCftLanguage.g:1084:2: 'out' | ||
3416 | { | ||
3417 | before(grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()); | ||
3418 | match(input,20,FOLLOW_2); | ||
3419 | after(grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()); | ||
3420 | |||
3421 | } | ||
3422 | |||
3423 | |||
3424 | } | ||
3425 | |||
3426 | } | ||
3427 | catch (RecognitionException re) { | ||
3428 | reportError(re); | ||
3429 | recover(input,re); | ||
3430 | } | ||
3431 | finally { | ||
3432 | |||
3433 | restoreStackSize(stackSize); | ||
3434 | |||
3435 | } | ||
3436 | return ; | ||
3437 | } | ||
3438 | // $ANTLR end "rule__ComponentDefinition__Group_3_1__0__Impl" | ||
3439 | |||
3440 | |||
3441 | // $ANTLR start "rule__ComponentDefinition__Group_3_1__1" | ||
3442 | // InternalCftLanguage.g:1093:1: rule__ComponentDefinition__Group_3_1__1 : rule__ComponentDefinition__Group_3_1__1__Impl rule__ComponentDefinition__Group_3_1__2 ; | ||
3443 | public final void rule__ComponentDefinition__Group_3_1__1() throws RecognitionException { | ||
3444 | |||
3445 | int stackSize = keepStackSize(); | ||
3446 | |||
3447 | try { | ||
3448 | // InternalCftLanguage.g:1097:1: ( rule__ComponentDefinition__Group_3_1__1__Impl rule__ComponentDefinition__Group_3_1__2 ) | ||
3449 | // InternalCftLanguage.g:1098:2: rule__ComponentDefinition__Group_3_1__1__Impl rule__ComponentDefinition__Group_3_1__2 | ||
3450 | { | ||
3451 | pushFollow(FOLLOW_12); | ||
3452 | rule__ComponentDefinition__Group_3_1__1__Impl(); | ||
3453 | |||
3454 | state._fsp--; | ||
3455 | |||
3456 | pushFollow(FOLLOW_2); | ||
3457 | rule__ComponentDefinition__Group_3_1__2(); | ||
3458 | |||
3459 | state._fsp--; | ||
3460 | |||
3461 | |||
3462 | } | ||
3463 | |||
3464 | } | ||
3465 | catch (RecognitionException re) { | ||
3466 | reportError(re); | ||
3467 | recover(input,re); | ||
3468 | } | ||
3469 | finally { | ||
3470 | |||
3471 | restoreStackSize(stackSize); | ||
3472 | |||
3473 | } | ||
3474 | return ; | ||
3475 | } | ||
3476 | // $ANTLR end "rule__ComponentDefinition__Group_3_1__1" | ||
3477 | |||
3478 | |||
3479 | // $ANTLR start "rule__ComponentDefinition__Group_3_1__1__Impl" | ||
3480 | // InternalCftLanguage.g:1105:1: rule__ComponentDefinition__Group_3_1__1__Impl : ( ( rule__ComponentDefinition__OutputEventsAssignment_3_1_1 )* ) ; | ||
3481 | public final void rule__ComponentDefinition__Group_3_1__1__Impl() throws RecognitionException { | ||
3482 | |||
3483 | int stackSize = keepStackSize(); | ||
3484 | |||
3485 | try { | ||
3486 | // InternalCftLanguage.g:1109:1: ( ( ( rule__ComponentDefinition__OutputEventsAssignment_3_1_1 )* ) ) | ||
3487 | // InternalCftLanguage.g:1110:1: ( ( rule__ComponentDefinition__OutputEventsAssignment_3_1_1 )* ) | ||
3488 | { | ||
3489 | // InternalCftLanguage.g:1110:1: ( ( rule__ComponentDefinition__OutputEventsAssignment_3_1_1 )* ) | ||
3490 | // InternalCftLanguage.g:1111:2: ( rule__ComponentDefinition__OutputEventsAssignment_3_1_1 )* | ||
3491 | { | ||
3492 | before(grammarAccess.getComponentDefinitionAccess().getOutputEventsAssignment_3_1_1()); | ||
3493 | // InternalCftLanguage.g:1112:2: ( rule__ComponentDefinition__OutputEventsAssignment_3_1_1 )* | ||
3494 | loop12: | ||
3495 | do { | ||
3496 | int alt12=2; | ||
3497 | int LA12_0 = input.LA(1); | ||
3498 | |||
3499 | if ( (LA12_0==RULE_ID) ) { | ||
3500 | alt12=1; | ||
3501 | } | ||
3502 | |||
3503 | |||
3504 | switch (alt12) { | ||
3505 | case 1 : | ||
3506 | // InternalCftLanguage.g:1112:3: rule__ComponentDefinition__OutputEventsAssignment_3_1_1 | ||
3507 | { | ||
3508 | pushFollow(FOLLOW_11); | ||
3509 | rule__ComponentDefinition__OutputEventsAssignment_3_1_1(); | ||
3510 | |||
3511 | state._fsp--; | ||
3512 | |||
3513 | |||
3514 | } | ||
3515 | break; | ||
3516 | |||
3517 | default : | ||
3518 | break loop12; | ||
3519 | } | ||
3520 | } while (true); | ||
3521 | |||
3522 | after(grammarAccess.getComponentDefinitionAccess().getOutputEventsAssignment_3_1_1()); | ||
3523 | |||
3524 | } | ||
3525 | |||
3526 | |||
3527 | } | ||
3528 | |||
3529 | } | ||
3530 | catch (RecognitionException re) { | ||
3531 | reportError(re); | ||
3532 | recover(input,re); | ||
3533 | } | ||
3534 | finally { | ||
3535 | |||
3536 | restoreStackSize(stackSize); | ||
3537 | |||
3538 | } | ||
3539 | return ; | ||
3540 | } | ||
3541 | // $ANTLR end "rule__ComponentDefinition__Group_3_1__1__Impl" | ||
3542 | |||
3543 | |||
3544 | // $ANTLR start "rule__ComponentDefinition__Group_3_1__2" | ||
3545 | // InternalCftLanguage.g:1120:1: rule__ComponentDefinition__Group_3_1__2 : rule__ComponentDefinition__Group_3_1__2__Impl ; | ||
3546 | public final void rule__ComponentDefinition__Group_3_1__2() throws RecognitionException { | ||
3547 | |||
3548 | int stackSize = keepStackSize(); | ||
3549 | |||
3550 | try { | ||
3551 | // InternalCftLanguage.g:1124:1: ( rule__ComponentDefinition__Group_3_1__2__Impl ) | ||
3552 | // InternalCftLanguage.g:1125:2: rule__ComponentDefinition__Group_3_1__2__Impl | ||
3553 | { | ||
3554 | pushFollow(FOLLOW_2); | ||
3555 | rule__ComponentDefinition__Group_3_1__2__Impl(); | ||
3556 | |||
3557 | state._fsp--; | ||
3558 | |||
3559 | |||
3560 | } | ||
3561 | |||
3562 | } | ||
3563 | catch (RecognitionException re) { | ||
3564 | reportError(re); | ||
3565 | recover(input,re); | ||
3566 | } | ||
3567 | finally { | ||
3568 | |||
3569 | restoreStackSize(stackSize); | ||
3570 | |||
3571 | } | ||
3572 | return ; | ||
3573 | } | ||
3574 | // $ANTLR end "rule__ComponentDefinition__Group_3_1__2" | ||
3575 | |||
3576 | |||
3577 | // $ANTLR start "rule__ComponentDefinition__Group_3_1__2__Impl" | ||
3578 | // InternalCftLanguage.g:1131:1: rule__ComponentDefinition__Group_3_1__2__Impl : ( ';' ) ; | ||
3579 | public final void rule__ComponentDefinition__Group_3_1__2__Impl() throws RecognitionException { | ||
3580 | |||
3581 | int stackSize = keepStackSize(); | ||
3582 | |||
3583 | try { | ||
3584 | // InternalCftLanguage.g:1135:1: ( ( ';' ) ) | ||
3585 | // InternalCftLanguage.g:1136:1: ( ';' ) | ||
3586 | { | ||
3587 | // InternalCftLanguage.g:1136:1: ( ';' ) | ||
3588 | // InternalCftLanguage.g:1137:2: ';' | ||
3589 | { | ||
3590 | before(grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()); | ||
3591 | match(input,14,FOLLOW_2); | ||
3592 | after(grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()); | ||
3593 | |||
3594 | } | ||
3595 | |||
3596 | |||
3597 | } | ||
3598 | |||
3599 | } | ||
3600 | catch (RecognitionException re) { | ||
3601 | reportError(re); | ||
3602 | recover(input,re); | ||
3603 | } | ||
3604 | finally { | ||
3605 | |||
3606 | restoreStackSize(stackSize); | ||
3607 | |||
3608 | } | ||
3609 | return ; | ||
3610 | } | ||
3611 | // $ANTLR end "rule__ComponentDefinition__Group_3_1__2__Impl" | ||
3612 | |||
3613 | |||
3614 | // $ANTLR start "rule__ComponentDefinition__Group_4__0" | ||
3615 | // InternalCftLanguage.g:1147:1: rule__ComponentDefinition__Group_4__0 : rule__ComponentDefinition__Group_4__0__Impl rule__ComponentDefinition__Group_4__1 ; | ||
3616 | public final void rule__ComponentDefinition__Group_4__0() throws RecognitionException { | ||
3617 | |||
3618 | int stackSize = keepStackSize(); | ||
3619 | |||
3620 | try { | ||
3621 | // InternalCftLanguage.g:1151:1: ( rule__ComponentDefinition__Group_4__0__Impl rule__ComponentDefinition__Group_4__1 ) | ||
3622 | // InternalCftLanguage.g:1152:2: rule__ComponentDefinition__Group_4__0__Impl rule__ComponentDefinition__Group_4__1 | ||
3623 | { | ||
3624 | pushFollow(FOLLOW_7); | ||
3625 | rule__ComponentDefinition__Group_4__0__Impl(); | ||
3626 | |||
3627 | state._fsp--; | ||
3628 | |||
3629 | pushFollow(FOLLOW_2); | ||
3630 | rule__ComponentDefinition__Group_4__1(); | ||
3631 | |||
3632 | state._fsp--; | ||
3633 | |||
3634 | |||
3635 | } | ||
3636 | |||
3637 | } | ||
3638 | catch (RecognitionException re) { | ||
3639 | reportError(re); | ||
3640 | recover(input,re); | ||
3641 | } | ||
3642 | finally { | ||
3643 | |||
3644 | restoreStackSize(stackSize); | ||
3645 | |||
3646 | } | ||
3647 | return ; | ||
3648 | } | ||
3649 | // $ANTLR end "rule__ComponentDefinition__Group_4__0" | ||
3650 | |||
3651 | |||
3652 | // $ANTLR start "rule__ComponentDefinition__Group_4__0__Impl" | ||
3653 | // InternalCftLanguage.g:1159:1: rule__ComponentDefinition__Group_4__0__Impl : ( ( rule__ComponentDefinition__EventDefinitionsAssignment_4_0 ) ) ; | ||
3654 | public final void rule__ComponentDefinition__Group_4__0__Impl() throws RecognitionException { | ||
3655 | |||
3656 | int stackSize = keepStackSize(); | ||
3657 | |||
3658 | try { | ||
3659 | // InternalCftLanguage.g:1163:1: ( ( ( rule__ComponentDefinition__EventDefinitionsAssignment_4_0 ) ) ) | ||
3660 | // InternalCftLanguage.g:1164:1: ( ( rule__ComponentDefinition__EventDefinitionsAssignment_4_0 ) ) | ||
3661 | { | ||
3662 | // InternalCftLanguage.g:1164:1: ( ( rule__ComponentDefinition__EventDefinitionsAssignment_4_0 ) ) | ||
3663 | // InternalCftLanguage.g:1165:2: ( rule__ComponentDefinition__EventDefinitionsAssignment_4_0 ) | ||
3664 | { | ||
3665 | before(grammarAccess.getComponentDefinitionAccess().getEventDefinitionsAssignment_4_0()); | ||
3666 | // InternalCftLanguage.g:1166:2: ( rule__ComponentDefinition__EventDefinitionsAssignment_4_0 ) | ||
3667 | // InternalCftLanguage.g:1166:3: rule__ComponentDefinition__EventDefinitionsAssignment_4_0 | ||
3668 | { | ||
3669 | pushFollow(FOLLOW_2); | ||
3670 | rule__ComponentDefinition__EventDefinitionsAssignment_4_0(); | ||
3671 | |||
3672 | state._fsp--; | ||
3673 | |||
3674 | |||
3675 | } | ||
3676 | |||
3677 | after(grammarAccess.getComponentDefinitionAccess().getEventDefinitionsAssignment_4_0()); | ||
3678 | |||
3679 | } | ||
3680 | |||
3681 | |||
3682 | } | ||
3683 | |||
3684 | } | ||
3685 | catch (RecognitionException re) { | ||
3686 | reportError(re); | ||
3687 | recover(input,re); | ||
3688 | } | ||
3689 | finally { | ||
3690 | |||
3691 | restoreStackSize(stackSize); | ||
3692 | |||
3693 | } | ||
3694 | return ; | ||
3695 | } | ||
3696 | // $ANTLR end "rule__ComponentDefinition__Group_4__0__Impl" | ||
3697 | |||
3698 | |||
3699 | // $ANTLR start "rule__ComponentDefinition__Group_4__1" | ||
3700 | // InternalCftLanguage.g:1174:1: rule__ComponentDefinition__Group_4__1 : rule__ComponentDefinition__Group_4__1__Impl ; | ||
3701 | public final void rule__ComponentDefinition__Group_4__1() throws RecognitionException { | ||
3702 | |||
3703 | int stackSize = keepStackSize(); | ||
3704 | |||
3705 | try { | ||
3706 | // InternalCftLanguage.g:1178:1: ( rule__ComponentDefinition__Group_4__1__Impl ) | ||
3707 | // InternalCftLanguage.g:1179:2: rule__ComponentDefinition__Group_4__1__Impl | ||
3708 | { | ||
3709 | pushFollow(FOLLOW_2); | ||
3710 | rule__ComponentDefinition__Group_4__1__Impl(); | ||
3711 | |||
3712 | state._fsp--; | ||
3713 | |||
3714 | |||
3715 | } | ||
3716 | |||
3717 | } | ||
3718 | catch (RecognitionException re) { | ||
3719 | reportError(re); | ||
3720 | recover(input,re); | ||
3721 | } | ||
3722 | finally { | ||
3723 | |||
3724 | restoreStackSize(stackSize); | ||
3725 | |||
3726 | } | ||
3727 | return ; | ||
3728 | } | ||
3729 | // $ANTLR end "rule__ComponentDefinition__Group_4__1" | ||
3730 | |||
3731 | |||
3732 | // $ANTLR start "rule__ComponentDefinition__Group_4__1__Impl" | ||
3733 | // InternalCftLanguage.g:1185:1: rule__ComponentDefinition__Group_4__1__Impl : ( ';' ) ; | ||
3734 | public final void rule__ComponentDefinition__Group_4__1__Impl() throws RecognitionException { | ||
3735 | |||
3736 | int stackSize = keepStackSize(); | ||
3737 | |||
3738 | try { | ||
3739 | // InternalCftLanguage.g:1189:1: ( ( ';' ) ) | ||
3740 | // InternalCftLanguage.g:1190:1: ( ';' ) | ||
3741 | { | ||
3742 | // InternalCftLanguage.g:1190:1: ( ';' ) | ||
3743 | // InternalCftLanguage.g:1191:2: ';' | ||
3744 | { | ||
3745 | before(grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_4_1()); | ||
3746 | match(input,14,FOLLOW_2); | ||
3747 | after(grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_4_1()); | ||
3748 | |||
3749 | } | ||
3750 | |||
3751 | |||
3752 | } | ||
3753 | |||
3754 | } | ||
3755 | catch (RecognitionException re) { | ||
3756 | reportError(re); | ||
3757 | recover(input,re); | ||
3758 | } | ||
3759 | finally { | ||
3760 | |||
3761 | restoreStackSize(stackSize); | ||
3762 | |||
3763 | } | ||
3764 | return ; | ||
3765 | } | ||
3766 | // $ANTLR end "rule__ComponentDefinition__Group_4__1__Impl" | ||
3767 | |||
3768 | |||
3769 | // $ANTLR start "rule__InputEvent__Group__0" | ||
3770 | // InternalCftLanguage.g:1201:1: rule__InputEvent__Group__0 : rule__InputEvent__Group__0__Impl rule__InputEvent__Group__1 ; | ||
3771 | public final void rule__InputEvent__Group__0() throws RecognitionException { | ||
3772 | |||
3773 | int stackSize = keepStackSize(); | ||
3774 | |||
3775 | try { | ||
3776 | // InternalCftLanguage.g:1205:1: ( rule__InputEvent__Group__0__Impl rule__InputEvent__Group__1 ) | ||
3777 | // InternalCftLanguage.g:1206:2: rule__InputEvent__Group__0__Impl rule__InputEvent__Group__1 | ||
3778 | { | ||
3779 | pushFollow(FOLLOW_13); | ||
3780 | rule__InputEvent__Group__0__Impl(); | ||
3781 | |||
3782 | state._fsp--; | ||
3783 | |||
3784 | pushFollow(FOLLOW_2); | ||
3785 | rule__InputEvent__Group__1(); | ||
3786 | |||
3787 | state._fsp--; | ||
3788 | |||
3789 | |||
3790 | } | ||
3791 | |||
3792 | } | ||
3793 | catch (RecognitionException re) { | ||
3794 | reportError(re); | ||
3795 | recover(input,re); | ||
3796 | } | ||
3797 | finally { | ||
3798 | |||
3799 | restoreStackSize(stackSize); | ||
3800 | |||
3801 | } | ||
3802 | return ; | ||
3803 | } | ||
3804 | // $ANTLR end "rule__InputEvent__Group__0" | ||
3805 | |||
3806 | |||
3807 | // $ANTLR start "rule__InputEvent__Group__0__Impl" | ||
3808 | // InternalCftLanguage.g:1213:1: rule__InputEvent__Group__0__Impl : ( ( rule__InputEvent__NameAssignment_0 ) ) ; | ||
3809 | public final void rule__InputEvent__Group__0__Impl() throws RecognitionException { | ||
3810 | |||
3811 | int stackSize = keepStackSize(); | ||
3812 | |||
3813 | try { | ||
3814 | // InternalCftLanguage.g:1217:1: ( ( ( rule__InputEvent__NameAssignment_0 ) ) ) | ||
3815 | // InternalCftLanguage.g:1218:1: ( ( rule__InputEvent__NameAssignment_0 ) ) | ||
3816 | { | ||
3817 | // InternalCftLanguage.g:1218:1: ( ( rule__InputEvent__NameAssignment_0 ) ) | ||
3818 | // InternalCftLanguage.g:1219:2: ( rule__InputEvent__NameAssignment_0 ) | ||
3819 | { | ||
3820 | before(grammarAccess.getInputEventAccess().getNameAssignment_0()); | ||
3821 | // InternalCftLanguage.g:1220:2: ( rule__InputEvent__NameAssignment_0 ) | ||
3822 | // InternalCftLanguage.g:1220:3: rule__InputEvent__NameAssignment_0 | ||
3823 | { | ||
3824 | pushFollow(FOLLOW_2); | ||
3825 | rule__InputEvent__NameAssignment_0(); | ||
3826 | |||
3827 | state._fsp--; | ||
3828 | |||
3829 | |||
3830 | } | ||
3831 | |||
3832 | after(grammarAccess.getInputEventAccess().getNameAssignment_0()); | ||
3833 | |||
3834 | } | ||
3835 | |||
3836 | |||
3837 | } | ||
3838 | |||
3839 | } | ||
3840 | catch (RecognitionException re) { | ||
3841 | reportError(re); | ||
3842 | recover(input,re); | ||
3843 | } | ||
3844 | finally { | ||
3845 | |||
3846 | restoreStackSize(stackSize); | ||
3847 | |||
3848 | } | ||
3849 | return ; | ||
3850 | } | ||
3851 | // $ANTLR end "rule__InputEvent__Group__0__Impl" | ||
3852 | |||
3853 | |||
3854 | // $ANTLR start "rule__InputEvent__Group__1" | ||
3855 | // InternalCftLanguage.g:1228:1: rule__InputEvent__Group__1 : rule__InputEvent__Group__1__Impl ; | ||
3856 | public final void rule__InputEvent__Group__1() throws RecognitionException { | ||
3857 | |||
3858 | int stackSize = keepStackSize(); | ||
3859 | |||
3860 | try { | ||
3861 | // InternalCftLanguage.g:1232:1: ( rule__InputEvent__Group__1__Impl ) | ||
3862 | // InternalCftLanguage.g:1233:2: rule__InputEvent__Group__1__Impl | ||
3863 | { | ||
3864 | pushFollow(FOLLOW_2); | ||
3865 | rule__InputEvent__Group__1__Impl(); | ||
3866 | |||
3867 | state._fsp--; | ||
3868 | |||
3869 | |||
3870 | } | ||
3871 | |||
3872 | } | ||
3873 | catch (RecognitionException re) { | ||
3874 | reportError(re); | ||
3875 | recover(input,re); | ||
3876 | } | ||
3877 | finally { | ||
3878 | |||
3879 | restoreStackSize(stackSize); | ||
3880 | |||
3881 | } | ||
3882 | return ; | ||
3883 | } | ||
3884 | // $ANTLR end "rule__InputEvent__Group__1" | ||
3885 | |||
3886 | |||
3887 | // $ANTLR start "rule__InputEvent__Group__1__Impl" | ||
3888 | // InternalCftLanguage.g:1239:1: rule__InputEvent__Group__1__Impl : ( ( rule__InputEvent__MultipleAssignment_1 )? ) ; | ||
3889 | public final void rule__InputEvent__Group__1__Impl() throws RecognitionException { | ||
3890 | |||
3891 | int stackSize = keepStackSize(); | ||
3892 | |||
3893 | try { | ||
3894 | // InternalCftLanguage.g:1243:1: ( ( ( rule__InputEvent__MultipleAssignment_1 )? ) ) | ||
3895 | // InternalCftLanguage.g:1244:1: ( ( rule__InputEvent__MultipleAssignment_1 )? ) | ||
3896 | { | ||
3897 | // InternalCftLanguage.g:1244:1: ( ( rule__InputEvent__MultipleAssignment_1 )? ) | ||
3898 | // InternalCftLanguage.g:1245:2: ( rule__InputEvent__MultipleAssignment_1 )? | ||
3899 | { | ||
3900 | before(grammarAccess.getInputEventAccess().getMultipleAssignment_1()); | ||
3901 | // InternalCftLanguage.g:1246:2: ( rule__InputEvent__MultipleAssignment_1 )? | ||
3902 | int alt13=2; | ||
3903 | int LA13_0 = input.LA(1); | ||
3904 | |||
3905 | if ( (LA13_0==35) ) { | ||
3906 | alt13=1; | ||
3907 | } | ||
3908 | switch (alt13) { | ||
3909 | case 1 : | ||
3910 | // InternalCftLanguage.g:1246:3: rule__InputEvent__MultipleAssignment_1 | ||
3911 | { | ||
3912 | pushFollow(FOLLOW_2); | ||
3913 | rule__InputEvent__MultipleAssignment_1(); | ||
3914 | |||
3915 | state._fsp--; | ||
3916 | |||
3917 | |||
3918 | } | ||
3919 | break; | ||
3920 | |||
3921 | } | ||
3922 | |||
3923 | after(grammarAccess.getInputEventAccess().getMultipleAssignment_1()); | ||
3924 | |||
3925 | } | ||
3926 | |||
3927 | |||
3928 | } | ||
3929 | |||
3930 | } | ||
3931 | catch (RecognitionException re) { | ||
3932 | reportError(re); | ||
3933 | recover(input,re); | ||
3934 | } | ||
3935 | finally { | ||
3936 | |||
3937 | restoreStackSize(stackSize); | ||
3938 | |||
3939 | } | ||
3940 | return ; | ||
3941 | } | ||
3942 | // $ANTLR end "rule__InputEvent__Group__1__Impl" | ||
3943 | |||
3944 | |||
3945 | // $ANTLR start "rule__BasicEventDefinition__Group__0" | ||
3946 | // InternalCftLanguage.g:1255:1: rule__BasicEventDefinition__Group__0 : rule__BasicEventDefinition__Group__0__Impl rule__BasicEventDefinition__Group__1 ; | ||
3947 | public final void rule__BasicEventDefinition__Group__0() throws RecognitionException { | ||
3948 | |||
3949 | int stackSize = keepStackSize(); | ||
3950 | |||
3951 | try { | ||
3952 | // InternalCftLanguage.g:1259:1: ( rule__BasicEventDefinition__Group__0__Impl rule__BasicEventDefinition__Group__1 ) | ||
3953 | // InternalCftLanguage.g:1260:2: rule__BasicEventDefinition__Group__0__Impl rule__BasicEventDefinition__Group__1 | ||
3954 | { | ||
3955 | pushFollow(FOLLOW_14); | ||
3956 | rule__BasicEventDefinition__Group__0__Impl(); | ||
3957 | |||
3958 | state._fsp--; | ||
3959 | |||
3960 | pushFollow(FOLLOW_2); | ||
3961 | rule__BasicEventDefinition__Group__1(); | ||
3962 | |||
3963 | state._fsp--; | ||
3964 | |||
3965 | |||
3966 | } | ||
3967 | |||
3968 | } | ||
3969 | catch (RecognitionException re) { | ||
3970 | reportError(re); | ||
3971 | recover(input,re); | ||
3972 | } | ||
3973 | finally { | ||
3974 | |||
3975 | restoreStackSize(stackSize); | ||
3976 | |||
3977 | } | ||
3978 | return ; | ||
3979 | } | ||
3980 | // $ANTLR end "rule__BasicEventDefinition__Group__0" | ||
3981 | |||
3982 | |||
3983 | // $ANTLR start "rule__BasicEventDefinition__Group__0__Impl" | ||
3984 | // InternalCftLanguage.g:1267:1: rule__BasicEventDefinition__Group__0__Impl : ( ( rule__BasicEventDefinition__NameAssignment_0 ) ) ; | ||
3985 | public final void rule__BasicEventDefinition__Group__0__Impl() throws RecognitionException { | ||
3986 | |||
3987 | int stackSize = keepStackSize(); | ||
3988 | |||
3989 | try { | ||
3990 | // InternalCftLanguage.g:1271:1: ( ( ( rule__BasicEventDefinition__NameAssignment_0 ) ) ) | ||
3991 | // InternalCftLanguage.g:1272:1: ( ( rule__BasicEventDefinition__NameAssignment_0 ) ) | ||
3992 | { | ||
3993 | // InternalCftLanguage.g:1272:1: ( ( rule__BasicEventDefinition__NameAssignment_0 ) ) | ||
3994 | // InternalCftLanguage.g:1273:2: ( rule__BasicEventDefinition__NameAssignment_0 ) | ||
3995 | { | ||
3996 | before(grammarAccess.getBasicEventDefinitionAccess().getNameAssignment_0()); | ||
3997 | // InternalCftLanguage.g:1274:2: ( rule__BasicEventDefinition__NameAssignment_0 ) | ||
3998 | // InternalCftLanguage.g:1274:3: rule__BasicEventDefinition__NameAssignment_0 | ||
3999 | { | ||
4000 | pushFollow(FOLLOW_2); | ||
4001 | rule__BasicEventDefinition__NameAssignment_0(); | ||
4002 | |||
4003 | state._fsp--; | ||
4004 | |||
4005 | |||
4006 | } | ||
4007 | |||
4008 | after(grammarAccess.getBasicEventDefinitionAccess().getNameAssignment_0()); | ||
4009 | |||
4010 | } | ||
4011 | |||
4012 | |||
4013 | } | ||
4014 | |||
4015 | } | ||
4016 | catch (RecognitionException re) { | ||
4017 | reportError(re); | ||
4018 | recover(input,re); | ||
4019 | } | ||
4020 | finally { | ||
4021 | |||
4022 | restoreStackSize(stackSize); | ||
4023 | |||
4024 | } | ||
4025 | return ; | ||
4026 | } | ||
4027 | // $ANTLR end "rule__BasicEventDefinition__Group__0__Impl" | ||
4028 | |||
4029 | |||
4030 | // $ANTLR start "rule__BasicEventDefinition__Group__1" | ||
4031 | // InternalCftLanguage.g:1282:1: rule__BasicEventDefinition__Group__1 : rule__BasicEventDefinition__Group__1__Impl rule__BasicEventDefinition__Group__2 ; | ||
4032 | public final void rule__BasicEventDefinition__Group__1() throws RecognitionException { | ||
4033 | |||
4034 | int stackSize = keepStackSize(); | ||
4035 | |||
4036 | try { | ||
4037 | // InternalCftLanguage.g:1286:1: ( rule__BasicEventDefinition__Group__1__Impl rule__BasicEventDefinition__Group__2 ) | ||
4038 | // InternalCftLanguage.g:1287:2: rule__BasicEventDefinition__Group__1__Impl rule__BasicEventDefinition__Group__2 | ||
4039 | { | ||
4040 | pushFollow(FOLLOW_15); | ||
4041 | rule__BasicEventDefinition__Group__1__Impl(); | ||
4042 | |||
4043 | state._fsp--; | ||
4044 | |||
4045 | pushFollow(FOLLOW_2); | ||
4046 | rule__BasicEventDefinition__Group__2(); | ||
4047 | |||
4048 | state._fsp--; | ||
4049 | |||
4050 | |||
4051 | } | ||
4052 | |||
4053 | } | ||
4054 | catch (RecognitionException re) { | ||
4055 | reportError(re); | ||
4056 | recover(input,re); | ||
4057 | } | ||
4058 | finally { | ||
4059 | |||
4060 | restoreStackSize(stackSize); | ||
4061 | |||
4062 | } | ||
4063 | return ; | ||
4064 | } | ||
4065 | // $ANTLR end "rule__BasicEventDefinition__Group__1" | ||
4066 | |||
4067 | |||
4068 | // $ANTLR start "rule__BasicEventDefinition__Group__1__Impl" | ||
4069 | // InternalCftLanguage.g:1294:1: rule__BasicEventDefinition__Group__1__Impl : ( 'lambda' ) ; | ||
4070 | public final void rule__BasicEventDefinition__Group__1__Impl() throws RecognitionException { | ||
4071 | |||
4072 | int stackSize = keepStackSize(); | ||
4073 | |||
4074 | try { | ||
4075 | // InternalCftLanguage.g:1298:1: ( ( 'lambda' ) ) | ||
4076 | // InternalCftLanguage.g:1299:1: ( 'lambda' ) | ||
4077 | { | ||
4078 | // InternalCftLanguage.g:1299:1: ( 'lambda' ) | ||
4079 | // InternalCftLanguage.g:1300:2: 'lambda' | ||
4080 | { | ||
4081 | before(grammarAccess.getBasicEventDefinitionAccess().getLambdaKeyword_1()); | ||
4082 | match(input,21,FOLLOW_2); | ||
4083 | after(grammarAccess.getBasicEventDefinitionAccess().getLambdaKeyword_1()); | ||
4084 | |||
4085 | } | ||
4086 | |||
4087 | |||
4088 | } | ||
4089 | |||
4090 | } | ||
4091 | catch (RecognitionException re) { | ||
4092 | reportError(re); | ||
4093 | recover(input,re); | ||
4094 | } | ||
4095 | finally { | ||
4096 | |||
4097 | restoreStackSize(stackSize); | ||
4098 | |||
4099 | } | ||
4100 | return ; | ||
4101 | } | ||
4102 | // $ANTLR end "rule__BasicEventDefinition__Group__1__Impl" | ||
4103 | |||
4104 | |||
4105 | // $ANTLR start "rule__BasicEventDefinition__Group__2" | ||
4106 | // InternalCftLanguage.g:1309:1: rule__BasicEventDefinition__Group__2 : rule__BasicEventDefinition__Group__2__Impl rule__BasicEventDefinition__Group__3 ; | ||
4107 | public final void rule__BasicEventDefinition__Group__2() throws RecognitionException { | ||
4108 | |||
4109 | int stackSize = keepStackSize(); | ||
4110 | |||
4111 | try { | ||
4112 | // InternalCftLanguage.g:1313:1: ( rule__BasicEventDefinition__Group__2__Impl rule__BasicEventDefinition__Group__3 ) | ||
4113 | // InternalCftLanguage.g:1314:2: rule__BasicEventDefinition__Group__2__Impl rule__BasicEventDefinition__Group__3 | ||
4114 | { | ||
4115 | pushFollow(FOLLOW_16); | ||
4116 | rule__BasicEventDefinition__Group__2__Impl(); | ||
4117 | |||
4118 | state._fsp--; | ||
4119 | |||
4120 | pushFollow(FOLLOW_2); | ||
4121 | rule__BasicEventDefinition__Group__3(); | ||
4122 | |||
4123 | state._fsp--; | ||
4124 | |||
4125 | |||
4126 | } | ||
4127 | |||
4128 | } | ||
4129 | catch (RecognitionException re) { | ||
4130 | reportError(re); | ||
4131 | recover(input,re); | ||
4132 | } | ||
4133 | finally { | ||
4134 | |||
4135 | restoreStackSize(stackSize); | ||
4136 | |||
4137 | } | ||
4138 | return ; | ||
4139 | } | ||
4140 | // $ANTLR end "rule__BasicEventDefinition__Group__2" | ||
4141 | |||
4142 | |||
4143 | // $ANTLR start "rule__BasicEventDefinition__Group__2__Impl" | ||
4144 | // InternalCftLanguage.g:1321:1: rule__BasicEventDefinition__Group__2__Impl : ( '=' ) ; | ||
4145 | public final void rule__BasicEventDefinition__Group__2__Impl() throws RecognitionException { | ||
4146 | |||
4147 | int stackSize = keepStackSize(); | ||
4148 | |||
4149 | try { | ||
4150 | // InternalCftLanguage.g:1325:1: ( ( '=' ) ) | ||
4151 | // InternalCftLanguage.g:1326:1: ( '=' ) | ||
4152 | { | ||
4153 | // InternalCftLanguage.g:1326:1: ( '=' ) | ||
4154 | // InternalCftLanguage.g:1327:2: '=' | ||
4155 | { | ||
4156 | before(grammarAccess.getBasicEventDefinitionAccess().getEqualsSignKeyword_2()); | ||
4157 | match(input,22,FOLLOW_2); | ||
4158 | after(grammarAccess.getBasicEventDefinitionAccess().getEqualsSignKeyword_2()); | ||
4159 | |||
4160 | } | ||
4161 | |||
4162 | |||
4163 | } | ||
4164 | |||
4165 | } | ||
4166 | catch (RecognitionException re) { | ||
4167 | reportError(re); | ||
4168 | recover(input,re); | ||
4169 | } | ||
4170 | finally { | ||
4171 | |||
4172 | restoreStackSize(stackSize); | ||
4173 | |||
4174 | } | ||
4175 | return ; | ||
4176 | } | ||
4177 | // $ANTLR end "rule__BasicEventDefinition__Group__2__Impl" | ||
4178 | |||
4179 | |||
4180 | // $ANTLR start "rule__BasicEventDefinition__Group__3" | ||
4181 | // InternalCftLanguage.g:1336:1: rule__BasicEventDefinition__Group__3 : rule__BasicEventDefinition__Group__3__Impl ; | ||
4182 | public final void rule__BasicEventDefinition__Group__3() throws RecognitionException { | ||
4183 | |||
4184 | int stackSize = keepStackSize(); | ||
4185 | |||
4186 | try { | ||
4187 | // InternalCftLanguage.g:1340:1: ( rule__BasicEventDefinition__Group__3__Impl ) | ||
4188 | // InternalCftLanguage.g:1341:2: rule__BasicEventDefinition__Group__3__Impl | ||
4189 | { | ||
4190 | pushFollow(FOLLOW_2); | ||
4191 | rule__BasicEventDefinition__Group__3__Impl(); | ||
4192 | |||
4193 | state._fsp--; | ||
4194 | |||
4195 | |||
4196 | } | ||
4197 | |||
4198 | } | ||
4199 | catch (RecognitionException re) { | ||
4200 | reportError(re); | ||
4201 | recover(input,re); | ||
4202 | } | ||
4203 | finally { | ||
4204 | |||
4205 | restoreStackSize(stackSize); | ||
4206 | |||
4207 | } | ||
4208 | return ; | ||
4209 | } | ||
4210 | // $ANTLR end "rule__BasicEventDefinition__Group__3" | ||
4211 | |||
4212 | |||
4213 | // $ANTLR start "rule__BasicEventDefinition__Group__3__Impl" | ||
4214 | // InternalCftLanguage.g:1347:1: rule__BasicEventDefinition__Group__3__Impl : ( ( rule__BasicEventDefinition__RateAssignment_3 ) ) ; | ||
4215 | public final void rule__BasicEventDefinition__Group__3__Impl() throws RecognitionException { | ||
4216 | |||
4217 | int stackSize = keepStackSize(); | ||
4218 | |||
4219 | try { | ||
4220 | // InternalCftLanguage.g:1351:1: ( ( ( rule__BasicEventDefinition__RateAssignment_3 ) ) ) | ||
4221 | // InternalCftLanguage.g:1352:1: ( ( rule__BasicEventDefinition__RateAssignment_3 ) ) | ||
4222 | { | ||
4223 | // InternalCftLanguage.g:1352:1: ( ( rule__BasicEventDefinition__RateAssignment_3 ) ) | ||
4224 | // InternalCftLanguage.g:1353:2: ( rule__BasicEventDefinition__RateAssignment_3 ) | ||
4225 | { | ||
4226 | before(grammarAccess.getBasicEventDefinitionAccess().getRateAssignment_3()); | ||
4227 | // InternalCftLanguage.g:1354:2: ( rule__BasicEventDefinition__RateAssignment_3 ) | ||
4228 | // InternalCftLanguage.g:1354:3: rule__BasicEventDefinition__RateAssignment_3 | ||
4229 | { | ||
4230 | pushFollow(FOLLOW_2); | ||
4231 | rule__BasicEventDefinition__RateAssignment_3(); | ||
4232 | |||
4233 | state._fsp--; | ||
4234 | |||
4235 | |||
4236 | } | ||
4237 | |||
4238 | after(grammarAccess.getBasicEventDefinitionAccess().getRateAssignment_3()); | ||
4239 | |||
4240 | } | ||
4241 | |||
4242 | |||
4243 | } | ||
4244 | |||
4245 | } | ||
4246 | catch (RecognitionException re) { | ||
4247 | reportError(re); | ||
4248 | recover(input,re); | ||
4249 | } | ||
4250 | finally { | ||
4251 | |||
4252 | restoreStackSize(stackSize); | ||
4253 | |||
4254 | } | ||
4255 | return ; | ||
4256 | } | ||
4257 | // $ANTLR end "rule__BasicEventDefinition__Group__3__Impl" | ||
4258 | |||
4259 | |||
4260 | // $ANTLR start "rule__AndGate__Group__0" | ||
4261 | // InternalCftLanguage.g:1363:1: rule__AndGate__Group__0 : rule__AndGate__Group__0__Impl rule__AndGate__Group__1 ; | ||
4262 | public final void rule__AndGate__Group__0() throws RecognitionException { | ||
4263 | |||
4264 | int stackSize = keepStackSize(); | ||
4265 | |||
4266 | try { | ||
4267 | // InternalCftLanguage.g:1367:1: ( rule__AndGate__Group__0__Impl rule__AndGate__Group__1 ) | ||
4268 | // InternalCftLanguage.g:1368:2: rule__AndGate__Group__0__Impl rule__AndGate__Group__1 | ||
4269 | { | ||
4270 | pushFollow(FOLLOW_17); | ||
4271 | rule__AndGate__Group__0__Impl(); | ||
4272 | |||
4273 | state._fsp--; | ||
4274 | |||
4275 | pushFollow(FOLLOW_2); | ||
4276 | rule__AndGate__Group__1(); | ||
4277 | |||
4278 | state._fsp--; | ||
4279 | |||
4280 | |||
4281 | } | ||
4282 | |||
4283 | } | ||
4284 | catch (RecognitionException re) { | ||
4285 | reportError(re); | ||
4286 | recover(input,re); | ||
4287 | } | ||
4288 | finally { | ||
4289 | |||
4290 | restoreStackSize(stackSize); | ||
4291 | |||
4292 | } | ||
4293 | return ; | ||
4294 | } | ||
4295 | // $ANTLR end "rule__AndGate__Group__0" | ||
4296 | |||
4297 | |||
4298 | // $ANTLR start "rule__AndGate__Group__0__Impl" | ||
4299 | // InternalCftLanguage.g:1375:1: rule__AndGate__Group__0__Impl : ( ( rule__AndGate__NameAssignment_0 ) ) ; | ||
4300 | public final void rule__AndGate__Group__0__Impl() throws RecognitionException { | ||
4301 | |||
4302 | int stackSize = keepStackSize(); | ||
4303 | |||
4304 | try { | ||
4305 | // InternalCftLanguage.g:1379:1: ( ( ( rule__AndGate__NameAssignment_0 ) ) ) | ||
4306 | // InternalCftLanguage.g:1380:1: ( ( rule__AndGate__NameAssignment_0 ) ) | ||
4307 | { | ||
4308 | // InternalCftLanguage.g:1380:1: ( ( rule__AndGate__NameAssignment_0 ) ) | ||
4309 | // InternalCftLanguage.g:1381:2: ( rule__AndGate__NameAssignment_0 ) | ||
4310 | { | ||
4311 | before(grammarAccess.getAndGateAccess().getNameAssignment_0()); | ||
4312 | // InternalCftLanguage.g:1382:2: ( rule__AndGate__NameAssignment_0 ) | ||
4313 | // InternalCftLanguage.g:1382:3: rule__AndGate__NameAssignment_0 | ||
4314 | { | ||
4315 | pushFollow(FOLLOW_2); | ||
4316 | rule__AndGate__NameAssignment_0(); | ||
4317 | |||
4318 | state._fsp--; | ||
4319 | |||
4320 | |||
4321 | } | ||
4322 | |||
4323 | after(grammarAccess.getAndGateAccess().getNameAssignment_0()); | ||
4324 | |||
4325 | } | ||
4326 | |||
4327 | |||
4328 | } | ||
4329 | |||
4330 | } | ||
4331 | catch (RecognitionException re) { | ||
4332 | reportError(re); | ||
4333 | recover(input,re); | ||
4334 | } | ||
4335 | finally { | ||
4336 | |||
4337 | restoreStackSize(stackSize); | ||
4338 | |||
4339 | } | ||
4340 | return ; | ||
4341 | } | ||
4342 | // $ANTLR end "rule__AndGate__Group__0__Impl" | ||
4343 | |||
4344 | |||
4345 | // $ANTLR start "rule__AndGate__Group__1" | ||
4346 | // InternalCftLanguage.g:1390:1: rule__AndGate__Group__1 : rule__AndGate__Group__1__Impl rule__AndGate__Group__2 ; | ||
4347 | public final void rule__AndGate__Group__1() throws RecognitionException { | ||
4348 | |||
4349 | int stackSize = keepStackSize(); | ||
4350 | |||
4351 | try { | ||
4352 | // InternalCftLanguage.g:1394:1: ( rule__AndGate__Group__1__Impl rule__AndGate__Group__2 ) | ||
4353 | // InternalCftLanguage.g:1395:2: rule__AndGate__Group__1__Impl rule__AndGate__Group__2 | ||
4354 | { | ||
4355 | pushFollow(FOLLOW_3); | ||
4356 | rule__AndGate__Group__1__Impl(); | ||
4357 | |||
4358 | state._fsp--; | ||
4359 | |||
4360 | pushFollow(FOLLOW_2); | ||
4361 | rule__AndGate__Group__2(); | ||
4362 | |||
4363 | state._fsp--; | ||
4364 | |||
4365 | |||
4366 | } | ||
4367 | |||
4368 | } | ||
4369 | catch (RecognitionException re) { | ||
4370 | reportError(re); | ||
4371 | recover(input,re); | ||
4372 | } | ||
4373 | finally { | ||
4374 | |||
4375 | restoreStackSize(stackSize); | ||
4376 | |||
4377 | } | ||
4378 | return ; | ||
4379 | } | ||
4380 | // $ANTLR end "rule__AndGate__Group__1" | ||
4381 | |||
4382 | |||
4383 | // $ANTLR start "rule__AndGate__Group__1__Impl" | ||
4384 | // InternalCftLanguage.g:1402:1: rule__AndGate__Group__1__Impl : ( 'and' ) ; | ||
4385 | public final void rule__AndGate__Group__1__Impl() throws RecognitionException { | ||
4386 | |||
4387 | int stackSize = keepStackSize(); | ||
4388 | |||
4389 | try { | ||
4390 | // InternalCftLanguage.g:1406:1: ( ( 'and' ) ) | ||
4391 | // InternalCftLanguage.g:1407:1: ( 'and' ) | ||
4392 | { | ||
4393 | // InternalCftLanguage.g:1407:1: ( 'and' ) | ||
4394 | // InternalCftLanguage.g:1408:2: 'and' | ||
4395 | { | ||
4396 | before(grammarAccess.getAndGateAccess().getAndKeyword_1()); | ||
4397 | match(input,23,FOLLOW_2); | ||
4398 | after(grammarAccess.getAndGateAccess().getAndKeyword_1()); | ||
4399 | |||
4400 | } | ||
4401 | |||
4402 | |||
4403 | } | ||
4404 | |||
4405 | } | ||
4406 | catch (RecognitionException re) { | ||
4407 | reportError(re); | ||
4408 | recover(input,re); | ||
4409 | } | ||
4410 | finally { | ||
4411 | |||
4412 | restoreStackSize(stackSize); | ||
4413 | |||
4414 | } | ||
4415 | return ; | ||
4416 | } | ||
4417 | // $ANTLR end "rule__AndGate__Group__1__Impl" | ||
4418 | |||
4419 | |||
4420 | // $ANTLR start "rule__AndGate__Group__2" | ||
4421 | // InternalCftLanguage.g:1417:1: rule__AndGate__Group__2 : rule__AndGate__Group__2__Impl ; | ||
4422 | public final void rule__AndGate__Group__2() throws RecognitionException { | ||
4423 | |||
4424 | int stackSize = keepStackSize(); | ||
4425 | |||
4426 | try { | ||
4427 | // InternalCftLanguage.g:1421:1: ( rule__AndGate__Group__2__Impl ) | ||
4428 | // InternalCftLanguage.g:1422:2: rule__AndGate__Group__2__Impl | ||
4429 | { | ||
4430 | pushFollow(FOLLOW_2); | ||
4431 | rule__AndGate__Group__2__Impl(); | ||
4432 | |||
4433 | state._fsp--; | ||
4434 | |||
4435 | |||
4436 | } | ||
4437 | |||
4438 | } | ||
4439 | catch (RecognitionException re) { | ||
4440 | reportError(re); | ||
4441 | recover(input,re); | ||
4442 | } | ||
4443 | finally { | ||
4444 | |||
4445 | restoreStackSize(stackSize); | ||
4446 | |||
4447 | } | ||
4448 | return ; | ||
4449 | } | ||
4450 | // $ANTLR end "rule__AndGate__Group__2" | ||
4451 | |||
4452 | |||
4453 | // $ANTLR start "rule__AndGate__Group__2__Impl" | ||
4454 | // InternalCftLanguage.g:1428:1: rule__AndGate__Group__2__Impl : ( ( rule__AndGate__InputEventsAssignment_2 )* ) ; | ||
4455 | public final void rule__AndGate__Group__2__Impl() throws RecognitionException { | ||
4456 | |||
4457 | int stackSize = keepStackSize(); | ||
4458 | |||
4459 | try { | ||
4460 | // InternalCftLanguage.g:1432:1: ( ( ( rule__AndGate__InputEventsAssignment_2 )* ) ) | ||
4461 | // InternalCftLanguage.g:1433:1: ( ( rule__AndGate__InputEventsAssignment_2 )* ) | ||
4462 | { | ||
4463 | // InternalCftLanguage.g:1433:1: ( ( rule__AndGate__InputEventsAssignment_2 )* ) | ||
4464 | // InternalCftLanguage.g:1434:2: ( rule__AndGate__InputEventsAssignment_2 )* | ||
4465 | { | ||
4466 | before(grammarAccess.getAndGateAccess().getInputEventsAssignment_2()); | ||
4467 | // InternalCftLanguage.g:1435:2: ( rule__AndGate__InputEventsAssignment_2 )* | ||
4468 | loop14: | ||
4469 | do { | ||
4470 | int alt14=2; | ||
4471 | int LA14_0 = input.LA(1); | ||
4472 | |||
4473 | if ( (LA14_0==RULE_ID) ) { | ||
4474 | alt14=1; | ||
4475 | } | ||
4476 | |||
4477 | |||
4478 | switch (alt14) { | ||
4479 | case 1 : | ||
4480 | // InternalCftLanguage.g:1435:3: rule__AndGate__InputEventsAssignment_2 | ||
4481 | { | ||
4482 | pushFollow(FOLLOW_11); | ||
4483 | rule__AndGate__InputEventsAssignment_2(); | ||
4484 | |||
4485 | state._fsp--; | ||
4486 | |||
4487 | |||
4488 | } | ||
4489 | break; | ||
4490 | |||
4491 | default : | ||
4492 | break loop14; | ||
4493 | } | ||
4494 | } while (true); | ||
4495 | |||
4496 | after(grammarAccess.getAndGateAccess().getInputEventsAssignment_2()); | ||
4497 | |||
4498 | } | ||
4499 | |||
4500 | |||
4501 | } | ||
4502 | |||
4503 | } | ||
4504 | catch (RecognitionException re) { | ||
4505 | reportError(re); | ||
4506 | recover(input,re); | ||
4507 | } | ||
4508 | finally { | ||
4509 | |||
4510 | restoreStackSize(stackSize); | ||
4511 | |||
4512 | } | ||
4513 | return ; | ||
4514 | } | ||
4515 | // $ANTLR end "rule__AndGate__Group__2__Impl" | ||
4516 | |||
4517 | |||
4518 | // $ANTLR start "rule__OrGate__Group__0" | ||
4519 | // InternalCftLanguage.g:1444:1: rule__OrGate__Group__0 : rule__OrGate__Group__0__Impl rule__OrGate__Group__1 ; | ||
4520 | public final void rule__OrGate__Group__0() throws RecognitionException { | ||
4521 | |||
4522 | int stackSize = keepStackSize(); | ||
4523 | |||
4524 | try { | ||
4525 | // InternalCftLanguage.g:1448:1: ( rule__OrGate__Group__0__Impl rule__OrGate__Group__1 ) | ||
4526 | // InternalCftLanguage.g:1449:2: rule__OrGate__Group__0__Impl rule__OrGate__Group__1 | ||
4527 | { | ||
4528 | pushFollow(FOLLOW_18); | ||
4529 | rule__OrGate__Group__0__Impl(); | ||
4530 | |||
4531 | state._fsp--; | ||
4532 | |||
4533 | pushFollow(FOLLOW_2); | ||
4534 | rule__OrGate__Group__1(); | ||
4535 | |||
4536 | state._fsp--; | ||
4537 | |||
4538 | |||
4539 | } | ||
4540 | |||
4541 | } | ||
4542 | catch (RecognitionException re) { | ||
4543 | reportError(re); | ||
4544 | recover(input,re); | ||
4545 | } | ||
4546 | finally { | ||
4547 | |||
4548 | restoreStackSize(stackSize); | ||
4549 | |||
4550 | } | ||
4551 | return ; | ||
4552 | } | ||
4553 | // $ANTLR end "rule__OrGate__Group__0" | ||
4554 | |||
4555 | |||
4556 | // $ANTLR start "rule__OrGate__Group__0__Impl" | ||
4557 | // InternalCftLanguage.g:1456:1: rule__OrGate__Group__0__Impl : ( ( rule__OrGate__NameAssignment_0 ) ) ; | ||
4558 | public final void rule__OrGate__Group__0__Impl() throws RecognitionException { | ||
4559 | |||
4560 | int stackSize = keepStackSize(); | ||
4561 | |||
4562 | try { | ||
4563 | // InternalCftLanguage.g:1460:1: ( ( ( rule__OrGate__NameAssignment_0 ) ) ) | ||
4564 | // InternalCftLanguage.g:1461:1: ( ( rule__OrGate__NameAssignment_0 ) ) | ||
4565 | { | ||
4566 | // InternalCftLanguage.g:1461:1: ( ( rule__OrGate__NameAssignment_0 ) ) | ||
4567 | // InternalCftLanguage.g:1462:2: ( rule__OrGate__NameAssignment_0 ) | ||
4568 | { | ||
4569 | before(grammarAccess.getOrGateAccess().getNameAssignment_0()); | ||
4570 | // InternalCftLanguage.g:1463:2: ( rule__OrGate__NameAssignment_0 ) | ||
4571 | // InternalCftLanguage.g:1463:3: rule__OrGate__NameAssignment_0 | ||
4572 | { | ||
4573 | pushFollow(FOLLOW_2); | ||
4574 | rule__OrGate__NameAssignment_0(); | ||
4575 | |||
4576 | state._fsp--; | ||
4577 | |||
4578 | |||
4579 | } | ||
4580 | |||
4581 | after(grammarAccess.getOrGateAccess().getNameAssignment_0()); | ||
4582 | |||
4583 | } | ||
4584 | |||
4585 | |||
4586 | } | ||
4587 | |||
4588 | } | ||
4589 | catch (RecognitionException re) { | ||
4590 | reportError(re); | ||
4591 | recover(input,re); | ||
4592 | } | ||
4593 | finally { | ||
4594 | |||
4595 | restoreStackSize(stackSize); | ||
4596 | |||
4597 | } | ||
4598 | return ; | ||
4599 | } | ||
4600 | // $ANTLR end "rule__OrGate__Group__0__Impl" | ||
4601 | |||
4602 | |||
4603 | // $ANTLR start "rule__OrGate__Group__1" | ||
4604 | // InternalCftLanguage.g:1471:1: rule__OrGate__Group__1 : rule__OrGate__Group__1__Impl rule__OrGate__Group__2 ; | ||
4605 | public final void rule__OrGate__Group__1() throws RecognitionException { | ||
4606 | |||
4607 | int stackSize = keepStackSize(); | ||
4608 | |||
4609 | try { | ||
4610 | // InternalCftLanguage.g:1475:1: ( rule__OrGate__Group__1__Impl rule__OrGate__Group__2 ) | ||
4611 | // InternalCftLanguage.g:1476:2: rule__OrGate__Group__1__Impl rule__OrGate__Group__2 | ||
4612 | { | ||
4613 | pushFollow(FOLLOW_3); | ||
4614 | rule__OrGate__Group__1__Impl(); | ||
4615 | |||
4616 | state._fsp--; | ||
4617 | |||
4618 | pushFollow(FOLLOW_2); | ||
4619 | rule__OrGate__Group__2(); | ||
4620 | |||
4621 | state._fsp--; | ||
4622 | |||
4623 | |||
4624 | } | ||
4625 | |||
4626 | } | ||
4627 | catch (RecognitionException re) { | ||
4628 | reportError(re); | ||
4629 | recover(input,re); | ||
4630 | } | ||
4631 | finally { | ||
4632 | |||
4633 | restoreStackSize(stackSize); | ||
4634 | |||
4635 | } | ||
4636 | return ; | ||
4637 | } | ||
4638 | // $ANTLR end "rule__OrGate__Group__1" | ||
4639 | |||
4640 | |||
4641 | // $ANTLR start "rule__OrGate__Group__1__Impl" | ||
4642 | // InternalCftLanguage.g:1483:1: rule__OrGate__Group__1__Impl : ( 'or' ) ; | ||
4643 | public final void rule__OrGate__Group__1__Impl() throws RecognitionException { | ||
4644 | |||
4645 | int stackSize = keepStackSize(); | ||
4646 | |||
4647 | try { | ||
4648 | // InternalCftLanguage.g:1487:1: ( ( 'or' ) ) | ||
4649 | // InternalCftLanguage.g:1488:1: ( 'or' ) | ||
4650 | { | ||
4651 | // InternalCftLanguage.g:1488:1: ( 'or' ) | ||
4652 | // InternalCftLanguage.g:1489:2: 'or' | ||
4653 | { | ||
4654 | before(grammarAccess.getOrGateAccess().getOrKeyword_1()); | ||
4655 | match(input,24,FOLLOW_2); | ||
4656 | after(grammarAccess.getOrGateAccess().getOrKeyword_1()); | ||
4657 | |||
4658 | } | ||
4659 | |||
4660 | |||
4661 | } | ||
4662 | |||
4663 | } | ||
4664 | catch (RecognitionException re) { | ||
4665 | reportError(re); | ||
4666 | recover(input,re); | ||
4667 | } | ||
4668 | finally { | ||
4669 | |||
4670 | restoreStackSize(stackSize); | ||
4671 | |||
4672 | } | ||
4673 | return ; | ||
4674 | } | ||
4675 | // $ANTLR end "rule__OrGate__Group__1__Impl" | ||
4676 | |||
4677 | |||
4678 | // $ANTLR start "rule__OrGate__Group__2" | ||
4679 | // InternalCftLanguage.g:1498:1: rule__OrGate__Group__2 : rule__OrGate__Group__2__Impl ; | ||
4680 | public final void rule__OrGate__Group__2() throws RecognitionException { | ||
4681 | |||
4682 | int stackSize = keepStackSize(); | ||
4683 | |||
4684 | try { | ||
4685 | // InternalCftLanguage.g:1502:1: ( rule__OrGate__Group__2__Impl ) | ||
4686 | // InternalCftLanguage.g:1503:2: rule__OrGate__Group__2__Impl | ||
4687 | { | ||
4688 | pushFollow(FOLLOW_2); | ||
4689 | rule__OrGate__Group__2__Impl(); | ||
4690 | |||
4691 | state._fsp--; | ||
4692 | |||
4693 | |||
4694 | } | ||
4695 | |||
4696 | } | ||
4697 | catch (RecognitionException re) { | ||
4698 | reportError(re); | ||
4699 | recover(input,re); | ||
4700 | } | ||
4701 | finally { | ||
4702 | |||
4703 | restoreStackSize(stackSize); | ||
4704 | |||
4705 | } | ||
4706 | return ; | ||
4707 | } | ||
4708 | // $ANTLR end "rule__OrGate__Group__2" | ||
4709 | |||
4710 | |||
4711 | // $ANTLR start "rule__OrGate__Group__2__Impl" | ||
4712 | // InternalCftLanguage.g:1509:1: rule__OrGate__Group__2__Impl : ( ( rule__OrGate__InputEventsAssignment_2 )* ) ; | ||
4713 | public final void rule__OrGate__Group__2__Impl() throws RecognitionException { | ||
4714 | |||
4715 | int stackSize = keepStackSize(); | ||
4716 | |||
4717 | try { | ||
4718 | // InternalCftLanguage.g:1513:1: ( ( ( rule__OrGate__InputEventsAssignment_2 )* ) ) | ||
4719 | // InternalCftLanguage.g:1514:1: ( ( rule__OrGate__InputEventsAssignment_2 )* ) | ||
4720 | { | ||
4721 | // InternalCftLanguage.g:1514:1: ( ( rule__OrGate__InputEventsAssignment_2 )* ) | ||
4722 | // InternalCftLanguage.g:1515:2: ( rule__OrGate__InputEventsAssignment_2 )* | ||
4723 | { | ||
4724 | before(grammarAccess.getOrGateAccess().getInputEventsAssignment_2()); | ||
4725 | // InternalCftLanguage.g:1516:2: ( rule__OrGate__InputEventsAssignment_2 )* | ||
4726 | loop15: | ||
4727 | do { | ||
4728 | int alt15=2; | ||
4729 | int LA15_0 = input.LA(1); | ||
4730 | |||
4731 | if ( (LA15_0==RULE_ID) ) { | ||
4732 | alt15=1; | ||
4733 | } | ||
4734 | |||
4735 | |||
4736 | switch (alt15) { | ||
4737 | case 1 : | ||
4738 | // InternalCftLanguage.g:1516:3: rule__OrGate__InputEventsAssignment_2 | ||
4739 | { | ||
4740 | pushFollow(FOLLOW_11); | ||
4741 | rule__OrGate__InputEventsAssignment_2(); | ||
4742 | |||
4743 | state._fsp--; | ||
4744 | |||
4745 | |||
4746 | } | ||
4747 | break; | ||
4748 | |||
4749 | default : | ||
4750 | break loop15; | ||
4751 | } | ||
4752 | } while (true); | ||
4753 | |||
4754 | after(grammarAccess.getOrGateAccess().getInputEventsAssignment_2()); | ||
4755 | |||
4756 | } | ||
4757 | |||
4758 | |||
4759 | } | ||
4760 | |||
4761 | } | ||
4762 | catch (RecognitionException re) { | ||
4763 | reportError(re); | ||
4764 | recover(input,re); | ||
4765 | } | ||
4766 | finally { | ||
4767 | |||
4768 | restoreStackSize(stackSize); | ||
4769 | |||
4770 | } | ||
4771 | return ; | ||
4772 | } | ||
4773 | // $ANTLR end "rule__OrGate__Group__2__Impl" | ||
4774 | |||
4775 | |||
4776 | // $ANTLR start "rule__TransformationDefinition__Group__0" | ||
4777 | // InternalCftLanguage.g:1525:1: rule__TransformationDefinition__Group__0 : rule__TransformationDefinition__Group__0__Impl rule__TransformationDefinition__Group__1 ; | ||
4778 | public final void rule__TransformationDefinition__Group__0() throws RecognitionException { | ||
4779 | |||
4780 | int stackSize = keepStackSize(); | ||
4781 | |||
4782 | try { | ||
4783 | // InternalCftLanguage.g:1529:1: ( rule__TransformationDefinition__Group__0__Impl rule__TransformationDefinition__Group__1 ) | ||
4784 | // InternalCftLanguage.g:1530:2: rule__TransformationDefinition__Group__0__Impl rule__TransformationDefinition__Group__1 | ||
4785 | { | ||
4786 | pushFollow(FOLLOW_3); | ||
4787 | rule__TransformationDefinition__Group__0__Impl(); | ||
4788 | |||
4789 | state._fsp--; | ||
4790 | |||
4791 | pushFollow(FOLLOW_2); | ||
4792 | rule__TransformationDefinition__Group__1(); | ||
4793 | |||
4794 | state._fsp--; | ||
4795 | |||
4796 | |||
4797 | } | ||
4798 | |||
4799 | } | ||
4800 | catch (RecognitionException re) { | ||
4801 | reportError(re); | ||
4802 | recover(input,re); | ||
4803 | } | ||
4804 | finally { | ||
4805 | |||
4806 | restoreStackSize(stackSize); | ||
4807 | |||
4808 | } | ||
4809 | return ; | ||
4810 | } | ||
4811 | // $ANTLR end "rule__TransformationDefinition__Group__0" | ||
4812 | |||
4813 | |||
4814 | // $ANTLR start "rule__TransformationDefinition__Group__0__Impl" | ||
4815 | // InternalCftLanguage.g:1537:1: rule__TransformationDefinition__Group__0__Impl : ( 'transformation' ) ; | ||
4816 | public final void rule__TransformationDefinition__Group__0__Impl() throws RecognitionException { | ||
4817 | |||
4818 | int stackSize = keepStackSize(); | ||
4819 | |||
4820 | try { | ||
4821 | // InternalCftLanguage.g:1541:1: ( ( 'transformation' ) ) | ||
4822 | // InternalCftLanguage.g:1542:1: ( 'transformation' ) | ||
4823 | { | ||
4824 | // InternalCftLanguage.g:1542:1: ( 'transformation' ) | ||
4825 | // InternalCftLanguage.g:1543:2: 'transformation' | ||
4826 | { | ||
4827 | before(grammarAccess.getTransformationDefinitionAccess().getTransformationKeyword_0()); | ||
4828 | match(input,25,FOLLOW_2); | ||
4829 | after(grammarAccess.getTransformationDefinitionAccess().getTransformationKeyword_0()); | ||
4830 | |||
4831 | } | ||
4832 | |||
4833 | |||
4834 | } | ||
4835 | |||
4836 | } | ||
4837 | catch (RecognitionException re) { | ||
4838 | reportError(re); | ||
4839 | recover(input,re); | ||
4840 | } | ||
4841 | finally { | ||
4842 | |||
4843 | restoreStackSize(stackSize); | ||
4844 | |||
4845 | } | ||
4846 | return ; | ||
4847 | } | ||
4848 | // $ANTLR end "rule__TransformationDefinition__Group__0__Impl" | ||
4849 | |||
4850 | |||
4851 | // $ANTLR start "rule__TransformationDefinition__Group__1" | ||
4852 | // InternalCftLanguage.g:1552:1: rule__TransformationDefinition__Group__1 : rule__TransformationDefinition__Group__1__Impl rule__TransformationDefinition__Group__2 ; | ||
4853 | public final void rule__TransformationDefinition__Group__1() throws RecognitionException { | ||
4854 | |||
4855 | int stackSize = keepStackSize(); | ||
4856 | |||
4857 | try { | ||
4858 | // InternalCftLanguage.g:1556:1: ( rule__TransformationDefinition__Group__1__Impl rule__TransformationDefinition__Group__2 ) | ||
4859 | // InternalCftLanguage.g:1557:2: rule__TransformationDefinition__Group__1__Impl rule__TransformationDefinition__Group__2 | ||
4860 | { | ||
4861 | pushFollow(FOLLOW_8); | ||
4862 | rule__TransformationDefinition__Group__1__Impl(); | ||
4863 | |||
4864 | state._fsp--; | ||
4865 | |||
4866 | pushFollow(FOLLOW_2); | ||
4867 | rule__TransformationDefinition__Group__2(); | ||
4868 | |||
4869 | state._fsp--; | ||
4870 | |||
4871 | |||
4872 | } | ||
4873 | |||
4874 | } | ||
4875 | catch (RecognitionException re) { | ||
4876 | reportError(re); | ||
4877 | recover(input,re); | ||
4878 | } | ||
4879 | finally { | ||
4880 | |||
4881 | restoreStackSize(stackSize); | ||
4882 | |||
4883 | } | ||
4884 | return ; | ||
4885 | } | ||
4886 | // $ANTLR end "rule__TransformationDefinition__Group__1" | ||
4887 | |||
4888 | |||
4889 | // $ANTLR start "rule__TransformationDefinition__Group__1__Impl" | ||
4890 | // InternalCftLanguage.g:1564:1: rule__TransformationDefinition__Group__1__Impl : ( ( rule__TransformationDefinition__NameAssignment_1 ) ) ; | ||
4891 | public final void rule__TransformationDefinition__Group__1__Impl() throws RecognitionException { | ||
4892 | |||
4893 | int stackSize = keepStackSize(); | ||
4894 | |||
4895 | try { | ||
4896 | // InternalCftLanguage.g:1568:1: ( ( ( rule__TransformationDefinition__NameAssignment_1 ) ) ) | ||
4897 | // InternalCftLanguage.g:1569:1: ( ( rule__TransformationDefinition__NameAssignment_1 ) ) | ||
4898 | { | ||
4899 | // InternalCftLanguage.g:1569:1: ( ( rule__TransformationDefinition__NameAssignment_1 ) ) | ||
4900 | // InternalCftLanguage.g:1570:2: ( rule__TransformationDefinition__NameAssignment_1 ) | ||
4901 | { | ||
4902 | before(grammarAccess.getTransformationDefinitionAccess().getNameAssignment_1()); | ||
4903 | // InternalCftLanguage.g:1571:2: ( rule__TransformationDefinition__NameAssignment_1 ) | ||
4904 | // InternalCftLanguage.g:1571:3: rule__TransformationDefinition__NameAssignment_1 | ||
4905 | { | ||
4906 | pushFollow(FOLLOW_2); | ||
4907 | rule__TransformationDefinition__NameAssignment_1(); | ||
4908 | |||
4909 | state._fsp--; | ||
4910 | |||
4911 | |||
4912 | } | ||
4913 | |||
4914 | after(grammarAccess.getTransformationDefinitionAccess().getNameAssignment_1()); | ||
4915 | |||
4916 | } | ||
4917 | |||
4918 | |||
4919 | } | ||
4920 | |||
4921 | } | ||
4922 | catch (RecognitionException re) { | ||
4923 | reportError(re); | ||
4924 | recover(input,re); | ||
4925 | } | ||
4926 | finally { | ||
4927 | |||
4928 | restoreStackSize(stackSize); | ||
4929 | |||
4930 | } | ||
4931 | return ; | ||
4932 | } | ||
4933 | // $ANTLR end "rule__TransformationDefinition__Group__1__Impl" | ||
4934 | |||
4935 | |||
4936 | // $ANTLR start "rule__TransformationDefinition__Group__2" | ||
4937 | // InternalCftLanguage.g:1579:1: rule__TransformationDefinition__Group__2 : rule__TransformationDefinition__Group__2__Impl rule__TransformationDefinition__Group__3 ; | ||
4938 | public final void rule__TransformationDefinition__Group__2() throws RecognitionException { | ||
4939 | |||
4940 | int stackSize = keepStackSize(); | ||
4941 | |||
4942 | try { | ||
4943 | // InternalCftLanguage.g:1583:1: ( rule__TransformationDefinition__Group__2__Impl rule__TransformationDefinition__Group__3 ) | ||
4944 | // InternalCftLanguage.g:1584:2: rule__TransformationDefinition__Group__2__Impl rule__TransformationDefinition__Group__3 | ||
4945 | { | ||
4946 | pushFollow(FOLLOW_19); | ||
4947 | rule__TransformationDefinition__Group__2__Impl(); | ||
4948 | |||
4949 | state._fsp--; | ||
4950 | |||
4951 | pushFollow(FOLLOW_2); | ||
4952 | rule__TransformationDefinition__Group__3(); | ||
4953 | |||
4954 | state._fsp--; | ||
4955 | |||
4956 | |||
4957 | } | ||
4958 | |||
4959 | } | ||
4960 | catch (RecognitionException re) { | ||
4961 | reportError(re); | ||
4962 | recover(input,re); | ||
4963 | } | ||
4964 | finally { | ||
4965 | |||
4966 | restoreStackSize(stackSize); | ||
4967 | |||
4968 | } | ||
4969 | return ; | ||
4970 | } | ||
4971 | // $ANTLR end "rule__TransformationDefinition__Group__2" | ||
4972 | |||
4973 | |||
4974 | // $ANTLR start "rule__TransformationDefinition__Group__2__Impl" | ||
4975 | // InternalCftLanguage.g:1591:1: rule__TransformationDefinition__Group__2__Impl : ( '{' ) ; | ||
4976 | public final void rule__TransformationDefinition__Group__2__Impl() throws RecognitionException { | ||
4977 | |||
4978 | int stackSize = keepStackSize(); | ||
4979 | |||
4980 | try { | ||
4981 | // InternalCftLanguage.g:1595:1: ( ( '{' ) ) | ||
4982 | // InternalCftLanguage.g:1596:1: ( '{' ) | ||
4983 | { | ||
4984 | // InternalCftLanguage.g:1596:1: ( '{' ) | ||
4985 | // InternalCftLanguage.g:1597:2: '{' | ||
4986 | { | ||
4987 | before(grammarAccess.getTransformationDefinitionAccess().getLeftCurlyBracketKeyword_2()); | ||
4988 | match(input,17,FOLLOW_2); | ||
4989 | after(grammarAccess.getTransformationDefinitionAccess().getLeftCurlyBracketKeyword_2()); | ||
4990 | |||
4991 | } | ||
4992 | |||
4993 | |||
4994 | } | ||
4995 | |||
4996 | } | ||
4997 | catch (RecognitionException re) { | ||
4998 | reportError(re); | ||
4999 | recover(input,re); | ||
5000 | } | ||
5001 | finally { | ||
5002 | |||
5003 | restoreStackSize(stackSize); | ||
5004 | |||
5005 | } | ||
5006 | return ; | ||
5007 | } | ||
5008 | // $ANTLR end "rule__TransformationDefinition__Group__2__Impl" | ||
5009 | |||
5010 | |||
5011 | // $ANTLR start "rule__TransformationDefinition__Group__3" | ||
5012 | // InternalCftLanguage.g:1606:1: rule__TransformationDefinition__Group__3 : rule__TransformationDefinition__Group__3__Impl rule__TransformationDefinition__Group__4 ; | ||
5013 | public final void rule__TransformationDefinition__Group__3() throws RecognitionException { | ||
5014 | |||
5015 | int stackSize = keepStackSize(); | ||
5016 | |||
5017 | try { | ||
5018 | // InternalCftLanguage.g:1610:1: ( rule__TransformationDefinition__Group__3__Impl rule__TransformationDefinition__Group__4 ) | ||
5019 | // InternalCftLanguage.g:1611:2: rule__TransformationDefinition__Group__3__Impl rule__TransformationDefinition__Group__4 | ||
5020 | { | ||
5021 | pushFollow(FOLLOW_19); | ||
5022 | rule__TransformationDefinition__Group__3__Impl(); | ||
5023 | |||
5024 | state._fsp--; | ||
5025 | |||
5026 | pushFollow(FOLLOW_2); | ||
5027 | rule__TransformationDefinition__Group__4(); | ||
5028 | |||
5029 | state._fsp--; | ||
5030 | |||
5031 | |||
5032 | } | ||
5033 | |||
5034 | } | ||
5035 | catch (RecognitionException re) { | ||
5036 | reportError(re); | ||
5037 | recover(input,re); | ||
5038 | } | ||
5039 | finally { | ||
5040 | |||
5041 | restoreStackSize(stackSize); | ||
5042 | |||
5043 | } | ||
5044 | return ; | ||
5045 | } | ||
5046 | // $ANTLR end "rule__TransformationDefinition__Group__3" | ||
5047 | |||
5048 | |||
5049 | // $ANTLR start "rule__TransformationDefinition__Group__3__Impl" | ||
5050 | // InternalCftLanguage.g:1618:1: rule__TransformationDefinition__Group__3__Impl : ( ( rule__TransformationDefinition__MappingDefinitionsAssignment_3 )* ) ; | ||
5051 | public final void rule__TransformationDefinition__Group__3__Impl() throws RecognitionException { | ||
5052 | |||
5053 | int stackSize = keepStackSize(); | ||
5054 | |||
5055 | try { | ||
5056 | // InternalCftLanguage.g:1622:1: ( ( ( rule__TransformationDefinition__MappingDefinitionsAssignment_3 )* ) ) | ||
5057 | // InternalCftLanguage.g:1623:1: ( ( rule__TransformationDefinition__MappingDefinitionsAssignment_3 )* ) | ||
5058 | { | ||
5059 | // InternalCftLanguage.g:1623:1: ( ( rule__TransformationDefinition__MappingDefinitionsAssignment_3 )* ) | ||
5060 | // InternalCftLanguage.g:1624:2: ( rule__TransformationDefinition__MappingDefinitionsAssignment_3 )* | ||
5061 | { | ||
5062 | before(grammarAccess.getTransformationDefinitionAccess().getMappingDefinitionsAssignment_3()); | ||
5063 | // InternalCftLanguage.g:1625:2: ( rule__TransformationDefinition__MappingDefinitionsAssignment_3 )* | ||
5064 | loop16: | ||
5065 | do { | ||
5066 | int alt16=2; | ||
5067 | int LA16_0 = input.LA(1); | ||
5068 | |||
5069 | if ( (LA16_0==26||LA16_0==36) ) { | ||
5070 | alt16=1; | ||
5071 | } | ||
5072 | |||
5073 | |||
5074 | switch (alt16) { | ||
5075 | case 1 : | ||
5076 | // InternalCftLanguage.g:1625:3: rule__TransformationDefinition__MappingDefinitionsAssignment_3 | ||
5077 | { | ||
5078 | pushFollow(FOLLOW_20); | ||
5079 | rule__TransformationDefinition__MappingDefinitionsAssignment_3(); | ||
5080 | |||
5081 | state._fsp--; | ||
5082 | |||
5083 | |||
5084 | } | ||
5085 | break; | ||
5086 | |||
5087 | default : | ||
5088 | break loop16; | ||
5089 | } | ||
5090 | } while (true); | ||
5091 | |||
5092 | after(grammarAccess.getTransformationDefinitionAccess().getMappingDefinitionsAssignment_3()); | ||
5093 | |||
5094 | } | ||
5095 | |||
5096 | |||
5097 | } | ||
5098 | |||
5099 | } | ||
5100 | catch (RecognitionException re) { | ||
5101 | reportError(re); | ||
5102 | recover(input,re); | ||
5103 | } | ||
5104 | finally { | ||
5105 | |||
5106 | restoreStackSize(stackSize); | ||
5107 | |||
5108 | } | ||
5109 | return ; | ||
5110 | } | ||
5111 | // $ANTLR end "rule__TransformationDefinition__Group__3__Impl" | ||
5112 | |||
5113 | |||
5114 | // $ANTLR start "rule__TransformationDefinition__Group__4" | ||
5115 | // InternalCftLanguage.g:1633:1: rule__TransformationDefinition__Group__4 : rule__TransformationDefinition__Group__4__Impl ; | ||
5116 | public final void rule__TransformationDefinition__Group__4() throws RecognitionException { | ||
5117 | |||
5118 | int stackSize = keepStackSize(); | ||
5119 | |||
5120 | try { | ||
5121 | // InternalCftLanguage.g:1637:1: ( rule__TransformationDefinition__Group__4__Impl ) | ||
5122 | // InternalCftLanguage.g:1638:2: rule__TransformationDefinition__Group__4__Impl | ||
5123 | { | ||
5124 | pushFollow(FOLLOW_2); | ||
5125 | rule__TransformationDefinition__Group__4__Impl(); | ||
5126 | |||
5127 | state._fsp--; | ||
5128 | |||
5129 | |||
5130 | } | ||
5131 | |||
5132 | } | ||
5133 | catch (RecognitionException re) { | ||
5134 | reportError(re); | ||
5135 | recover(input,re); | ||
5136 | } | ||
5137 | finally { | ||
5138 | |||
5139 | restoreStackSize(stackSize); | ||
5140 | |||
5141 | } | ||
5142 | return ; | ||
5143 | } | ||
5144 | // $ANTLR end "rule__TransformationDefinition__Group__4" | ||
5145 | |||
5146 | |||
5147 | // $ANTLR start "rule__TransformationDefinition__Group__4__Impl" | ||
5148 | // InternalCftLanguage.g:1644:1: rule__TransformationDefinition__Group__4__Impl : ( '}' ) ; | ||
5149 | public final void rule__TransformationDefinition__Group__4__Impl() throws RecognitionException { | ||
5150 | |||
5151 | int stackSize = keepStackSize(); | ||
5152 | |||
5153 | try { | ||
5154 | // InternalCftLanguage.g:1648:1: ( ( '}' ) ) | ||
5155 | // InternalCftLanguage.g:1649:1: ( '}' ) | ||
5156 | { | ||
5157 | // InternalCftLanguage.g:1649:1: ( '}' ) | ||
5158 | // InternalCftLanguage.g:1650:2: '}' | ||
5159 | { | ||
5160 | before(grammarAccess.getTransformationDefinitionAccess().getRightCurlyBracketKeyword_4()); | ||
5161 | match(input,18,FOLLOW_2); | ||
5162 | after(grammarAccess.getTransformationDefinitionAccess().getRightCurlyBracketKeyword_4()); | ||
5163 | |||
5164 | } | ||
5165 | |||
5166 | |||
5167 | } | ||
5168 | |||
5169 | } | ||
5170 | catch (RecognitionException re) { | ||
5171 | reportError(re); | ||
5172 | recover(input,re); | ||
5173 | } | ||
5174 | finally { | ||
5175 | |||
5176 | restoreStackSize(stackSize); | ||
5177 | |||
5178 | } | ||
5179 | return ; | ||
5180 | } | ||
5181 | // $ANTLR end "rule__TransformationDefinition__Group__4__Impl" | ||
5182 | |||
5183 | |||
5184 | // $ANTLR start "rule__MappingDefinition__Group__0" | ||
5185 | // InternalCftLanguage.g:1660:1: rule__MappingDefinition__Group__0 : rule__MappingDefinition__Group__0__Impl rule__MappingDefinition__Group__1 ; | ||
5186 | public final void rule__MappingDefinition__Group__0() throws RecognitionException { | ||
5187 | |||
5188 | int stackSize = keepStackSize(); | ||
5189 | |||
5190 | try { | ||
5191 | // InternalCftLanguage.g:1664:1: ( rule__MappingDefinition__Group__0__Impl rule__MappingDefinition__Group__1 ) | ||
5192 | // InternalCftLanguage.g:1665:2: rule__MappingDefinition__Group__0__Impl rule__MappingDefinition__Group__1 | ||
5193 | { | ||
5194 | pushFollow(FOLLOW_21); | ||
5195 | rule__MappingDefinition__Group__0__Impl(); | ||
5196 | |||
5197 | state._fsp--; | ||
5198 | |||
5199 | pushFollow(FOLLOW_2); | ||
5200 | rule__MappingDefinition__Group__1(); | ||
5201 | |||
5202 | state._fsp--; | ||
5203 | |||
5204 | |||
5205 | } | ||
5206 | |||
5207 | } | ||
5208 | catch (RecognitionException re) { | ||
5209 | reportError(re); | ||
5210 | recover(input,re); | ||
5211 | } | ||
5212 | finally { | ||
5213 | |||
5214 | restoreStackSize(stackSize); | ||
5215 | |||
5216 | } | ||
5217 | return ; | ||
5218 | } | ||
5219 | // $ANTLR end "rule__MappingDefinition__Group__0" | ||
5220 | |||
5221 | |||
5222 | // $ANTLR start "rule__MappingDefinition__Group__0__Impl" | ||
5223 | // InternalCftLanguage.g:1672:1: rule__MappingDefinition__Group__0__Impl : ( ( rule__MappingDefinition__TopLevelAssignment_0 )? ) ; | ||
5224 | public final void rule__MappingDefinition__Group__0__Impl() throws RecognitionException { | ||
5225 | |||
5226 | int stackSize = keepStackSize(); | ||
5227 | |||
5228 | try { | ||
5229 | // InternalCftLanguage.g:1676:1: ( ( ( rule__MappingDefinition__TopLevelAssignment_0 )? ) ) | ||
5230 | // InternalCftLanguage.g:1677:1: ( ( rule__MappingDefinition__TopLevelAssignment_0 )? ) | ||
5231 | { | ||
5232 | // InternalCftLanguage.g:1677:1: ( ( rule__MappingDefinition__TopLevelAssignment_0 )? ) | ||
5233 | // InternalCftLanguage.g:1678:2: ( rule__MappingDefinition__TopLevelAssignment_0 )? | ||
5234 | { | ||
5235 | before(grammarAccess.getMappingDefinitionAccess().getTopLevelAssignment_0()); | ||
5236 | // InternalCftLanguage.g:1679:2: ( rule__MappingDefinition__TopLevelAssignment_0 )? | ||
5237 | int alt17=2; | ||
5238 | int LA17_0 = input.LA(1); | ||
5239 | |||
5240 | if ( (LA17_0==36) ) { | ||
5241 | alt17=1; | ||
5242 | } | ||
5243 | switch (alt17) { | ||
5244 | case 1 : | ||
5245 | // InternalCftLanguage.g:1679:3: rule__MappingDefinition__TopLevelAssignment_0 | ||
5246 | { | ||
5247 | pushFollow(FOLLOW_2); | ||
5248 | rule__MappingDefinition__TopLevelAssignment_0(); | ||
5249 | |||
5250 | state._fsp--; | ||
5251 | |||
5252 | |||
5253 | } | ||
5254 | break; | ||
5255 | |||
5256 | } | ||
5257 | |||
5258 | after(grammarAccess.getMappingDefinitionAccess().getTopLevelAssignment_0()); | ||
5259 | |||
5260 | } | ||
5261 | |||
5262 | |||
5263 | } | ||
5264 | |||
5265 | } | ||
5266 | catch (RecognitionException re) { | ||
5267 | reportError(re); | ||
5268 | recover(input,re); | ||
5269 | } | ||
5270 | finally { | ||
5271 | |||
5272 | restoreStackSize(stackSize); | ||
5273 | |||
5274 | } | ||
5275 | return ; | ||
5276 | } | ||
5277 | // $ANTLR end "rule__MappingDefinition__Group__0__Impl" | ||
5278 | |||
5279 | |||
5280 | // $ANTLR start "rule__MappingDefinition__Group__1" | ||
5281 | // InternalCftLanguage.g:1687:1: rule__MappingDefinition__Group__1 : rule__MappingDefinition__Group__1__Impl rule__MappingDefinition__Group__2 ; | ||
5282 | public final void rule__MappingDefinition__Group__1() throws RecognitionException { | ||
5283 | |||
5284 | int stackSize = keepStackSize(); | ||
5285 | |||
5286 | try { | ||
5287 | // InternalCftLanguage.g:1691:1: ( rule__MappingDefinition__Group__1__Impl rule__MappingDefinition__Group__2 ) | ||
5288 | // InternalCftLanguage.g:1692:2: rule__MappingDefinition__Group__1__Impl rule__MappingDefinition__Group__2 | ||
5289 | { | ||
5290 | pushFollow(FOLLOW_3); | ||
5291 | rule__MappingDefinition__Group__1__Impl(); | ||
5292 | |||
5293 | state._fsp--; | ||
5294 | |||
5295 | pushFollow(FOLLOW_2); | ||
5296 | rule__MappingDefinition__Group__2(); | ||
5297 | |||
5298 | state._fsp--; | ||
5299 | |||
5300 | |||
5301 | } | ||
5302 | |||
5303 | } | ||
5304 | catch (RecognitionException re) { | ||
5305 | reportError(re); | ||
5306 | recover(input,re); | ||
5307 | } | ||
5308 | finally { | ||
5309 | |||
5310 | restoreStackSize(stackSize); | ||
5311 | |||
5312 | } | ||
5313 | return ; | ||
5314 | } | ||
5315 | // $ANTLR end "rule__MappingDefinition__Group__1" | ||
5316 | |||
5317 | |||
5318 | // $ANTLR start "rule__MappingDefinition__Group__1__Impl" | ||
5319 | // InternalCftLanguage.g:1699:1: rule__MappingDefinition__Group__1__Impl : ( 'mapping' ) ; | ||
5320 | public final void rule__MappingDefinition__Group__1__Impl() throws RecognitionException { | ||
5321 | |||
5322 | int stackSize = keepStackSize(); | ||
5323 | |||
5324 | try { | ||
5325 | // InternalCftLanguage.g:1703:1: ( ( 'mapping' ) ) | ||
5326 | // InternalCftLanguage.g:1704:1: ( 'mapping' ) | ||
5327 | { | ||
5328 | // InternalCftLanguage.g:1704:1: ( 'mapping' ) | ||
5329 | // InternalCftLanguage.g:1705:2: 'mapping' | ||
5330 | { | ||
5331 | before(grammarAccess.getMappingDefinitionAccess().getMappingKeyword_1()); | ||
5332 | match(input,26,FOLLOW_2); | ||
5333 | after(grammarAccess.getMappingDefinitionAccess().getMappingKeyword_1()); | ||
5334 | |||
5335 | } | ||
5336 | |||
5337 | |||
5338 | } | ||
5339 | |||
5340 | } | ||
5341 | catch (RecognitionException re) { | ||
5342 | reportError(re); | ||
5343 | recover(input,re); | ||
5344 | } | ||
5345 | finally { | ||
5346 | |||
5347 | restoreStackSize(stackSize); | ||
5348 | |||
5349 | } | ||
5350 | return ; | ||
5351 | } | ||
5352 | // $ANTLR end "rule__MappingDefinition__Group__1__Impl" | ||
5353 | |||
5354 | |||
5355 | // $ANTLR start "rule__MappingDefinition__Group__2" | ||
5356 | // InternalCftLanguage.g:1714:1: rule__MappingDefinition__Group__2 : rule__MappingDefinition__Group__2__Impl rule__MappingDefinition__Group__3 ; | ||
5357 | public final void rule__MappingDefinition__Group__2() throws RecognitionException { | ||
5358 | |||
5359 | int stackSize = keepStackSize(); | ||
5360 | |||
5361 | try { | ||
5362 | // InternalCftLanguage.g:1718:1: ( rule__MappingDefinition__Group__2__Impl rule__MappingDefinition__Group__3 ) | ||
5363 | // InternalCftLanguage.g:1719:2: rule__MappingDefinition__Group__2__Impl rule__MappingDefinition__Group__3 | ||
5364 | { | ||
5365 | pushFollow(FOLLOW_22); | ||
5366 | rule__MappingDefinition__Group__2__Impl(); | ||
5367 | |||
5368 | state._fsp--; | ||
5369 | |||
5370 | pushFollow(FOLLOW_2); | ||
5371 | rule__MappingDefinition__Group__3(); | ||
5372 | |||
5373 | state._fsp--; | ||
5374 | |||
5375 | |||
5376 | } | ||
5377 | |||
5378 | } | ||
5379 | catch (RecognitionException re) { | ||
5380 | reportError(re); | ||
5381 | recover(input,re); | ||
5382 | } | ||
5383 | finally { | ||
5384 | |||
5385 | restoreStackSize(stackSize); | ||
5386 | |||
5387 | } | ||
5388 | return ; | ||
5389 | } | ||
5390 | // $ANTLR end "rule__MappingDefinition__Group__2" | ||
5391 | |||
5392 | |||
5393 | // $ANTLR start "rule__MappingDefinition__Group__2__Impl" | ||
5394 | // InternalCftLanguage.g:1726:1: rule__MappingDefinition__Group__2__Impl : ( ( rule__MappingDefinition__PatternAssignment_2 ) ) ; | ||
5395 | public final void rule__MappingDefinition__Group__2__Impl() throws RecognitionException { | ||
5396 | |||
5397 | int stackSize = keepStackSize(); | ||
5398 | |||
5399 | try { | ||
5400 | // InternalCftLanguage.g:1730:1: ( ( ( rule__MappingDefinition__PatternAssignment_2 ) ) ) | ||
5401 | // InternalCftLanguage.g:1731:1: ( ( rule__MappingDefinition__PatternAssignment_2 ) ) | ||
5402 | { | ||
5403 | // InternalCftLanguage.g:1731:1: ( ( rule__MappingDefinition__PatternAssignment_2 ) ) | ||
5404 | // InternalCftLanguage.g:1732:2: ( rule__MappingDefinition__PatternAssignment_2 ) | ||
5405 | { | ||
5406 | before(grammarAccess.getMappingDefinitionAccess().getPatternAssignment_2()); | ||
5407 | // InternalCftLanguage.g:1733:2: ( rule__MappingDefinition__PatternAssignment_2 ) | ||
5408 | // InternalCftLanguage.g:1733:3: rule__MappingDefinition__PatternAssignment_2 | ||
5409 | { | ||
5410 | pushFollow(FOLLOW_2); | ||
5411 | rule__MappingDefinition__PatternAssignment_2(); | ||
5412 | |||
5413 | state._fsp--; | ||
5414 | |||
5415 | |||
5416 | } | ||
5417 | |||
5418 | after(grammarAccess.getMappingDefinitionAccess().getPatternAssignment_2()); | ||
5419 | |||
5420 | } | ||
5421 | |||
5422 | |||
5423 | } | ||
5424 | |||
5425 | } | ||
5426 | catch (RecognitionException re) { | ||
5427 | reportError(re); | ||
5428 | recover(input,re); | ||
5429 | } | ||
5430 | finally { | ||
5431 | |||
5432 | restoreStackSize(stackSize); | ||
5433 | |||
5434 | } | ||
5435 | return ; | ||
5436 | } | ||
5437 | // $ANTLR end "rule__MappingDefinition__Group__2__Impl" | ||
5438 | |||
5439 | |||
5440 | // $ANTLR start "rule__MappingDefinition__Group__3" | ||
5441 | // InternalCftLanguage.g:1741:1: rule__MappingDefinition__Group__3 : rule__MappingDefinition__Group__3__Impl rule__MappingDefinition__Group__4 ; | ||
5442 | public final void rule__MappingDefinition__Group__3() throws RecognitionException { | ||
5443 | |||
5444 | int stackSize = keepStackSize(); | ||
5445 | |||
5446 | try { | ||
5447 | // InternalCftLanguage.g:1745:1: ( rule__MappingDefinition__Group__3__Impl rule__MappingDefinition__Group__4 ) | ||
5448 | // InternalCftLanguage.g:1746:2: rule__MappingDefinition__Group__3__Impl rule__MappingDefinition__Group__4 | ||
5449 | { | ||
5450 | pushFollow(FOLLOW_3); | ||
5451 | rule__MappingDefinition__Group__3__Impl(); | ||
5452 | |||
5453 | state._fsp--; | ||
5454 | |||
5455 | pushFollow(FOLLOW_2); | ||
5456 | rule__MappingDefinition__Group__4(); | ||
5457 | |||
5458 | state._fsp--; | ||
5459 | |||
5460 | |||
5461 | } | ||
5462 | |||
5463 | } | ||
5464 | catch (RecognitionException re) { | ||
5465 | reportError(re); | ||
5466 | recover(input,re); | ||
5467 | } | ||
5468 | finally { | ||
5469 | |||
5470 | restoreStackSize(stackSize); | ||
5471 | |||
5472 | } | ||
5473 | return ; | ||
5474 | } | ||
5475 | // $ANTLR end "rule__MappingDefinition__Group__3" | ||
5476 | |||
5477 | |||
5478 | // $ANTLR start "rule__MappingDefinition__Group__3__Impl" | ||
5479 | // InternalCftLanguage.g:1753:1: rule__MappingDefinition__Group__3__Impl : ( '(' ) ; | ||
5480 | public final void rule__MappingDefinition__Group__3__Impl() throws RecognitionException { | ||
5481 | |||
5482 | int stackSize = keepStackSize(); | ||
5483 | |||
5484 | try { | ||
5485 | // InternalCftLanguage.g:1757:1: ( ( '(' ) ) | ||
5486 | // InternalCftLanguage.g:1758:1: ( '(' ) | ||
5487 | { | ||
5488 | // InternalCftLanguage.g:1758:1: ( '(' ) | ||
5489 | // InternalCftLanguage.g:1759:2: '(' | ||
5490 | { | ||
5491 | before(grammarAccess.getMappingDefinitionAccess().getLeftParenthesisKeyword_3()); | ||
5492 | match(input,27,FOLLOW_2); | ||
5493 | after(grammarAccess.getMappingDefinitionAccess().getLeftParenthesisKeyword_3()); | ||
5494 | |||
5495 | } | ||
5496 | |||
5497 | |||
5498 | } | ||
5499 | |||
5500 | } | ||
5501 | catch (RecognitionException re) { | ||
5502 | reportError(re); | ||
5503 | recover(input,re); | ||
5504 | } | ||
5505 | finally { | ||
5506 | |||
5507 | restoreStackSize(stackSize); | ||
5508 | |||
5509 | } | ||
5510 | return ; | ||
5511 | } | ||
5512 | // $ANTLR end "rule__MappingDefinition__Group__3__Impl" | ||
5513 | |||
5514 | |||
5515 | // $ANTLR start "rule__MappingDefinition__Group__4" | ||
5516 | // InternalCftLanguage.g:1768:1: rule__MappingDefinition__Group__4 : rule__MappingDefinition__Group__4__Impl rule__MappingDefinition__Group__5 ; | ||
5517 | public final void rule__MappingDefinition__Group__4() throws RecognitionException { | ||
5518 | |||
5519 | int stackSize = keepStackSize(); | ||
5520 | |||
5521 | try { | ||
5522 | // InternalCftLanguage.g:1772:1: ( rule__MappingDefinition__Group__4__Impl rule__MappingDefinition__Group__5 ) | ||
5523 | // InternalCftLanguage.g:1773:2: rule__MappingDefinition__Group__4__Impl rule__MappingDefinition__Group__5 | ||
5524 | { | ||
5525 | pushFollow(FOLLOW_23); | ||
5526 | rule__MappingDefinition__Group__4__Impl(); | ||
5527 | |||
5528 | state._fsp--; | ||
5529 | |||
5530 | pushFollow(FOLLOW_2); | ||
5531 | rule__MappingDefinition__Group__5(); | ||
5532 | |||
5533 | state._fsp--; | ||
5534 | |||
5535 | |||
5536 | } | ||
5537 | |||
5538 | } | ||
5539 | catch (RecognitionException re) { | ||
5540 | reportError(re); | ||
5541 | recover(input,re); | ||
5542 | } | ||
5543 | finally { | ||
5544 | |||
5545 | restoreStackSize(stackSize); | ||
5546 | |||
5547 | } | ||
5548 | return ; | ||
5549 | } | ||
5550 | // $ANTLR end "rule__MappingDefinition__Group__4" | ||
5551 | |||
5552 | |||
5553 | // $ANTLR start "rule__MappingDefinition__Group__4__Impl" | ||
5554 | // InternalCftLanguage.g:1780:1: rule__MappingDefinition__Group__4__Impl : ( ( rule__MappingDefinition__ParametersAssignment_4 ) ) ; | ||
5555 | public final void rule__MappingDefinition__Group__4__Impl() throws RecognitionException { | ||
5556 | |||
5557 | int stackSize = keepStackSize(); | ||
5558 | |||
5559 | try { | ||
5560 | // InternalCftLanguage.g:1784:1: ( ( ( rule__MappingDefinition__ParametersAssignment_4 ) ) ) | ||
5561 | // InternalCftLanguage.g:1785:1: ( ( rule__MappingDefinition__ParametersAssignment_4 ) ) | ||
5562 | { | ||
5563 | // InternalCftLanguage.g:1785:1: ( ( rule__MappingDefinition__ParametersAssignment_4 ) ) | ||
5564 | // InternalCftLanguage.g:1786:2: ( rule__MappingDefinition__ParametersAssignment_4 ) | ||
5565 | { | ||
5566 | before(grammarAccess.getMappingDefinitionAccess().getParametersAssignment_4()); | ||
5567 | // InternalCftLanguage.g:1787:2: ( rule__MappingDefinition__ParametersAssignment_4 ) | ||
5568 | // InternalCftLanguage.g:1787:3: rule__MappingDefinition__ParametersAssignment_4 | ||
5569 | { | ||
5570 | pushFollow(FOLLOW_2); | ||
5571 | rule__MappingDefinition__ParametersAssignment_4(); | ||
5572 | |||
5573 | state._fsp--; | ||
5574 | |||
5575 | |||
5576 | } | ||
5577 | |||
5578 | after(grammarAccess.getMappingDefinitionAccess().getParametersAssignment_4()); | ||
5579 | |||
5580 | } | ||
5581 | |||
5582 | |||
5583 | } | ||
5584 | |||
5585 | } | ||
5586 | catch (RecognitionException re) { | ||
5587 | reportError(re); | ||
5588 | recover(input,re); | ||
5589 | } | ||
5590 | finally { | ||
5591 | |||
5592 | restoreStackSize(stackSize); | ||
5593 | |||
5594 | } | ||
5595 | return ; | ||
5596 | } | ||
5597 | // $ANTLR end "rule__MappingDefinition__Group__4__Impl" | ||
5598 | |||
5599 | |||
5600 | // $ANTLR start "rule__MappingDefinition__Group__5" | ||
5601 | // InternalCftLanguage.g:1795:1: rule__MappingDefinition__Group__5 : rule__MappingDefinition__Group__5__Impl rule__MappingDefinition__Group__6 ; | ||
5602 | public final void rule__MappingDefinition__Group__5() throws RecognitionException { | ||
5603 | |||
5604 | int stackSize = keepStackSize(); | ||
5605 | |||
5606 | try { | ||
5607 | // InternalCftLanguage.g:1799:1: ( rule__MappingDefinition__Group__5__Impl rule__MappingDefinition__Group__6 ) | ||
5608 | // InternalCftLanguage.g:1800:2: rule__MappingDefinition__Group__5__Impl rule__MappingDefinition__Group__6 | ||
5609 | { | ||
5610 | pushFollow(FOLLOW_23); | ||
5611 | rule__MappingDefinition__Group__5__Impl(); | ||
5612 | |||
5613 | state._fsp--; | ||
5614 | |||
5615 | pushFollow(FOLLOW_2); | ||
5616 | rule__MappingDefinition__Group__6(); | ||
5617 | |||
5618 | state._fsp--; | ||
5619 | |||
5620 | |||
5621 | } | ||
5622 | |||
5623 | } | ||
5624 | catch (RecognitionException re) { | ||
5625 | reportError(re); | ||
5626 | recover(input,re); | ||
5627 | } | ||
5628 | finally { | ||
5629 | |||
5630 | restoreStackSize(stackSize); | ||
5631 | |||
5632 | } | ||
5633 | return ; | ||
5634 | } | ||
5635 | // $ANTLR end "rule__MappingDefinition__Group__5" | ||
5636 | |||
5637 | |||
5638 | // $ANTLR start "rule__MappingDefinition__Group__5__Impl" | ||
5639 | // InternalCftLanguage.g:1807:1: rule__MappingDefinition__Group__5__Impl : ( ( rule__MappingDefinition__Group_5__0 )* ) ; | ||
5640 | public final void rule__MappingDefinition__Group__5__Impl() throws RecognitionException { | ||
5641 | |||
5642 | int stackSize = keepStackSize(); | ||
5643 | |||
5644 | try { | ||
5645 | // InternalCftLanguage.g:1811:1: ( ( ( rule__MappingDefinition__Group_5__0 )* ) ) | ||
5646 | // InternalCftLanguage.g:1812:1: ( ( rule__MappingDefinition__Group_5__0 )* ) | ||
5647 | { | ||
5648 | // InternalCftLanguage.g:1812:1: ( ( rule__MappingDefinition__Group_5__0 )* ) | ||
5649 | // InternalCftLanguage.g:1813:2: ( rule__MappingDefinition__Group_5__0 )* | ||
5650 | { | ||
5651 | before(grammarAccess.getMappingDefinitionAccess().getGroup_5()); | ||
5652 | // InternalCftLanguage.g:1814:2: ( rule__MappingDefinition__Group_5__0 )* | ||
5653 | loop18: | ||
5654 | do { | ||
5655 | int alt18=2; | ||
5656 | int LA18_0 = input.LA(1); | ||
5657 | |||
5658 | if ( (LA18_0==29) ) { | ||
5659 | alt18=1; | ||
5660 | } | ||
5661 | |||
5662 | |||
5663 | switch (alt18) { | ||
5664 | case 1 : | ||
5665 | // InternalCftLanguage.g:1814:3: rule__MappingDefinition__Group_5__0 | ||
5666 | { | ||
5667 | pushFollow(FOLLOW_24); | ||
5668 | rule__MappingDefinition__Group_5__0(); | ||
5669 | |||
5670 | state._fsp--; | ||
5671 | |||
5672 | |||
5673 | } | ||
5674 | break; | ||
5675 | |||
5676 | default : | ||
5677 | break loop18; | ||
5678 | } | ||
5679 | } while (true); | ||
5680 | |||
5681 | after(grammarAccess.getMappingDefinitionAccess().getGroup_5()); | ||
5682 | |||
5683 | } | ||
5684 | |||
5685 | |||
5686 | } | ||
5687 | |||
5688 | } | ||
5689 | catch (RecognitionException re) { | ||
5690 | reportError(re); | ||
5691 | recover(input,re); | ||
5692 | } | ||
5693 | finally { | ||
5694 | |||
5695 | restoreStackSize(stackSize); | ||
5696 | |||
5697 | } | ||
5698 | return ; | ||
5699 | } | ||
5700 | // $ANTLR end "rule__MappingDefinition__Group__5__Impl" | ||
5701 | |||
5702 | |||
5703 | // $ANTLR start "rule__MappingDefinition__Group__6" | ||
5704 | // InternalCftLanguage.g:1822:1: rule__MappingDefinition__Group__6 : rule__MappingDefinition__Group__6__Impl rule__MappingDefinition__Group__7 ; | ||
5705 | public final void rule__MappingDefinition__Group__6() throws RecognitionException { | ||
5706 | |||
5707 | int stackSize = keepStackSize(); | ||
5708 | |||
5709 | try { | ||
5710 | // InternalCftLanguage.g:1826:1: ( rule__MappingDefinition__Group__6__Impl rule__MappingDefinition__Group__7 ) | ||
5711 | // InternalCftLanguage.g:1827:2: rule__MappingDefinition__Group__6__Impl rule__MappingDefinition__Group__7 | ||
5712 | { | ||
5713 | pushFollow(FOLLOW_25); | ||
5714 | rule__MappingDefinition__Group__6__Impl(); | ||
5715 | |||
5716 | state._fsp--; | ||
5717 | |||
5718 | pushFollow(FOLLOW_2); | ||
5719 | rule__MappingDefinition__Group__7(); | ||
5720 | |||
5721 | state._fsp--; | ||
5722 | |||
5723 | |||
5724 | } | ||
5725 | |||
5726 | } | ||
5727 | catch (RecognitionException re) { | ||
5728 | reportError(re); | ||
5729 | recover(input,re); | ||
5730 | } | ||
5731 | finally { | ||
5732 | |||
5733 | restoreStackSize(stackSize); | ||
5734 | |||
5735 | } | ||
5736 | return ; | ||
5737 | } | ||
5738 | // $ANTLR end "rule__MappingDefinition__Group__6" | ||
5739 | |||
5740 | |||
5741 | // $ANTLR start "rule__MappingDefinition__Group__6__Impl" | ||
5742 | // InternalCftLanguage.g:1834:1: rule__MappingDefinition__Group__6__Impl : ( ')' ) ; | ||
5743 | public final void rule__MappingDefinition__Group__6__Impl() throws RecognitionException { | ||
5744 | |||
5745 | int stackSize = keepStackSize(); | ||
5746 | |||
5747 | try { | ||
5748 | // InternalCftLanguage.g:1838:1: ( ( ')' ) ) | ||
5749 | // InternalCftLanguage.g:1839:1: ( ')' ) | ||
5750 | { | ||
5751 | // InternalCftLanguage.g:1839:1: ( ')' ) | ||
5752 | // InternalCftLanguage.g:1840:2: ')' | ||
5753 | { | ||
5754 | before(grammarAccess.getMappingDefinitionAccess().getRightParenthesisKeyword_6()); | ||
5755 | match(input,28,FOLLOW_2); | ||
5756 | after(grammarAccess.getMappingDefinitionAccess().getRightParenthesisKeyword_6()); | ||
5757 | |||
5758 | } | ||
5759 | |||
5760 | |||
5761 | } | ||
5762 | |||
5763 | } | ||
5764 | catch (RecognitionException re) { | ||
5765 | reportError(re); | ||
5766 | recover(input,re); | ||
5767 | } | ||
5768 | finally { | ||
5769 | |||
5770 | restoreStackSize(stackSize); | ||
5771 | |||
5772 | } | ||
5773 | return ; | ||
5774 | } | ||
5775 | // $ANTLR end "rule__MappingDefinition__Group__6__Impl" | ||
5776 | |||
5777 | |||
5778 | // $ANTLR start "rule__MappingDefinition__Group__7" | ||
5779 | // InternalCftLanguage.g:1849:1: rule__MappingDefinition__Group__7 : rule__MappingDefinition__Group__7__Impl rule__MappingDefinition__Group__8 ; | ||
5780 | public final void rule__MappingDefinition__Group__7() throws RecognitionException { | ||
5781 | |||
5782 | int stackSize = keepStackSize(); | ||
5783 | |||
5784 | try { | ||
5785 | // InternalCftLanguage.g:1853:1: ( rule__MappingDefinition__Group__7__Impl rule__MappingDefinition__Group__8 ) | ||
5786 | // InternalCftLanguage.g:1854:2: rule__MappingDefinition__Group__7__Impl rule__MappingDefinition__Group__8 | ||
5787 | { | ||
5788 | pushFollow(FOLLOW_25); | ||
5789 | rule__MappingDefinition__Group__7__Impl(); | ||
5790 | |||
5791 | state._fsp--; | ||
5792 | |||
5793 | pushFollow(FOLLOW_2); | ||
5794 | rule__MappingDefinition__Group__8(); | ||
5795 | |||
5796 | state._fsp--; | ||
5797 | |||
5798 | |||
5799 | } | ||
5800 | |||
5801 | } | ||
5802 | catch (RecognitionException re) { | ||
5803 | reportError(re); | ||
5804 | recover(input,re); | ||
5805 | } | ||
5806 | finally { | ||
5807 | |||
5808 | restoreStackSize(stackSize); | ||
5809 | |||
5810 | } | ||
5811 | return ; | ||
5812 | } | ||
5813 | // $ANTLR end "rule__MappingDefinition__Group__7" | ||
5814 | |||
5815 | |||
5816 | // $ANTLR start "rule__MappingDefinition__Group__7__Impl" | ||
5817 | // InternalCftLanguage.g:1861:1: rule__MappingDefinition__Group__7__Impl : ( ( rule__MappingDefinition__ComponentInstanceAssignment_7 )? ) ; | ||
5818 | public final void rule__MappingDefinition__Group__7__Impl() throws RecognitionException { | ||
5819 | |||
5820 | int stackSize = keepStackSize(); | ||
5821 | |||
5822 | try { | ||
5823 | // InternalCftLanguage.g:1865:1: ( ( ( rule__MappingDefinition__ComponentInstanceAssignment_7 )? ) ) | ||
5824 | // InternalCftLanguage.g:1866:1: ( ( rule__MappingDefinition__ComponentInstanceAssignment_7 )? ) | ||
5825 | { | ||
5826 | // InternalCftLanguage.g:1866:1: ( ( rule__MappingDefinition__ComponentInstanceAssignment_7 )? ) | ||
5827 | // InternalCftLanguage.g:1867:2: ( rule__MappingDefinition__ComponentInstanceAssignment_7 )? | ||
5828 | { | ||
5829 | before(grammarAccess.getMappingDefinitionAccess().getComponentInstanceAssignment_7()); | ||
5830 | // InternalCftLanguage.g:1868:2: ( rule__MappingDefinition__ComponentInstanceAssignment_7 )? | ||
5831 | int alt19=2; | ||
5832 | int LA19_0 = input.LA(1); | ||
5833 | |||
5834 | if ( (LA19_0==33) ) { | ||
5835 | alt19=1; | ||
5836 | } | ||
5837 | switch (alt19) { | ||
5838 | case 1 : | ||
5839 | // InternalCftLanguage.g:1868:3: rule__MappingDefinition__ComponentInstanceAssignment_7 | ||
5840 | { | ||
5841 | pushFollow(FOLLOW_2); | ||
5842 | rule__MappingDefinition__ComponentInstanceAssignment_7(); | ||
5843 | |||
5844 | state._fsp--; | ||
5845 | |||
5846 | |||
5847 | } | ||
5848 | break; | ||
5849 | |||
5850 | } | ||
5851 | |||
5852 | after(grammarAccess.getMappingDefinitionAccess().getComponentInstanceAssignment_7()); | ||
5853 | |||
5854 | } | ||
5855 | |||
5856 | |||
5857 | } | ||
5858 | |||
5859 | } | ||
5860 | catch (RecognitionException re) { | ||
5861 | reportError(re); | ||
5862 | recover(input,re); | ||
5863 | } | ||
5864 | finally { | ||
5865 | |||
5866 | restoreStackSize(stackSize); | ||
5867 | |||
5868 | } | ||
5869 | return ; | ||
5870 | } | ||
5871 | // $ANTLR end "rule__MappingDefinition__Group__7__Impl" | ||
5872 | |||
5873 | |||
5874 | // $ANTLR start "rule__MappingDefinition__Group__8" | ||
5875 | // InternalCftLanguage.g:1876:1: rule__MappingDefinition__Group__8 : rule__MappingDefinition__Group__8__Impl ; | ||
5876 | public final void rule__MappingDefinition__Group__8() throws RecognitionException { | ||
5877 | |||
5878 | int stackSize = keepStackSize(); | ||
5879 | |||
5880 | try { | ||
5881 | // InternalCftLanguage.g:1880:1: ( rule__MappingDefinition__Group__8__Impl ) | ||
5882 | // InternalCftLanguage.g:1881:2: rule__MappingDefinition__Group__8__Impl | ||
5883 | { | ||
5884 | pushFollow(FOLLOW_2); | ||
5885 | rule__MappingDefinition__Group__8__Impl(); | ||
5886 | |||
5887 | state._fsp--; | ||
5888 | |||
5889 | |||
5890 | } | ||
5891 | |||
5892 | } | ||
5893 | catch (RecognitionException re) { | ||
5894 | reportError(re); | ||
5895 | recover(input,re); | ||
5896 | } | ||
5897 | finally { | ||
5898 | |||
5899 | restoreStackSize(stackSize); | ||
5900 | |||
5901 | } | ||
5902 | return ; | ||
5903 | } | ||
5904 | // $ANTLR end "rule__MappingDefinition__Group__8" | ||
5905 | |||
5906 | |||
5907 | // $ANTLR start "rule__MappingDefinition__Group__8__Impl" | ||
5908 | // InternalCftLanguage.g:1887:1: rule__MappingDefinition__Group__8__Impl : ( ( rule__MappingDefinition__Group_8__0 )? ) ; | ||
5909 | public final void rule__MappingDefinition__Group__8__Impl() throws RecognitionException { | ||
5910 | |||
5911 | int stackSize = keepStackSize(); | ||
5912 | |||
5913 | try { | ||
5914 | // InternalCftLanguage.g:1891:1: ( ( ( rule__MappingDefinition__Group_8__0 )? ) ) | ||
5915 | // InternalCftLanguage.g:1892:1: ( ( rule__MappingDefinition__Group_8__0 )? ) | ||
5916 | { | ||
5917 | // InternalCftLanguage.g:1892:1: ( ( rule__MappingDefinition__Group_8__0 )? ) | ||
5918 | // InternalCftLanguage.g:1893:2: ( rule__MappingDefinition__Group_8__0 )? | ||
5919 | { | ||
5920 | before(grammarAccess.getMappingDefinitionAccess().getGroup_8()); | ||
5921 | // InternalCftLanguage.g:1894:2: ( rule__MappingDefinition__Group_8__0 )? | ||
5922 | int alt20=2; | ||
5923 | int LA20_0 = input.LA(1); | ||
5924 | |||
5925 | if ( (LA20_0==17) ) { | ||
5926 | alt20=1; | ||
5927 | } | ||
5928 | switch (alt20) { | ||
5929 | case 1 : | ||
5930 | // InternalCftLanguage.g:1894:3: rule__MappingDefinition__Group_8__0 | ||
5931 | { | ||
5932 | pushFollow(FOLLOW_2); | ||
5933 | rule__MappingDefinition__Group_8__0(); | ||
5934 | |||
5935 | state._fsp--; | ||
5936 | |||
5937 | |||
5938 | } | ||
5939 | break; | ||
5940 | |||
5941 | } | ||
5942 | |||
5943 | after(grammarAccess.getMappingDefinitionAccess().getGroup_8()); | ||
5944 | |||
5945 | } | ||
5946 | |||
5947 | |||
5948 | } | ||
5949 | |||
5950 | } | ||
5951 | catch (RecognitionException re) { | ||
5952 | reportError(re); | ||
5953 | recover(input,re); | ||
5954 | } | ||
5955 | finally { | ||
5956 | |||
5957 | restoreStackSize(stackSize); | ||
5958 | |||
5959 | } | ||
5960 | return ; | ||
5961 | } | ||
5962 | // $ANTLR end "rule__MappingDefinition__Group__8__Impl" | ||
5963 | |||
5964 | |||
5965 | // $ANTLR start "rule__MappingDefinition__Group_5__0" | ||
5966 | // InternalCftLanguage.g:1903:1: rule__MappingDefinition__Group_5__0 : rule__MappingDefinition__Group_5__0__Impl rule__MappingDefinition__Group_5__1 ; | ||
5967 | public final void rule__MappingDefinition__Group_5__0() throws RecognitionException { | ||
5968 | |||
5969 | int stackSize = keepStackSize(); | ||
5970 | |||
5971 | try { | ||
5972 | // InternalCftLanguage.g:1907:1: ( rule__MappingDefinition__Group_5__0__Impl rule__MappingDefinition__Group_5__1 ) | ||
5973 | // InternalCftLanguage.g:1908:2: rule__MappingDefinition__Group_5__0__Impl rule__MappingDefinition__Group_5__1 | ||
5974 | { | ||
5975 | pushFollow(FOLLOW_3); | ||
5976 | rule__MappingDefinition__Group_5__0__Impl(); | ||
5977 | |||
5978 | state._fsp--; | ||
5979 | |||
5980 | pushFollow(FOLLOW_2); | ||
5981 | rule__MappingDefinition__Group_5__1(); | ||
5982 | |||
5983 | state._fsp--; | ||
5984 | |||
5985 | |||
5986 | } | ||
5987 | |||
5988 | } | ||
5989 | catch (RecognitionException re) { | ||
5990 | reportError(re); | ||
5991 | recover(input,re); | ||
5992 | } | ||
5993 | finally { | ||
5994 | |||
5995 | restoreStackSize(stackSize); | ||
5996 | |||
5997 | } | ||
5998 | return ; | ||
5999 | } | ||
6000 | // $ANTLR end "rule__MappingDefinition__Group_5__0" | ||
6001 | |||
6002 | |||
6003 | // $ANTLR start "rule__MappingDefinition__Group_5__0__Impl" | ||
6004 | // InternalCftLanguage.g:1915:1: rule__MappingDefinition__Group_5__0__Impl : ( ',' ) ; | ||
6005 | public final void rule__MappingDefinition__Group_5__0__Impl() throws RecognitionException { | ||
6006 | |||
6007 | int stackSize = keepStackSize(); | ||
6008 | |||
6009 | try { | ||
6010 | // InternalCftLanguage.g:1919:1: ( ( ',' ) ) | ||
6011 | // InternalCftLanguage.g:1920:1: ( ',' ) | ||
6012 | { | ||
6013 | // InternalCftLanguage.g:1920:1: ( ',' ) | ||
6014 | // InternalCftLanguage.g:1921:2: ',' | ||
6015 | { | ||
6016 | before(grammarAccess.getMappingDefinitionAccess().getCommaKeyword_5_0()); | ||
6017 | match(input,29,FOLLOW_2); | ||
6018 | after(grammarAccess.getMappingDefinitionAccess().getCommaKeyword_5_0()); | ||
6019 | |||
6020 | } | ||
6021 | |||
6022 | |||
6023 | } | ||
6024 | |||
6025 | } | ||
6026 | catch (RecognitionException re) { | ||
6027 | reportError(re); | ||
6028 | recover(input,re); | ||
6029 | } | ||
6030 | finally { | ||
6031 | |||
6032 | restoreStackSize(stackSize); | ||
6033 | |||
6034 | } | ||
6035 | return ; | ||
6036 | } | ||
6037 | // $ANTLR end "rule__MappingDefinition__Group_5__0__Impl" | ||
6038 | |||
6039 | |||
6040 | // $ANTLR start "rule__MappingDefinition__Group_5__1" | ||
6041 | // InternalCftLanguage.g:1930:1: rule__MappingDefinition__Group_5__1 : rule__MappingDefinition__Group_5__1__Impl ; | ||
6042 | public final void rule__MappingDefinition__Group_5__1() throws RecognitionException { | ||
6043 | |||
6044 | int stackSize = keepStackSize(); | ||
6045 | |||
6046 | try { | ||
6047 | // InternalCftLanguage.g:1934:1: ( rule__MappingDefinition__Group_5__1__Impl ) | ||
6048 | // InternalCftLanguage.g:1935:2: rule__MappingDefinition__Group_5__1__Impl | ||
6049 | { | ||
6050 | pushFollow(FOLLOW_2); | ||
6051 | rule__MappingDefinition__Group_5__1__Impl(); | ||
6052 | |||
6053 | state._fsp--; | ||
6054 | |||
6055 | |||
6056 | } | ||
6057 | |||
6058 | } | ||
6059 | catch (RecognitionException re) { | ||
6060 | reportError(re); | ||
6061 | recover(input,re); | ||
6062 | } | ||
6063 | finally { | ||
6064 | |||
6065 | restoreStackSize(stackSize); | ||
6066 | |||
6067 | } | ||
6068 | return ; | ||
6069 | } | ||
6070 | // $ANTLR end "rule__MappingDefinition__Group_5__1" | ||
6071 | |||
6072 | |||
6073 | // $ANTLR start "rule__MappingDefinition__Group_5__1__Impl" | ||
6074 | // InternalCftLanguage.g:1941:1: rule__MappingDefinition__Group_5__1__Impl : ( ( rule__MappingDefinition__ParametersAssignment_5_1 ) ) ; | ||
6075 | public final void rule__MappingDefinition__Group_5__1__Impl() throws RecognitionException { | ||
6076 | |||
6077 | int stackSize = keepStackSize(); | ||
6078 | |||
6079 | try { | ||
6080 | // InternalCftLanguage.g:1945:1: ( ( ( rule__MappingDefinition__ParametersAssignment_5_1 ) ) ) | ||
6081 | // InternalCftLanguage.g:1946:1: ( ( rule__MappingDefinition__ParametersAssignment_5_1 ) ) | ||
6082 | { | ||
6083 | // InternalCftLanguage.g:1946:1: ( ( rule__MappingDefinition__ParametersAssignment_5_1 ) ) | ||
6084 | // InternalCftLanguage.g:1947:2: ( rule__MappingDefinition__ParametersAssignment_5_1 ) | ||
6085 | { | ||
6086 | before(grammarAccess.getMappingDefinitionAccess().getParametersAssignment_5_1()); | ||
6087 | // InternalCftLanguage.g:1948:2: ( rule__MappingDefinition__ParametersAssignment_5_1 ) | ||
6088 | // InternalCftLanguage.g:1948:3: rule__MappingDefinition__ParametersAssignment_5_1 | ||
6089 | { | ||
6090 | pushFollow(FOLLOW_2); | ||
6091 | rule__MappingDefinition__ParametersAssignment_5_1(); | ||
6092 | |||
6093 | state._fsp--; | ||
6094 | |||
6095 | |||
6096 | } | ||
6097 | |||
6098 | after(grammarAccess.getMappingDefinitionAccess().getParametersAssignment_5_1()); | ||
6099 | |||
6100 | } | ||
6101 | |||
6102 | |||
6103 | } | ||
6104 | |||
6105 | } | ||
6106 | catch (RecognitionException re) { | ||
6107 | reportError(re); | ||
6108 | recover(input,re); | ||
6109 | } | ||
6110 | finally { | ||
6111 | |||
6112 | restoreStackSize(stackSize); | ||
6113 | |||
6114 | } | ||
6115 | return ; | ||
6116 | } | ||
6117 | // $ANTLR end "rule__MappingDefinition__Group_5__1__Impl" | ||
6118 | |||
6119 | |||
6120 | // $ANTLR start "rule__MappingDefinition__Group_8__0" | ||
6121 | // InternalCftLanguage.g:1957:1: rule__MappingDefinition__Group_8__0 : rule__MappingDefinition__Group_8__0__Impl rule__MappingDefinition__Group_8__1 ; | ||
6122 | public final void rule__MappingDefinition__Group_8__0() throws RecognitionException { | ||
6123 | |||
6124 | int stackSize = keepStackSize(); | ||
6125 | |||
6126 | try { | ||
6127 | // InternalCftLanguage.g:1961:1: ( rule__MappingDefinition__Group_8__0__Impl rule__MappingDefinition__Group_8__1 ) | ||
6128 | // InternalCftLanguage.g:1962:2: rule__MappingDefinition__Group_8__0__Impl rule__MappingDefinition__Group_8__1 | ||
6129 | { | ||
6130 | pushFollow(FOLLOW_26); | ||
6131 | rule__MappingDefinition__Group_8__0__Impl(); | ||
6132 | |||
6133 | state._fsp--; | ||
6134 | |||
6135 | pushFollow(FOLLOW_2); | ||
6136 | rule__MappingDefinition__Group_8__1(); | ||
6137 | |||
6138 | state._fsp--; | ||
6139 | |||
6140 | |||
6141 | } | ||
6142 | |||
6143 | } | ||
6144 | catch (RecognitionException re) { | ||
6145 | reportError(re); | ||
6146 | recover(input,re); | ||
6147 | } | ||
6148 | finally { | ||
6149 | |||
6150 | restoreStackSize(stackSize); | ||
6151 | |||
6152 | } | ||
6153 | return ; | ||
6154 | } | ||
6155 | // $ANTLR end "rule__MappingDefinition__Group_8__0" | ||
6156 | |||
6157 | |||
6158 | // $ANTLR start "rule__MappingDefinition__Group_8__0__Impl" | ||
6159 | // InternalCftLanguage.g:1969:1: rule__MappingDefinition__Group_8__0__Impl : ( '{' ) ; | ||
6160 | public final void rule__MappingDefinition__Group_8__0__Impl() throws RecognitionException { | ||
6161 | |||
6162 | int stackSize = keepStackSize(); | ||
6163 | |||
6164 | try { | ||
6165 | // InternalCftLanguage.g:1973:1: ( ( '{' ) ) | ||
6166 | // InternalCftLanguage.g:1974:1: ( '{' ) | ||
6167 | { | ||
6168 | // InternalCftLanguage.g:1974:1: ( '{' ) | ||
6169 | // InternalCftLanguage.g:1975:2: '{' | ||
6170 | { | ||
6171 | before(grammarAccess.getMappingDefinitionAccess().getLeftCurlyBracketKeyword_8_0()); | ||
6172 | match(input,17,FOLLOW_2); | ||
6173 | after(grammarAccess.getMappingDefinitionAccess().getLeftCurlyBracketKeyword_8_0()); | ||
6174 | |||
6175 | } | ||
6176 | |||
6177 | |||
6178 | } | ||
6179 | |||
6180 | } | ||
6181 | catch (RecognitionException re) { | ||
6182 | reportError(re); | ||
6183 | recover(input,re); | ||
6184 | } | ||
6185 | finally { | ||
6186 | |||
6187 | restoreStackSize(stackSize); | ||
6188 | |||
6189 | } | ||
6190 | return ; | ||
6191 | } | ||
6192 | // $ANTLR end "rule__MappingDefinition__Group_8__0__Impl" | ||
6193 | |||
6194 | |||
6195 | // $ANTLR start "rule__MappingDefinition__Group_8__1" | ||
6196 | // InternalCftLanguage.g:1984:1: rule__MappingDefinition__Group_8__1 : rule__MappingDefinition__Group_8__1__Impl rule__MappingDefinition__Group_8__2 ; | ||
6197 | public final void rule__MappingDefinition__Group_8__1() throws RecognitionException { | ||
6198 | |||
6199 | int stackSize = keepStackSize(); | ||
6200 | |||
6201 | try { | ||
6202 | // InternalCftLanguage.g:1988:1: ( rule__MappingDefinition__Group_8__1__Impl rule__MappingDefinition__Group_8__2 ) | ||
6203 | // InternalCftLanguage.g:1989:2: rule__MappingDefinition__Group_8__1__Impl rule__MappingDefinition__Group_8__2 | ||
6204 | { | ||
6205 | pushFollow(FOLLOW_26); | ||
6206 | rule__MappingDefinition__Group_8__1__Impl(); | ||
6207 | |||
6208 | state._fsp--; | ||
6209 | |||
6210 | pushFollow(FOLLOW_2); | ||
6211 | rule__MappingDefinition__Group_8__2(); | ||
6212 | |||
6213 | state._fsp--; | ||
6214 | |||
6215 | |||
6216 | } | ||
6217 | |||
6218 | } | ||
6219 | catch (RecognitionException re) { | ||
6220 | reportError(re); | ||
6221 | recover(input,re); | ||
6222 | } | ||
6223 | finally { | ||
6224 | |||
6225 | restoreStackSize(stackSize); | ||
6226 | |||
6227 | } | ||
6228 | return ; | ||
6229 | } | ||
6230 | // $ANTLR end "rule__MappingDefinition__Group_8__1" | ||
6231 | |||
6232 | |||
6233 | // $ANTLR start "rule__MappingDefinition__Group_8__1__Impl" | ||
6234 | // InternalCftLanguage.g:1996:1: rule__MappingDefinition__Group_8__1__Impl : ( ( rule__MappingDefinition__Group_8_1__0 )* ) ; | ||
6235 | public final void rule__MappingDefinition__Group_8__1__Impl() throws RecognitionException { | ||
6236 | |||
6237 | int stackSize = keepStackSize(); | ||
6238 | |||
6239 | try { | ||
6240 | // InternalCftLanguage.g:2000:1: ( ( ( rule__MappingDefinition__Group_8_1__0 )* ) ) | ||
6241 | // InternalCftLanguage.g:2001:1: ( ( rule__MappingDefinition__Group_8_1__0 )* ) | ||
6242 | { | ||
6243 | // InternalCftLanguage.g:2001:1: ( ( rule__MappingDefinition__Group_8_1__0 )* ) | ||
6244 | // InternalCftLanguage.g:2002:2: ( rule__MappingDefinition__Group_8_1__0 )* | ||
6245 | { | ||
6246 | before(grammarAccess.getMappingDefinitionAccess().getGroup_8_1()); | ||
6247 | // InternalCftLanguage.g:2003:2: ( rule__MappingDefinition__Group_8_1__0 )* | ||
6248 | loop21: | ||
6249 | do { | ||
6250 | int alt21=2; | ||
6251 | int LA21_0 = input.LA(1); | ||
6252 | |||
6253 | if ( (LA21_0==RULE_ID||LA21_0==30) ) { | ||
6254 | alt21=1; | ||
6255 | } | ||
6256 | |||
6257 | |||
6258 | switch (alt21) { | ||
6259 | case 1 : | ||
6260 | // InternalCftLanguage.g:2003:3: rule__MappingDefinition__Group_8_1__0 | ||
6261 | { | ||
6262 | pushFollow(FOLLOW_27); | ||
6263 | rule__MappingDefinition__Group_8_1__0(); | ||
6264 | |||
6265 | state._fsp--; | ||
6266 | |||
6267 | |||
6268 | } | ||
6269 | break; | ||
6270 | |||
6271 | default : | ||
6272 | break loop21; | ||
6273 | } | ||
6274 | } while (true); | ||
6275 | |||
6276 | after(grammarAccess.getMappingDefinitionAccess().getGroup_8_1()); | ||
6277 | |||
6278 | } | ||
6279 | |||
6280 | |||
6281 | } | ||
6282 | |||
6283 | } | ||
6284 | catch (RecognitionException re) { | ||
6285 | reportError(re); | ||
6286 | recover(input,re); | ||
6287 | } | ||
6288 | finally { | ||
6289 | |||
6290 | restoreStackSize(stackSize); | ||
6291 | |||
6292 | } | ||
6293 | return ; | ||
6294 | } | ||
6295 | // $ANTLR end "rule__MappingDefinition__Group_8__1__Impl" | ||
6296 | |||
6297 | |||
6298 | // $ANTLR start "rule__MappingDefinition__Group_8__2" | ||
6299 | // InternalCftLanguage.g:2011:1: rule__MappingDefinition__Group_8__2 : rule__MappingDefinition__Group_8__2__Impl ; | ||
6300 | public final void rule__MappingDefinition__Group_8__2() throws RecognitionException { | ||
6301 | |||
6302 | int stackSize = keepStackSize(); | ||
6303 | |||
6304 | try { | ||
6305 | // InternalCftLanguage.g:2015:1: ( rule__MappingDefinition__Group_8__2__Impl ) | ||
6306 | // InternalCftLanguage.g:2016:2: rule__MappingDefinition__Group_8__2__Impl | ||
6307 | { | ||
6308 | pushFollow(FOLLOW_2); | ||
6309 | rule__MappingDefinition__Group_8__2__Impl(); | ||
6310 | |||
6311 | state._fsp--; | ||
6312 | |||
6313 | |||
6314 | } | ||
6315 | |||
6316 | } | ||
6317 | catch (RecognitionException re) { | ||
6318 | reportError(re); | ||
6319 | recover(input,re); | ||
6320 | } | ||
6321 | finally { | ||
6322 | |||
6323 | restoreStackSize(stackSize); | ||
6324 | |||
6325 | } | ||
6326 | return ; | ||
6327 | } | ||
6328 | // $ANTLR end "rule__MappingDefinition__Group_8__2" | ||
6329 | |||
6330 | |||
6331 | // $ANTLR start "rule__MappingDefinition__Group_8__2__Impl" | ||
6332 | // InternalCftLanguage.g:2022:1: rule__MappingDefinition__Group_8__2__Impl : ( '}' ) ; | ||
6333 | public final void rule__MappingDefinition__Group_8__2__Impl() throws RecognitionException { | ||
6334 | |||
6335 | int stackSize = keepStackSize(); | ||
6336 | |||
6337 | try { | ||
6338 | // InternalCftLanguage.g:2026:1: ( ( '}' ) ) | ||
6339 | // InternalCftLanguage.g:2027:1: ( '}' ) | ||
6340 | { | ||
6341 | // InternalCftLanguage.g:2027:1: ( '}' ) | ||
6342 | // InternalCftLanguage.g:2028:2: '}' | ||
6343 | { | ||
6344 | before(grammarAccess.getMappingDefinitionAccess().getRightCurlyBracketKeyword_8_2()); | ||
6345 | match(input,18,FOLLOW_2); | ||
6346 | after(grammarAccess.getMappingDefinitionAccess().getRightCurlyBracketKeyword_8_2()); | ||
6347 | |||
6348 | } | ||
6349 | |||
6350 | |||
6351 | } | ||
6352 | |||
6353 | } | ||
6354 | catch (RecognitionException re) { | ||
6355 | reportError(re); | ||
6356 | recover(input,re); | ||
6357 | } | ||
6358 | finally { | ||
6359 | |||
6360 | restoreStackSize(stackSize); | ||
6361 | |||
6362 | } | ||
6363 | return ; | ||
6364 | } | ||
6365 | // $ANTLR end "rule__MappingDefinition__Group_8__2__Impl" | ||
6366 | |||
6367 | |||
6368 | // $ANTLR start "rule__MappingDefinition__Group_8_1__0" | ||
6369 | // InternalCftLanguage.g:2038:1: rule__MappingDefinition__Group_8_1__0 : rule__MappingDefinition__Group_8_1__0__Impl rule__MappingDefinition__Group_8_1__1 ; | ||
6370 | public final void rule__MappingDefinition__Group_8_1__0() throws RecognitionException { | ||
6371 | |||
6372 | int stackSize = keepStackSize(); | ||
6373 | |||
6374 | try { | ||
6375 | // InternalCftLanguage.g:2042:1: ( rule__MappingDefinition__Group_8_1__0__Impl rule__MappingDefinition__Group_8_1__1 ) | ||
6376 | // InternalCftLanguage.g:2043:2: rule__MappingDefinition__Group_8_1__0__Impl rule__MappingDefinition__Group_8_1__1 | ||
6377 | { | ||
6378 | pushFollow(FOLLOW_7); | ||
6379 | rule__MappingDefinition__Group_8_1__0__Impl(); | ||
6380 | |||
6381 | state._fsp--; | ||
6382 | |||
6383 | pushFollow(FOLLOW_2); | ||
6384 | rule__MappingDefinition__Group_8_1__1(); | ||
6385 | |||
6386 | state._fsp--; | ||
6387 | |||
6388 | |||
6389 | } | ||
6390 | |||
6391 | } | ||
6392 | catch (RecognitionException re) { | ||
6393 | reportError(re); | ||
6394 | recover(input,re); | ||
6395 | } | ||
6396 | finally { | ||
6397 | |||
6398 | restoreStackSize(stackSize); | ||
6399 | |||
6400 | } | ||
6401 | return ; | ||
6402 | } | ||
6403 | // $ANTLR end "rule__MappingDefinition__Group_8_1__0" | ||
6404 | |||
6405 | |||
6406 | // $ANTLR start "rule__MappingDefinition__Group_8_1__0__Impl" | ||
6407 | // InternalCftLanguage.g:2050:1: rule__MappingDefinition__Group_8_1__0__Impl : ( ( rule__MappingDefinition__Alternatives_8_1_0 ) ) ; | ||
6408 | public final void rule__MappingDefinition__Group_8_1__0__Impl() throws RecognitionException { | ||
6409 | |||
6410 | int stackSize = keepStackSize(); | ||
6411 | |||
6412 | try { | ||
6413 | // InternalCftLanguage.g:2054:1: ( ( ( rule__MappingDefinition__Alternatives_8_1_0 ) ) ) | ||
6414 | // InternalCftLanguage.g:2055:1: ( ( rule__MappingDefinition__Alternatives_8_1_0 ) ) | ||
6415 | { | ||
6416 | // InternalCftLanguage.g:2055:1: ( ( rule__MappingDefinition__Alternatives_8_1_0 ) ) | ||
6417 | // InternalCftLanguage.g:2056:2: ( rule__MappingDefinition__Alternatives_8_1_0 ) | ||
6418 | { | ||
6419 | before(grammarAccess.getMappingDefinitionAccess().getAlternatives_8_1_0()); | ||
6420 | // InternalCftLanguage.g:2057:2: ( rule__MappingDefinition__Alternatives_8_1_0 ) | ||
6421 | // InternalCftLanguage.g:2057:3: rule__MappingDefinition__Alternatives_8_1_0 | ||
6422 | { | ||
6423 | pushFollow(FOLLOW_2); | ||
6424 | rule__MappingDefinition__Alternatives_8_1_0(); | ||
6425 | |||
6426 | state._fsp--; | ||
6427 | |||
6428 | |||
6429 | } | ||
6430 | |||
6431 | after(grammarAccess.getMappingDefinitionAccess().getAlternatives_8_1_0()); | ||
6432 | |||
6433 | } | ||
6434 | |||
6435 | |||
6436 | } | ||
6437 | |||
6438 | } | ||
6439 | catch (RecognitionException re) { | ||
6440 | reportError(re); | ||
6441 | recover(input,re); | ||
6442 | } | ||
6443 | finally { | ||
6444 | |||
6445 | restoreStackSize(stackSize); | ||
6446 | |||
6447 | } | ||
6448 | return ; | ||
6449 | } | ||
6450 | // $ANTLR end "rule__MappingDefinition__Group_8_1__0__Impl" | ||
6451 | |||
6452 | |||
6453 | // $ANTLR start "rule__MappingDefinition__Group_8_1__1" | ||
6454 | // InternalCftLanguage.g:2065:1: rule__MappingDefinition__Group_8_1__1 : rule__MappingDefinition__Group_8_1__1__Impl ; | ||
6455 | public final void rule__MappingDefinition__Group_8_1__1() throws RecognitionException { | ||
6456 | |||
6457 | int stackSize = keepStackSize(); | ||
6458 | |||
6459 | try { | ||
6460 | // InternalCftLanguage.g:2069:1: ( rule__MappingDefinition__Group_8_1__1__Impl ) | ||
6461 | // InternalCftLanguage.g:2070:2: rule__MappingDefinition__Group_8_1__1__Impl | ||
6462 | { | ||
6463 | pushFollow(FOLLOW_2); | ||
6464 | rule__MappingDefinition__Group_8_1__1__Impl(); | ||
6465 | |||
6466 | state._fsp--; | ||
6467 | |||
6468 | |||
6469 | } | ||
6470 | |||
6471 | } | ||
6472 | catch (RecognitionException re) { | ||
6473 | reportError(re); | ||
6474 | recover(input,re); | ||
6475 | } | ||
6476 | finally { | ||
6477 | |||
6478 | restoreStackSize(stackSize); | ||
6479 | |||
6480 | } | ||
6481 | return ; | ||
6482 | } | ||
6483 | // $ANTLR end "rule__MappingDefinition__Group_8_1__1" | ||
6484 | |||
6485 | |||
6486 | // $ANTLR start "rule__MappingDefinition__Group_8_1__1__Impl" | ||
6487 | // InternalCftLanguage.g:2076:1: rule__MappingDefinition__Group_8_1__1__Impl : ( ';' ) ; | ||
6488 | public final void rule__MappingDefinition__Group_8_1__1__Impl() throws RecognitionException { | ||
6489 | |||
6490 | int stackSize = keepStackSize(); | ||
6491 | |||
6492 | try { | ||
6493 | // InternalCftLanguage.g:2080:1: ( ( ';' ) ) | ||
6494 | // InternalCftLanguage.g:2081:1: ( ';' ) | ||
6495 | { | ||
6496 | // InternalCftLanguage.g:2081:1: ( ';' ) | ||
6497 | // InternalCftLanguage.g:2082:2: ';' | ||
6498 | { | ||
6499 | before(grammarAccess.getMappingDefinitionAccess().getSemicolonKeyword_8_1_1()); | ||
6500 | match(input,14,FOLLOW_2); | ||
6501 | after(grammarAccess.getMappingDefinitionAccess().getSemicolonKeyword_8_1_1()); | ||
6502 | |||
6503 | } | ||
6504 | |||
6505 | |||
6506 | } | ||
6507 | |||
6508 | } | ||
6509 | catch (RecognitionException re) { | ||
6510 | reportError(re); | ||
6511 | recover(input,re); | ||
6512 | } | ||
6513 | finally { | ||
6514 | |||
6515 | restoreStackSize(stackSize); | ||
6516 | |||
6517 | } | ||
6518 | return ; | ||
6519 | } | ||
6520 | // $ANTLR end "rule__MappingDefinition__Group_8_1__1__Impl" | ||
6521 | |||
6522 | |||
6523 | // $ANTLR start "rule__LookupDefinition__Group__0" | ||
6524 | // InternalCftLanguage.g:2092:1: rule__LookupDefinition__Group__0 : rule__LookupDefinition__Group__0__Impl rule__LookupDefinition__Group__1 ; | ||
6525 | public final void rule__LookupDefinition__Group__0() throws RecognitionException { | ||
6526 | |||
6527 | int stackSize = keepStackSize(); | ||
6528 | |||
6529 | try { | ||
6530 | // InternalCftLanguage.g:2096:1: ( rule__LookupDefinition__Group__0__Impl rule__LookupDefinition__Group__1 ) | ||
6531 | // InternalCftLanguage.g:2097:2: rule__LookupDefinition__Group__0__Impl rule__LookupDefinition__Group__1 | ||
6532 | { | ||
6533 | pushFollow(FOLLOW_3); | ||
6534 | rule__LookupDefinition__Group__0__Impl(); | ||
6535 | |||
6536 | state._fsp--; | ||
6537 | |||
6538 | pushFollow(FOLLOW_2); | ||
6539 | rule__LookupDefinition__Group__1(); | ||
6540 | |||
6541 | state._fsp--; | ||
6542 | |||
6543 | |||
6544 | } | ||
6545 | |||
6546 | } | ||
6547 | catch (RecognitionException re) { | ||
6548 | reportError(re); | ||
6549 | recover(input,re); | ||
6550 | } | ||
6551 | finally { | ||
6552 | |||
6553 | restoreStackSize(stackSize); | ||
6554 | |||
6555 | } | ||
6556 | return ; | ||
6557 | } | ||
6558 | // $ANTLR end "rule__LookupDefinition__Group__0" | ||
6559 | |||
6560 | |||
6561 | // $ANTLR start "rule__LookupDefinition__Group__0__Impl" | ||
6562 | // InternalCftLanguage.g:2104:1: rule__LookupDefinition__Group__0__Impl : ( 'lookup' ) ; | ||
6563 | public final void rule__LookupDefinition__Group__0__Impl() throws RecognitionException { | ||
6564 | |||
6565 | int stackSize = keepStackSize(); | ||
6566 | |||
6567 | try { | ||
6568 | // InternalCftLanguage.g:2108:1: ( ( 'lookup' ) ) | ||
6569 | // InternalCftLanguage.g:2109:1: ( 'lookup' ) | ||
6570 | { | ||
6571 | // InternalCftLanguage.g:2109:1: ( 'lookup' ) | ||
6572 | // InternalCftLanguage.g:2110:2: 'lookup' | ||
6573 | { | ||
6574 | before(grammarAccess.getLookupDefinitionAccess().getLookupKeyword_0()); | ||
6575 | match(input,30,FOLLOW_2); | ||
6576 | after(grammarAccess.getLookupDefinitionAccess().getLookupKeyword_0()); | ||
6577 | |||
6578 | } | ||
6579 | |||
6580 | |||
6581 | } | ||
6582 | |||
6583 | } | ||
6584 | catch (RecognitionException re) { | ||
6585 | reportError(re); | ||
6586 | recover(input,re); | ||
6587 | } | ||
6588 | finally { | ||
6589 | |||
6590 | restoreStackSize(stackSize); | ||
6591 | |||
6592 | } | ||
6593 | return ; | ||
6594 | } | ||
6595 | // $ANTLR end "rule__LookupDefinition__Group__0__Impl" | ||
6596 | |||
6597 | |||
6598 | // $ANTLR start "rule__LookupDefinition__Group__1" | ||
6599 | // InternalCftLanguage.g:2119:1: rule__LookupDefinition__Group__1 : rule__LookupDefinition__Group__1__Impl rule__LookupDefinition__Group__2 ; | ||
6600 | public final void rule__LookupDefinition__Group__1() throws RecognitionException { | ||
6601 | |||
6602 | int stackSize = keepStackSize(); | ||
6603 | |||
6604 | try { | ||
6605 | // InternalCftLanguage.g:2123:1: ( rule__LookupDefinition__Group__1__Impl rule__LookupDefinition__Group__2 ) | ||
6606 | // InternalCftLanguage.g:2124:2: rule__LookupDefinition__Group__1__Impl rule__LookupDefinition__Group__2 | ||
6607 | { | ||
6608 | pushFollow(FOLLOW_22); | ||
6609 | rule__LookupDefinition__Group__1__Impl(); | ||
6610 | |||
6611 | state._fsp--; | ||
6612 | |||
6613 | pushFollow(FOLLOW_2); | ||
6614 | rule__LookupDefinition__Group__2(); | ||
6615 | |||
6616 | state._fsp--; | ||
6617 | |||
6618 | |||
6619 | } | ||
6620 | |||
6621 | } | ||
6622 | catch (RecognitionException re) { | ||
6623 | reportError(re); | ||
6624 | recover(input,re); | ||
6625 | } | ||
6626 | finally { | ||
6627 | |||
6628 | restoreStackSize(stackSize); | ||
6629 | |||
6630 | } | ||
6631 | return ; | ||
6632 | } | ||
6633 | // $ANTLR end "rule__LookupDefinition__Group__1" | ||
6634 | |||
6635 | |||
6636 | // $ANTLR start "rule__LookupDefinition__Group__1__Impl" | ||
6637 | // InternalCftLanguage.g:2131:1: rule__LookupDefinition__Group__1__Impl : ( ( rule__LookupDefinition__MappingAssignment_1 ) ) ; | ||
6638 | public final void rule__LookupDefinition__Group__1__Impl() throws RecognitionException { | ||
6639 | |||
6640 | int stackSize = keepStackSize(); | ||
6641 | |||
6642 | try { | ||
6643 | // InternalCftLanguage.g:2135:1: ( ( ( rule__LookupDefinition__MappingAssignment_1 ) ) ) | ||
6644 | // InternalCftLanguage.g:2136:1: ( ( rule__LookupDefinition__MappingAssignment_1 ) ) | ||
6645 | { | ||
6646 | // InternalCftLanguage.g:2136:1: ( ( rule__LookupDefinition__MappingAssignment_1 ) ) | ||
6647 | // InternalCftLanguage.g:2137:2: ( rule__LookupDefinition__MappingAssignment_1 ) | ||
6648 | { | ||
6649 | before(grammarAccess.getLookupDefinitionAccess().getMappingAssignment_1()); | ||
6650 | // InternalCftLanguage.g:2138:2: ( rule__LookupDefinition__MappingAssignment_1 ) | ||
6651 | // InternalCftLanguage.g:2138:3: rule__LookupDefinition__MappingAssignment_1 | ||
6652 | { | ||
6653 | pushFollow(FOLLOW_2); | ||
6654 | rule__LookupDefinition__MappingAssignment_1(); | ||
6655 | |||
6656 | state._fsp--; | ||
6657 | |||
6658 | |||
6659 | } | ||
6660 | |||
6661 | after(grammarAccess.getLookupDefinitionAccess().getMappingAssignment_1()); | ||
6662 | |||
6663 | } | ||
6664 | |||
6665 | |||
6666 | } | ||
6667 | |||
6668 | } | ||
6669 | catch (RecognitionException re) { | ||
6670 | reportError(re); | ||
6671 | recover(input,re); | ||
6672 | } | ||
6673 | finally { | ||
6674 | |||
6675 | restoreStackSize(stackSize); | ||
6676 | |||
6677 | } | ||
6678 | return ; | ||
6679 | } | ||
6680 | // $ANTLR end "rule__LookupDefinition__Group__1__Impl" | ||
6681 | |||
6682 | |||
6683 | // $ANTLR start "rule__LookupDefinition__Group__2" | ||
6684 | // InternalCftLanguage.g:2146:1: rule__LookupDefinition__Group__2 : rule__LookupDefinition__Group__2__Impl rule__LookupDefinition__Group__3 ; | ||
6685 | public final void rule__LookupDefinition__Group__2() throws RecognitionException { | ||
6686 | |||
6687 | int stackSize = keepStackSize(); | ||
6688 | |||
6689 | try { | ||
6690 | // InternalCftLanguage.g:2150:1: ( rule__LookupDefinition__Group__2__Impl rule__LookupDefinition__Group__3 ) | ||
6691 | // InternalCftLanguage.g:2151:2: rule__LookupDefinition__Group__2__Impl rule__LookupDefinition__Group__3 | ||
6692 | { | ||
6693 | pushFollow(FOLLOW_3); | ||
6694 | rule__LookupDefinition__Group__2__Impl(); | ||
6695 | |||
6696 | state._fsp--; | ||
6697 | |||
6698 | pushFollow(FOLLOW_2); | ||
6699 | rule__LookupDefinition__Group__3(); | ||
6700 | |||
6701 | state._fsp--; | ||
6702 | |||
6703 | |||
6704 | } | ||
6705 | |||
6706 | } | ||
6707 | catch (RecognitionException re) { | ||
6708 | reportError(re); | ||
6709 | recover(input,re); | ||
6710 | } | ||
6711 | finally { | ||
6712 | |||
6713 | restoreStackSize(stackSize); | ||
6714 | |||
6715 | } | ||
6716 | return ; | ||
6717 | } | ||
6718 | // $ANTLR end "rule__LookupDefinition__Group__2" | ||
6719 | |||
6720 | |||
6721 | // $ANTLR start "rule__LookupDefinition__Group__2__Impl" | ||
6722 | // InternalCftLanguage.g:2158:1: rule__LookupDefinition__Group__2__Impl : ( '(' ) ; | ||
6723 | public final void rule__LookupDefinition__Group__2__Impl() throws RecognitionException { | ||
6724 | |||
6725 | int stackSize = keepStackSize(); | ||
6726 | |||
6727 | try { | ||
6728 | // InternalCftLanguage.g:2162:1: ( ( '(' ) ) | ||
6729 | // InternalCftLanguage.g:2163:1: ( '(' ) | ||
6730 | { | ||
6731 | // InternalCftLanguage.g:2163:1: ( '(' ) | ||
6732 | // InternalCftLanguage.g:2164:2: '(' | ||
6733 | { | ||
6734 | before(grammarAccess.getLookupDefinitionAccess().getLeftParenthesisKeyword_2()); | ||
6735 | match(input,27,FOLLOW_2); | ||
6736 | after(grammarAccess.getLookupDefinitionAccess().getLeftParenthesisKeyword_2()); | ||
6737 | |||
6738 | } | ||
6739 | |||
6740 | |||
6741 | } | ||
6742 | |||
6743 | } | ||
6744 | catch (RecognitionException re) { | ||
6745 | reportError(re); | ||
6746 | recover(input,re); | ||
6747 | } | ||
6748 | finally { | ||
6749 | |||
6750 | restoreStackSize(stackSize); | ||
6751 | |||
6752 | } | ||
6753 | return ; | ||
6754 | } | ||
6755 | // $ANTLR end "rule__LookupDefinition__Group__2__Impl" | ||
6756 | |||
6757 | |||
6758 | // $ANTLR start "rule__LookupDefinition__Group__3" | ||
6759 | // InternalCftLanguage.g:2173:1: rule__LookupDefinition__Group__3 : rule__LookupDefinition__Group__3__Impl rule__LookupDefinition__Group__4 ; | ||
6760 | public final void rule__LookupDefinition__Group__3() throws RecognitionException { | ||
6761 | |||
6762 | int stackSize = keepStackSize(); | ||
6763 | |||
6764 | try { | ||
6765 | // InternalCftLanguage.g:2177:1: ( rule__LookupDefinition__Group__3__Impl rule__LookupDefinition__Group__4 ) | ||
6766 | // InternalCftLanguage.g:2178:2: rule__LookupDefinition__Group__3__Impl rule__LookupDefinition__Group__4 | ||
6767 | { | ||
6768 | pushFollow(FOLLOW_23); | ||
6769 | rule__LookupDefinition__Group__3__Impl(); | ||
6770 | |||
6771 | state._fsp--; | ||
6772 | |||
6773 | pushFollow(FOLLOW_2); | ||
6774 | rule__LookupDefinition__Group__4(); | ||
6775 | |||
6776 | state._fsp--; | ||
6777 | |||
6778 | |||
6779 | } | ||
6780 | |||
6781 | } | ||
6782 | catch (RecognitionException re) { | ||
6783 | reportError(re); | ||
6784 | recover(input,re); | ||
6785 | } | ||
6786 | finally { | ||
6787 | |||
6788 | restoreStackSize(stackSize); | ||
6789 | |||
6790 | } | ||
6791 | return ; | ||
6792 | } | ||
6793 | // $ANTLR end "rule__LookupDefinition__Group__3" | ||
6794 | |||
6795 | |||
6796 | // $ANTLR start "rule__LookupDefinition__Group__3__Impl" | ||
6797 | // InternalCftLanguage.g:2185:1: rule__LookupDefinition__Group__3__Impl : ( ( rule__LookupDefinition__ArgumentsAssignment_3 ) ) ; | ||
6798 | public final void rule__LookupDefinition__Group__3__Impl() throws RecognitionException { | ||
6799 | |||
6800 | int stackSize = keepStackSize(); | ||
6801 | |||
6802 | try { | ||
6803 | // InternalCftLanguage.g:2189:1: ( ( ( rule__LookupDefinition__ArgumentsAssignment_3 ) ) ) | ||
6804 | // InternalCftLanguage.g:2190:1: ( ( rule__LookupDefinition__ArgumentsAssignment_3 ) ) | ||
6805 | { | ||
6806 | // InternalCftLanguage.g:2190:1: ( ( rule__LookupDefinition__ArgumentsAssignment_3 ) ) | ||
6807 | // InternalCftLanguage.g:2191:2: ( rule__LookupDefinition__ArgumentsAssignment_3 ) | ||
6808 | { | ||
6809 | before(grammarAccess.getLookupDefinitionAccess().getArgumentsAssignment_3()); | ||
6810 | // InternalCftLanguage.g:2192:2: ( rule__LookupDefinition__ArgumentsAssignment_3 ) | ||
6811 | // InternalCftLanguage.g:2192:3: rule__LookupDefinition__ArgumentsAssignment_3 | ||
6812 | { | ||
6813 | pushFollow(FOLLOW_2); | ||
6814 | rule__LookupDefinition__ArgumentsAssignment_3(); | ||
6815 | |||
6816 | state._fsp--; | ||
6817 | |||
6818 | |||
6819 | } | ||
6820 | |||
6821 | after(grammarAccess.getLookupDefinitionAccess().getArgumentsAssignment_3()); | ||
6822 | |||
6823 | } | ||
6824 | |||
6825 | |||
6826 | } | ||
6827 | |||
6828 | } | ||
6829 | catch (RecognitionException re) { | ||
6830 | reportError(re); | ||
6831 | recover(input,re); | ||
6832 | } | ||
6833 | finally { | ||
6834 | |||
6835 | restoreStackSize(stackSize); | ||
6836 | |||
6837 | } | ||
6838 | return ; | ||
6839 | } | ||
6840 | // $ANTLR end "rule__LookupDefinition__Group__3__Impl" | ||
6841 | |||
6842 | |||
6843 | // $ANTLR start "rule__LookupDefinition__Group__4" | ||
6844 | // InternalCftLanguage.g:2200:1: rule__LookupDefinition__Group__4 : rule__LookupDefinition__Group__4__Impl rule__LookupDefinition__Group__5 ; | ||
6845 | public final void rule__LookupDefinition__Group__4() throws RecognitionException { | ||
6846 | |||
6847 | int stackSize = keepStackSize(); | ||
6848 | |||
6849 | try { | ||
6850 | // InternalCftLanguage.g:2204:1: ( rule__LookupDefinition__Group__4__Impl rule__LookupDefinition__Group__5 ) | ||
6851 | // InternalCftLanguage.g:2205:2: rule__LookupDefinition__Group__4__Impl rule__LookupDefinition__Group__5 | ||
6852 | { | ||
6853 | pushFollow(FOLLOW_23); | ||
6854 | rule__LookupDefinition__Group__4__Impl(); | ||
6855 | |||
6856 | state._fsp--; | ||
6857 | |||
6858 | pushFollow(FOLLOW_2); | ||
6859 | rule__LookupDefinition__Group__5(); | ||
6860 | |||
6861 | state._fsp--; | ||
6862 | |||
6863 | |||
6864 | } | ||
6865 | |||
6866 | } | ||
6867 | catch (RecognitionException re) { | ||
6868 | reportError(re); | ||
6869 | recover(input,re); | ||
6870 | } | ||
6871 | finally { | ||
6872 | |||
6873 | restoreStackSize(stackSize); | ||
6874 | |||
6875 | } | ||
6876 | return ; | ||
6877 | } | ||
6878 | // $ANTLR end "rule__LookupDefinition__Group__4" | ||
6879 | |||
6880 | |||
6881 | // $ANTLR start "rule__LookupDefinition__Group__4__Impl" | ||
6882 | // InternalCftLanguage.g:2212:1: rule__LookupDefinition__Group__4__Impl : ( ( rule__LookupDefinition__Group_4__0 )* ) ; | ||
6883 | public final void rule__LookupDefinition__Group__4__Impl() throws RecognitionException { | ||
6884 | |||
6885 | int stackSize = keepStackSize(); | ||
6886 | |||
6887 | try { | ||
6888 | // InternalCftLanguage.g:2216:1: ( ( ( rule__LookupDefinition__Group_4__0 )* ) ) | ||
6889 | // InternalCftLanguage.g:2217:1: ( ( rule__LookupDefinition__Group_4__0 )* ) | ||
6890 | { | ||
6891 | // InternalCftLanguage.g:2217:1: ( ( rule__LookupDefinition__Group_4__0 )* ) | ||
6892 | // InternalCftLanguage.g:2218:2: ( rule__LookupDefinition__Group_4__0 )* | ||
6893 | { | ||
6894 | before(grammarAccess.getLookupDefinitionAccess().getGroup_4()); | ||
6895 | // InternalCftLanguage.g:2219:2: ( rule__LookupDefinition__Group_4__0 )* | ||
6896 | loop22: | ||
6897 | do { | ||
6898 | int alt22=2; | ||
6899 | int LA22_0 = input.LA(1); | ||
6900 | |||
6901 | if ( (LA22_0==29) ) { | ||
6902 | alt22=1; | ||
6903 | } | ||
6904 | |||
6905 | |||
6906 | switch (alt22) { | ||
6907 | case 1 : | ||
6908 | // InternalCftLanguage.g:2219:3: rule__LookupDefinition__Group_4__0 | ||
6909 | { | ||
6910 | pushFollow(FOLLOW_24); | ||
6911 | rule__LookupDefinition__Group_4__0(); | ||
6912 | |||
6913 | state._fsp--; | ||
6914 | |||
6915 | |||
6916 | } | ||
6917 | break; | ||
6918 | |||
6919 | default : | ||
6920 | break loop22; | ||
6921 | } | ||
6922 | } while (true); | ||
6923 | |||
6924 | after(grammarAccess.getLookupDefinitionAccess().getGroup_4()); | ||
6925 | |||
6926 | } | ||
6927 | |||
6928 | |||
6929 | } | ||
6930 | |||
6931 | } | ||
6932 | catch (RecognitionException re) { | ||
6933 | reportError(re); | ||
6934 | recover(input,re); | ||
6935 | } | ||
6936 | finally { | ||
6937 | |||
6938 | restoreStackSize(stackSize); | ||
6939 | |||
6940 | } | ||
6941 | return ; | ||
6942 | } | ||
6943 | // $ANTLR end "rule__LookupDefinition__Group__4__Impl" | ||
6944 | |||
6945 | |||
6946 | // $ANTLR start "rule__LookupDefinition__Group__5" | ||
6947 | // InternalCftLanguage.g:2227:1: rule__LookupDefinition__Group__5 : rule__LookupDefinition__Group__5__Impl rule__LookupDefinition__Group__6 ; | ||
6948 | public final void rule__LookupDefinition__Group__5() throws RecognitionException { | ||
6949 | |||
6950 | int stackSize = keepStackSize(); | ||
6951 | |||
6952 | try { | ||
6953 | // InternalCftLanguage.g:2231:1: ( rule__LookupDefinition__Group__5__Impl rule__LookupDefinition__Group__6 ) | ||
6954 | // InternalCftLanguage.g:2232:2: rule__LookupDefinition__Group__5__Impl rule__LookupDefinition__Group__6 | ||
6955 | { | ||
6956 | pushFollow(FOLLOW_28); | ||
6957 | rule__LookupDefinition__Group__5__Impl(); | ||
6958 | |||
6959 | state._fsp--; | ||
6960 | |||
6961 | pushFollow(FOLLOW_2); | ||
6962 | rule__LookupDefinition__Group__6(); | ||
6963 | |||
6964 | state._fsp--; | ||
6965 | |||
6966 | |||
6967 | } | ||
6968 | |||
6969 | } | ||
6970 | catch (RecognitionException re) { | ||
6971 | reportError(re); | ||
6972 | recover(input,re); | ||
6973 | } | ||
6974 | finally { | ||
6975 | |||
6976 | restoreStackSize(stackSize); | ||
6977 | |||
6978 | } | ||
6979 | return ; | ||
6980 | } | ||
6981 | // $ANTLR end "rule__LookupDefinition__Group__5" | ||
6982 | |||
6983 | |||
6984 | // $ANTLR start "rule__LookupDefinition__Group__5__Impl" | ||
6985 | // InternalCftLanguage.g:2239:1: rule__LookupDefinition__Group__5__Impl : ( ')' ) ; | ||
6986 | public final void rule__LookupDefinition__Group__5__Impl() throws RecognitionException { | ||
6987 | |||
6988 | int stackSize = keepStackSize(); | ||
6989 | |||
6990 | try { | ||
6991 | // InternalCftLanguage.g:2243:1: ( ( ')' ) ) | ||
6992 | // InternalCftLanguage.g:2244:1: ( ')' ) | ||
6993 | { | ||
6994 | // InternalCftLanguage.g:2244:1: ( ')' ) | ||
6995 | // InternalCftLanguage.g:2245:2: ')' | ||
6996 | { | ||
6997 | before(grammarAccess.getLookupDefinitionAccess().getRightParenthesisKeyword_5()); | ||
6998 | match(input,28,FOLLOW_2); | ||
6999 | after(grammarAccess.getLookupDefinitionAccess().getRightParenthesisKeyword_5()); | ||
7000 | |||
7001 | } | ||
7002 | |||
7003 | |||
7004 | } | ||
7005 | |||
7006 | } | ||
7007 | catch (RecognitionException re) { | ||
7008 | reportError(re); | ||
7009 | recover(input,re); | ||
7010 | } | ||
7011 | finally { | ||
7012 | |||
7013 | restoreStackSize(stackSize); | ||
7014 | |||
7015 | } | ||
7016 | return ; | ||
7017 | } | ||
7018 | // $ANTLR end "rule__LookupDefinition__Group__5__Impl" | ||
7019 | |||
7020 | |||
7021 | // $ANTLR start "rule__LookupDefinition__Group__6" | ||
7022 | // InternalCftLanguage.g:2254:1: rule__LookupDefinition__Group__6 : rule__LookupDefinition__Group__6__Impl rule__LookupDefinition__Group__7 ; | ||
7023 | public final void rule__LookupDefinition__Group__6() throws RecognitionException { | ||
7024 | |||
7025 | int stackSize = keepStackSize(); | ||
7026 | |||
7027 | try { | ||
7028 | // InternalCftLanguage.g:2258:1: ( rule__LookupDefinition__Group__6__Impl rule__LookupDefinition__Group__7 ) | ||
7029 | // InternalCftLanguage.g:2259:2: rule__LookupDefinition__Group__6__Impl rule__LookupDefinition__Group__7 | ||
7030 | { | ||
7031 | pushFollow(FOLLOW_3); | ||
7032 | rule__LookupDefinition__Group__6__Impl(); | ||
7033 | |||
7034 | state._fsp--; | ||
7035 | |||
7036 | pushFollow(FOLLOW_2); | ||
7037 | rule__LookupDefinition__Group__7(); | ||
7038 | |||
7039 | state._fsp--; | ||
7040 | |||
7041 | |||
7042 | } | ||
7043 | |||
7044 | } | ||
7045 | catch (RecognitionException re) { | ||
7046 | reportError(re); | ||
7047 | recover(input,re); | ||
7048 | } | ||
7049 | finally { | ||
7050 | |||
7051 | restoreStackSize(stackSize); | ||
7052 | |||
7053 | } | ||
7054 | return ; | ||
7055 | } | ||
7056 | // $ANTLR end "rule__LookupDefinition__Group__6" | ||
7057 | |||
7058 | |||
7059 | // $ANTLR start "rule__LookupDefinition__Group__6__Impl" | ||
7060 | // InternalCftLanguage.g:2266:1: rule__LookupDefinition__Group__6__Impl : ( 'as' ) ; | ||
7061 | public final void rule__LookupDefinition__Group__6__Impl() throws RecognitionException { | ||
7062 | |||
7063 | int stackSize = keepStackSize(); | ||
7064 | |||
7065 | try { | ||
7066 | // InternalCftLanguage.g:2270:1: ( ( 'as' ) ) | ||
7067 | // InternalCftLanguage.g:2271:1: ( 'as' ) | ||
7068 | { | ||
7069 | // InternalCftLanguage.g:2271:1: ( 'as' ) | ||
7070 | // InternalCftLanguage.g:2272:2: 'as' | ||
7071 | { | ||
7072 | before(grammarAccess.getLookupDefinitionAccess().getAsKeyword_6()); | ||
7073 | match(input,31,FOLLOW_2); | ||
7074 | after(grammarAccess.getLookupDefinitionAccess().getAsKeyword_6()); | ||
7075 | |||
7076 | } | ||
7077 | |||
7078 | |||
7079 | } | ||
7080 | |||
7081 | } | ||
7082 | catch (RecognitionException re) { | ||
7083 | reportError(re); | ||
7084 | recover(input,re); | ||
7085 | } | ||
7086 | finally { | ||
7087 | |||
7088 | restoreStackSize(stackSize); | ||
7089 | |||
7090 | } | ||
7091 | return ; | ||
7092 | } | ||
7093 | // $ANTLR end "rule__LookupDefinition__Group__6__Impl" | ||
7094 | |||
7095 | |||
7096 | // $ANTLR start "rule__LookupDefinition__Group__7" | ||
7097 | // InternalCftLanguage.g:2281:1: rule__LookupDefinition__Group__7 : rule__LookupDefinition__Group__7__Impl ; | ||
7098 | public final void rule__LookupDefinition__Group__7() throws RecognitionException { | ||
7099 | |||
7100 | int stackSize = keepStackSize(); | ||
7101 | |||
7102 | try { | ||
7103 | // InternalCftLanguage.g:2285:1: ( rule__LookupDefinition__Group__7__Impl ) | ||
7104 | // InternalCftLanguage.g:2286:2: rule__LookupDefinition__Group__7__Impl | ||
7105 | { | ||
7106 | pushFollow(FOLLOW_2); | ||
7107 | rule__LookupDefinition__Group__7__Impl(); | ||
7108 | |||
7109 | state._fsp--; | ||
7110 | |||
7111 | |||
7112 | } | ||
7113 | |||
7114 | } | ||
7115 | catch (RecognitionException re) { | ||
7116 | reportError(re); | ||
7117 | recover(input,re); | ||
7118 | } | ||
7119 | finally { | ||
7120 | |||
7121 | restoreStackSize(stackSize); | ||
7122 | |||
7123 | } | ||
7124 | return ; | ||
7125 | } | ||
7126 | // $ANTLR end "rule__LookupDefinition__Group__7" | ||
7127 | |||
7128 | |||
7129 | // $ANTLR start "rule__LookupDefinition__Group__7__Impl" | ||
7130 | // InternalCftLanguage.g:2292:1: rule__LookupDefinition__Group__7__Impl : ( ( rule__LookupDefinition__NameAssignment_7 ) ) ; | ||
7131 | public final void rule__LookupDefinition__Group__7__Impl() throws RecognitionException { | ||
7132 | |||
7133 | int stackSize = keepStackSize(); | ||
7134 | |||
7135 | try { | ||
7136 | // InternalCftLanguage.g:2296:1: ( ( ( rule__LookupDefinition__NameAssignment_7 ) ) ) | ||
7137 | // InternalCftLanguage.g:2297:1: ( ( rule__LookupDefinition__NameAssignment_7 ) ) | ||
7138 | { | ||
7139 | // InternalCftLanguage.g:2297:1: ( ( rule__LookupDefinition__NameAssignment_7 ) ) | ||
7140 | // InternalCftLanguage.g:2298:2: ( rule__LookupDefinition__NameAssignment_7 ) | ||
7141 | { | ||
7142 | before(grammarAccess.getLookupDefinitionAccess().getNameAssignment_7()); | ||
7143 | // InternalCftLanguage.g:2299:2: ( rule__LookupDefinition__NameAssignment_7 ) | ||
7144 | // InternalCftLanguage.g:2299:3: rule__LookupDefinition__NameAssignment_7 | ||
7145 | { | ||
7146 | pushFollow(FOLLOW_2); | ||
7147 | rule__LookupDefinition__NameAssignment_7(); | ||
7148 | |||
7149 | state._fsp--; | ||
7150 | |||
7151 | |||
7152 | } | ||
7153 | |||
7154 | after(grammarAccess.getLookupDefinitionAccess().getNameAssignment_7()); | ||
7155 | |||
7156 | } | ||
7157 | |||
7158 | |||
7159 | } | ||
7160 | |||
7161 | } | ||
7162 | catch (RecognitionException re) { | ||
7163 | reportError(re); | ||
7164 | recover(input,re); | ||
7165 | } | ||
7166 | finally { | ||
7167 | |||
7168 | restoreStackSize(stackSize); | ||
7169 | |||
7170 | } | ||
7171 | return ; | ||
7172 | } | ||
7173 | // $ANTLR end "rule__LookupDefinition__Group__7__Impl" | ||
7174 | |||
7175 | |||
7176 | // $ANTLR start "rule__LookupDefinition__Group_4__0" | ||
7177 | // InternalCftLanguage.g:2308:1: rule__LookupDefinition__Group_4__0 : rule__LookupDefinition__Group_4__0__Impl rule__LookupDefinition__Group_4__1 ; | ||
7178 | public final void rule__LookupDefinition__Group_4__0() throws RecognitionException { | ||
7179 | |||
7180 | int stackSize = keepStackSize(); | ||
7181 | |||
7182 | try { | ||
7183 | // InternalCftLanguage.g:2312:1: ( rule__LookupDefinition__Group_4__0__Impl rule__LookupDefinition__Group_4__1 ) | ||
7184 | // InternalCftLanguage.g:2313:2: rule__LookupDefinition__Group_4__0__Impl rule__LookupDefinition__Group_4__1 | ||
7185 | { | ||
7186 | pushFollow(FOLLOW_3); | ||
7187 | rule__LookupDefinition__Group_4__0__Impl(); | ||
7188 | |||
7189 | state._fsp--; | ||
7190 | |||
7191 | pushFollow(FOLLOW_2); | ||
7192 | rule__LookupDefinition__Group_4__1(); | ||
7193 | |||
7194 | state._fsp--; | ||
7195 | |||
7196 | |||
7197 | } | ||
7198 | |||
7199 | } | ||
7200 | catch (RecognitionException re) { | ||
7201 | reportError(re); | ||
7202 | recover(input,re); | ||
7203 | } | ||
7204 | finally { | ||
7205 | |||
7206 | restoreStackSize(stackSize); | ||
7207 | |||
7208 | } | ||
7209 | return ; | ||
7210 | } | ||
7211 | // $ANTLR end "rule__LookupDefinition__Group_4__0" | ||
7212 | |||
7213 | |||
7214 | // $ANTLR start "rule__LookupDefinition__Group_4__0__Impl" | ||
7215 | // InternalCftLanguage.g:2320:1: rule__LookupDefinition__Group_4__0__Impl : ( ',' ) ; | ||
7216 | public final void rule__LookupDefinition__Group_4__0__Impl() throws RecognitionException { | ||
7217 | |||
7218 | int stackSize = keepStackSize(); | ||
7219 | |||
7220 | try { | ||
7221 | // InternalCftLanguage.g:2324:1: ( ( ',' ) ) | ||
7222 | // InternalCftLanguage.g:2325:1: ( ',' ) | ||
7223 | { | ||
7224 | // InternalCftLanguage.g:2325:1: ( ',' ) | ||
7225 | // InternalCftLanguage.g:2326:2: ',' | ||
7226 | { | ||
7227 | before(grammarAccess.getLookupDefinitionAccess().getCommaKeyword_4_0()); | ||
7228 | match(input,29,FOLLOW_2); | ||
7229 | after(grammarAccess.getLookupDefinitionAccess().getCommaKeyword_4_0()); | ||
7230 | |||
7231 | } | ||
7232 | |||
7233 | |||
7234 | } | ||
7235 | |||
7236 | } | ||
7237 | catch (RecognitionException re) { | ||
7238 | reportError(re); | ||
7239 | recover(input,re); | ||
7240 | } | ||
7241 | finally { | ||
7242 | |||
7243 | restoreStackSize(stackSize); | ||
7244 | |||
7245 | } | ||
7246 | return ; | ||
7247 | } | ||
7248 | // $ANTLR end "rule__LookupDefinition__Group_4__0__Impl" | ||
7249 | |||
7250 | |||
7251 | // $ANTLR start "rule__LookupDefinition__Group_4__1" | ||
7252 | // InternalCftLanguage.g:2335:1: rule__LookupDefinition__Group_4__1 : rule__LookupDefinition__Group_4__1__Impl ; | ||
7253 | public final void rule__LookupDefinition__Group_4__1() throws RecognitionException { | ||
7254 | |||
7255 | int stackSize = keepStackSize(); | ||
7256 | |||
7257 | try { | ||
7258 | // InternalCftLanguage.g:2339:1: ( rule__LookupDefinition__Group_4__1__Impl ) | ||
7259 | // InternalCftLanguage.g:2340:2: rule__LookupDefinition__Group_4__1__Impl | ||
7260 | { | ||
7261 | pushFollow(FOLLOW_2); | ||
7262 | rule__LookupDefinition__Group_4__1__Impl(); | ||
7263 | |||
7264 | state._fsp--; | ||
7265 | |||
7266 | |||
7267 | } | ||
7268 | |||
7269 | } | ||
7270 | catch (RecognitionException re) { | ||
7271 | reportError(re); | ||
7272 | recover(input,re); | ||
7273 | } | ||
7274 | finally { | ||
7275 | |||
7276 | restoreStackSize(stackSize); | ||
7277 | |||
7278 | } | ||
7279 | return ; | ||
7280 | } | ||
7281 | // $ANTLR end "rule__LookupDefinition__Group_4__1" | ||
7282 | |||
7283 | |||
7284 | // $ANTLR start "rule__LookupDefinition__Group_4__1__Impl" | ||
7285 | // InternalCftLanguage.g:2346:1: rule__LookupDefinition__Group_4__1__Impl : ( ( rule__LookupDefinition__ArgumentsAssignment_4_1 ) ) ; | ||
7286 | public final void rule__LookupDefinition__Group_4__1__Impl() throws RecognitionException { | ||
7287 | |||
7288 | int stackSize = keepStackSize(); | ||
7289 | |||
7290 | try { | ||
7291 | // InternalCftLanguage.g:2350:1: ( ( ( rule__LookupDefinition__ArgumentsAssignment_4_1 ) ) ) | ||
7292 | // InternalCftLanguage.g:2351:1: ( ( rule__LookupDefinition__ArgumentsAssignment_4_1 ) ) | ||
7293 | { | ||
7294 | // InternalCftLanguage.g:2351:1: ( ( rule__LookupDefinition__ArgumentsAssignment_4_1 ) ) | ||
7295 | // InternalCftLanguage.g:2352:2: ( rule__LookupDefinition__ArgumentsAssignment_4_1 ) | ||
7296 | { | ||
7297 | before(grammarAccess.getLookupDefinitionAccess().getArgumentsAssignment_4_1()); | ||
7298 | // InternalCftLanguage.g:2353:2: ( rule__LookupDefinition__ArgumentsAssignment_4_1 ) | ||
7299 | // InternalCftLanguage.g:2353:3: rule__LookupDefinition__ArgumentsAssignment_4_1 | ||
7300 | { | ||
7301 | pushFollow(FOLLOW_2); | ||
7302 | rule__LookupDefinition__ArgumentsAssignment_4_1(); | ||
7303 | |||
7304 | state._fsp--; | ||
7305 | |||
7306 | |||
7307 | } | ||
7308 | |||
7309 | after(grammarAccess.getLookupDefinitionAccess().getArgumentsAssignment_4_1()); | ||
7310 | |||
7311 | } | ||
7312 | |||
7313 | |||
7314 | } | ||
7315 | |||
7316 | } | ||
7317 | catch (RecognitionException re) { | ||
7318 | reportError(re); | ||
7319 | recover(input,re); | ||
7320 | } | ||
7321 | finally { | ||
7322 | |||
7323 | restoreStackSize(stackSize); | ||
7324 | |||
7325 | } | ||
7326 | return ; | ||
7327 | } | ||
7328 | // $ANTLR end "rule__LookupDefinition__Group_4__1__Impl" | ||
7329 | |||
7330 | |||
7331 | // $ANTLR start "rule__Assignment__Group__0" | ||
7332 | // InternalCftLanguage.g:2362:1: rule__Assignment__Group__0 : rule__Assignment__Group__0__Impl rule__Assignment__Group__1 ; | ||
7333 | public final void rule__Assignment__Group__0() throws RecognitionException { | ||
7334 | |||
7335 | int stackSize = keepStackSize(); | ||
7336 | |||
7337 | try { | ||
7338 | // InternalCftLanguage.g:2366:1: ( rule__Assignment__Group__0__Impl rule__Assignment__Group__1 ) | ||
7339 | // InternalCftLanguage.g:2367:2: rule__Assignment__Group__0__Impl rule__Assignment__Group__1 | ||
7340 | { | ||
7341 | pushFollow(FOLLOW_29); | ||
7342 | rule__Assignment__Group__0__Impl(); | ||
7343 | |||
7344 | state._fsp--; | ||
7345 | |||
7346 | pushFollow(FOLLOW_2); | ||
7347 | rule__Assignment__Group__1(); | ||
7348 | |||
7349 | state._fsp--; | ||
7350 | |||
7351 | |||
7352 | } | ||
7353 | |||
7354 | } | ||
7355 | catch (RecognitionException re) { | ||
7356 | reportError(re); | ||
7357 | recover(input,re); | ||
7358 | } | ||
7359 | finally { | ||
7360 | |||
7361 | restoreStackSize(stackSize); | ||
7362 | |||
7363 | } | ||
7364 | return ; | ||
7365 | } | ||
7366 | // $ANTLR end "rule__Assignment__Group__0" | ||
7367 | |||
7368 | |||
7369 | // $ANTLR start "rule__Assignment__Group__0__Impl" | ||
7370 | // InternalCftLanguage.g:2374:1: rule__Assignment__Group__0__Impl : ( ( rule__Assignment__InputAssignment_0 ) ) ; | ||
7371 | public final void rule__Assignment__Group__0__Impl() throws RecognitionException { | ||
7372 | |||
7373 | int stackSize = keepStackSize(); | ||
7374 | |||
7375 | try { | ||
7376 | // InternalCftLanguage.g:2378:1: ( ( ( rule__Assignment__InputAssignment_0 ) ) ) | ||
7377 | // InternalCftLanguage.g:2379:1: ( ( rule__Assignment__InputAssignment_0 ) ) | ||
7378 | { | ||
7379 | // InternalCftLanguage.g:2379:1: ( ( rule__Assignment__InputAssignment_0 ) ) | ||
7380 | // InternalCftLanguage.g:2380:2: ( rule__Assignment__InputAssignment_0 ) | ||
7381 | { | ||
7382 | before(grammarAccess.getAssignmentAccess().getInputAssignment_0()); | ||
7383 | // InternalCftLanguage.g:2381:2: ( rule__Assignment__InputAssignment_0 ) | ||
7384 | // InternalCftLanguage.g:2381:3: rule__Assignment__InputAssignment_0 | ||
7385 | { | ||
7386 | pushFollow(FOLLOW_2); | ||
7387 | rule__Assignment__InputAssignment_0(); | ||
7388 | |||
7389 | state._fsp--; | ||
7390 | |||
7391 | |||
7392 | } | ||
7393 | |||
7394 | after(grammarAccess.getAssignmentAccess().getInputAssignment_0()); | ||
7395 | |||
7396 | } | ||
7397 | |||
7398 | |||
7399 | } | ||
7400 | |||
7401 | } | ||
7402 | catch (RecognitionException re) { | ||
7403 | reportError(re); | ||
7404 | recover(input,re); | ||
7405 | } | ||
7406 | finally { | ||
7407 | |||
7408 | restoreStackSize(stackSize); | ||
7409 | |||
7410 | } | ||
7411 | return ; | ||
7412 | } | ||
7413 | // $ANTLR end "rule__Assignment__Group__0__Impl" | ||
7414 | |||
7415 | |||
7416 | // $ANTLR start "rule__Assignment__Group__1" | ||
7417 | // InternalCftLanguage.g:2389:1: rule__Assignment__Group__1 : rule__Assignment__Group__1__Impl rule__Assignment__Group__2 ; | ||
7418 | public final void rule__Assignment__Group__1() throws RecognitionException { | ||
7419 | |||
7420 | int stackSize = keepStackSize(); | ||
7421 | |||
7422 | try { | ||
7423 | // InternalCftLanguage.g:2393:1: ( rule__Assignment__Group__1__Impl rule__Assignment__Group__2 ) | ||
7424 | // InternalCftLanguage.g:2394:2: rule__Assignment__Group__1__Impl rule__Assignment__Group__2 | ||
7425 | { | ||
7426 | pushFollow(FOLLOW_30); | ||
7427 | rule__Assignment__Group__1__Impl(); | ||
7428 | |||
7429 | state._fsp--; | ||
7430 | |||
7431 | pushFollow(FOLLOW_2); | ||
7432 | rule__Assignment__Group__2(); | ||
7433 | |||
7434 | state._fsp--; | ||
7435 | |||
7436 | |||
7437 | } | ||
7438 | |||
7439 | } | ||
7440 | catch (RecognitionException re) { | ||
7441 | reportError(re); | ||
7442 | recover(input,re); | ||
7443 | } | ||
7444 | finally { | ||
7445 | |||
7446 | restoreStackSize(stackSize); | ||
7447 | |||
7448 | } | ||
7449 | return ; | ||
7450 | } | ||
7451 | // $ANTLR end "rule__Assignment__Group__1" | ||
7452 | |||
7453 | |||
7454 | // $ANTLR start "rule__Assignment__Group__1__Impl" | ||
7455 | // InternalCftLanguage.g:2401:1: rule__Assignment__Group__1__Impl : ( ( rule__Assignment__Alternatives_1 ) ) ; | ||
7456 | public final void rule__Assignment__Group__1__Impl() throws RecognitionException { | ||
7457 | |||
7458 | int stackSize = keepStackSize(); | ||
7459 | |||
7460 | try { | ||
7461 | // InternalCftLanguage.g:2405:1: ( ( ( rule__Assignment__Alternatives_1 ) ) ) | ||
7462 | // InternalCftLanguage.g:2406:1: ( ( rule__Assignment__Alternatives_1 ) ) | ||
7463 | { | ||
7464 | // InternalCftLanguage.g:2406:1: ( ( rule__Assignment__Alternatives_1 ) ) | ||
7465 | // InternalCftLanguage.g:2407:2: ( rule__Assignment__Alternatives_1 ) | ||
7466 | { | ||
7467 | before(grammarAccess.getAssignmentAccess().getAlternatives_1()); | ||
7468 | // InternalCftLanguage.g:2408:2: ( rule__Assignment__Alternatives_1 ) | ||
7469 | // InternalCftLanguage.g:2408:3: rule__Assignment__Alternatives_1 | ||
7470 | { | ||
7471 | pushFollow(FOLLOW_2); | ||
7472 | rule__Assignment__Alternatives_1(); | ||
7473 | |||
7474 | state._fsp--; | ||
7475 | |||
7476 | |||
7477 | } | ||
7478 | |||
7479 | after(grammarAccess.getAssignmentAccess().getAlternatives_1()); | ||
7480 | |||
7481 | } | ||
7482 | |||
7483 | |||
7484 | } | ||
7485 | |||
7486 | } | ||
7487 | catch (RecognitionException re) { | ||
7488 | reportError(re); | ||
7489 | recover(input,re); | ||
7490 | } | ||
7491 | finally { | ||
7492 | |||
7493 | restoreStackSize(stackSize); | ||
7494 | |||
7495 | } | ||
7496 | return ; | ||
7497 | } | ||
7498 | // $ANTLR end "rule__Assignment__Group__1__Impl" | ||
7499 | |||
7500 | |||
7501 | // $ANTLR start "rule__Assignment__Group__2" | ||
7502 | // InternalCftLanguage.g:2416:1: rule__Assignment__Group__2 : rule__Assignment__Group__2__Impl ; | ||
7503 | public final void rule__Assignment__Group__2() throws RecognitionException { | ||
7504 | |||
7505 | int stackSize = keepStackSize(); | ||
7506 | |||
7507 | try { | ||
7508 | // InternalCftLanguage.g:2420:1: ( rule__Assignment__Group__2__Impl ) | ||
7509 | // InternalCftLanguage.g:2421:2: rule__Assignment__Group__2__Impl | ||
7510 | { | ||
7511 | pushFollow(FOLLOW_2); | ||
7512 | rule__Assignment__Group__2__Impl(); | ||
7513 | |||
7514 | state._fsp--; | ||
7515 | |||
7516 | |||
7517 | } | ||
7518 | |||
7519 | } | ||
7520 | catch (RecognitionException re) { | ||
7521 | reportError(re); | ||
7522 | recover(input,re); | ||
7523 | } | ||
7524 | finally { | ||
7525 | |||
7526 | restoreStackSize(stackSize); | ||
7527 | |||
7528 | } | ||
7529 | return ; | ||
7530 | } | ||
7531 | // $ANTLR end "rule__Assignment__Group__2" | ||
7532 | |||
7533 | |||
7534 | // $ANTLR start "rule__Assignment__Group__2__Impl" | ||
7535 | // InternalCftLanguage.g:2427:1: rule__Assignment__Group__2__Impl : ( ( rule__Assignment__OutputAssignment_2 ) ) ; | ||
7536 | public final void rule__Assignment__Group__2__Impl() throws RecognitionException { | ||
7537 | |||
7538 | int stackSize = keepStackSize(); | ||
7539 | |||
7540 | try { | ||
7541 | // InternalCftLanguage.g:2431:1: ( ( ( rule__Assignment__OutputAssignment_2 ) ) ) | ||
7542 | // InternalCftLanguage.g:2432:1: ( ( rule__Assignment__OutputAssignment_2 ) ) | ||
7543 | { | ||
7544 | // InternalCftLanguage.g:2432:1: ( ( rule__Assignment__OutputAssignment_2 ) ) | ||
7545 | // InternalCftLanguage.g:2433:2: ( rule__Assignment__OutputAssignment_2 ) | ||
7546 | { | ||
7547 | before(grammarAccess.getAssignmentAccess().getOutputAssignment_2()); | ||
7548 | // InternalCftLanguage.g:2434:2: ( rule__Assignment__OutputAssignment_2 ) | ||
7549 | // InternalCftLanguage.g:2434:3: rule__Assignment__OutputAssignment_2 | ||
7550 | { | ||
7551 | pushFollow(FOLLOW_2); | ||
7552 | rule__Assignment__OutputAssignment_2(); | ||
7553 | |||
7554 | state._fsp--; | ||
7555 | |||
7556 | |||
7557 | } | ||
7558 | |||
7559 | after(grammarAccess.getAssignmentAccess().getOutputAssignment_2()); | ||
7560 | |||
7561 | } | ||
7562 | |||
7563 | |||
7564 | } | ||
7565 | |||
7566 | } | ||
7567 | catch (RecognitionException re) { | ||
7568 | reportError(re); | ||
7569 | recover(input,re); | ||
7570 | } | ||
7571 | finally { | ||
7572 | |||
7573 | restoreStackSize(stackSize); | ||
7574 | |||
7575 | } | ||
7576 | return ; | ||
7577 | } | ||
7578 | // $ANTLR end "rule__Assignment__Group__2__Impl" | ||
7579 | |||
7580 | |||
7581 | // $ANTLR start "rule__EventReference__Group__0" | ||
7582 | // InternalCftLanguage.g:2443:1: rule__EventReference__Group__0 : rule__EventReference__Group__0__Impl rule__EventReference__Group__1 ; | ||
7583 | public final void rule__EventReference__Group__0() throws RecognitionException { | ||
7584 | |||
7585 | int stackSize = keepStackSize(); | ||
7586 | |||
7587 | try { | ||
7588 | // InternalCftLanguage.g:2447:1: ( rule__EventReference__Group__0__Impl rule__EventReference__Group__1 ) | ||
7589 | // InternalCftLanguage.g:2448:2: rule__EventReference__Group__0__Impl rule__EventReference__Group__1 | ||
7590 | { | ||
7591 | pushFollow(FOLLOW_31); | ||
7592 | rule__EventReference__Group__0__Impl(); | ||
7593 | |||
7594 | state._fsp--; | ||
7595 | |||
7596 | pushFollow(FOLLOW_2); | ||
7597 | rule__EventReference__Group__1(); | ||
7598 | |||
7599 | state._fsp--; | ||
7600 | |||
7601 | |||
7602 | } | ||
7603 | |||
7604 | } | ||
7605 | catch (RecognitionException re) { | ||
7606 | reportError(re); | ||
7607 | recover(input,re); | ||
7608 | } | ||
7609 | finally { | ||
7610 | |||
7611 | restoreStackSize(stackSize); | ||
7612 | |||
7613 | } | ||
7614 | return ; | ||
7615 | } | ||
7616 | // $ANTLR end "rule__EventReference__Group__0" | ||
7617 | |||
7618 | |||
7619 | // $ANTLR start "rule__EventReference__Group__0__Impl" | ||
7620 | // InternalCftLanguage.g:2455:1: rule__EventReference__Group__0__Impl : ( ( rule__EventReference__ComponentAssignment_0 ) ) ; | ||
7621 | public final void rule__EventReference__Group__0__Impl() throws RecognitionException { | ||
7622 | |||
7623 | int stackSize = keepStackSize(); | ||
7624 | |||
7625 | try { | ||
7626 | // InternalCftLanguage.g:2459:1: ( ( ( rule__EventReference__ComponentAssignment_0 ) ) ) | ||
7627 | // InternalCftLanguage.g:2460:1: ( ( rule__EventReference__ComponentAssignment_0 ) ) | ||
7628 | { | ||
7629 | // InternalCftLanguage.g:2460:1: ( ( rule__EventReference__ComponentAssignment_0 ) ) | ||
7630 | // InternalCftLanguage.g:2461:2: ( rule__EventReference__ComponentAssignment_0 ) | ||
7631 | { | ||
7632 | before(grammarAccess.getEventReferenceAccess().getComponentAssignment_0()); | ||
7633 | // InternalCftLanguage.g:2462:2: ( rule__EventReference__ComponentAssignment_0 ) | ||
7634 | // InternalCftLanguage.g:2462:3: rule__EventReference__ComponentAssignment_0 | ||
7635 | { | ||
7636 | pushFollow(FOLLOW_2); | ||
7637 | rule__EventReference__ComponentAssignment_0(); | ||
7638 | |||
7639 | state._fsp--; | ||
7640 | |||
7641 | |||
7642 | } | ||
7643 | |||
7644 | after(grammarAccess.getEventReferenceAccess().getComponentAssignment_0()); | ||
7645 | |||
7646 | } | ||
7647 | |||
7648 | |||
7649 | } | ||
7650 | |||
7651 | } | ||
7652 | catch (RecognitionException re) { | ||
7653 | reportError(re); | ||
7654 | recover(input,re); | ||
7655 | } | ||
7656 | finally { | ||
7657 | |||
7658 | restoreStackSize(stackSize); | ||
7659 | |||
7660 | } | ||
7661 | return ; | ||
7662 | } | ||
7663 | // $ANTLR end "rule__EventReference__Group__0__Impl" | ||
7664 | |||
7665 | |||
7666 | // $ANTLR start "rule__EventReference__Group__1" | ||
7667 | // InternalCftLanguage.g:2470:1: rule__EventReference__Group__1 : rule__EventReference__Group__1__Impl rule__EventReference__Group__2 ; | ||
7668 | public final void rule__EventReference__Group__1() throws RecognitionException { | ||
7669 | |||
7670 | int stackSize = keepStackSize(); | ||
7671 | |||
7672 | try { | ||
7673 | // InternalCftLanguage.g:2474:1: ( rule__EventReference__Group__1__Impl rule__EventReference__Group__2 ) | ||
7674 | // InternalCftLanguage.g:2475:2: rule__EventReference__Group__1__Impl rule__EventReference__Group__2 | ||
7675 | { | ||
7676 | pushFollow(FOLLOW_3); | ||
7677 | rule__EventReference__Group__1__Impl(); | ||
7678 | |||
7679 | state._fsp--; | ||
7680 | |||
7681 | pushFollow(FOLLOW_2); | ||
7682 | rule__EventReference__Group__2(); | ||
7683 | |||
7684 | state._fsp--; | ||
7685 | |||
7686 | |||
7687 | } | ||
7688 | |||
7689 | } | ||
7690 | catch (RecognitionException re) { | ||
7691 | reportError(re); | ||
7692 | recover(input,re); | ||
7693 | } | ||
7694 | finally { | ||
7695 | |||
7696 | restoreStackSize(stackSize); | ||
7697 | |||
7698 | } | ||
7699 | return ; | ||
7700 | } | ||
7701 | // $ANTLR end "rule__EventReference__Group__1" | ||
7702 | |||
7703 | |||
7704 | // $ANTLR start "rule__EventReference__Group__1__Impl" | ||
7705 | // InternalCftLanguage.g:2482:1: rule__EventReference__Group__1__Impl : ( '.' ) ; | ||
7706 | public final void rule__EventReference__Group__1__Impl() throws RecognitionException { | ||
7707 | |||
7708 | int stackSize = keepStackSize(); | ||
7709 | |||
7710 | try { | ||
7711 | // InternalCftLanguage.g:2486:1: ( ( '.' ) ) | ||
7712 | // InternalCftLanguage.g:2487:1: ( '.' ) | ||
7713 | { | ||
7714 | // InternalCftLanguage.g:2487:1: ( '.' ) | ||
7715 | // InternalCftLanguage.g:2488:2: '.' | ||
7716 | { | ||
7717 | before(grammarAccess.getEventReferenceAccess().getFullStopKeyword_1()); | ||
7718 | match(input,32,FOLLOW_2); | ||
7719 | after(grammarAccess.getEventReferenceAccess().getFullStopKeyword_1()); | ||
7720 | |||
7721 | } | ||
7722 | |||
7723 | |||
7724 | } | ||
7725 | |||
7726 | } | ||
7727 | catch (RecognitionException re) { | ||
7728 | reportError(re); | ||
7729 | recover(input,re); | ||
7730 | } | ||
7731 | finally { | ||
7732 | |||
7733 | restoreStackSize(stackSize); | ||
7734 | |||
7735 | } | ||
7736 | return ; | ||
7737 | } | ||
7738 | // $ANTLR end "rule__EventReference__Group__1__Impl" | ||
7739 | |||
7740 | |||
7741 | // $ANTLR start "rule__EventReference__Group__2" | ||
7742 | // InternalCftLanguage.g:2497:1: rule__EventReference__Group__2 : rule__EventReference__Group__2__Impl ; | ||
7743 | public final void rule__EventReference__Group__2() throws RecognitionException { | ||
7744 | |||
7745 | int stackSize = keepStackSize(); | ||
7746 | |||
7747 | try { | ||
7748 | // InternalCftLanguage.g:2501:1: ( rule__EventReference__Group__2__Impl ) | ||
7749 | // InternalCftLanguage.g:2502:2: rule__EventReference__Group__2__Impl | ||
7750 | { | ||
7751 | pushFollow(FOLLOW_2); | ||
7752 | rule__EventReference__Group__2__Impl(); | ||
7753 | |||
7754 | state._fsp--; | ||
7755 | |||
7756 | |||
7757 | } | ||
7758 | |||
7759 | } | ||
7760 | catch (RecognitionException re) { | ||
7761 | reportError(re); | ||
7762 | recover(input,re); | ||
7763 | } | ||
7764 | finally { | ||
7765 | |||
7766 | restoreStackSize(stackSize); | ||
7767 | |||
7768 | } | ||
7769 | return ; | ||
7770 | } | ||
7771 | // $ANTLR end "rule__EventReference__Group__2" | ||
7772 | |||
7773 | |||
7774 | // $ANTLR start "rule__EventReference__Group__2__Impl" | ||
7775 | // InternalCftLanguage.g:2508:1: rule__EventReference__Group__2__Impl : ( ( rule__EventReference__EventAssignment_2 ) ) ; | ||
7776 | public final void rule__EventReference__Group__2__Impl() throws RecognitionException { | ||
7777 | |||
7778 | int stackSize = keepStackSize(); | ||
7779 | |||
7780 | try { | ||
7781 | // InternalCftLanguage.g:2512:1: ( ( ( rule__EventReference__EventAssignment_2 ) ) ) | ||
7782 | // InternalCftLanguage.g:2513:1: ( ( rule__EventReference__EventAssignment_2 ) ) | ||
7783 | { | ||
7784 | // InternalCftLanguage.g:2513:1: ( ( rule__EventReference__EventAssignment_2 ) ) | ||
7785 | // InternalCftLanguage.g:2514:2: ( rule__EventReference__EventAssignment_2 ) | ||
7786 | { | ||
7787 | before(grammarAccess.getEventReferenceAccess().getEventAssignment_2()); | ||
7788 | // InternalCftLanguage.g:2515:2: ( rule__EventReference__EventAssignment_2 ) | ||
7789 | // InternalCftLanguage.g:2515:3: rule__EventReference__EventAssignment_2 | ||
7790 | { | ||
7791 | pushFollow(FOLLOW_2); | ||
7792 | rule__EventReference__EventAssignment_2(); | ||
7793 | |||
7794 | state._fsp--; | ||
7795 | |||
7796 | |||
7797 | } | ||
7798 | |||
7799 | after(grammarAccess.getEventReferenceAccess().getEventAssignment_2()); | ||
7800 | |||
7801 | } | ||
7802 | |||
7803 | |||
7804 | } | ||
7805 | |||
7806 | } | ||
7807 | catch (RecognitionException re) { | ||
7808 | reportError(re); | ||
7809 | recover(input,re); | ||
7810 | } | ||
7811 | finally { | ||
7812 | |||
7813 | restoreStackSize(stackSize); | ||
7814 | |||
7815 | } | ||
7816 | return ; | ||
7817 | } | ||
7818 | // $ANTLR end "rule__EventReference__Group__2__Impl" | ||
7819 | |||
7820 | |||
7821 | // $ANTLR start "rule__ComponentInstance__Group__0" | ||
7822 | // InternalCftLanguage.g:2524:1: rule__ComponentInstance__Group__0 : rule__ComponentInstance__Group__0__Impl rule__ComponentInstance__Group__1 ; | ||
7823 | public final void rule__ComponentInstance__Group__0() throws RecognitionException { | ||
7824 | |||
7825 | int stackSize = keepStackSize(); | ||
7826 | |||
7827 | try { | ||
7828 | // InternalCftLanguage.g:2528:1: ( rule__ComponentInstance__Group__0__Impl rule__ComponentInstance__Group__1 ) | ||
7829 | // InternalCftLanguage.g:2529:2: rule__ComponentInstance__Group__0__Impl rule__ComponentInstance__Group__1 | ||
7830 | { | ||
7831 | pushFollow(FOLLOW_3); | ||
7832 | rule__ComponentInstance__Group__0__Impl(); | ||
7833 | |||
7834 | state._fsp--; | ||
7835 | |||
7836 | pushFollow(FOLLOW_2); | ||
7837 | rule__ComponentInstance__Group__1(); | ||
7838 | |||
7839 | state._fsp--; | ||
7840 | |||
7841 | |||
7842 | } | ||
7843 | |||
7844 | } | ||
7845 | catch (RecognitionException re) { | ||
7846 | reportError(re); | ||
7847 | recover(input,re); | ||
7848 | } | ||
7849 | finally { | ||
7850 | |||
7851 | restoreStackSize(stackSize); | ||
7852 | |||
7853 | } | ||
7854 | return ; | ||
7855 | } | ||
7856 | // $ANTLR end "rule__ComponentInstance__Group__0" | ||
7857 | |||
7858 | |||
7859 | // $ANTLR start "rule__ComponentInstance__Group__0__Impl" | ||
7860 | // InternalCftLanguage.g:2536:1: rule__ComponentInstance__Group__0__Impl : ( '=>' ) ; | ||
7861 | public final void rule__ComponentInstance__Group__0__Impl() throws RecognitionException { | ||
7862 | |||
7863 | int stackSize = keepStackSize(); | ||
7864 | |||
7865 | try { | ||
7866 | // InternalCftLanguage.g:2540:1: ( ( '=>' ) ) | ||
7867 | // InternalCftLanguage.g:2541:1: ( '=>' ) | ||
7868 | { | ||
7869 | // InternalCftLanguage.g:2541:1: ( '=>' ) | ||
7870 | // InternalCftLanguage.g:2542:2: '=>' | ||
7871 | { | ||
7872 | before(grammarAccess.getComponentInstanceAccess().getEqualsSignGreaterThanSignKeyword_0()); | ||
7873 | match(input,33,FOLLOW_2); | ||
7874 | after(grammarAccess.getComponentInstanceAccess().getEqualsSignGreaterThanSignKeyword_0()); | ||
7875 | |||
7876 | } | ||
7877 | |||
7878 | |||
7879 | } | ||
7880 | |||
7881 | } | ||
7882 | catch (RecognitionException re) { | ||
7883 | reportError(re); | ||
7884 | recover(input,re); | ||
7885 | } | ||
7886 | finally { | ||
7887 | |||
7888 | restoreStackSize(stackSize); | ||
7889 | |||
7890 | } | ||
7891 | return ; | ||
7892 | } | ||
7893 | // $ANTLR end "rule__ComponentInstance__Group__0__Impl" | ||
7894 | |||
7895 | |||
7896 | // $ANTLR start "rule__ComponentInstance__Group__1" | ||
7897 | // InternalCftLanguage.g:2551:1: rule__ComponentInstance__Group__1 : rule__ComponentInstance__Group__1__Impl rule__ComponentInstance__Group__2 ; | ||
7898 | public final void rule__ComponentInstance__Group__1() throws RecognitionException { | ||
7899 | |||
7900 | int stackSize = keepStackSize(); | ||
7901 | |||
7902 | try { | ||
7903 | // InternalCftLanguage.g:2555:1: ( rule__ComponentInstance__Group__1__Impl rule__ComponentInstance__Group__2 ) | ||
7904 | // InternalCftLanguage.g:2556:2: rule__ComponentInstance__Group__1__Impl rule__ComponentInstance__Group__2 | ||
7905 | { | ||
7906 | pushFollow(FOLLOW_3); | ||
7907 | rule__ComponentInstance__Group__1__Impl(); | ||
7908 | |||
7909 | state._fsp--; | ||
7910 | |||
7911 | pushFollow(FOLLOW_2); | ||
7912 | rule__ComponentInstance__Group__2(); | ||
7913 | |||
7914 | state._fsp--; | ||
7915 | |||
7916 | |||
7917 | } | ||
7918 | |||
7919 | } | ||
7920 | catch (RecognitionException re) { | ||
7921 | reportError(re); | ||
7922 | recover(input,re); | ||
7923 | } | ||
7924 | finally { | ||
7925 | |||
7926 | restoreStackSize(stackSize); | ||
7927 | |||
7928 | } | ||
7929 | return ; | ||
7930 | } | ||
7931 | // $ANTLR end "rule__ComponentInstance__Group__1" | ||
7932 | |||
7933 | |||
7934 | // $ANTLR start "rule__ComponentInstance__Group__1__Impl" | ||
7935 | // InternalCftLanguage.g:2563:1: rule__ComponentInstance__Group__1__Impl : ( ( rule__ComponentInstance__ComponentTypeAssignment_1 ) ) ; | ||
7936 | public final void rule__ComponentInstance__Group__1__Impl() throws RecognitionException { | ||
7937 | |||
7938 | int stackSize = keepStackSize(); | ||
7939 | |||
7940 | try { | ||
7941 | // InternalCftLanguage.g:2567:1: ( ( ( rule__ComponentInstance__ComponentTypeAssignment_1 ) ) ) | ||
7942 | // InternalCftLanguage.g:2568:1: ( ( rule__ComponentInstance__ComponentTypeAssignment_1 ) ) | ||
7943 | { | ||
7944 | // InternalCftLanguage.g:2568:1: ( ( rule__ComponentInstance__ComponentTypeAssignment_1 ) ) | ||
7945 | // InternalCftLanguage.g:2569:2: ( rule__ComponentInstance__ComponentTypeAssignment_1 ) | ||
7946 | { | ||
7947 | before(grammarAccess.getComponentInstanceAccess().getComponentTypeAssignment_1()); | ||
7948 | // InternalCftLanguage.g:2570:2: ( rule__ComponentInstance__ComponentTypeAssignment_1 ) | ||
7949 | // InternalCftLanguage.g:2570:3: rule__ComponentInstance__ComponentTypeAssignment_1 | ||
7950 | { | ||
7951 | pushFollow(FOLLOW_2); | ||
7952 | rule__ComponentInstance__ComponentTypeAssignment_1(); | ||
7953 | |||
7954 | state._fsp--; | ||
7955 | |||
7956 | |||
7957 | } | ||
7958 | |||
7959 | after(grammarAccess.getComponentInstanceAccess().getComponentTypeAssignment_1()); | ||
7960 | |||
7961 | } | ||
7962 | |||
7963 | |||
7964 | } | ||
7965 | |||
7966 | } | ||
7967 | catch (RecognitionException re) { | ||
7968 | reportError(re); | ||
7969 | recover(input,re); | ||
7970 | } | ||
7971 | finally { | ||
7972 | |||
7973 | restoreStackSize(stackSize); | ||
7974 | |||
7975 | } | ||
7976 | return ; | ||
7977 | } | ||
7978 | // $ANTLR end "rule__ComponentInstance__Group__1__Impl" | ||
7979 | |||
7980 | |||
7981 | // $ANTLR start "rule__ComponentInstance__Group__2" | ||
7982 | // InternalCftLanguage.g:2578:1: rule__ComponentInstance__Group__2 : rule__ComponentInstance__Group__2__Impl ; | ||
7983 | public final void rule__ComponentInstance__Group__2() throws RecognitionException { | ||
7984 | |||
7985 | int stackSize = keepStackSize(); | ||
7986 | |||
7987 | try { | ||
7988 | // InternalCftLanguage.g:2582:1: ( rule__ComponentInstance__Group__2__Impl ) | ||
7989 | // InternalCftLanguage.g:2583:2: rule__ComponentInstance__Group__2__Impl | ||
7990 | { | ||
7991 | pushFollow(FOLLOW_2); | ||
7992 | rule__ComponentInstance__Group__2__Impl(); | ||
7993 | |||
7994 | state._fsp--; | ||
7995 | |||
7996 | |||
7997 | } | ||
7998 | |||
7999 | } | ||
8000 | catch (RecognitionException re) { | ||
8001 | reportError(re); | ||
8002 | recover(input,re); | ||
8003 | } | ||
8004 | finally { | ||
8005 | |||
8006 | restoreStackSize(stackSize); | ||
8007 | |||
8008 | } | ||
8009 | return ; | ||
8010 | } | ||
8011 | // $ANTLR end "rule__ComponentInstance__Group__2" | ||
8012 | |||
8013 | |||
8014 | // $ANTLR start "rule__ComponentInstance__Group__2__Impl" | ||
8015 | // InternalCftLanguage.g:2589:1: rule__ComponentInstance__Group__2__Impl : ( ( rule__ComponentInstance__NameAssignment_2 )? ) ; | ||
8016 | public final void rule__ComponentInstance__Group__2__Impl() throws RecognitionException { | ||
8017 | |||
8018 | int stackSize = keepStackSize(); | ||
8019 | |||
8020 | try { | ||
8021 | // InternalCftLanguage.g:2593:1: ( ( ( rule__ComponentInstance__NameAssignment_2 )? ) ) | ||
8022 | // InternalCftLanguage.g:2594:1: ( ( rule__ComponentInstance__NameAssignment_2 )? ) | ||
8023 | { | ||
8024 | // InternalCftLanguage.g:2594:1: ( ( rule__ComponentInstance__NameAssignment_2 )? ) | ||
8025 | // InternalCftLanguage.g:2595:2: ( rule__ComponentInstance__NameAssignment_2 )? | ||
8026 | { | ||
8027 | before(grammarAccess.getComponentInstanceAccess().getNameAssignment_2()); | ||
8028 | // InternalCftLanguage.g:2596:2: ( rule__ComponentInstance__NameAssignment_2 )? | ||
8029 | int alt23=2; | ||
8030 | int LA23_0 = input.LA(1); | ||
8031 | |||
8032 | if ( (LA23_0==RULE_ID) ) { | ||
8033 | alt23=1; | ||
8034 | } | ||
8035 | switch (alt23) { | ||
8036 | case 1 : | ||
8037 | // InternalCftLanguage.g:2596:3: rule__ComponentInstance__NameAssignment_2 | ||
8038 | { | ||
8039 | pushFollow(FOLLOW_2); | ||
8040 | rule__ComponentInstance__NameAssignment_2(); | ||
8041 | |||
8042 | state._fsp--; | ||
8043 | |||
8044 | |||
8045 | } | ||
8046 | break; | ||
8047 | |||
8048 | } | ||
8049 | |||
8050 | after(grammarAccess.getComponentInstanceAccess().getNameAssignment_2()); | ||
8051 | |||
8052 | } | ||
8053 | |||
8054 | |||
8055 | } | ||
8056 | |||
8057 | } | ||
8058 | catch (RecognitionException re) { | ||
8059 | reportError(re); | ||
8060 | recover(input,re); | ||
8061 | } | ||
8062 | finally { | ||
8063 | |||
8064 | restoreStackSize(stackSize); | ||
8065 | |||
8066 | } | ||
8067 | return ; | ||
8068 | } | ||
8069 | // $ANTLR end "rule__ComponentInstance__Group__2__Impl" | ||
8070 | |||
8071 | |||
8072 | // $ANTLR start "rule__QualifiedName__Group__0" | ||
8073 | // InternalCftLanguage.g:2605:1: rule__QualifiedName__Group__0 : rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1 ; | ||
8074 | public final void rule__QualifiedName__Group__0() throws RecognitionException { | ||
8075 | |||
8076 | int stackSize = keepStackSize(); | ||
8077 | |||
8078 | try { | ||
8079 | // InternalCftLanguage.g:2609:1: ( rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1 ) | ||
8080 | // InternalCftLanguage.g:2610:2: rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1 | ||
8081 | { | ||
8082 | pushFollow(FOLLOW_31); | ||
8083 | rule__QualifiedName__Group__0__Impl(); | ||
8084 | |||
8085 | state._fsp--; | ||
8086 | |||
8087 | pushFollow(FOLLOW_2); | ||
8088 | rule__QualifiedName__Group__1(); | ||
8089 | |||
8090 | state._fsp--; | ||
8091 | |||
8092 | |||
8093 | } | ||
8094 | |||
8095 | } | ||
8096 | catch (RecognitionException re) { | ||
8097 | reportError(re); | ||
8098 | recover(input,re); | ||
8099 | } | ||
8100 | finally { | ||
8101 | |||
8102 | restoreStackSize(stackSize); | ||
8103 | |||
8104 | } | ||
8105 | return ; | ||
8106 | } | ||
8107 | // $ANTLR end "rule__QualifiedName__Group__0" | ||
8108 | |||
8109 | |||
8110 | // $ANTLR start "rule__QualifiedName__Group__0__Impl" | ||
8111 | // InternalCftLanguage.g:2617:1: rule__QualifiedName__Group__0__Impl : ( RULE_ID ) ; | ||
8112 | public final void rule__QualifiedName__Group__0__Impl() throws RecognitionException { | ||
8113 | |||
8114 | int stackSize = keepStackSize(); | ||
8115 | |||
8116 | try { | ||
8117 | // InternalCftLanguage.g:2621:1: ( ( RULE_ID ) ) | ||
8118 | // InternalCftLanguage.g:2622:1: ( RULE_ID ) | ||
8119 | { | ||
8120 | // InternalCftLanguage.g:2622:1: ( RULE_ID ) | ||
8121 | // InternalCftLanguage.g:2623:2: RULE_ID | ||
8122 | { | ||
8123 | before(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); | ||
8124 | match(input,RULE_ID,FOLLOW_2); | ||
8125 | after(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); | ||
8126 | |||
8127 | } | ||
8128 | |||
8129 | |||
8130 | } | ||
8131 | |||
8132 | } | ||
8133 | catch (RecognitionException re) { | ||
8134 | reportError(re); | ||
8135 | recover(input,re); | ||
8136 | } | ||
8137 | finally { | ||
8138 | |||
8139 | restoreStackSize(stackSize); | ||
8140 | |||
8141 | } | ||
8142 | return ; | ||
8143 | } | ||
8144 | // $ANTLR end "rule__QualifiedName__Group__0__Impl" | ||
8145 | |||
8146 | |||
8147 | // $ANTLR start "rule__QualifiedName__Group__1" | ||
8148 | // InternalCftLanguage.g:2632:1: rule__QualifiedName__Group__1 : rule__QualifiedName__Group__1__Impl ; | ||
8149 | public final void rule__QualifiedName__Group__1() throws RecognitionException { | ||
8150 | |||
8151 | int stackSize = keepStackSize(); | ||
8152 | |||
8153 | try { | ||
8154 | // InternalCftLanguage.g:2636:1: ( rule__QualifiedName__Group__1__Impl ) | ||
8155 | // InternalCftLanguage.g:2637:2: rule__QualifiedName__Group__1__Impl | ||
8156 | { | ||
8157 | pushFollow(FOLLOW_2); | ||
8158 | rule__QualifiedName__Group__1__Impl(); | ||
8159 | |||
8160 | state._fsp--; | ||
8161 | |||
8162 | |||
8163 | } | ||
8164 | |||
8165 | } | ||
8166 | catch (RecognitionException re) { | ||
8167 | reportError(re); | ||
8168 | recover(input,re); | ||
8169 | } | ||
8170 | finally { | ||
8171 | |||
8172 | restoreStackSize(stackSize); | ||
8173 | |||
8174 | } | ||
8175 | return ; | ||
8176 | } | ||
8177 | // $ANTLR end "rule__QualifiedName__Group__1" | ||
8178 | |||
8179 | |||
8180 | // $ANTLR start "rule__QualifiedName__Group__1__Impl" | ||
8181 | // InternalCftLanguage.g:2643:1: rule__QualifiedName__Group__1__Impl : ( ( rule__QualifiedName__Group_1__0 )* ) ; | ||
8182 | public final void rule__QualifiedName__Group__1__Impl() throws RecognitionException { | ||
8183 | |||
8184 | int stackSize = keepStackSize(); | ||
8185 | |||
8186 | try { | ||
8187 | // InternalCftLanguage.g:2647:1: ( ( ( rule__QualifiedName__Group_1__0 )* ) ) | ||
8188 | // InternalCftLanguage.g:2648:1: ( ( rule__QualifiedName__Group_1__0 )* ) | ||
8189 | { | ||
8190 | // InternalCftLanguage.g:2648:1: ( ( rule__QualifiedName__Group_1__0 )* ) | ||
8191 | // InternalCftLanguage.g:2649:2: ( rule__QualifiedName__Group_1__0 )* | ||
8192 | { | ||
8193 | before(grammarAccess.getQualifiedNameAccess().getGroup_1()); | ||
8194 | // InternalCftLanguage.g:2650:2: ( rule__QualifiedName__Group_1__0 )* | ||
8195 | loop24: | ||
8196 | do { | ||
8197 | int alt24=2; | ||
8198 | int LA24_0 = input.LA(1); | ||
8199 | |||
8200 | if ( (LA24_0==32) ) { | ||
8201 | int LA24_2 = input.LA(2); | ||
8202 | |||
8203 | if ( (LA24_2==RULE_ID) ) { | ||
8204 | alt24=1; | ||
8205 | } | ||
8206 | |||
8207 | |||
8208 | } | ||
8209 | |||
8210 | |||
8211 | switch (alt24) { | ||
8212 | case 1 : | ||
8213 | // InternalCftLanguage.g:2650:3: rule__QualifiedName__Group_1__0 | ||
8214 | { | ||
8215 | pushFollow(FOLLOW_32); | ||
8216 | rule__QualifiedName__Group_1__0(); | ||
8217 | |||
8218 | state._fsp--; | ||
8219 | |||
8220 | |||
8221 | } | ||
8222 | break; | ||
8223 | |||
8224 | default : | ||
8225 | break loop24; | ||
8226 | } | ||
8227 | } while (true); | ||
8228 | |||
8229 | after(grammarAccess.getQualifiedNameAccess().getGroup_1()); | ||
8230 | |||
8231 | } | ||
8232 | |||
8233 | |||
8234 | } | ||
8235 | |||
8236 | } | ||
8237 | catch (RecognitionException re) { | ||
8238 | reportError(re); | ||
8239 | recover(input,re); | ||
8240 | } | ||
8241 | finally { | ||
8242 | |||
8243 | restoreStackSize(stackSize); | ||
8244 | |||
8245 | } | ||
8246 | return ; | ||
8247 | } | ||
8248 | // $ANTLR end "rule__QualifiedName__Group__1__Impl" | ||
8249 | |||
8250 | |||
8251 | // $ANTLR start "rule__QualifiedName__Group_1__0" | ||
8252 | // InternalCftLanguage.g:2659:1: rule__QualifiedName__Group_1__0 : rule__QualifiedName__Group_1__0__Impl rule__QualifiedName__Group_1__1 ; | ||
8253 | public final void rule__QualifiedName__Group_1__0() throws RecognitionException { | ||
8254 | |||
8255 | int stackSize = keepStackSize(); | ||
8256 | |||
8257 | try { | ||
8258 | // InternalCftLanguage.g:2663:1: ( rule__QualifiedName__Group_1__0__Impl rule__QualifiedName__Group_1__1 ) | ||
8259 | // InternalCftLanguage.g:2664:2: rule__QualifiedName__Group_1__0__Impl rule__QualifiedName__Group_1__1 | ||
8260 | { | ||
8261 | pushFollow(FOLLOW_3); | ||
8262 | rule__QualifiedName__Group_1__0__Impl(); | ||
8263 | |||
8264 | state._fsp--; | ||
8265 | |||
8266 | pushFollow(FOLLOW_2); | ||
8267 | rule__QualifiedName__Group_1__1(); | ||
8268 | |||
8269 | state._fsp--; | ||
8270 | |||
8271 | |||
8272 | } | ||
8273 | |||
8274 | } | ||
8275 | catch (RecognitionException re) { | ||
8276 | reportError(re); | ||
8277 | recover(input,re); | ||
8278 | } | ||
8279 | finally { | ||
8280 | |||
8281 | restoreStackSize(stackSize); | ||
8282 | |||
8283 | } | ||
8284 | return ; | ||
8285 | } | ||
8286 | // $ANTLR end "rule__QualifiedName__Group_1__0" | ||
8287 | |||
8288 | |||
8289 | // $ANTLR start "rule__QualifiedName__Group_1__0__Impl" | ||
8290 | // InternalCftLanguage.g:2671:1: rule__QualifiedName__Group_1__0__Impl : ( '.' ) ; | ||
8291 | public final void rule__QualifiedName__Group_1__0__Impl() throws RecognitionException { | ||
8292 | |||
8293 | int stackSize = keepStackSize(); | ||
8294 | |||
8295 | try { | ||
8296 | // InternalCftLanguage.g:2675:1: ( ( '.' ) ) | ||
8297 | // InternalCftLanguage.g:2676:1: ( '.' ) | ||
8298 | { | ||
8299 | // InternalCftLanguage.g:2676:1: ( '.' ) | ||
8300 | // InternalCftLanguage.g:2677:2: '.' | ||
8301 | { | ||
8302 | before(grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); | ||
8303 | match(input,32,FOLLOW_2); | ||
8304 | after(grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); | ||
8305 | |||
8306 | } | ||
8307 | |||
8308 | |||
8309 | } | ||
8310 | |||
8311 | } | ||
8312 | catch (RecognitionException re) { | ||
8313 | reportError(re); | ||
8314 | recover(input,re); | ||
8315 | } | ||
8316 | finally { | ||
8317 | |||
8318 | restoreStackSize(stackSize); | ||
8319 | |||
8320 | } | ||
8321 | return ; | ||
8322 | } | ||
8323 | // $ANTLR end "rule__QualifiedName__Group_1__0__Impl" | ||
8324 | |||
8325 | |||
8326 | // $ANTLR start "rule__QualifiedName__Group_1__1" | ||
8327 | // InternalCftLanguage.g:2686:1: rule__QualifiedName__Group_1__1 : rule__QualifiedName__Group_1__1__Impl ; | ||
8328 | public final void rule__QualifiedName__Group_1__1() throws RecognitionException { | ||
8329 | |||
8330 | int stackSize = keepStackSize(); | ||
8331 | |||
8332 | try { | ||
8333 | // InternalCftLanguage.g:2690:1: ( rule__QualifiedName__Group_1__1__Impl ) | ||
8334 | // InternalCftLanguage.g:2691:2: rule__QualifiedName__Group_1__1__Impl | ||
8335 | { | ||
8336 | pushFollow(FOLLOW_2); | ||
8337 | rule__QualifiedName__Group_1__1__Impl(); | ||
8338 | |||
8339 | state._fsp--; | ||
8340 | |||
8341 | |||
8342 | } | ||
8343 | |||
8344 | } | ||
8345 | catch (RecognitionException re) { | ||
8346 | reportError(re); | ||
8347 | recover(input,re); | ||
8348 | } | ||
8349 | finally { | ||
8350 | |||
8351 | restoreStackSize(stackSize); | ||
8352 | |||
8353 | } | ||
8354 | return ; | ||
8355 | } | ||
8356 | // $ANTLR end "rule__QualifiedName__Group_1__1" | ||
8357 | |||
8358 | |||
8359 | // $ANTLR start "rule__QualifiedName__Group_1__1__Impl" | ||
8360 | // InternalCftLanguage.g:2697:1: rule__QualifiedName__Group_1__1__Impl : ( RULE_ID ) ; | ||
8361 | public final void rule__QualifiedName__Group_1__1__Impl() throws RecognitionException { | ||
8362 | |||
8363 | int stackSize = keepStackSize(); | ||
8364 | |||
8365 | try { | ||
8366 | // InternalCftLanguage.g:2701:1: ( ( RULE_ID ) ) | ||
8367 | // InternalCftLanguage.g:2702:1: ( RULE_ID ) | ||
8368 | { | ||
8369 | // InternalCftLanguage.g:2702:1: ( RULE_ID ) | ||
8370 | // InternalCftLanguage.g:2703:2: RULE_ID | ||
8371 | { | ||
8372 | before(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); | ||
8373 | match(input,RULE_ID,FOLLOW_2); | ||
8374 | after(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); | ||
8375 | |||
8376 | } | ||
8377 | |||
8378 | |||
8379 | } | ||
8380 | |||
8381 | } | ||
8382 | catch (RecognitionException re) { | ||
8383 | reportError(re); | ||
8384 | recover(input,re); | ||
8385 | } | ||
8386 | finally { | ||
8387 | |||
8388 | restoreStackSize(stackSize); | ||
8389 | |||
8390 | } | ||
8391 | return ; | ||
8392 | } | ||
8393 | // $ANTLR end "rule__QualifiedName__Group_1__1__Impl" | ||
8394 | |||
8395 | |||
8396 | // $ANTLR start "rule__QualifiedNameWithWildcard__Group__0" | ||
8397 | // InternalCftLanguage.g:2713:1: rule__QualifiedNameWithWildcard__Group__0 : rule__QualifiedNameWithWildcard__Group__0__Impl rule__QualifiedNameWithWildcard__Group__1 ; | ||
8398 | public final void rule__QualifiedNameWithWildcard__Group__0() throws RecognitionException { | ||
8399 | |||
8400 | int stackSize = keepStackSize(); | ||
8401 | |||
8402 | try { | ||
8403 | // InternalCftLanguage.g:2717:1: ( rule__QualifiedNameWithWildcard__Group__0__Impl rule__QualifiedNameWithWildcard__Group__1 ) | ||
8404 | // InternalCftLanguage.g:2718:2: rule__QualifiedNameWithWildcard__Group__0__Impl rule__QualifiedNameWithWildcard__Group__1 | ||
8405 | { | ||
8406 | pushFollow(FOLLOW_31); | ||
8407 | rule__QualifiedNameWithWildcard__Group__0__Impl(); | ||
8408 | |||
8409 | state._fsp--; | ||
8410 | |||
8411 | pushFollow(FOLLOW_2); | ||
8412 | rule__QualifiedNameWithWildcard__Group__1(); | ||
8413 | |||
8414 | state._fsp--; | ||
8415 | |||
8416 | |||
8417 | } | ||
8418 | |||
8419 | } | ||
8420 | catch (RecognitionException re) { | ||
8421 | reportError(re); | ||
8422 | recover(input,re); | ||
8423 | } | ||
8424 | finally { | ||
8425 | |||
8426 | restoreStackSize(stackSize); | ||
8427 | |||
8428 | } | ||
8429 | return ; | ||
8430 | } | ||
8431 | // $ANTLR end "rule__QualifiedNameWithWildcard__Group__0" | ||
8432 | |||
8433 | |||
8434 | // $ANTLR start "rule__QualifiedNameWithWildcard__Group__0__Impl" | ||
8435 | // InternalCftLanguage.g:2725:1: rule__QualifiedNameWithWildcard__Group__0__Impl : ( ruleQualifiedName ) ; | ||
8436 | public final void rule__QualifiedNameWithWildcard__Group__0__Impl() throws RecognitionException { | ||
8437 | |||
8438 | int stackSize = keepStackSize(); | ||
8439 | |||
8440 | try { | ||
8441 | // InternalCftLanguage.g:2729:1: ( ( ruleQualifiedName ) ) | ||
8442 | // InternalCftLanguage.g:2730:1: ( ruleQualifiedName ) | ||
8443 | { | ||
8444 | // InternalCftLanguage.g:2730:1: ( ruleQualifiedName ) | ||
8445 | // InternalCftLanguage.g:2731:2: ruleQualifiedName | ||
8446 | { | ||
8447 | before(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); | ||
8448 | pushFollow(FOLLOW_2); | ||
8449 | ruleQualifiedName(); | ||
8450 | |||
8451 | state._fsp--; | ||
8452 | |||
8453 | after(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); | ||
8454 | |||
8455 | } | ||
8456 | |||
8457 | |||
8458 | } | ||
8459 | |||
8460 | } | ||
8461 | catch (RecognitionException re) { | ||
8462 | reportError(re); | ||
8463 | recover(input,re); | ||
8464 | } | ||
8465 | finally { | ||
8466 | |||
8467 | restoreStackSize(stackSize); | ||
8468 | |||
8469 | } | ||
8470 | return ; | ||
8471 | } | ||
8472 | // $ANTLR end "rule__QualifiedNameWithWildcard__Group__0__Impl" | ||
8473 | |||
8474 | |||
8475 | // $ANTLR start "rule__QualifiedNameWithWildcard__Group__1" | ||
8476 | // InternalCftLanguage.g:2740:1: rule__QualifiedNameWithWildcard__Group__1 : rule__QualifiedNameWithWildcard__Group__1__Impl ; | ||
8477 | public final void rule__QualifiedNameWithWildcard__Group__1() throws RecognitionException { | ||
8478 | |||
8479 | int stackSize = keepStackSize(); | ||
8480 | |||
8481 | try { | ||
8482 | // InternalCftLanguage.g:2744:1: ( rule__QualifiedNameWithWildcard__Group__1__Impl ) | ||
8483 | // InternalCftLanguage.g:2745:2: rule__QualifiedNameWithWildcard__Group__1__Impl | ||
8484 | { | ||
8485 | pushFollow(FOLLOW_2); | ||
8486 | rule__QualifiedNameWithWildcard__Group__1__Impl(); | ||
8487 | |||
8488 | state._fsp--; | ||
8489 | |||
8490 | |||
8491 | } | ||
8492 | |||
8493 | } | ||
8494 | catch (RecognitionException re) { | ||
8495 | reportError(re); | ||
8496 | recover(input,re); | ||
8497 | } | ||
8498 | finally { | ||
8499 | |||
8500 | restoreStackSize(stackSize); | ||
8501 | |||
8502 | } | ||
8503 | return ; | ||
8504 | } | ||
8505 | // $ANTLR end "rule__QualifiedNameWithWildcard__Group__1" | ||
8506 | |||
8507 | |||
8508 | // $ANTLR start "rule__QualifiedNameWithWildcard__Group__1__Impl" | ||
8509 | // InternalCftLanguage.g:2751:1: rule__QualifiedNameWithWildcard__Group__1__Impl : ( ( rule__QualifiedNameWithWildcard__Group_1__0 )? ) ; | ||
8510 | public final void rule__QualifiedNameWithWildcard__Group__1__Impl() throws RecognitionException { | ||
8511 | |||
8512 | int stackSize = keepStackSize(); | ||
8513 | |||
8514 | try { | ||
8515 | // InternalCftLanguage.g:2755:1: ( ( ( rule__QualifiedNameWithWildcard__Group_1__0 )? ) ) | ||
8516 | // InternalCftLanguage.g:2756:1: ( ( rule__QualifiedNameWithWildcard__Group_1__0 )? ) | ||
8517 | { | ||
8518 | // InternalCftLanguage.g:2756:1: ( ( rule__QualifiedNameWithWildcard__Group_1__0 )? ) | ||
8519 | // InternalCftLanguage.g:2757:2: ( rule__QualifiedNameWithWildcard__Group_1__0 )? | ||
8520 | { | ||
8521 | before(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup_1()); | ||
8522 | // InternalCftLanguage.g:2758:2: ( rule__QualifiedNameWithWildcard__Group_1__0 )? | ||
8523 | int alt25=2; | ||
8524 | int LA25_0 = input.LA(1); | ||
8525 | |||
8526 | if ( (LA25_0==32) ) { | ||
8527 | alt25=1; | ||
8528 | } | ||
8529 | switch (alt25) { | ||
8530 | case 1 : | ||
8531 | // InternalCftLanguage.g:2758:3: rule__QualifiedNameWithWildcard__Group_1__0 | ||
8532 | { | ||
8533 | pushFollow(FOLLOW_2); | ||
8534 | rule__QualifiedNameWithWildcard__Group_1__0(); | ||
8535 | |||
8536 | state._fsp--; | ||
8537 | |||
8538 | |||
8539 | } | ||
8540 | break; | ||
8541 | |||
8542 | } | ||
8543 | |||
8544 | after(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup_1()); | ||
8545 | |||
8546 | } | ||
8547 | |||
8548 | |||
8549 | } | ||
8550 | |||
8551 | } | ||
8552 | catch (RecognitionException re) { | ||
8553 | reportError(re); | ||
8554 | recover(input,re); | ||
8555 | } | ||
8556 | finally { | ||
8557 | |||
8558 | restoreStackSize(stackSize); | ||
8559 | |||
8560 | } | ||
8561 | return ; | ||
8562 | } | ||
8563 | // $ANTLR end "rule__QualifiedNameWithWildcard__Group__1__Impl" | ||
8564 | |||
8565 | |||
8566 | // $ANTLR start "rule__QualifiedNameWithWildcard__Group_1__0" | ||
8567 | // InternalCftLanguage.g:2767:1: rule__QualifiedNameWithWildcard__Group_1__0 : rule__QualifiedNameWithWildcard__Group_1__0__Impl rule__QualifiedNameWithWildcard__Group_1__1 ; | ||
8568 | public final void rule__QualifiedNameWithWildcard__Group_1__0() throws RecognitionException { | ||
8569 | |||
8570 | int stackSize = keepStackSize(); | ||
8571 | |||
8572 | try { | ||
8573 | // InternalCftLanguage.g:2771:1: ( rule__QualifiedNameWithWildcard__Group_1__0__Impl rule__QualifiedNameWithWildcard__Group_1__1 ) | ||
8574 | // InternalCftLanguage.g:2772:2: rule__QualifiedNameWithWildcard__Group_1__0__Impl rule__QualifiedNameWithWildcard__Group_1__1 | ||
8575 | { | ||
8576 | pushFollow(FOLLOW_33); | ||
8577 | rule__QualifiedNameWithWildcard__Group_1__0__Impl(); | ||
8578 | |||
8579 | state._fsp--; | ||
8580 | |||
8581 | pushFollow(FOLLOW_2); | ||
8582 | rule__QualifiedNameWithWildcard__Group_1__1(); | ||
8583 | |||
8584 | state._fsp--; | ||
8585 | |||
8586 | |||
8587 | } | ||
8588 | |||
8589 | } | ||
8590 | catch (RecognitionException re) { | ||
8591 | reportError(re); | ||
8592 | recover(input,re); | ||
8593 | } | ||
8594 | finally { | ||
8595 | |||
8596 | restoreStackSize(stackSize); | ||
8597 | |||
8598 | } | ||
8599 | return ; | ||
8600 | } | ||
8601 | // $ANTLR end "rule__QualifiedNameWithWildcard__Group_1__0" | ||
8602 | |||
8603 | |||
8604 | // $ANTLR start "rule__QualifiedNameWithWildcard__Group_1__0__Impl" | ||
8605 | // InternalCftLanguage.g:2779:1: rule__QualifiedNameWithWildcard__Group_1__0__Impl : ( '.' ) ; | ||
8606 | public final void rule__QualifiedNameWithWildcard__Group_1__0__Impl() throws RecognitionException { | ||
8607 | |||
8608 | int stackSize = keepStackSize(); | ||
8609 | |||
8610 | try { | ||
8611 | // InternalCftLanguage.g:2783:1: ( ( '.' ) ) | ||
8612 | // InternalCftLanguage.g:2784:1: ( '.' ) | ||
8613 | { | ||
8614 | // InternalCftLanguage.g:2784:1: ( '.' ) | ||
8615 | // InternalCftLanguage.g:2785:2: '.' | ||
8616 | { | ||
8617 | before(grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1_0()); | ||
8618 | match(input,32,FOLLOW_2); | ||
8619 | after(grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1_0()); | ||
8620 | |||
8621 | } | ||
8622 | |||
8623 | |||
8624 | } | ||
8625 | |||
8626 | } | ||
8627 | catch (RecognitionException re) { | ||
8628 | reportError(re); | ||
8629 | recover(input,re); | ||
8630 | } | ||
8631 | finally { | ||
8632 | |||
8633 | restoreStackSize(stackSize); | ||
8634 | |||
8635 | } | ||
8636 | return ; | ||
8637 | } | ||
8638 | // $ANTLR end "rule__QualifiedNameWithWildcard__Group_1__0__Impl" | ||
8639 | |||
8640 | |||
8641 | // $ANTLR start "rule__QualifiedNameWithWildcard__Group_1__1" | ||
8642 | // InternalCftLanguage.g:2794:1: rule__QualifiedNameWithWildcard__Group_1__1 : rule__QualifiedNameWithWildcard__Group_1__1__Impl ; | ||
8643 | public final void rule__QualifiedNameWithWildcard__Group_1__1() throws RecognitionException { | ||
8644 | |||
8645 | int stackSize = keepStackSize(); | ||
8646 | |||
8647 | try { | ||
8648 | // InternalCftLanguage.g:2798:1: ( rule__QualifiedNameWithWildcard__Group_1__1__Impl ) | ||
8649 | // InternalCftLanguage.g:2799:2: rule__QualifiedNameWithWildcard__Group_1__1__Impl | ||
8650 | { | ||
8651 | pushFollow(FOLLOW_2); | ||
8652 | rule__QualifiedNameWithWildcard__Group_1__1__Impl(); | ||
8653 | |||
8654 | state._fsp--; | ||
8655 | |||
8656 | |||
8657 | } | ||
8658 | |||
8659 | } | ||
8660 | catch (RecognitionException re) { | ||
8661 | reportError(re); | ||
8662 | recover(input,re); | ||
8663 | } | ||
8664 | finally { | ||
8665 | |||
8666 | restoreStackSize(stackSize); | ||
8667 | |||
8668 | } | ||
8669 | return ; | ||
8670 | } | ||
8671 | // $ANTLR end "rule__QualifiedNameWithWildcard__Group_1__1" | ||
8672 | |||
8673 | |||
8674 | // $ANTLR start "rule__QualifiedNameWithWildcard__Group_1__1__Impl" | ||
8675 | // InternalCftLanguage.g:2805:1: rule__QualifiedNameWithWildcard__Group_1__1__Impl : ( '*' ) ; | ||
8676 | public final void rule__QualifiedNameWithWildcard__Group_1__1__Impl() throws RecognitionException { | ||
8677 | |||
8678 | int stackSize = keepStackSize(); | ||
8679 | |||
8680 | try { | ||
8681 | // InternalCftLanguage.g:2809:1: ( ( '*' ) ) | ||
8682 | // InternalCftLanguage.g:2810:1: ( '*' ) | ||
8683 | { | ||
8684 | // InternalCftLanguage.g:2810:1: ( '*' ) | ||
8685 | // InternalCftLanguage.g:2811:2: '*' | ||
8686 | { | ||
8687 | before(grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_1_1()); | ||
8688 | match(input,34,FOLLOW_2); | ||
8689 | after(grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_1_1()); | ||
8690 | |||
8691 | } | ||
8692 | |||
8693 | |||
8694 | } | ||
8695 | |||
8696 | } | ||
8697 | catch (RecognitionException re) { | ||
8698 | reportError(re); | ||
8699 | recover(input,re); | ||
8700 | } | ||
8701 | finally { | ||
8702 | |||
8703 | restoreStackSize(stackSize); | ||
8704 | |||
8705 | } | ||
8706 | return ; | ||
8707 | } | ||
8708 | // $ANTLR end "rule__QualifiedNameWithWildcard__Group_1__1__Impl" | ||
8709 | |||
8710 | |||
8711 | // $ANTLR start "rule__ComponentDefinition__UnorderedGroup_3" | ||
8712 | // InternalCftLanguage.g:2821:1: rule__ComponentDefinition__UnorderedGroup_3 : ( rule__ComponentDefinition__UnorderedGroup_3__0 )? ; | ||
8713 | public final void rule__ComponentDefinition__UnorderedGroup_3() throws RecognitionException { | ||
8714 | |||
8715 | int stackSize = keepStackSize(); | ||
8716 | getUnorderedGroupHelper().enter(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
8717 | |||
8718 | try { | ||
8719 | // InternalCftLanguage.g:2826:1: ( ( rule__ComponentDefinition__UnorderedGroup_3__0 )? ) | ||
8720 | // InternalCftLanguage.g:2827:2: ( rule__ComponentDefinition__UnorderedGroup_3__0 )? | ||
8721 | { | ||
8722 | // InternalCftLanguage.g:2827:2: ( rule__ComponentDefinition__UnorderedGroup_3__0 )? | ||
8723 | int alt26=2; | ||
8724 | int LA26_0 = input.LA(1); | ||
8725 | |||
8726 | if ( LA26_0 == 19 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0) ) { | ||
8727 | alt26=1; | ||
8728 | } | ||
8729 | else if ( LA26_0 == 20 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1) ) { | ||
8730 | alt26=1; | ||
8731 | } | ||
8732 | switch (alt26) { | ||
8733 | case 1 : | ||
8734 | // InternalCftLanguage.g:2827:2: rule__ComponentDefinition__UnorderedGroup_3__0 | ||
8735 | { | ||
8736 | pushFollow(FOLLOW_2); | ||
8737 | rule__ComponentDefinition__UnorderedGroup_3__0(); | ||
8738 | |||
8739 | state._fsp--; | ||
8740 | |||
8741 | |||
8742 | } | ||
8743 | break; | ||
8744 | |||
8745 | } | ||
8746 | |||
8747 | |||
8748 | } | ||
8749 | |||
8750 | } | ||
8751 | catch (RecognitionException re) { | ||
8752 | reportError(re); | ||
8753 | recover(input,re); | ||
8754 | } | ||
8755 | finally { | ||
8756 | |||
8757 | getUnorderedGroupHelper().leave(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
8758 | restoreStackSize(stackSize); | ||
8759 | |||
8760 | } | ||
8761 | return ; | ||
8762 | } | ||
8763 | // $ANTLR end "rule__ComponentDefinition__UnorderedGroup_3" | ||
8764 | |||
8765 | |||
8766 | // $ANTLR start "rule__ComponentDefinition__UnorderedGroup_3__Impl" | ||
8767 | // InternalCftLanguage.g:2835:1: rule__ComponentDefinition__UnorderedGroup_3__Impl : ( ({...}? => ( ( ( rule__ComponentDefinition__Group_3_0__0 ) ) ) ) | ({...}? => ( ( ( rule__ComponentDefinition__Group_3_1__0 ) ) ) ) ) ; | ||
8768 | public final void rule__ComponentDefinition__UnorderedGroup_3__Impl() throws RecognitionException { | ||
8769 | |||
8770 | int stackSize = keepStackSize(); | ||
8771 | boolean selected = false; | ||
8772 | |||
8773 | try { | ||
8774 | // InternalCftLanguage.g:2840:1: ( ( ({...}? => ( ( ( rule__ComponentDefinition__Group_3_0__0 ) ) ) ) | ({...}? => ( ( ( rule__ComponentDefinition__Group_3_1__0 ) ) ) ) ) ) | ||
8775 | // InternalCftLanguage.g:2841:3: ( ({...}? => ( ( ( rule__ComponentDefinition__Group_3_0__0 ) ) ) ) | ({...}? => ( ( ( rule__ComponentDefinition__Group_3_1__0 ) ) ) ) ) | ||
8776 | { | ||
8777 | // InternalCftLanguage.g:2841:3: ( ({...}? => ( ( ( rule__ComponentDefinition__Group_3_0__0 ) ) ) ) | ({...}? => ( ( ( rule__ComponentDefinition__Group_3_1__0 ) ) ) ) ) | ||
8778 | int alt27=2; | ||
8779 | int LA27_0 = input.LA(1); | ||
8780 | |||
8781 | if ( LA27_0 == 19 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0) ) { | ||
8782 | alt27=1; | ||
8783 | } | ||
8784 | else if ( LA27_0 == 20 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1) ) { | ||
8785 | alt27=2; | ||
8786 | } | ||
8787 | else { | ||
8788 | NoViableAltException nvae = | ||
8789 | new NoViableAltException("", 27, 0, input); | ||
8790 | |||
8791 | throw nvae; | ||
8792 | } | ||
8793 | switch (alt27) { | ||
8794 | case 1 : | ||
8795 | // InternalCftLanguage.g:2842:3: ({...}? => ( ( ( rule__ComponentDefinition__Group_3_0__0 ) ) ) ) | ||
8796 | { | ||
8797 | // InternalCftLanguage.g:2842:3: ({...}? => ( ( ( rule__ComponentDefinition__Group_3_0__0 ) ) ) ) | ||
8798 | // InternalCftLanguage.g:2843:4: {...}? => ( ( ( rule__ComponentDefinition__Group_3_0__0 ) ) ) | ||
8799 | { | ||
8800 | if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0) ) { | ||
8801 | throw new FailedPredicateException(input, "rule__ComponentDefinition__UnorderedGroup_3__Impl", "getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0)"); | ||
8802 | } | ||
8803 | // InternalCftLanguage.g:2843:115: ( ( ( rule__ComponentDefinition__Group_3_0__0 ) ) ) | ||
8804 | // InternalCftLanguage.g:2844:5: ( ( rule__ComponentDefinition__Group_3_0__0 ) ) | ||
8805 | { | ||
8806 | |||
8807 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0); | ||
8808 | |||
8809 | |||
8810 | selected = true; | ||
8811 | |||
8812 | // InternalCftLanguage.g:2850:5: ( ( rule__ComponentDefinition__Group_3_0__0 ) ) | ||
8813 | // InternalCftLanguage.g:2851:6: ( rule__ComponentDefinition__Group_3_0__0 ) | ||
8814 | { | ||
8815 | before(grammarAccess.getComponentDefinitionAccess().getGroup_3_0()); | ||
8816 | // InternalCftLanguage.g:2852:6: ( rule__ComponentDefinition__Group_3_0__0 ) | ||
8817 | // InternalCftLanguage.g:2852:7: rule__ComponentDefinition__Group_3_0__0 | ||
8818 | { | ||
8819 | pushFollow(FOLLOW_2); | ||
8820 | rule__ComponentDefinition__Group_3_0__0(); | ||
8821 | |||
8822 | state._fsp--; | ||
8823 | |||
8824 | |||
8825 | } | ||
8826 | |||
8827 | after(grammarAccess.getComponentDefinitionAccess().getGroup_3_0()); | ||
8828 | |||
8829 | } | ||
8830 | |||
8831 | |||
8832 | } | ||
8833 | |||
8834 | |||
8835 | } | ||
8836 | |||
8837 | |||
8838 | } | ||
8839 | break; | ||
8840 | case 2 : | ||
8841 | // InternalCftLanguage.g:2857:3: ({...}? => ( ( ( rule__ComponentDefinition__Group_3_1__0 ) ) ) ) | ||
8842 | { | ||
8843 | // InternalCftLanguage.g:2857:3: ({...}? => ( ( ( rule__ComponentDefinition__Group_3_1__0 ) ) ) ) | ||
8844 | // InternalCftLanguage.g:2858:4: {...}? => ( ( ( rule__ComponentDefinition__Group_3_1__0 ) ) ) | ||
8845 | { | ||
8846 | if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1) ) { | ||
8847 | throw new FailedPredicateException(input, "rule__ComponentDefinition__UnorderedGroup_3__Impl", "getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1)"); | ||
8848 | } | ||
8849 | // InternalCftLanguage.g:2858:115: ( ( ( rule__ComponentDefinition__Group_3_1__0 ) ) ) | ||
8850 | // InternalCftLanguage.g:2859:5: ( ( rule__ComponentDefinition__Group_3_1__0 ) ) | ||
8851 | { | ||
8852 | |||
8853 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1); | ||
8854 | |||
8855 | |||
8856 | selected = true; | ||
8857 | |||
8858 | // InternalCftLanguage.g:2865:5: ( ( rule__ComponentDefinition__Group_3_1__0 ) ) | ||
8859 | // InternalCftLanguage.g:2866:6: ( rule__ComponentDefinition__Group_3_1__0 ) | ||
8860 | { | ||
8861 | before(grammarAccess.getComponentDefinitionAccess().getGroup_3_1()); | ||
8862 | // InternalCftLanguage.g:2867:6: ( rule__ComponentDefinition__Group_3_1__0 ) | ||
8863 | // InternalCftLanguage.g:2867:7: rule__ComponentDefinition__Group_3_1__0 | ||
8864 | { | ||
8865 | pushFollow(FOLLOW_2); | ||
8866 | rule__ComponentDefinition__Group_3_1__0(); | ||
8867 | |||
8868 | state._fsp--; | ||
8869 | |||
8870 | |||
8871 | } | ||
8872 | |||
8873 | after(grammarAccess.getComponentDefinitionAccess().getGroup_3_1()); | ||
8874 | |||
8875 | } | ||
8876 | |||
8877 | |||
8878 | } | ||
8879 | |||
8880 | |||
8881 | } | ||
8882 | |||
8883 | |||
8884 | } | ||
8885 | break; | ||
8886 | |||
8887 | } | ||
8888 | |||
8889 | |||
8890 | } | ||
8891 | |||
8892 | } | ||
8893 | catch (RecognitionException re) { | ||
8894 | reportError(re); | ||
8895 | recover(input,re); | ||
8896 | } | ||
8897 | finally { | ||
8898 | |||
8899 | if (selected) | ||
8900 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
8901 | restoreStackSize(stackSize); | ||
8902 | |||
8903 | } | ||
8904 | return ; | ||
8905 | } | ||
8906 | // $ANTLR end "rule__ComponentDefinition__UnorderedGroup_3__Impl" | ||
8907 | |||
8908 | |||
8909 | // $ANTLR start "rule__ComponentDefinition__UnorderedGroup_3__0" | ||
8910 | // InternalCftLanguage.g:2880:1: rule__ComponentDefinition__UnorderedGroup_3__0 : rule__ComponentDefinition__UnorderedGroup_3__Impl ( rule__ComponentDefinition__UnorderedGroup_3__1 )? ; | ||
8911 | public final void rule__ComponentDefinition__UnorderedGroup_3__0() throws RecognitionException { | ||
8912 | |||
8913 | int stackSize = keepStackSize(); | ||
8914 | |||
8915 | try { | ||
8916 | // InternalCftLanguage.g:2884:1: ( rule__ComponentDefinition__UnorderedGroup_3__Impl ( rule__ComponentDefinition__UnorderedGroup_3__1 )? ) | ||
8917 | // InternalCftLanguage.g:2885:2: rule__ComponentDefinition__UnorderedGroup_3__Impl ( rule__ComponentDefinition__UnorderedGroup_3__1 )? | ||
8918 | { | ||
8919 | pushFollow(FOLLOW_34); | ||
8920 | rule__ComponentDefinition__UnorderedGroup_3__Impl(); | ||
8921 | |||
8922 | state._fsp--; | ||
8923 | |||
8924 | // InternalCftLanguage.g:2886:2: ( rule__ComponentDefinition__UnorderedGroup_3__1 )? | ||
8925 | int alt28=2; | ||
8926 | int LA28_0 = input.LA(1); | ||
8927 | |||
8928 | if ( LA28_0 == 19 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0) ) { | ||
8929 | alt28=1; | ||
8930 | } | ||
8931 | else if ( LA28_0 == 20 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1) ) { | ||
8932 | alt28=1; | ||
8933 | } | ||
8934 | switch (alt28) { | ||
8935 | case 1 : | ||
8936 | // InternalCftLanguage.g:2886:2: rule__ComponentDefinition__UnorderedGroup_3__1 | ||
8937 | { | ||
8938 | pushFollow(FOLLOW_2); | ||
8939 | rule__ComponentDefinition__UnorderedGroup_3__1(); | ||
8940 | |||
8941 | state._fsp--; | ||
8942 | |||
8943 | |||
8944 | } | ||
8945 | break; | ||
8946 | |||
8947 | } | ||
8948 | |||
8949 | |||
8950 | } | ||
8951 | |||
8952 | } | ||
8953 | catch (RecognitionException re) { | ||
8954 | reportError(re); | ||
8955 | recover(input,re); | ||
8956 | } | ||
8957 | finally { | ||
8958 | |||
8959 | restoreStackSize(stackSize); | ||
8960 | |||
8961 | } | ||
8962 | return ; | ||
8963 | } | ||
8964 | // $ANTLR end "rule__ComponentDefinition__UnorderedGroup_3__0" | ||
8965 | |||
8966 | |||
8967 | // $ANTLR start "rule__ComponentDefinition__UnorderedGroup_3__1" | ||
8968 | // InternalCftLanguage.g:2892:1: rule__ComponentDefinition__UnorderedGroup_3__1 : rule__ComponentDefinition__UnorderedGroup_3__Impl ; | ||
8969 | public final void rule__ComponentDefinition__UnorderedGroup_3__1() throws RecognitionException { | ||
8970 | |||
8971 | int stackSize = keepStackSize(); | ||
8972 | |||
8973 | try { | ||
8974 | // InternalCftLanguage.g:2896:1: ( rule__ComponentDefinition__UnorderedGroup_3__Impl ) | ||
8975 | // InternalCftLanguage.g:2897:2: rule__ComponentDefinition__UnorderedGroup_3__Impl | ||
8976 | { | ||
8977 | pushFollow(FOLLOW_2); | ||
8978 | rule__ComponentDefinition__UnorderedGroup_3__Impl(); | ||
8979 | |||
8980 | state._fsp--; | ||
8981 | |||
8982 | |||
8983 | } | ||
8984 | |||
8985 | } | ||
8986 | catch (RecognitionException re) { | ||
8987 | reportError(re); | ||
8988 | recover(input,re); | ||
8989 | } | ||
8990 | finally { | ||
8991 | |||
8992 | restoreStackSize(stackSize); | ||
8993 | |||
8994 | } | ||
8995 | return ; | ||
8996 | } | ||
8997 | // $ANTLR end "rule__ComponentDefinition__UnorderedGroup_3__1" | ||
8998 | |||
8999 | |||
9000 | // $ANTLR start "rule__CftModel__PackageNameAssignment_1" | ||
9001 | // InternalCftLanguage.g:2904:1: rule__CftModel__PackageNameAssignment_1 : ( ruleQualifiedName ) ; | ||
9002 | public final void rule__CftModel__PackageNameAssignment_1() throws RecognitionException { | ||
9003 | |||
9004 | int stackSize = keepStackSize(); | ||
9005 | |||
9006 | try { | ||
9007 | // InternalCftLanguage.g:2908:1: ( ( ruleQualifiedName ) ) | ||
9008 | // InternalCftLanguage.g:2909:2: ( ruleQualifiedName ) | ||
9009 | { | ||
9010 | // InternalCftLanguage.g:2909:2: ( ruleQualifiedName ) | ||
9011 | // InternalCftLanguage.g:2910:3: ruleQualifiedName | ||
9012 | { | ||
9013 | before(grammarAccess.getCftModelAccess().getPackageNameQualifiedNameParserRuleCall_1_0()); | ||
9014 | pushFollow(FOLLOW_2); | ||
9015 | ruleQualifiedName(); | ||
9016 | |||
9017 | state._fsp--; | ||
9018 | |||
9019 | after(grammarAccess.getCftModelAccess().getPackageNameQualifiedNameParserRuleCall_1_0()); | ||
9020 | |||
9021 | } | ||
9022 | |||
9023 | |||
9024 | } | ||
9025 | |||
9026 | } | ||
9027 | catch (RecognitionException re) { | ||
9028 | reportError(re); | ||
9029 | recover(input,re); | ||
9030 | } | ||
9031 | finally { | ||
9032 | |||
9033 | restoreStackSize(stackSize); | ||
9034 | |||
9035 | } | ||
9036 | return ; | ||
9037 | } | ||
9038 | // $ANTLR end "rule__CftModel__PackageNameAssignment_1" | ||
9039 | |||
9040 | |||
9041 | // $ANTLR start "rule__CftModel__ImportsAssignment_3" | ||
9042 | // InternalCftLanguage.g:2919:1: rule__CftModel__ImportsAssignment_3 : ( ruleImportDeclaration ) ; | ||
9043 | public final void rule__CftModel__ImportsAssignment_3() throws RecognitionException { | ||
9044 | |||
9045 | int stackSize = keepStackSize(); | ||
9046 | |||
9047 | try { | ||
9048 | // InternalCftLanguage.g:2923:1: ( ( ruleImportDeclaration ) ) | ||
9049 | // InternalCftLanguage.g:2924:2: ( ruleImportDeclaration ) | ||
9050 | { | ||
9051 | // InternalCftLanguage.g:2924:2: ( ruleImportDeclaration ) | ||
9052 | // InternalCftLanguage.g:2925:3: ruleImportDeclaration | ||
9053 | { | ||
9054 | before(grammarAccess.getCftModelAccess().getImportsImportDeclarationParserRuleCall_3_0()); | ||
9055 | pushFollow(FOLLOW_2); | ||
9056 | ruleImportDeclaration(); | ||
9057 | |||
9058 | state._fsp--; | ||
9059 | |||
9060 | after(grammarAccess.getCftModelAccess().getImportsImportDeclarationParserRuleCall_3_0()); | ||
9061 | |||
9062 | } | ||
9063 | |||
9064 | |||
9065 | } | ||
9066 | |||
9067 | } | ||
9068 | catch (RecognitionException re) { | ||
9069 | reportError(re); | ||
9070 | recover(input,re); | ||
9071 | } | ||
9072 | finally { | ||
9073 | |||
9074 | restoreStackSize(stackSize); | ||
9075 | |||
9076 | } | ||
9077 | return ; | ||
9078 | } | ||
9079 | // $ANTLR end "rule__CftModel__ImportsAssignment_3" | ||
9080 | |||
9081 | |||
9082 | // $ANTLR start "rule__CftModel__ComponentDefinitionsAssignment_4_0" | ||
9083 | // InternalCftLanguage.g:2934:1: rule__CftModel__ComponentDefinitionsAssignment_4_0 : ( ruleComponentDefinition ) ; | ||
9084 | public final void rule__CftModel__ComponentDefinitionsAssignment_4_0() throws RecognitionException { | ||
9085 | |||
9086 | int stackSize = keepStackSize(); | ||
9087 | |||
9088 | try { | ||
9089 | // InternalCftLanguage.g:2938:1: ( ( ruleComponentDefinition ) ) | ||
9090 | // InternalCftLanguage.g:2939:2: ( ruleComponentDefinition ) | ||
9091 | { | ||
9092 | // InternalCftLanguage.g:2939:2: ( ruleComponentDefinition ) | ||
9093 | // InternalCftLanguage.g:2940:3: ruleComponentDefinition | ||
9094 | { | ||
9095 | before(grammarAccess.getCftModelAccess().getComponentDefinitionsComponentDefinitionParserRuleCall_4_0_0()); | ||
9096 | pushFollow(FOLLOW_2); | ||
9097 | ruleComponentDefinition(); | ||
9098 | |||
9099 | state._fsp--; | ||
9100 | |||
9101 | after(grammarAccess.getCftModelAccess().getComponentDefinitionsComponentDefinitionParserRuleCall_4_0_0()); | ||
9102 | |||
9103 | } | ||
9104 | |||
9105 | |||
9106 | } | ||
9107 | |||
9108 | } | ||
9109 | catch (RecognitionException re) { | ||
9110 | reportError(re); | ||
9111 | recover(input,re); | ||
9112 | } | ||
9113 | finally { | ||
9114 | |||
9115 | restoreStackSize(stackSize); | ||
9116 | |||
9117 | } | ||
9118 | return ; | ||
9119 | } | ||
9120 | // $ANTLR end "rule__CftModel__ComponentDefinitionsAssignment_4_0" | ||
9121 | |||
9122 | |||
9123 | // $ANTLR start "rule__CftModel__TransformationDefinitionsAssignment_4_1" | ||
9124 | // InternalCftLanguage.g:2949:1: rule__CftModel__TransformationDefinitionsAssignment_4_1 : ( ruleTransformationDefinition ) ; | ||
9125 | public final void rule__CftModel__TransformationDefinitionsAssignment_4_1() throws RecognitionException { | ||
9126 | |||
9127 | int stackSize = keepStackSize(); | ||
9128 | |||
9129 | try { | ||
9130 | // InternalCftLanguage.g:2953:1: ( ( ruleTransformationDefinition ) ) | ||
9131 | // InternalCftLanguage.g:2954:2: ( ruleTransformationDefinition ) | ||
9132 | { | ||
9133 | // InternalCftLanguage.g:2954:2: ( ruleTransformationDefinition ) | ||
9134 | // InternalCftLanguage.g:2955:3: ruleTransformationDefinition | ||
9135 | { | ||
9136 | before(grammarAccess.getCftModelAccess().getTransformationDefinitionsTransformationDefinitionParserRuleCall_4_1_0()); | ||
9137 | pushFollow(FOLLOW_2); | ||
9138 | ruleTransformationDefinition(); | ||
9139 | |||
9140 | state._fsp--; | ||
9141 | |||
9142 | after(grammarAccess.getCftModelAccess().getTransformationDefinitionsTransformationDefinitionParserRuleCall_4_1_0()); | ||
9143 | |||
9144 | } | ||
9145 | |||
9146 | |||
9147 | } | ||
9148 | |||
9149 | } | ||
9150 | catch (RecognitionException re) { | ||
9151 | reportError(re); | ||
9152 | recover(input,re); | ||
9153 | } | ||
9154 | finally { | ||
9155 | |||
9156 | restoreStackSize(stackSize); | ||
9157 | |||
9158 | } | ||
9159 | return ; | ||
9160 | } | ||
9161 | // $ANTLR end "rule__CftModel__TransformationDefinitionsAssignment_4_1" | ||
9162 | |||
9163 | |||
9164 | // $ANTLR start "rule__ImportDeclaration__ImportedNamespaceAssignment_1" | ||
9165 | // InternalCftLanguage.g:2964:1: rule__ImportDeclaration__ImportedNamespaceAssignment_1 : ( ruleQualifiedNameWithWildcard ) ; | ||
9166 | public final void rule__ImportDeclaration__ImportedNamespaceAssignment_1() throws RecognitionException { | ||
9167 | |||
9168 | int stackSize = keepStackSize(); | ||
9169 | |||
9170 | try { | ||
9171 | // InternalCftLanguage.g:2968:1: ( ( ruleQualifiedNameWithWildcard ) ) | ||
9172 | // InternalCftLanguage.g:2969:2: ( ruleQualifiedNameWithWildcard ) | ||
9173 | { | ||
9174 | // InternalCftLanguage.g:2969:2: ( ruleQualifiedNameWithWildcard ) | ||
9175 | // InternalCftLanguage.g:2970:3: ruleQualifiedNameWithWildcard | ||
9176 | { | ||
9177 | before(grammarAccess.getImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_0()); | ||
9178 | pushFollow(FOLLOW_2); | ||
9179 | ruleQualifiedNameWithWildcard(); | ||
9180 | |||
9181 | state._fsp--; | ||
9182 | |||
9183 | after(grammarAccess.getImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_0()); | ||
9184 | |||
9185 | } | ||
9186 | |||
9187 | |||
9188 | } | ||
9189 | |||
9190 | } | ||
9191 | catch (RecognitionException re) { | ||
9192 | reportError(re); | ||
9193 | recover(input,re); | ||
9194 | } | ||
9195 | finally { | ||
9196 | |||
9197 | restoreStackSize(stackSize); | ||
9198 | |||
9199 | } | ||
9200 | return ; | ||
9201 | } | ||
9202 | // $ANTLR end "rule__ImportDeclaration__ImportedNamespaceAssignment_1" | ||
9203 | |||
9204 | |||
9205 | // $ANTLR start "rule__ComponentDefinition__NameAssignment_1" | ||
9206 | // InternalCftLanguage.g:2979:1: rule__ComponentDefinition__NameAssignment_1 : ( RULE_ID ) ; | ||
9207 | public final void rule__ComponentDefinition__NameAssignment_1() throws RecognitionException { | ||
9208 | |||
9209 | int stackSize = keepStackSize(); | ||
9210 | |||
9211 | try { | ||
9212 | // InternalCftLanguage.g:2983:1: ( ( RULE_ID ) ) | ||
9213 | // InternalCftLanguage.g:2984:2: ( RULE_ID ) | ||
9214 | { | ||
9215 | // InternalCftLanguage.g:2984:2: ( RULE_ID ) | ||
9216 | // InternalCftLanguage.g:2985:3: RULE_ID | ||
9217 | { | ||
9218 | before(grammarAccess.getComponentDefinitionAccess().getNameIDTerminalRuleCall_1_0()); | ||
9219 | match(input,RULE_ID,FOLLOW_2); | ||
9220 | after(grammarAccess.getComponentDefinitionAccess().getNameIDTerminalRuleCall_1_0()); | ||
9221 | |||
9222 | } | ||
9223 | |||
9224 | |||
9225 | } | ||
9226 | |||
9227 | } | ||
9228 | catch (RecognitionException re) { | ||
9229 | reportError(re); | ||
9230 | recover(input,re); | ||
9231 | } | ||
9232 | finally { | ||
9233 | |||
9234 | restoreStackSize(stackSize); | ||
9235 | |||
9236 | } | ||
9237 | return ; | ||
9238 | } | ||
9239 | // $ANTLR end "rule__ComponentDefinition__NameAssignment_1" | ||
9240 | |||
9241 | |||
9242 | // $ANTLR start "rule__ComponentDefinition__InputEventsAssignment_3_0_1" | ||
9243 | // InternalCftLanguage.g:2994:1: rule__ComponentDefinition__InputEventsAssignment_3_0_1 : ( ruleInputEvent ) ; | ||
9244 | public final void rule__ComponentDefinition__InputEventsAssignment_3_0_1() throws RecognitionException { | ||
9245 | |||
9246 | int stackSize = keepStackSize(); | ||
9247 | |||
9248 | try { | ||
9249 | // InternalCftLanguage.g:2998:1: ( ( ruleInputEvent ) ) | ||
9250 | // InternalCftLanguage.g:2999:2: ( ruleInputEvent ) | ||
9251 | { | ||
9252 | // InternalCftLanguage.g:2999:2: ( ruleInputEvent ) | ||
9253 | // InternalCftLanguage.g:3000:3: ruleInputEvent | ||
9254 | { | ||
9255 | before(grammarAccess.getComponentDefinitionAccess().getInputEventsInputEventParserRuleCall_3_0_1_0()); | ||
9256 | pushFollow(FOLLOW_2); | ||
9257 | ruleInputEvent(); | ||
9258 | |||
9259 | state._fsp--; | ||
9260 | |||
9261 | after(grammarAccess.getComponentDefinitionAccess().getInputEventsInputEventParserRuleCall_3_0_1_0()); | ||
9262 | |||
9263 | } | ||
9264 | |||
9265 | |||
9266 | } | ||
9267 | |||
9268 | } | ||
9269 | catch (RecognitionException re) { | ||
9270 | reportError(re); | ||
9271 | recover(input,re); | ||
9272 | } | ||
9273 | finally { | ||
9274 | |||
9275 | restoreStackSize(stackSize); | ||
9276 | |||
9277 | } | ||
9278 | return ; | ||
9279 | } | ||
9280 | // $ANTLR end "rule__ComponentDefinition__InputEventsAssignment_3_0_1" | ||
9281 | |||
9282 | |||
9283 | // $ANTLR start "rule__ComponentDefinition__OutputEventsAssignment_3_1_1" | ||
9284 | // InternalCftLanguage.g:3009:1: rule__ComponentDefinition__OutputEventsAssignment_3_1_1 : ( ( RULE_ID ) ) ; | ||
9285 | public final void rule__ComponentDefinition__OutputEventsAssignment_3_1_1() throws RecognitionException { | ||
9286 | |||
9287 | int stackSize = keepStackSize(); | ||
9288 | |||
9289 | try { | ||
9290 | // InternalCftLanguage.g:3013:1: ( ( ( RULE_ID ) ) ) | ||
9291 | // InternalCftLanguage.g:3014:2: ( ( RULE_ID ) ) | ||
9292 | { | ||
9293 | // InternalCftLanguage.g:3014:2: ( ( RULE_ID ) ) | ||
9294 | // InternalCftLanguage.g:3015:3: ( RULE_ID ) | ||
9295 | { | ||
9296 | before(grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationCrossReference_3_1_1_0()); | ||
9297 | // InternalCftLanguage.g:3016:3: ( RULE_ID ) | ||
9298 | // InternalCftLanguage.g:3017:4: RULE_ID | ||
9299 | { | ||
9300 | before(grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationIDTerminalRuleCall_3_1_1_0_1()); | ||
9301 | match(input,RULE_ID,FOLLOW_2); | ||
9302 | after(grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationIDTerminalRuleCall_3_1_1_0_1()); | ||
9303 | |||
9304 | } | ||
9305 | |||
9306 | after(grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationCrossReference_3_1_1_0()); | ||
9307 | |||
9308 | } | ||
9309 | |||
9310 | |||
9311 | } | ||
9312 | |||
9313 | } | ||
9314 | catch (RecognitionException re) { | ||
9315 | reportError(re); | ||
9316 | recover(input,re); | ||
9317 | } | ||
9318 | finally { | ||
9319 | |||
9320 | restoreStackSize(stackSize); | ||
9321 | |||
9322 | } | ||
9323 | return ; | ||
9324 | } | ||
9325 | // $ANTLR end "rule__ComponentDefinition__OutputEventsAssignment_3_1_1" | ||
9326 | |||
9327 | |||
9328 | // $ANTLR start "rule__ComponentDefinition__EventDefinitionsAssignment_4_0" | ||
9329 | // InternalCftLanguage.g:3028:1: rule__ComponentDefinition__EventDefinitionsAssignment_4_0 : ( ruleEventDefinition ) ; | ||
9330 | public final void rule__ComponentDefinition__EventDefinitionsAssignment_4_0() throws RecognitionException { | ||
9331 | |||
9332 | int stackSize = keepStackSize(); | ||
9333 | |||
9334 | try { | ||
9335 | // InternalCftLanguage.g:3032:1: ( ( ruleEventDefinition ) ) | ||
9336 | // InternalCftLanguage.g:3033:2: ( ruleEventDefinition ) | ||
9337 | { | ||
9338 | // InternalCftLanguage.g:3033:2: ( ruleEventDefinition ) | ||
9339 | // InternalCftLanguage.g:3034:3: ruleEventDefinition | ||
9340 | { | ||
9341 | before(grammarAccess.getComponentDefinitionAccess().getEventDefinitionsEventDefinitionParserRuleCall_4_0_0()); | ||
9342 | pushFollow(FOLLOW_2); | ||
9343 | ruleEventDefinition(); | ||
9344 | |||
9345 | state._fsp--; | ||
9346 | |||
9347 | after(grammarAccess.getComponentDefinitionAccess().getEventDefinitionsEventDefinitionParserRuleCall_4_0_0()); | ||
9348 | |||
9349 | } | ||
9350 | |||
9351 | |||
9352 | } | ||
9353 | |||
9354 | } | ||
9355 | catch (RecognitionException re) { | ||
9356 | reportError(re); | ||
9357 | recover(input,re); | ||
9358 | } | ||
9359 | finally { | ||
9360 | |||
9361 | restoreStackSize(stackSize); | ||
9362 | |||
9363 | } | ||
9364 | return ; | ||
9365 | } | ||
9366 | // $ANTLR end "rule__ComponentDefinition__EventDefinitionsAssignment_4_0" | ||
9367 | |||
9368 | |||
9369 | // $ANTLR start "rule__InputEvent__NameAssignment_0" | ||
9370 | // InternalCftLanguage.g:3043:1: rule__InputEvent__NameAssignment_0 : ( RULE_ID ) ; | ||
9371 | public final void rule__InputEvent__NameAssignment_0() throws RecognitionException { | ||
9372 | |||
9373 | int stackSize = keepStackSize(); | ||
9374 | |||
9375 | try { | ||
9376 | // InternalCftLanguage.g:3047:1: ( ( RULE_ID ) ) | ||
9377 | // InternalCftLanguage.g:3048:2: ( RULE_ID ) | ||
9378 | { | ||
9379 | // InternalCftLanguage.g:3048:2: ( RULE_ID ) | ||
9380 | // InternalCftLanguage.g:3049:3: RULE_ID | ||
9381 | { | ||
9382 | before(grammarAccess.getInputEventAccess().getNameIDTerminalRuleCall_0_0()); | ||
9383 | match(input,RULE_ID,FOLLOW_2); | ||
9384 | after(grammarAccess.getInputEventAccess().getNameIDTerminalRuleCall_0_0()); | ||
9385 | |||
9386 | } | ||
9387 | |||
9388 | |||
9389 | } | ||
9390 | |||
9391 | } | ||
9392 | catch (RecognitionException re) { | ||
9393 | reportError(re); | ||
9394 | recover(input,re); | ||
9395 | } | ||
9396 | finally { | ||
9397 | |||
9398 | restoreStackSize(stackSize); | ||
9399 | |||
9400 | } | ||
9401 | return ; | ||
9402 | } | ||
9403 | // $ANTLR end "rule__InputEvent__NameAssignment_0" | ||
9404 | |||
9405 | |||
9406 | // $ANTLR start "rule__InputEvent__MultipleAssignment_1" | ||
9407 | // InternalCftLanguage.g:3058:1: rule__InputEvent__MultipleAssignment_1 : ( ( '[]' ) ) ; | ||
9408 | public final void rule__InputEvent__MultipleAssignment_1() throws RecognitionException { | ||
9409 | |||
9410 | int stackSize = keepStackSize(); | ||
9411 | |||
9412 | try { | ||
9413 | // InternalCftLanguage.g:3062:1: ( ( ( '[]' ) ) ) | ||
9414 | // InternalCftLanguage.g:3063:2: ( ( '[]' ) ) | ||
9415 | { | ||
9416 | // InternalCftLanguage.g:3063:2: ( ( '[]' ) ) | ||
9417 | // InternalCftLanguage.g:3064:3: ( '[]' ) | ||
9418 | { | ||
9419 | before(grammarAccess.getInputEventAccess().getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0()); | ||
9420 | // InternalCftLanguage.g:3065:3: ( '[]' ) | ||
9421 | // InternalCftLanguage.g:3066:4: '[]' | ||
9422 | { | ||
9423 | before(grammarAccess.getInputEventAccess().getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0()); | ||
9424 | match(input,35,FOLLOW_2); | ||
9425 | after(grammarAccess.getInputEventAccess().getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0()); | ||
9426 | |||
9427 | } | ||
9428 | |||
9429 | after(grammarAccess.getInputEventAccess().getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0()); | ||
9430 | |||
9431 | } | ||
9432 | |||
9433 | |||
9434 | } | ||
9435 | |||
9436 | } | ||
9437 | catch (RecognitionException re) { | ||
9438 | reportError(re); | ||
9439 | recover(input,re); | ||
9440 | } | ||
9441 | finally { | ||
9442 | |||
9443 | restoreStackSize(stackSize); | ||
9444 | |||
9445 | } | ||
9446 | return ; | ||
9447 | } | ||
9448 | // $ANTLR end "rule__InputEvent__MultipleAssignment_1" | ||
9449 | |||
9450 | |||
9451 | // $ANTLR start "rule__BasicEventDefinition__NameAssignment_0" | ||
9452 | // InternalCftLanguage.g:3077:1: rule__BasicEventDefinition__NameAssignment_0 : ( RULE_ID ) ; | ||
9453 | public final void rule__BasicEventDefinition__NameAssignment_0() throws RecognitionException { | ||
9454 | |||
9455 | int stackSize = keepStackSize(); | ||
9456 | |||
9457 | try { | ||
9458 | // InternalCftLanguage.g:3081:1: ( ( RULE_ID ) ) | ||
9459 | // InternalCftLanguage.g:3082:2: ( RULE_ID ) | ||
9460 | { | ||
9461 | // InternalCftLanguage.g:3082:2: ( RULE_ID ) | ||
9462 | // InternalCftLanguage.g:3083:3: RULE_ID | ||
9463 | { | ||
9464 | before(grammarAccess.getBasicEventDefinitionAccess().getNameIDTerminalRuleCall_0_0()); | ||
9465 | match(input,RULE_ID,FOLLOW_2); | ||
9466 | after(grammarAccess.getBasicEventDefinitionAccess().getNameIDTerminalRuleCall_0_0()); | ||
9467 | |||
9468 | } | ||
9469 | |||
9470 | |||
9471 | } | ||
9472 | |||
9473 | } | ||
9474 | catch (RecognitionException re) { | ||
9475 | reportError(re); | ||
9476 | recover(input,re); | ||
9477 | } | ||
9478 | finally { | ||
9479 | |||
9480 | restoreStackSize(stackSize); | ||
9481 | |||
9482 | } | ||
9483 | return ; | ||
9484 | } | ||
9485 | // $ANTLR end "rule__BasicEventDefinition__NameAssignment_0" | ||
9486 | |||
9487 | |||
9488 | // $ANTLR start "rule__BasicEventDefinition__RateAssignment_3" | ||
9489 | // InternalCftLanguage.g:3092:1: rule__BasicEventDefinition__RateAssignment_3 : ( RULE_DOULBE ) ; | ||
9490 | public final void rule__BasicEventDefinition__RateAssignment_3() throws RecognitionException { | ||
9491 | |||
9492 | int stackSize = keepStackSize(); | ||
9493 | |||
9494 | try { | ||
9495 | // InternalCftLanguage.g:3096:1: ( ( RULE_DOULBE ) ) | ||
9496 | // InternalCftLanguage.g:3097:2: ( RULE_DOULBE ) | ||
9497 | { | ||
9498 | // InternalCftLanguage.g:3097:2: ( RULE_DOULBE ) | ||
9499 | // InternalCftLanguage.g:3098:3: RULE_DOULBE | ||
9500 | { | ||
9501 | before(grammarAccess.getBasicEventDefinitionAccess().getRateDOULBETerminalRuleCall_3_0()); | ||
9502 | match(input,RULE_DOULBE,FOLLOW_2); | ||
9503 | after(grammarAccess.getBasicEventDefinitionAccess().getRateDOULBETerminalRuleCall_3_0()); | ||
9504 | |||
9505 | } | ||
9506 | |||
9507 | |||
9508 | } | ||
9509 | |||
9510 | } | ||
9511 | catch (RecognitionException re) { | ||
9512 | reportError(re); | ||
9513 | recover(input,re); | ||
9514 | } | ||
9515 | finally { | ||
9516 | |||
9517 | restoreStackSize(stackSize); | ||
9518 | |||
9519 | } | ||
9520 | return ; | ||
9521 | } | ||
9522 | // $ANTLR end "rule__BasicEventDefinition__RateAssignment_3" | ||
9523 | |||
9524 | |||
9525 | // $ANTLR start "rule__AndGate__NameAssignment_0" | ||
9526 | // InternalCftLanguage.g:3107:1: rule__AndGate__NameAssignment_0 : ( RULE_ID ) ; | ||
9527 | public final void rule__AndGate__NameAssignment_0() throws RecognitionException { | ||
9528 | |||
9529 | int stackSize = keepStackSize(); | ||
9530 | |||
9531 | try { | ||
9532 | // InternalCftLanguage.g:3111:1: ( ( RULE_ID ) ) | ||
9533 | // InternalCftLanguage.g:3112:2: ( RULE_ID ) | ||
9534 | { | ||
9535 | // InternalCftLanguage.g:3112:2: ( RULE_ID ) | ||
9536 | // InternalCftLanguage.g:3113:3: RULE_ID | ||
9537 | { | ||
9538 | before(grammarAccess.getAndGateAccess().getNameIDTerminalRuleCall_0_0()); | ||
9539 | match(input,RULE_ID,FOLLOW_2); | ||
9540 | after(grammarAccess.getAndGateAccess().getNameIDTerminalRuleCall_0_0()); | ||
9541 | |||
9542 | } | ||
9543 | |||
9544 | |||
9545 | } | ||
9546 | |||
9547 | } | ||
9548 | catch (RecognitionException re) { | ||
9549 | reportError(re); | ||
9550 | recover(input,re); | ||
9551 | } | ||
9552 | finally { | ||
9553 | |||
9554 | restoreStackSize(stackSize); | ||
9555 | |||
9556 | } | ||
9557 | return ; | ||
9558 | } | ||
9559 | // $ANTLR end "rule__AndGate__NameAssignment_0" | ||
9560 | |||
9561 | |||
9562 | // $ANTLR start "rule__AndGate__InputEventsAssignment_2" | ||
9563 | // InternalCftLanguage.g:3122:1: rule__AndGate__InputEventsAssignment_2 : ( ( RULE_ID ) ) ; | ||
9564 | public final void rule__AndGate__InputEventsAssignment_2() throws RecognitionException { | ||
9565 | |||
9566 | int stackSize = keepStackSize(); | ||
9567 | |||
9568 | try { | ||
9569 | // InternalCftLanguage.g:3126:1: ( ( ( RULE_ID ) ) ) | ||
9570 | // InternalCftLanguage.g:3127:2: ( ( RULE_ID ) ) | ||
9571 | { | ||
9572 | // InternalCftLanguage.g:3127:2: ( ( RULE_ID ) ) | ||
9573 | // InternalCftLanguage.g:3128:3: ( RULE_ID ) | ||
9574 | { | ||
9575 | before(grammarAccess.getAndGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); | ||
9576 | // InternalCftLanguage.g:3129:3: ( RULE_ID ) | ||
9577 | // InternalCftLanguage.g:3130:4: RULE_ID | ||
9578 | { | ||
9579 | before(grammarAccess.getAndGateAccess().getInputEventsEventDeclarationIDTerminalRuleCall_2_0_1()); | ||
9580 | match(input,RULE_ID,FOLLOW_2); | ||
9581 | after(grammarAccess.getAndGateAccess().getInputEventsEventDeclarationIDTerminalRuleCall_2_0_1()); | ||
9582 | |||
9583 | } | ||
9584 | |||
9585 | after(grammarAccess.getAndGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); | ||
9586 | |||
9587 | } | ||
9588 | |||
9589 | |||
9590 | } | ||
9591 | |||
9592 | } | ||
9593 | catch (RecognitionException re) { | ||
9594 | reportError(re); | ||
9595 | recover(input,re); | ||
9596 | } | ||
9597 | finally { | ||
9598 | |||
9599 | restoreStackSize(stackSize); | ||
9600 | |||
9601 | } | ||
9602 | return ; | ||
9603 | } | ||
9604 | // $ANTLR end "rule__AndGate__InputEventsAssignment_2" | ||
9605 | |||
9606 | |||
9607 | // $ANTLR start "rule__OrGate__NameAssignment_0" | ||
9608 | // InternalCftLanguage.g:3141:1: rule__OrGate__NameAssignment_0 : ( RULE_ID ) ; | ||
9609 | public final void rule__OrGate__NameAssignment_0() throws RecognitionException { | ||
9610 | |||
9611 | int stackSize = keepStackSize(); | ||
9612 | |||
9613 | try { | ||
9614 | // InternalCftLanguage.g:3145:1: ( ( RULE_ID ) ) | ||
9615 | // InternalCftLanguage.g:3146:2: ( RULE_ID ) | ||
9616 | { | ||
9617 | // InternalCftLanguage.g:3146:2: ( RULE_ID ) | ||
9618 | // InternalCftLanguage.g:3147:3: RULE_ID | ||
9619 | { | ||
9620 | before(grammarAccess.getOrGateAccess().getNameIDTerminalRuleCall_0_0()); | ||
9621 | match(input,RULE_ID,FOLLOW_2); | ||
9622 | after(grammarAccess.getOrGateAccess().getNameIDTerminalRuleCall_0_0()); | ||
9623 | |||
9624 | } | ||
9625 | |||
9626 | |||
9627 | } | ||
9628 | |||
9629 | } | ||
9630 | catch (RecognitionException re) { | ||
9631 | reportError(re); | ||
9632 | recover(input,re); | ||
9633 | } | ||
9634 | finally { | ||
9635 | |||
9636 | restoreStackSize(stackSize); | ||
9637 | |||
9638 | } | ||
9639 | return ; | ||
9640 | } | ||
9641 | // $ANTLR end "rule__OrGate__NameAssignment_0" | ||
9642 | |||
9643 | |||
9644 | // $ANTLR start "rule__OrGate__InputEventsAssignment_2" | ||
9645 | // InternalCftLanguage.g:3156:1: rule__OrGate__InputEventsAssignment_2 : ( ( RULE_ID ) ) ; | ||
9646 | public final void rule__OrGate__InputEventsAssignment_2() throws RecognitionException { | ||
9647 | |||
9648 | int stackSize = keepStackSize(); | ||
9649 | |||
9650 | try { | ||
9651 | // InternalCftLanguage.g:3160:1: ( ( ( RULE_ID ) ) ) | ||
9652 | // InternalCftLanguage.g:3161:2: ( ( RULE_ID ) ) | ||
9653 | { | ||
9654 | // InternalCftLanguage.g:3161:2: ( ( RULE_ID ) ) | ||
9655 | // InternalCftLanguage.g:3162:3: ( RULE_ID ) | ||
9656 | { | ||
9657 | before(grammarAccess.getOrGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); | ||
9658 | // InternalCftLanguage.g:3163:3: ( RULE_ID ) | ||
9659 | // InternalCftLanguage.g:3164:4: RULE_ID | ||
9660 | { | ||
9661 | before(grammarAccess.getOrGateAccess().getInputEventsEventDeclarationIDTerminalRuleCall_2_0_1()); | ||
9662 | match(input,RULE_ID,FOLLOW_2); | ||
9663 | after(grammarAccess.getOrGateAccess().getInputEventsEventDeclarationIDTerminalRuleCall_2_0_1()); | ||
9664 | |||
9665 | } | ||
9666 | |||
9667 | after(grammarAccess.getOrGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); | ||
9668 | |||
9669 | } | ||
9670 | |||
9671 | |||
9672 | } | ||
9673 | |||
9674 | } | ||
9675 | catch (RecognitionException re) { | ||
9676 | reportError(re); | ||
9677 | recover(input,re); | ||
9678 | } | ||
9679 | finally { | ||
9680 | |||
9681 | restoreStackSize(stackSize); | ||
9682 | |||
9683 | } | ||
9684 | return ; | ||
9685 | } | ||
9686 | // $ANTLR end "rule__OrGate__InputEventsAssignment_2" | ||
9687 | |||
9688 | |||
9689 | // $ANTLR start "rule__TransformationDefinition__NameAssignment_1" | ||
9690 | // InternalCftLanguage.g:3175:1: rule__TransformationDefinition__NameAssignment_1 : ( RULE_ID ) ; | ||
9691 | public final void rule__TransformationDefinition__NameAssignment_1() throws RecognitionException { | ||
9692 | |||
9693 | int stackSize = keepStackSize(); | ||
9694 | |||
9695 | try { | ||
9696 | // InternalCftLanguage.g:3179:1: ( ( RULE_ID ) ) | ||
9697 | // InternalCftLanguage.g:3180:2: ( RULE_ID ) | ||
9698 | { | ||
9699 | // InternalCftLanguage.g:3180:2: ( RULE_ID ) | ||
9700 | // InternalCftLanguage.g:3181:3: RULE_ID | ||
9701 | { | ||
9702 | before(grammarAccess.getTransformationDefinitionAccess().getNameIDTerminalRuleCall_1_0()); | ||
9703 | match(input,RULE_ID,FOLLOW_2); | ||
9704 | after(grammarAccess.getTransformationDefinitionAccess().getNameIDTerminalRuleCall_1_0()); | ||
9705 | |||
9706 | } | ||
9707 | |||
9708 | |||
9709 | } | ||
9710 | |||
9711 | } | ||
9712 | catch (RecognitionException re) { | ||
9713 | reportError(re); | ||
9714 | recover(input,re); | ||
9715 | } | ||
9716 | finally { | ||
9717 | |||
9718 | restoreStackSize(stackSize); | ||
9719 | |||
9720 | } | ||
9721 | return ; | ||
9722 | } | ||
9723 | // $ANTLR end "rule__TransformationDefinition__NameAssignment_1" | ||
9724 | |||
9725 | |||
9726 | // $ANTLR start "rule__TransformationDefinition__MappingDefinitionsAssignment_3" | ||
9727 | // InternalCftLanguage.g:3190:1: rule__TransformationDefinition__MappingDefinitionsAssignment_3 : ( ruleMappingDefinition ) ; | ||
9728 | public final void rule__TransformationDefinition__MappingDefinitionsAssignment_3() throws RecognitionException { | ||
9729 | |||
9730 | int stackSize = keepStackSize(); | ||
9731 | |||
9732 | try { | ||
9733 | // InternalCftLanguage.g:3194:1: ( ( ruleMappingDefinition ) ) | ||
9734 | // InternalCftLanguage.g:3195:2: ( ruleMappingDefinition ) | ||
9735 | { | ||
9736 | // InternalCftLanguage.g:3195:2: ( ruleMappingDefinition ) | ||
9737 | // InternalCftLanguage.g:3196:3: ruleMappingDefinition | ||
9738 | { | ||
9739 | before(grammarAccess.getTransformationDefinitionAccess().getMappingDefinitionsMappingDefinitionParserRuleCall_3_0()); | ||
9740 | pushFollow(FOLLOW_2); | ||
9741 | ruleMappingDefinition(); | ||
9742 | |||
9743 | state._fsp--; | ||
9744 | |||
9745 | after(grammarAccess.getTransformationDefinitionAccess().getMappingDefinitionsMappingDefinitionParserRuleCall_3_0()); | ||
9746 | |||
9747 | } | ||
9748 | |||
9749 | |||
9750 | } | ||
9751 | |||
9752 | } | ||
9753 | catch (RecognitionException re) { | ||
9754 | reportError(re); | ||
9755 | recover(input,re); | ||
9756 | } | ||
9757 | finally { | ||
9758 | |||
9759 | restoreStackSize(stackSize); | ||
9760 | |||
9761 | } | ||
9762 | return ; | ||
9763 | } | ||
9764 | // $ANTLR end "rule__TransformationDefinition__MappingDefinitionsAssignment_3" | ||
9765 | |||
9766 | |||
9767 | // $ANTLR start "rule__MappingDefinition__TopLevelAssignment_0" | ||
9768 | // InternalCftLanguage.g:3205:1: rule__MappingDefinition__TopLevelAssignment_0 : ( ( 'toplevel' ) ) ; | ||
9769 | public final void rule__MappingDefinition__TopLevelAssignment_0() throws RecognitionException { | ||
9770 | |||
9771 | int stackSize = keepStackSize(); | ||
9772 | |||
9773 | try { | ||
9774 | // InternalCftLanguage.g:3209:1: ( ( ( 'toplevel' ) ) ) | ||
9775 | // InternalCftLanguage.g:3210:2: ( ( 'toplevel' ) ) | ||
9776 | { | ||
9777 | // InternalCftLanguage.g:3210:2: ( ( 'toplevel' ) ) | ||
9778 | // InternalCftLanguage.g:3211:3: ( 'toplevel' ) | ||
9779 | { | ||
9780 | before(grammarAccess.getMappingDefinitionAccess().getTopLevelToplevelKeyword_0_0()); | ||
9781 | // InternalCftLanguage.g:3212:3: ( 'toplevel' ) | ||
9782 | // InternalCftLanguage.g:3213:4: 'toplevel' | ||
9783 | { | ||
9784 | before(grammarAccess.getMappingDefinitionAccess().getTopLevelToplevelKeyword_0_0()); | ||
9785 | match(input,36,FOLLOW_2); | ||
9786 | after(grammarAccess.getMappingDefinitionAccess().getTopLevelToplevelKeyword_0_0()); | ||
9787 | |||
9788 | } | ||
9789 | |||
9790 | after(grammarAccess.getMappingDefinitionAccess().getTopLevelToplevelKeyword_0_0()); | ||
9791 | |||
9792 | } | ||
9793 | |||
9794 | |||
9795 | } | ||
9796 | |||
9797 | } | ||
9798 | catch (RecognitionException re) { | ||
9799 | reportError(re); | ||
9800 | recover(input,re); | ||
9801 | } | ||
9802 | finally { | ||
9803 | |||
9804 | restoreStackSize(stackSize); | ||
9805 | |||
9806 | } | ||
9807 | return ; | ||
9808 | } | ||
9809 | // $ANTLR end "rule__MappingDefinition__TopLevelAssignment_0" | ||
9810 | |||
9811 | |||
9812 | // $ANTLR start "rule__MappingDefinition__PatternAssignment_2" | ||
9813 | // InternalCftLanguage.g:3224:1: rule__MappingDefinition__PatternAssignment_2 : ( ( ruleQualifiedName ) ) ; | ||
9814 | public final void rule__MappingDefinition__PatternAssignment_2() throws RecognitionException { | ||
9815 | |||
9816 | int stackSize = keepStackSize(); | ||
9817 | |||
9818 | try { | ||
9819 | // InternalCftLanguage.g:3228:1: ( ( ( ruleQualifiedName ) ) ) | ||
9820 | // InternalCftLanguage.g:3229:2: ( ( ruleQualifiedName ) ) | ||
9821 | { | ||
9822 | // InternalCftLanguage.g:3229:2: ( ( ruleQualifiedName ) ) | ||
9823 | // InternalCftLanguage.g:3230:3: ( ruleQualifiedName ) | ||
9824 | { | ||
9825 | before(grammarAccess.getMappingDefinitionAccess().getPatternPatternCrossReference_2_0()); | ||
9826 | // InternalCftLanguage.g:3231:3: ( ruleQualifiedName ) | ||
9827 | // InternalCftLanguage.g:3232:4: ruleQualifiedName | ||
9828 | { | ||
9829 | before(grammarAccess.getMappingDefinitionAccess().getPatternPatternQualifiedNameParserRuleCall_2_0_1()); | ||
9830 | pushFollow(FOLLOW_2); | ||
9831 | ruleQualifiedName(); | ||
9832 | |||
9833 | state._fsp--; | ||
9834 | |||
9835 | after(grammarAccess.getMappingDefinitionAccess().getPatternPatternQualifiedNameParserRuleCall_2_0_1()); | ||
9836 | |||
9837 | } | ||
9838 | |||
9839 | after(grammarAccess.getMappingDefinitionAccess().getPatternPatternCrossReference_2_0()); | ||
9840 | |||
9841 | } | ||
9842 | |||
9843 | |||
9844 | } | ||
9845 | |||
9846 | } | ||
9847 | catch (RecognitionException re) { | ||
9848 | reportError(re); | ||
9849 | recover(input,re); | ||
9850 | } | ||
9851 | finally { | ||
9852 | |||
9853 | restoreStackSize(stackSize); | ||
9854 | |||
9855 | } | ||
9856 | return ; | ||
9857 | } | ||
9858 | // $ANTLR end "rule__MappingDefinition__PatternAssignment_2" | ||
9859 | |||
9860 | |||
9861 | // $ANTLR start "rule__MappingDefinition__ParametersAssignment_4" | ||
9862 | // InternalCftLanguage.g:3243:1: rule__MappingDefinition__ParametersAssignment_4 : ( ruleMappingParameter ) ; | ||
9863 | public final void rule__MappingDefinition__ParametersAssignment_4() throws RecognitionException { | ||
9864 | |||
9865 | int stackSize = keepStackSize(); | ||
9866 | |||
9867 | try { | ||
9868 | // InternalCftLanguage.g:3247:1: ( ( ruleMappingParameter ) ) | ||
9869 | // InternalCftLanguage.g:3248:2: ( ruleMappingParameter ) | ||
9870 | { | ||
9871 | // InternalCftLanguage.g:3248:2: ( ruleMappingParameter ) | ||
9872 | // InternalCftLanguage.g:3249:3: ruleMappingParameter | ||
9873 | { | ||
9874 | before(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_4_0()); | ||
9875 | pushFollow(FOLLOW_2); | ||
9876 | ruleMappingParameter(); | ||
9877 | |||
9878 | state._fsp--; | ||
9879 | |||
9880 | after(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_4_0()); | ||
9881 | |||
9882 | } | ||
9883 | |||
9884 | |||
9885 | } | ||
9886 | |||
9887 | } | ||
9888 | catch (RecognitionException re) { | ||
9889 | reportError(re); | ||
9890 | recover(input,re); | ||
9891 | } | ||
9892 | finally { | ||
9893 | |||
9894 | restoreStackSize(stackSize); | ||
9895 | |||
9896 | } | ||
9897 | return ; | ||
9898 | } | ||
9899 | // $ANTLR end "rule__MappingDefinition__ParametersAssignment_4" | ||
9900 | |||
9901 | |||
9902 | // $ANTLR start "rule__MappingDefinition__ParametersAssignment_5_1" | ||
9903 | // InternalCftLanguage.g:3258:1: rule__MappingDefinition__ParametersAssignment_5_1 : ( ruleMappingParameter ) ; | ||
9904 | public final void rule__MappingDefinition__ParametersAssignment_5_1() throws RecognitionException { | ||
9905 | |||
9906 | int stackSize = keepStackSize(); | ||
9907 | |||
9908 | try { | ||
9909 | // InternalCftLanguage.g:3262:1: ( ( ruleMappingParameter ) ) | ||
9910 | // InternalCftLanguage.g:3263:2: ( ruleMappingParameter ) | ||
9911 | { | ||
9912 | // InternalCftLanguage.g:3263:2: ( ruleMappingParameter ) | ||
9913 | // InternalCftLanguage.g:3264:3: ruleMappingParameter | ||
9914 | { | ||
9915 | before(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_5_1_0()); | ||
9916 | pushFollow(FOLLOW_2); | ||
9917 | ruleMappingParameter(); | ||
9918 | |||
9919 | state._fsp--; | ||
9920 | |||
9921 | after(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_5_1_0()); | ||
9922 | |||
9923 | } | ||
9924 | |||
9925 | |||
9926 | } | ||
9927 | |||
9928 | } | ||
9929 | catch (RecognitionException re) { | ||
9930 | reportError(re); | ||
9931 | recover(input,re); | ||
9932 | } | ||
9933 | finally { | ||
9934 | |||
9935 | restoreStackSize(stackSize); | ||
9936 | |||
9937 | } | ||
9938 | return ; | ||
9939 | } | ||
9940 | // $ANTLR end "rule__MappingDefinition__ParametersAssignment_5_1" | ||
9941 | |||
9942 | |||
9943 | // $ANTLR start "rule__MappingDefinition__ComponentInstanceAssignment_7" | ||
9944 | // InternalCftLanguage.g:3273:1: rule__MappingDefinition__ComponentInstanceAssignment_7 : ( ruleComponentInstance ) ; | ||
9945 | public final void rule__MappingDefinition__ComponentInstanceAssignment_7() throws RecognitionException { | ||
9946 | |||
9947 | int stackSize = keepStackSize(); | ||
9948 | |||
9949 | try { | ||
9950 | // InternalCftLanguage.g:3277:1: ( ( ruleComponentInstance ) ) | ||
9951 | // InternalCftLanguage.g:3278:2: ( ruleComponentInstance ) | ||
9952 | { | ||
9953 | // InternalCftLanguage.g:3278:2: ( ruleComponentInstance ) | ||
9954 | // InternalCftLanguage.g:3279:3: ruleComponentInstance | ||
9955 | { | ||
9956 | before(grammarAccess.getMappingDefinitionAccess().getComponentInstanceComponentInstanceParserRuleCall_7_0()); | ||
9957 | pushFollow(FOLLOW_2); | ||
9958 | ruleComponentInstance(); | ||
9959 | |||
9960 | state._fsp--; | ||
9961 | |||
9962 | after(grammarAccess.getMappingDefinitionAccess().getComponentInstanceComponentInstanceParserRuleCall_7_0()); | ||
9963 | |||
9964 | } | ||
9965 | |||
9966 | |||
9967 | } | ||
9968 | |||
9969 | } | ||
9970 | catch (RecognitionException re) { | ||
9971 | reportError(re); | ||
9972 | recover(input,re); | ||
9973 | } | ||
9974 | finally { | ||
9975 | |||
9976 | restoreStackSize(stackSize); | ||
9977 | |||
9978 | } | ||
9979 | return ; | ||
9980 | } | ||
9981 | // $ANTLR end "rule__MappingDefinition__ComponentInstanceAssignment_7" | ||
9982 | |||
9983 | |||
9984 | // $ANTLR start "rule__MappingDefinition__LookupDefinitionsAssignment_8_1_0_0" | ||
9985 | // InternalCftLanguage.g:3288:1: rule__MappingDefinition__LookupDefinitionsAssignment_8_1_0_0 : ( ruleLookupDefinition ) ; | ||
9986 | public final void rule__MappingDefinition__LookupDefinitionsAssignment_8_1_0_0() throws RecognitionException { | ||
9987 | |||
9988 | int stackSize = keepStackSize(); | ||
9989 | |||
9990 | try { | ||
9991 | // InternalCftLanguage.g:3292:1: ( ( ruleLookupDefinition ) ) | ||
9992 | // InternalCftLanguage.g:3293:2: ( ruleLookupDefinition ) | ||
9993 | { | ||
9994 | // InternalCftLanguage.g:3293:2: ( ruleLookupDefinition ) | ||
9995 | // InternalCftLanguage.g:3294:3: ruleLookupDefinition | ||
9996 | { | ||
9997 | before(grammarAccess.getMappingDefinitionAccess().getLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0()); | ||
9998 | pushFollow(FOLLOW_2); | ||
9999 | ruleLookupDefinition(); | ||
10000 | |||
10001 | state._fsp--; | ||
10002 | |||
10003 | after(grammarAccess.getMappingDefinitionAccess().getLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0()); | ||
10004 | |||
10005 | } | ||
10006 | |||
10007 | |||
10008 | } | ||
10009 | |||
10010 | } | ||
10011 | catch (RecognitionException re) { | ||
10012 | reportError(re); | ||
10013 | recover(input,re); | ||
10014 | } | ||
10015 | finally { | ||
10016 | |||
10017 | restoreStackSize(stackSize); | ||
10018 | |||
10019 | } | ||
10020 | return ; | ||
10021 | } | ||
10022 | // $ANTLR end "rule__MappingDefinition__LookupDefinitionsAssignment_8_1_0_0" | ||
10023 | |||
10024 | |||
10025 | // $ANTLR start "rule__MappingDefinition__AssignmentsAssignment_8_1_0_1" | ||
10026 | // InternalCftLanguage.g:3303:1: rule__MappingDefinition__AssignmentsAssignment_8_1_0_1 : ( ruleAssignment ) ; | ||
10027 | public final void rule__MappingDefinition__AssignmentsAssignment_8_1_0_1() throws RecognitionException { | ||
10028 | |||
10029 | int stackSize = keepStackSize(); | ||
10030 | |||
10031 | try { | ||
10032 | // InternalCftLanguage.g:3307:1: ( ( ruleAssignment ) ) | ||
10033 | // InternalCftLanguage.g:3308:2: ( ruleAssignment ) | ||
10034 | { | ||
10035 | // InternalCftLanguage.g:3308:2: ( ruleAssignment ) | ||
10036 | // InternalCftLanguage.g:3309:3: ruleAssignment | ||
10037 | { | ||
10038 | before(grammarAccess.getMappingDefinitionAccess().getAssignmentsAssignmentParserRuleCall_8_1_0_1_0()); | ||
10039 | pushFollow(FOLLOW_2); | ||
10040 | ruleAssignment(); | ||
10041 | |||
10042 | state._fsp--; | ||
10043 | |||
10044 | after(grammarAccess.getMappingDefinitionAccess().getAssignmentsAssignmentParserRuleCall_8_1_0_1_0()); | ||
10045 | |||
10046 | } | ||
10047 | |||
10048 | |||
10049 | } | ||
10050 | |||
10051 | } | ||
10052 | catch (RecognitionException re) { | ||
10053 | reportError(re); | ||
10054 | recover(input,re); | ||
10055 | } | ||
10056 | finally { | ||
10057 | |||
10058 | restoreStackSize(stackSize); | ||
10059 | |||
10060 | } | ||
10061 | return ; | ||
10062 | } | ||
10063 | // $ANTLR end "rule__MappingDefinition__AssignmentsAssignment_8_1_0_1" | ||
10064 | |||
10065 | |||
10066 | // $ANTLR start "rule__MappingParameter__NameAssignment" | ||
10067 | // InternalCftLanguage.g:3318:1: rule__MappingParameter__NameAssignment : ( RULE_ID ) ; | ||
10068 | public final void rule__MappingParameter__NameAssignment() throws RecognitionException { | ||
10069 | |||
10070 | int stackSize = keepStackSize(); | ||
10071 | |||
10072 | try { | ||
10073 | // InternalCftLanguage.g:3322:1: ( ( RULE_ID ) ) | ||
10074 | // InternalCftLanguage.g:3323:2: ( RULE_ID ) | ||
10075 | { | ||
10076 | // InternalCftLanguage.g:3323:2: ( RULE_ID ) | ||
10077 | // InternalCftLanguage.g:3324:3: RULE_ID | ||
10078 | { | ||
10079 | before(grammarAccess.getMappingParameterAccess().getNameIDTerminalRuleCall_0()); | ||
10080 | match(input,RULE_ID,FOLLOW_2); | ||
10081 | after(grammarAccess.getMappingParameterAccess().getNameIDTerminalRuleCall_0()); | ||
10082 | |||
10083 | } | ||
10084 | |||
10085 | |||
10086 | } | ||
10087 | |||
10088 | } | ||
10089 | catch (RecognitionException re) { | ||
10090 | reportError(re); | ||
10091 | recover(input,re); | ||
10092 | } | ||
10093 | finally { | ||
10094 | |||
10095 | restoreStackSize(stackSize); | ||
10096 | |||
10097 | } | ||
10098 | return ; | ||
10099 | } | ||
10100 | // $ANTLR end "rule__MappingParameter__NameAssignment" | ||
10101 | |||
10102 | |||
10103 | // $ANTLR start "rule__LookupDefinition__MappingAssignment_1" | ||
10104 | // InternalCftLanguage.g:3333:1: rule__LookupDefinition__MappingAssignment_1 : ( ( RULE_ID ) ) ; | ||
10105 | public final void rule__LookupDefinition__MappingAssignment_1() throws RecognitionException { | ||
10106 | |||
10107 | int stackSize = keepStackSize(); | ||
10108 | |||
10109 | try { | ||
10110 | // InternalCftLanguage.g:3337:1: ( ( ( RULE_ID ) ) ) | ||
10111 | // InternalCftLanguage.g:3338:2: ( ( RULE_ID ) ) | ||
10112 | { | ||
10113 | // InternalCftLanguage.g:3338:2: ( ( RULE_ID ) ) | ||
10114 | // InternalCftLanguage.g:3339:3: ( RULE_ID ) | ||
10115 | { | ||
10116 | before(grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionCrossReference_1_0()); | ||
10117 | // InternalCftLanguage.g:3340:3: ( RULE_ID ) | ||
10118 | // InternalCftLanguage.g:3341:4: RULE_ID | ||
10119 | { | ||
10120 | before(grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionIDTerminalRuleCall_1_0_1()); | ||
10121 | match(input,RULE_ID,FOLLOW_2); | ||
10122 | after(grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionIDTerminalRuleCall_1_0_1()); | ||
10123 | |||
10124 | } | ||
10125 | |||
10126 | after(grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionCrossReference_1_0()); | ||
10127 | |||
10128 | } | ||
10129 | |||
10130 | |||
10131 | } | ||
10132 | |||
10133 | } | ||
10134 | catch (RecognitionException re) { | ||
10135 | reportError(re); | ||
10136 | recover(input,re); | ||
10137 | } | ||
10138 | finally { | ||
10139 | |||
10140 | restoreStackSize(stackSize); | ||
10141 | |||
10142 | } | ||
10143 | return ; | ||
10144 | } | ||
10145 | // $ANTLR end "rule__LookupDefinition__MappingAssignment_1" | ||
10146 | |||
10147 | |||
10148 | // $ANTLR start "rule__LookupDefinition__ArgumentsAssignment_3" | ||
10149 | // InternalCftLanguage.g:3352:1: rule__LookupDefinition__ArgumentsAssignment_3 : ( ( RULE_ID ) ) ; | ||
10150 | public final void rule__LookupDefinition__ArgumentsAssignment_3() throws RecognitionException { | ||
10151 | |||
10152 | int stackSize = keepStackSize(); | ||
10153 | |||
10154 | try { | ||
10155 | // InternalCftLanguage.g:3356:1: ( ( ( RULE_ID ) ) ) | ||
10156 | // InternalCftLanguage.g:3357:2: ( ( RULE_ID ) ) | ||
10157 | { | ||
10158 | // InternalCftLanguage.g:3357:2: ( ( RULE_ID ) ) | ||
10159 | // InternalCftLanguage.g:3358:3: ( RULE_ID ) | ||
10160 | { | ||
10161 | before(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_3_0()); | ||
10162 | // InternalCftLanguage.g:3359:3: ( RULE_ID ) | ||
10163 | // InternalCftLanguage.g:3360:4: RULE_ID | ||
10164 | { | ||
10165 | before(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterIDTerminalRuleCall_3_0_1()); | ||
10166 | match(input,RULE_ID,FOLLOW_2); | ||
10167 | after(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterIDTerminalRuleCall_3_0_1()); | ||
10168 | |||
10169 | } | ||
10170 | |||
10171 | after(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_3_0()); | ||
10172 | |||
10173 | } | ||
10174 | |||
10175 | |||
10176 | } | ||
10177 | |||
10178 | } | ||
10179 | catch (RecognitionException re) { | ||
10180 | reportError(re); | ||
10181 | recover(input,re); | ||
10182 | } | ||
10183 | finally { | ||
10184 | |||
10185 | restoreStackSize(stackSize); | ||
10186 | |||
10187 | } | ||
10188 | return ; | ||
10189 | } | ||
10190 | // $ANTLR end "rule__LookupDefinition__ArgumentsAssignment_3" | ||
10191 | |||
10192 | |||
10193 | // $ANTLR start "rule__LookupDefinition__ArgumentsAssignment_4_1" | ||
10194 | // InternalCftLanguage.g:3371:1: rule__LookupDefinition__ArgumentsAssignment_4_1 : ( ( RULE_ID ) ) ; | ||
10195 | public final void rule__LookupDefinition__ArgumentsAssignment_4_1() throws RecognitionException { | ||
10196 | |||
10197 | int stackSize = keepStackSize(); | ||
10198 | |||
10199 | try { | ||
10200 | // InternalCftLanguage.g:3375:1: ( ( ( RULE_ID ) ) ) | ||
10201 | // InternalCftLanguage.g:3376:2: ( ( RULE_ID ) ) | ||
10202 | { | ||
10203 | // InternalCftLanguage.g:3376:2: ( ( RULE_ID ) ) | ||
10204 | // InternalCftLanguage.g:3377:3: ( RULE_ID ) | ||
10205 | { | ||
10206 | before(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_4_1_0()); | ||
10207 | // InternalCftLanguage.g:3378:3: ( RULE_ID ) | ||
10208 | // InternalCftLanguage.g:3379:4: RULE_ID | ||
10209 | { | ||
10210 | before(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterIDTerminalRuleCall_4_1_0_1()); | ||
10211 | match(input,RULE_ID,FOLLOW_2); | ||
10212 | after(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterIDTerminalRuleCall_4_1_0_1()); | ||
10213 | |||
10214 | } | ||
10215 | |||
10216 | after(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_4_1_0()); | ||
10217 | |||
10218 | } | ||
10219 | |||
10220 | |||
10221 | } | ||
10222 | |||
10223 | } | ||
10224 | catch (RecognitionException re) { | ||
10225 | reportError(re); | ||
10226 | recover(input,re); | ||
10227 | } | ||
10228 | finally { | ||
10229 | |||
10230 | restoreStackSize(stackSize); | ||
10231 | |||
10232 | } | ||
10233 | return ; | ||
10234 | } | ||
10235 | // $ANTLR end "rule__LookupDefinition__ArgumentsAssignment_4_1" | ||
10236 | |||
10237 | |||
10238 | // $ANTLR start "rule__LookupDefinition__NameAssignment_7" | ||
10239 | // InternalCftLanguage.g:3390:1: rule__LookupDefinition__NameAssignment_7 : ( RULE_ID ) ; | ||
10240 | public final void rule__LookupDefinition__NameAssignment_7() throws RecognitionException { | ||
10241 | |||
10242 | int stackSize = keepStackSize(); | ||
10243 | |||
10244 | try { | ||
10245 | // InternalCftLanguage.g:3394:1: ( ( RULE_ID ) ) | ||
10246 | // InternalCftLanguage.g:3395:2: ( RULE_ID ) | ||
10247 | { | ||
10248 | // InternalCftLanguage.g:3395:2: ( RULE_ID ) | ||
10249 | // InternalCftLanguage.g:3396:3: RULE_ID | ||
10250 | { | ||
10251 | before(grammarAccess.getLookupDefinitionAccess().getNameIDTerminalRuleCall_7_0()); | ||
10252 | match(input,RULE_ID,FOLLOW_2); | ||
10253 | after(grammarAccess.getLookupDefinitionAccess().getNameIDTerminalRuleCall_7_0()); | ||
10254 | |||
10255 | } | ||
10256 | |||
10257 | |||
10258 | } | ||
10259 | |||
10260 | } | ||
10261 | catch (RecognitionException re) { | ||
10262 | reportError(re); | ||
10263 | recover(input,re); | ||
10264 | } | ||
10265 | finally { | ||
10266 | |||
10267 | restoreStackSize(stackSize); | ||
10268 | |||
10269 | } | ||
10270 | return ; | ||
10271 | } | ||
10272 | // $ANTLR end "rule__LookupDefinition__NameAssignment_7" | ||
10273 | |||
10274 | |||
10275 | // $ANTLR start "rule__Assignment__InputAssignment_0" | ||
10276 | // InternalCftLanguage.g:3405:1: rule__Assignment__InputAssignment_0 : ( ruleEventReference ) ; | ||
10277 | public final void rule__Assignment__InputAssignment_0() throws RecognitionException { | ||
10278 | |||
10279 | int stackSize = keepStackSize(); | ||
10280 | |||
10281 | try { | ||
10282 | // InternalCftLanguage.g:3409:1: ( ( ruleEventReference ) ) | ||
10283 | // InternalCftLanguage.g:3410:2: ( ruleEventReference ) | ||
10284 | { | ||
10285 | // InternalCftLanguage.g:3410:2: ( ruleEventReference ) | ||
10286 | // InternalCftLanguage.g:3411:3: ruleEventReference | ||
10287 | { | ||
10288 | before(grammarAccess.getAssignmentAccess().getInputEventReferenceParserRuleCall_0_0()); | ||
10289 | pushFollow(FOLLOW_2); | ||
10290 | ruleEventReference(); | ||
10291 | |||
10292 | state._fsp--; | ||
10293 | |||
10294 | after(grammarAccess.getAssignmentAccess().getInputEventReferenceParserRuleCall_0_0()); | ||
10295 | |||
10296 | } | ||
10297 | |||
10298 | |||
10299 | } | ||
10300 | |||
10301 | } | ||
10302 | catch (RecognitionException re) { | ||
10303 | reportError(re); | ||
10304 | recover(input,re); | ||
10305 | } | ||
10306 | finally { | ||
10307 | |||
10308 | restoreStackSize(stackSize); | ||
10309 | |||
10310 | } | ||
10311 | return ; | ||
10312 | } | ||
10313 | // $ANTLR end "rule__Assignment__InputAssignment_0" | ||
10314 | |||
10315 | |||
10316 | // $ANTLR start "rule__Assignment__MultipleAssignment_1_0" | ||
10317 | // InternalCftLanguage.g:3420:1: rule__Assignment__MultipleAssignment_1_0 : ( ( '+=' ) ) ; | ||
10318 | public final void rule__Assignment__MultipleAssignment_1_0() throws RecognitionException { | ||
10319 | |||
10320 | int stackSize = keepStackSize(); | ||
10321 | |||
10322 | try { | ||
10323 | // InternalCftLanguage.g:3424:1: ( ( ( '+=' ) ) ) | ||
10324 | // InternalCftLanguage.g:3425:2: ( ( '+=' ) ) | ||
10325 | { | ||
10326 | // InternalCftLanguage.g:3425:2: ( ( '+=' ) ) | ||
10327 | // InternalCftLanguage.g:3426:3: ( '+=' ) | ||
10328 | { | ||
10329 | before(grammarAccess.getAssignmentAccess().getMultiplePlusSignEqualsSignKeyword_1_0_0()); | ||
10330 | // InternalCftLanguage.g:3427:3: ( '+=' ) | ||
10331 | // InternalCftLanguage.g:3428:4: '+=' | ||
10332 | { | ||
10333 | before(grammarAccess.getAssignmentAccess().getMultiplePlusSignEqualsSignKeyword_1_0_0()); | ||
10334 | match(input,37,FOLLOW_2); | ||
10335 | after(grammarAccess.getAssignmentAccess().getMultiplePlusSignEqualsSignKeyword_1_0_0()); | ||
10336 | |||
10337 | } | ||
10338 | |||
10339 | after(grammarAccess.getAssignmentAccess().getMultiplePlusSignEqualsSignKeyword_1_0_0()); | ||
10340 | |||
10341 | } | ||
10342 | |||
10343 | |||
10344 | } | ||
10345 | |||
10346 | } | ||
10347 | catch (RecognitionException re) { | ||
10348 | reportError(re); | ||
10349 | recover(input,re); | ||
10350 | } | ||
10351 | finally { | ||
10352 | |||
10353 | restoreStackSize(stackSize); | ||
10354 | |||
10355 | } | ||
10356 | return ; | ||
10357 | } | ||
10358 | // $ANTLR end "rule__Assignment__MultipleAssignment_1_0" | ||
10359 | |||
10360 | |||
10361 | // $ANTLR start "rule__Assignment__OutputAssignment_2" | ||
10362 | // InternalCftLanguage.g:3439:1: rule__Assignment__OutputAssignment_2 : ( ruleEventReference ) ; | ||
10363 | public final void rule__Assignment__OutputAssignment_2() throws RecognitionException { | ||
10364 | |||
10365 | int stackSize = keepStackSize(); | ||
10366 | |||
10367 | try { | ||
10368 | // InternalCftLanguage.g:3443:1: ( ( ruleEventReference ) ) | ||
10369 | // InternalCftLanguage.g:3444:2: ( ruleEventReference ) | ||
10370 | { | ||
10371 | // InternalCftLanguage.g:3444:2: ( ruleEventReference ) | ||
10372 | // InternalCftLanguage.g:3445:3: ruleEventReference | ||
10373 | { | ||
10374 | before(grammarAccess.getAssignmentAccess().getOutputEventReferenceParserRuleCall_2_0()); | ||
10375 | pushFollow(FOLLOW_2); | ||
10376 | ruleEventReference(); | ||
10377 | |||
10378 | state._fsp--; | ||
10379 | |||
10380 | after(grammarAccess.getAssignmentAccess().getOutputEventReferenceParserRuleCall_2_0()); | ||
10381 | |||
10382 | } | ||
10383 | |||
10384 | |||
10385 | } | ||
10386 | |||
10387 | } | ||
10388 | catch (RecognitionException re) { | ||
10389 | reportError(re); | ||
10390 | recover(input,re); | ||
10391 | } | ||
10392 | finally { | ||
10393 | |||
10394 | restoreStackSize(stackSize); | ||
10395 | |||
10396 | } | ||
10397 | return ; | ||
10398 | } | ||
10399 | // $ANTLR end "rule__Assignment__OutputAssignment_2" | ||
10400 | |||
10401 | |||
10402 | // $ANTLR start "rule__EventReference__ComponentAssignment_0" | ||
10403 | // InternalCftLanguage.g:3454:1: rule__EventReference__ComponentAssignment_0 : ( ( RULE_ID ) ) ; | ||
10404 | public final void rule__EventReference__ComponentAssignment_0() throws RecognitionException { | ||
10405 | |||
10406 | int stackSize = keepStackSize(); | ||
10407 | |||
10408 | try { | ||
10409 | // InternalCftLanguage.g:3458:1: ( ( ( RULE_ID ) ) ) | ||
10410 | // InternalCftLanguage.g:3459:2: ( ( RULE_ID ) ) | ||
10411 | { | ||
10412 | // InternalCftLanguage.g:3459:2: ( ( RULE_ID ) ) | ||
10413 | // InternalCftLanguage.g:3460:3: ( RULE_ID ) | ||
10414 | { | ||
10415 | before(grammarAccess.getEventReferenceAccess().getComponentVariableCrossReference_0_0()); | ||
10416 | // InternalCftLanguage.g:3461:3: ( RULE_ID ) | ||
10417 | // InternalCftLanguage.g:3462:4: RULE_ID | ||
10418 | { | ||
10419 | before(grammarAccess.getEventReferenceAccess().getComponentVariableIDTerminalRuleCall_0_0_1()); | ||
10420 | match(input,RULE_ID,FOLLOW_2); | ||
10421 | after(grammarAccess.getEventReferenceAccess().getComponentVariableIDTerminalRuleCall_0_0_1()); | ||
10422 | |||
10423 | } | ||
10424 | |||
10425 | after(grammarAccess.getEventReferenceAccess().getComponentVariableCrossReference_0_0()); | ||
10426 | |||
10427 | } | ||
10428 | |||
10429 | |||
10430 | } | ||
10431 | |||
10432 | } | ||
10433 | catch (RecognitionException re) { | ||
10434 | reportError(re); | ||
10435 | recover(input,re); | ||
10436 | } | ||
10437 | finally { | ||
10438 | |||
10439 | restoreStackSize(stackSize); | ||
10440 | |||
10441 | } | ||
10442 | return ; | ||
10443 | } | ||
10444 | // $ANTLR end "rule__EventReference__ComponentAssignment_0" | ||
10445 | |||
10446 | |||
10447 | // $ANTLR start "rule__EventReference__EventAssignment_2" | ||
10448 | // InternalCftLanguage.g:3473:1: rule__EventReference__EventAssignment_2 : ( ( RULE_ID ) ) ; | ||
10449 | public final void rule__EventReference__EventAssignment_2() throws RecognitionException { | ||
10450 | |||
10451 | int stackSize = keepStackSize(); | ||
10452 | |||
10453 | try { | ||
10454 | // InternalCftLanguage.g:3477:1: ( ( ( RULE_ID ) ) ) | ||
10455 | // InternalCftLanguage.g:3478:2: ( ( RULE_ID ) ) | ||
10456 | { | ||
10457 | // InternalCftLanguage.g:3478:2: ( ( RULE_ID ) ) | ||
10458 | // InternalCftLanguage.g:3479:3: ( RULE_ID ) | ||
10459 | { | ||
10460 | before(grammarAccess.getEventReferenceAccess().getEventEventDeclarationCrossReference_2_0()); | ||
10461 | // InternalCftLanguage.g:3480:3: ( RULE_ID ) | ||
10462 | // InternalCftLanguage.g:3481:4: RULE_ID | ||
10463 | { | ||
10464 | before(grammarAccess.getEventReferenceAccess().getEventEventDeclarationIDTerminalRuleCall_2_0_1()); | ||
10465 | match(input,RULE_ID,FOLLOW_2); | ||
10466 | after(grammarAccess.getEventReferenceAccess().getEventEventDeclarationIDTerminalRuleCall_2_0_1()); | ||
10467 | |||
10468 | } | ||
10469 | |||
10470 | after(grammarAccess.getEventReferenceAccess().getEventEventDeclarationCrossReference_2_0()); | ||
10471 | |||
10472 | } | ||
10473 | |||
10474 | |||
10475 | } | ||
10476 | |||
10477 | } | ||
10478 | catch (RecognitionException re) { | ||
10479 | reportError(re); | ||
10480 | recover(input,re); | ||
10481 | } | ||
10482 | finally { | ||
10483 | |||
10484 | restoreStackSize(stackSize); | ||
10485 | |||
10486 | } | ||
10487 | return ; | ||
10488 | } | ||
10489 | // $ANTLR end "rule__EventReference__EventAssignment_2" | ||
10490 | |||
10491 | |||
10492 | // $ANTLR start "rule__ComponentInstance__ComponentTypeAssignment_1" | ||
10493 | // InternalCftLanguage.g:3492:1: rule__ComponentInstance__ComponentTypeAssignment_1 : ( ( ruleQualifiedName ) ) ; | ||
10494 | public final void rule__ComponentInstance__ComponentTypeAssignment_1() throws RecognitionException { | ||
10495 | |||
10496 | int stackSize = keepStackSize(); | ||
10497 | |||
10498 | try { | ||
10499 | // InternalCftLanguage.g:3496:1: ( ( ( ruleQualifiedName ) ) ) | ||
10500 | // InternalCftLanguage.g:3497:2: ( ( ruleQualifiedName ) ) | ||
10501 | { | ||
10502 | // InternalCftLanguage.g:3497:2: ( ( ruleQualifiedName ) ) | ||
10503 | // InternalCftLanguage.g:3498:3: ( ruleQualifiedName ) | ||
10504 | { | ||
10505 | before(grammarAccess.getComponentInstanceAccess().getComponentTypeComponentDefinitionCrossReference_1_0()); | ||
10506 | // InternalCftLanguage.g:3499:3: ( ruleQualifiedName ) | ||
10507 | // InternalCftLanguage.g:3500:4: ruleQualifiedName | ||
10508 | { | ||
10509 | before(grammarAccess.getComponentInstanceAccess().getComponentTypeComponentDefinitionQualifiedNameParserRuleCall_1_0_1()); | ||
10510 | pushFollow(FOLLOW_2); | ||
10511 | ruleQualifiedName(); | ||
10512 | |||
10513 | state._fsp--; | ||
10514 | |||
10515 | after(grammarAccess.getComponentInstanceAccess().getComponentTypeComponentDefinitionQualifiedNameParserRuleCall_1_0_1()); | ||
10516 | |||
10517 | } | ||
10518 | |||
10519 | after(grammarAccess.getComponentInstanceAccess().getComponentTypeComponentDefinitionCrossReference_1_0()); | ||
10520 | |||
10521 | } | ||
10522 | |||
10523 | |||
10524 | } | ||
10525 | |||
10526 | } | ||
10527 | catch (RecognitionException re) { | ||
10528 | reportError(re); | ||
10529 | recover(input,re); | ||
10530 | } | ||
10531 | finally { | ||
10532 | |||
10533 | restoreStackSize(stackSize); | ||
10534 | |||
10535 | } | ||
10536 | return ; | ||
10537 | } | ||
10538 | // $ANTLR end "rule__ComponentInstance__ComponentTypeAssignment_1" | ||
10539 | |||
10540 | |||
10541 | // $ANTLR start "rule__ComponentInstance__NameAssignment_2" | ||
10542 | // InternalCftLanguage.g:3511:1: rule__ComponentInstance__NameAssignment_2 : ( RULE_ID ) ; | ||
10543 | public final void rule__ComponentInstance__NameAssignment_2() throws RecognitionException { | ||
10544 | |||
10545 | int stackSize = keepStackSize(); | ||
10546 | |||
10547 | try { | ||
10548 | // InternalCftLanguage.g:3515:1: ( ( RULE_ID ) ) | ||
10549 | // InternalCftLanguage.g:3516:2: ( RULE_ID ) | ||
10550 | { | ||
10551 | // InternalCftLanguage.g:3516:2: ( RULE_ID ) | ||
10552 | // InternalCftLanguage.g:3517:3: RULE_ID | ||
10553 | { | ||
10554 | before(grammarAccess.getComponentInstanceAccess().getNameIDTerminalRuleCall_2_0()); | ||
10555 | match(input,RULE_ID,FOLLOW_2); | ||
10556 | after(grammarAccess.getComponentInstanceAccess().getNameIDTerminalRuleCall_2_0()); | ||
10557 | |||
10558 | } | ||
10559 | |||
10560 | |||
10561 | } | ||
10562 | |||
10563 | } | ||
10564 | catch (RecognitionException re) { | ||
10565 | reportError(re); | ||
10566 | recover(input,re); | ||
10567 | } | ||
10568 | finally { | ||
10569 | |||
10570 | restoreStackSize(stackSize); | ||
10571 | |||
10572 | } | ||
10573 | return ; | ||
10574 | } | ||
10575 | // $ANTLR end "rule__ComponentInstance__NameAssignment_2" | ||
10576 | |||
10577 | // Delegated rules | ||
10578 | |||
10579 | |||
10580 | |||
10581 | |||
10582 | public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L}); | ||
10583 | public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L}); | ||
10584 | public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x0000000000000010L}); | ||
10585 | public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x000000000201C000L}); | ||
10586 | public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000000008002L}); | ||
10587 | public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000002010002L}); | ||
10588 | public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000004000L}); | ||
10589 | public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000020000L}); | ||
10590 | public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x0000000000180000L}); | ||
10591 | public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000040010L}); | ||
10592 | public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000000012L}); | ||
10593 | public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000004010L}); | ||
10594 | public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000800000000L}); | ||
10595 | public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000000200000L}); | ||
10596 | public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000000400000L}); | ||
10597 | public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000000000020L}); | ||
10598 | public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000000800000L}); | ||
10599 | public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000001000000L}); | ||
10600 | public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000001004040000L}); | ||
10601 | public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x0000001004000002L}); | ||
10602 | public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000001004000000L}); | ||
10603 | public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000000008000000L}); | ||
10604 | public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000000030000000L}); | ||
10605 | public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000000020000002L}); | ||
10606 | public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000000200020000L}); | ||
10607 | public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000000040040010L}); | ||
10608 | public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0000000040000012L}); | ||
10609 | public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000000080000000L}); | ||
10610 | public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000002000001000L}); | ||
10611 | public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x0000000040000010L}); | ||
10612 | public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000000100000000L}); | ||
10613 | public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0000000100000002L}); | ||
10614 | public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x0000000400000000L}); | ||
10615 | public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x0000000000180002L}); | ||
10616 | |||
10617 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/CftLanguageIdeModule.xtend b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/CftLanguageIdeModule.xtend new file mode 100644 index 00000000..1717a3c0 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/CftLanguageIdeModule.xtend | |||
@@ -0,0 +1,11 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.ide | ||
5 | |||
6 | |||
7 | /** | ||
8 | * Use this class to register ide components. | ||
9 | */ | ||
10 | class CftLanguageIdeModule extends AbstractCftLanguageIdeModule { | ||
11 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/CftLanguageIdeSetup.xtend b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/CftLanguageIdeSetup.xtend new file mode 100644 index 00000000..af8d87a5 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/CftLanguageIdeSetup.xtend | |||
@@ -0,0 +1,20 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.ide | ||
5 | |||
6 | import com.google.inject.Guice | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguageRuntimeModule | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguageStandaloneSetup | ||
9 | import org.eclipse.xtext.util.Modules2 | ||
10 | |||
11 | /** | ||
12 | * Initialization support for running Xtext languages as language servers. | ||
13 | */ | ||
14 | class CftLanguageIdeSetup extends CftLanguageStandaloneSetup { | ||
15 | |||
16 | override createInjector() { | ||
17 | Guice.createInjector(Modules2.mixin(new CftLanguageRuntimeModule, new CftLanguageIdeModule)) | ||
18 | } | ||
19 | |||
20 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/.CftLanguageIdeModule.xtendbin b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/.CftLanguageIdeModule.xtendbin new file mode 100644 index 00000000..728a6549 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/.CftLanguageIdeModule.xtendbin | |||
Binary files differ | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/.CftLanguageIdeSetup.xtendbin b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/.CftLanguageIdeSetup.xtendbin new file mode 100644 index 00000000..9bb35edd --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/.CftLanguageIdeSetup.xtendbin | |||
Binary files differ | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/.gitignore b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/.gitignore new file mode 100644 index 00000000..2fad95ba --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/.gitignore | |||
@@ -0,0 +1,2 @@ | |||
1 | /.CftLanguageIdeModule.java._trace | ||
2 | /.CftLanguageIdeSetup.java._trace | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/CftLanguageIdeModule.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/CftLanguageIdeModule.java new file mode 100644 index 00000000..cdedc92a --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/CftLanguageIdeModule.java | |||
@@ -0,0 +1,13 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.ide; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.ide.AbstractCftLanguageIdeModule; | ||
7 | |||
8 | /** | ||
9 | * Use this class to register ide components. | ||
10 | */ | ||
11 | @SuppressWarnings("all") | ||
12 | public class CftLanguageIdeModule extends AbstractCftLanguageIdeModule { | ||
13 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/CftLanguageIdeSetup.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/CftLanguageIdeSetup.java new file mode 100644 index 00000000..f07010fc --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ide/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ide/CftLanguageIdeSetup.java | |||
@@ -0,0 +1,24 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.ide; | ||
5 | |||
6 | import com.google.inject.Guice; | ||
7 | import com.google.inject.Injector; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguageRuntimeModule; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguageStandaloneSetup; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.ide.CftLanguageIdeModule; | ||
11 | import org.eclipse.xtext.util.Modules2; | ||
12 | |||
13 | /** | ||
14 | * Initialization support for running Xtext languages as language servers. | ||
15 | */ | ||
16 | @SuppressWarnings("all") | ||
17 | public class CftLanguageIdeSetup extends CftLanguageStandaloneSetup { | ||
18 | @Override | ||
19 | public Injector createInjector() { | ||
20 | CftLanguageRuntimeModule _cftLanguageRuntimeModule = new CftLanguageRuntimeModule(); | ||
21 | CftLanguageIdeModule _cftLanguageIdeModule = new CftLanguageIdeModule(); | ||
22 | return Guice.createInjector(Modules2.mixin(_cftLanguageRuntimeModule, _cftLanguageIdeModule)); | ||
23 | } | ||
24 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/.classpath b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/.classpath new file mode 100644 index 00000000..9081d4f7 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.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/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/.gitignore b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/.gitignore new file mode 100644 index 00000000..ae3c1726 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/.gitignore | |||
@@ -0,0 +1 @@ | |||
/bin/ | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/.project b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/.project new file mode 100644 index 00000000..ff20123a --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/.project | |||
@@ -0,0 +1,34 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <projectDescription> | ||
3 | <name>hu.bme.mit.inf.dslreasoner.faulttree.components.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/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/.settings/org.eclipse.core.resources.prefs b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 00000000..99f26c02 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/.settings/org.eclipse.core.resources.prefs | |||
@@ -0,0 +1,2 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | encoding/<project>=UTF-8 | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/.settings/org.eclipse.jdt.core.prefs b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..0c68a61d --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.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/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/META-INF/MANIFEST.MF b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/META-INF/MANIFEST.MF new file mode 100644 index 00000000..0b82fe96 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/META-INF/MANIFEST.MF | |||
@@ -0,0 +1,26 @@ | |||
1 | Manifest-Version: 1.0 | ||
2 | Automatic-Module-Name: hu.bme.mit.inf.dslreasoner.faulttree.components.ui | ||
3 | Bundle-ManifestVersion: 2 | ||
4 | Bundle-Name: hu.bme.mit.inf.dslreasoner.faulttree.components.ui | ||
5 | Bundle-Vendor: My Company | ||
6 | Bundle-Version: 1.0.0.qualifier | ||
7 | Bundle-SymbolicName: hu.bme.mit.inf.dslreasoner.faulttree.components.ui; singleton:=true | ||
8 | Bundle-ActivationPolicy: lazy | ||
9 | Require-Bundle: hu.bme.mit.inf.dslreasoner.faulttree.components, | ||
10 | hu.bme.mit.inf.dslreasoner.faulttree.components.ide, | ||
11 | org.eclipse.xtext.ui, | ||
12 | org.eclipse.xtext.ui.shared, | ||
13 | org.eclipse.xtext.ui.codetemplates.ui, | ||
14 | org.eclipse.ui.editors;bundle-version="3.5.0", | ||
15 | org.eclipse.ui.ide;bundle-version="3.5.0", | ||
16 | org.eclipse.ui, | ||
17 | org.eclipse.compare, | ||
18 | org.eclipse.xtext.builder, | ||
19 | org.eclipse.xtext.xbase.lib;bundle-version="2.14.0", | ||
20 | org.eclipse.xtend.lib;bundle-version="2.14.0";resolution:=optional | ||
21 | Import-Package: org.apache.log4j | ||
22 | Bundle-RequiredExecutionEnvironment: JavaSE-1.8 | ||
23 | Export-Package: hu.bme.mit.inf.dslreasoner.faulttree.components.ui.internal, | ||
24 | hu.bme.mit.inf.dslreasoner.faulttree.components.ui.quickfix, | ||
25 | hu.bme.mit.inf.dslreasoner.faulttree.components.ui.contentassist | ||
26 | Bundle-Activator: hu.bme.mit.inf.dslreasoner.faulttree.components.ui.internal.ComponentsActivator | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/build.properties b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/build.properties new file mode 100644 index 00000000..323f56c5 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/build.properties | |||
@@ -0,0 +1,7 @@ | |||
1 | source.. = src/,\ | ||
2 | src-gen/,\ | ||
3 | xtend-gen/ | ||
4 | bin.includes = .,\ | ||
5 | META-INF/,\ | ||
6 | plugin.xml | ||
7 | bin.excludes = **/*.xtend | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/plugin.xml b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/plugin.xml new file mode 100644 index 00000000..afad4516 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/plugin.xml | |||
@@ -0,0 +1,434 @@ | |||
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.faulttree.components.ui.CftLanguageExecutableExtensionFactory:org.eclipse.xtext.ui.editor.XtextEditor" | ||
8 | contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor" | ||
9 | default="true" | ||
10 | extensions="cft" | ||
11 | id="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage" | ||
12 | name="CftLanguage Editor"> | ||
13 | </editor> | ||
14 | </extension> | ||
15 | <extension | ||
16 | point="org.eclipse.ui.handlers"> | ||
17 | <handler | ||
18 | class="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.CftLanguageExecutableExtensionFactory: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.faulttree.components.CftLanguage.Editor.opened"> | ||
23 | </reference> | ||
24 | </activeWhen> | ||
25 | </handler> | ||
26 | <handler | ||
27 | class="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.CftLanguageExecutableExtensionFactory:org.eclipse.xtext.ui.editor.handler.ValidateActionHandler" | ||
28 | commandId="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.validate"> | ||
29 | <activeWhen> | ||
30 | <reference | ||
31 | definitionId="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Editor.opened"> | ||
32 | </reference> | ||
33 | </activeWhen> | ||
34 | </handler> | ||
35 | <!-- copy qualified name --> | ||
36 | <handler | ||
37 | class="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.CftLanguageExecutableExtensionFactory: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.faulttree.components.CftLanguage.Editor.opened" /> | ||
41 | </activeWhen> | ||
42 | </handler> | ||
43 | <handler | ||
44 | class="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.CftLanguageExecutableExtensionFactory: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.faulttree.components.CftLanguage.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.faulttree.components.CftLanguage.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.faulttree.components.CftLanguage" | ||
63 | forcePluginActivation="true"/> | ||
64 | </with> | ||
65 | </and> | ||
66 | </definition> | ||
67 | <definition id="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.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.faulttree.components.CftLanguage" | ||
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.faulttree.components.ui.CftLanguageExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage" | ||
82 | id="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage" | ||
83 | name="CftLanguage"> | ||
84 | <keywordReference id="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.keyword_CftLanguage"/> | ||
85 | </page> | ||
86 | <page | ||
87 | category="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage" | ||
88 | class="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.CftLanguageExecutableExtensionFactory:org.eclipse.xtext.ui.editor.syntaxcoloring.SyntaxColoringPreferencePage" | ||
89 | id="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.coloring" | ||
90 | name="Syntax Coloring"> | ||
91 | <keywordReference id="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.keyword_CftLanguage"/> | ||
92 | </page> | ||
93 | <page | ||
94 | category="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage" | ||
95 | class="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.CftLanguageExecutableExtensionFactory:org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage" | ||
96 | id="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.templates" | ||
97 | name="Templates"> | ||
98 | <keywordReference id="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.keyword_CftLanguage"/> | ||
99 | </page> | ||
100 | </extension> | ||
101 | <extension | ||
102 | point="org.eclipse.ui.propertyPages"> | ||
103 | <page | ||
104 | class="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.CftLanguageExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage" | ||
105 | id="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage" | ||
106 | name="CftLanguage"> | ||
107 | <keywordReference id="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.keyword_CftLanguage"/> | ||
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.faulttree.components.ui.keyword_CftLanguage" | ||
118 | label="CftLanguage"/> | ||
119 | </extension> | ||
120 | <extension | ||
121 | point="org.eclipse.ui.commands"> | ||
122 | <command | ||
123 | description="Trigger expensive validation" | ||
124 | id="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.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.faulttree.components.CftLanguage.validate" | ||
146 | style="push" | ||
147 | tooltip="Trigger expensive validation"> | ||
148 | <visibleWhen checkEnabled="false"> | ||
149 | <reference | ||
150 | definitionId="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.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.faulttree.components.CftLanguage.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.faulttree.components.CftLanguage.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.faulttree.components.CftLanguage.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.faulttree.components.CftLanguage.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.faulttree.components.ui.CftLanguageExecutableExtensionFactory: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.faulttree.components.CftLanguage.Editor.opened"> | ||
203 | </reference> | ||
204 | </activeWhen> | ||
205 | </handler> | ||
206 | </extension> | ||
207 | <extension point="org.eclipse.core.contenttype.contentTypes"> | ||
208 | <content-type | ||
209 | base-type="org.eclipse.core.runtime.text" | ||
210 | file-extensions="cft" | ||
211 | id="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.contenttype" | ||
212 | name="CftLanguage File" | ||
213 | priority="normal"> | ||
214 | </content-type> | ||
215 | </extension> | ||
216 | <!-- adding resource factories --> | ||
217 | <extension | ||
218 | point="org.eclipse.emf.ecore.extension_parser"> | ||
219 | <parser | ||
220 | class="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.CftLanguageExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory" | ||
221 | type="cft"> | ||
222 | </parser> | ||
223 | </extension> | ||
224 | <extension point="org.eclipse.xtext.extension_resourceServiceProvider"> | ||
225 | <resourceServiceProvider | ||
226 | class="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.CftLanguageExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider" | ||
227 | uriExtension="cft"> | ||
228 | </resourceServiceProvider> | ||
229 | </extension> | ||
230 | <!-- marker definitions for hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage --> | ||
231 | <extension | ||
232 | id="cftlanguage.check.fast" | ||
233 | name="CftLanguage Problem" | ||
234 | point="org.eclipse.core.resources.markers"> | ||
235 | <super type="org.eclipse.xtext.ui.check.fast"/> | ||
236 | <persistent value="true"/> | ||
237 | </extension> | ||
238 | <extension | ||
239 | id="cftlanguage.check.normal" | ||
240 | name="CftLanguage Problem" | ||
241 | point="org.eclipse.core.resources.markers"> | ||
242 | <super type="org.eclipse.xtext.ui.check.normal"/> | ||
243 | <persistent value="true"/> | ||
244 | </extension> | ||
245 | <extension | ||
246 | id="cftlanguage.check.expensive" | ||
247 | name="CftLanguage Problem" | ||
248 | point="org.eclipse.core.resources.markers"> | ||
249 | <super type="org.eclipse.xtext.ui.check.expensive"/> | ||
250 | <persistent value="true"/> | ||
251 | </extension> | ||
252 | <extension point="org.eclipse.ui.preferencePages"> | ||
253 | <page | ||
254 | category="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage" | ||
255 | class="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.CftLanguageExecutableExtensionFactory:org.eclipse.xtext.ui.validation.ValidatorPreferencePage" | ||
256 | id="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.validator.preferencePage" | ||
257 | name="Errors/Warnings"> | ||
258 | <keywordReference id="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.keyword_CftLanguage"/> | ||
259 | </page> | ||
260 | </extension> | ||
261 | <extension point="org.eclipse.xtext.builder.participant"> | ||
262 | <participant | ||
263 | class="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.CftLanguageExecutableExtensionFactory:org.eclipse.xtext.builder.IXtextBuilderParticipant" | ||
264 | fileExtensions="cft"/> | ||
265 | </extension> | ||
266 | <extension point="org.eclipse.ui.preferencePages"> | ||
267 | <page | ||
268 | category="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage" | ||
269 | class="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.CftLanguageExecutableExtensionFactory:org.eclipse.xtext.builder.preferences.BuilderPreferencePage" | ||
270 | id="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.compiler.preferencePage" | ||
271 | name="Compiler"> | ||
272 | <keywordReference id="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.keyword_CftLanguage"/> | ||
273 | </page> | ||
274 | </extension> | ||
275 | <extension point="org.eclipse.ui.propertyPages"> | ||
276 | <page | ||
277 | category="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage" | ||
278 | class="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.CftLanguageExecutableExtensionFactory:org.eclipse.xtext.builder.preferences.BuilderPreferencePage" | ||
279 | id="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.compiler.propertyPage" | ||
280 | name="Compiler"> | ||
281 | <keywordReference id="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.keyword_CftLanguage"/> | ||
282 | <enabledWhen> | ||
283 | <adapt type="org.eclipse.core.resources.IProject"/> | ||
284 | </enabledWhen> | ||
285 | <filter name="projectNature" value="org.eclipse.xtext.ui.shared.xtextNature"/> | ||
286 | </page> | ||
287 | </extension> | ||
288 | <extension point="org.eclipse.ui.menus"> | ||
289 | <menuContribution locationURI="popup:#TextEditorContext?after=xtext.ui.openDeclaration"> | ||
290 | <command | ||
291 | commandId="org.eclipse.xtext.ui.OpenGeneratedFileCommand" | ||
292 | id="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.OpenGeneratedCode" | ||
293 | style="push"> | ||
294 | <visibleWhen checkEnabled="false"> | ||
295 | <reference definitionId="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Editor.opened" /> | ||
296 | </visibleWhen> | ||
297 | </command> | ||
298 | </menuContribution> | ||
299 | </extension> | ||
300 | <extension point="org.eclipse.ui.handlers"> | ||
301 | <handler | ||
302 | class="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.CftLanguageExecutableExtensionFactory:org.eclipse.xtext.ui.generator.trace.OpenGeneratedFileHandler" | ||
303 | commandId="org.eclipse.xtext.ui.OpenGeneratedFileCommand"> | ||
304 | <activeWhen> | ||
305 | <reference definitionId="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Editor.opened" /> | ||
306 | </activeWhen> | ||
307 | </handler> | ||
308 | </extension> | ||
309 | <!-- Quick Outline --> | ||
310 | <extension | ||
311 | point="org.eclipse.ui.handlers"> | ||
312 | <handler | ||
313 | class="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.CftLanguageExecutableExtensionFactory:org.eclipse.xtext.ui.editor.outline.quickoutline.ShowQuickOutlineActionHandler" | ||
314 | commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline"> | ||
315 | <activeWhen> | ||
316 | <reference | ||
317 | definitionId="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Editor.opened"> | ||
318 | </reference> | ||
319 | </activeWhen> | ||
320 | </handler> | ||
321 | </extension> | ||
322 | <extension | ||
323 | point="org.eclipse.ui.commands"> | ||
324 | <command | ||
325 | description="Open the quick outline." | ||
326 | id="org.eclipse.xtext.ui.editor.outline.QuickOutline" | ||
327 | name="Quick Outline"> | ||
328 | </command> | ||
329 | </extension> | ||
330 | <extension point="org.eclipse.ui.menus"> | ||
331 | <menuContribution | ||
332 | locationURI="popup:#TextEditorContext?after=group.open"> | ||
333 | <command commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline" | ||
334 | style="push" | ||
335 | tooltip="Open Quick Outline"> | ||
336 | <visibleWhen checkEnabled="false"> | ||
337 | <reference definitionId="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Editor.opened"/> | ||
338 | </visibleWhen> | ||
339 | </command> | ||
340 | </menuContribution> | ||
341 | </extension> | ||
342 | <!-- quickfix marker resolution generator for hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage --> | ||
343 | <extension | ||
344 | point="org.eclipse.ui.ide.markerResolution"> | ||
345 | <markerResolutionGenerator | ||
346 | class="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.CftLanguageExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator" | ||
347 | markerType="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.cftlanguage.check.fast"> | ||
348 | <attribute | ||
349 | name="FIXABLE_KEY" | ||
350 | value="true"> | ||
351 | </attribute> | ||
352 | </markerResolutionGenerator> | ||
353 | <markerResolutionGenerator | ||
354 | class="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.CftLanguageExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator" | ||
355 | markerType="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.cftlanguage.check.normal"> | ||
356 | <attribute | ||
357 | name="FIXABLE_KEY" | ||
358 | value="true"> | ||
359 | </attribute> | ||
360 | </markerResolutionGenerator> | ||
361 | <markerResolutionGenerator | ||
362 | class="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.CftLanguageExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator" | ||
363 | markerType="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.cftlanguage.check.expensive"> | ||
364 | <attribute | ||
365 | name="FIXABLE_KEY" | ||
366 | value="true"> | ||
367 | </attribute> | ||
368 | </markerResolutionGenerator> | ||
369 | </extension> | ||
370 | <!-- Rename Refactoring --> | ||
371 | <extension point="org.eclipse.ui.handlers"> | ||
372 | <handler | ||
373 | class="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.CftLanguageExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.DefaultRenameElementHandler" | ||
374 | commandId="org.eclipse.xtext.ui.refactoring.RenameElement"> | ||
375 | <activeWhen> | ||
376 | <reference | ||
377 | definitionId="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Editor.opened"> | ||
378 | </reference> | ||
379 | </activeWhen> | ||
380 | </handler> | ||
381 | </extension> | ||
382 | <extension point="org.eclipse.ui.menus"> | ||
383 | <menuContribution | ||
384 | locationURI="popup:#TextEditorContext?after=group.edit"> | ||
385 | <command commandId="org.eclipse.xtext.ui.refactoring.RenameElement" | ||
386 | style="push"> | ||
387 | <visibleWhen checkEnabled="false"> | ||
388 | <reference | ||
389 | definitionId="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Editor.opened"> | ||
390 | </reference> | ||
391 | </visibleWhen> | ||
392 | </command> | ||
393 | </menuContribution> | ||
394 | </extension> | ||
395 | <extension point="org.eclipse.ui.preferencePages"> | ||
396 | <page | ||
397 | category="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage" | ||
398 | class="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.CftLanguageExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.RefactoringPreferencePage" | ||
399 | id="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.refactoring" | ||
400 | name="Refactoring"> | ||
401 | <keywordReference id="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.keyword_CftLanguage"/> | ||
402 | </page> | ||
403 | </extension> | ||
404 | <extension point="org.eclipse.compare.contentViewers"> | ||
405 | <viewer id="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.compare.contentViewers" | ||
406 | class="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.CftLanguageExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator" | ||
407 | extensions="cft"> | ||
408 | </viewer> | ||
409 | <contentTypeBinding | ||
410 | contentTypeId="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.contenttype" | ||
411 | contentViewerId="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.compare.contentViewers" /> | ||
412 | </extension> | ||
413 | <extension point="org.eclipse.compare.contentMergeViewers"> | ||
414 | <viewer id="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.compare.contentMergeViewers" | ||
415 | class="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.CftLanguageExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator" | ||
416 | extensions="cft" label="CftLanguage Compare"> | ||
417 | </viewer> | ||
418 | <contentTypeBinding | ||
419 | contentTypeId="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.contenttype" | ||
420 | contentMergeViewerId="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.compare.contentMergeViewers" /> | ||
421 | </extension> | ||
422 | <extension point="org.eclipse.ui.editors.documentProviders"> | ||
423 | <provider id="hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.editors.documentProviders" | ||
424 | class="hu.bme.mit.inf.dslreasoner.faulttree.components.ui.CftLanguageExecutableExtensionFactory:org.eclipse.xtext.ui.editor.model.XtextDocumentProvider" | ||
425 | extensions="cft"> | ||
426 | </provider> | ||
427 | </extension> | ||
428 | <extension point="org.eclipse.team.core.fileTypes"> | ||
429 | <fileTypes | ||
430 | extension="cft" | ||
431 | type="text"> | ||
432 | </fileTypes> | ||
433 | </extension> | ||
434 | </plugin> | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/AbstractCftLanguageUiModule.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/AbstractCftLanguageUiModule.java new file mode 100644 index 00000000..ba2f3d51 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/AbstractCftLanguageUiModule.java | |||
@@ -0,0 +1,293 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.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.faulttree.components.ide.contentassist.antlr.CftLanguageParser; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.ide.contentassist.antlr.PartialCftLanguageContentAssistParser; | ||
11 | import hu.bme.mit.inf.dslreasoner.faulttree.components.ide.contentassist.antlr.internal.InternalCftLanguageLexer; | ||
12 | import hu.bme.mit.inf.dslreasoner.faulttree.components.ui.contentassist.CftLanguageProposalProvider; | ||
13 | import hu.bme.mit.inf.dslreasoner.faulttree.components.ui.labeling.CftLanguageDescriptionLabelProvider; | ||
14 | import hu.bme.mit.inf.dslreasoner.faulttree.components.ui.labeling.CftLanguageLabelProvider; | ||
15 | import hu.bme.mit.inf.dslreasoner.faulttree.components.ui.outline.CftLanguageOutlineTreeProvider; | ||
16 | import hu.bme.mit.inf.dslreasoner.faulttree.components.ui.quickfix.CftLanguageQuickfixProvider; | ||
17 | import hu.bme.mit.inf.dslreasoner.faulttree.components.validation.CftLanguageValidatorConfigurationBlock; | ||
18 | import org.eclipse.compare.IViewerCreator; | ||
19 | import org.eclipse.core.resources.IWorkspaceRoot; | ||
20 | import org.eclipse.core.resources.ResourcesPlugin; | ||
21 | import org.eclipse.jface.viewers.ILabelProvider; | ||
22 | import org.eclipse.ui.plugin.AbstractUIPlugin; | ||
23 | import org.eclipse.xtext.builder.BuilderParticipant; | ||
24 | import org.eclipse.xtext.builder.EclipseOutputConfigurationProvider; | ||
25 | import org.eclipse.xtext.builder.IXtextBuilderParticipant; | ||
26 | import org.eclipse.xtext.builder.builderState.IBuilderState; | ||
27 | import org.eclipse.xtext.builder.clustering.CurrentDescriptions; | ||
28 | import org.eclipse.xtext.builder.impl.PersistentDataAwareDirtyResource; | ||
29 | import org.eclipse.xtext.builder.nature.NatureAddingEditorCallback; | ||
30 | import org.eclipse.xtext.builder.preferences.BuilderPreferenceAccess; | ||
31 | import org.eclipse.xtext.generator.IContextualOutputConfigurationProvider; | ||
32 | import org.eclipse.xtext.ide.LexerIdeBindings; | ||
33 | import org.eclipse.xtext.ide.editor.contentassist.antlr.IContentAssistParser; | ||
34 | import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.Lexer; | ||
35 | import org.eclipse.xtext.ide.editor.partialEditing.IPartialEditingContentAssistParser; | ||
36 | import org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider; | ||
37 | import org.eclipse.xtext.parser.antlr.ITokenDefProvider; | ||
38 | import org.eclipse.xtext.parser.antlr.LexerProvider; | ||
39 | import org.eclipse.xtext.resource.IResourceDescriptions; | ||
40 | import org.eclipse.xtext.resource.containers.IAllContainersState; | ||
41 | import org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider; | ||
42 | import org.eclipse.xtext.service.SingletonBinding; | ||
43 | import org.eclipse.xtext.ui.DefaultUiModule; | ||
44 | import org.eclipse.xtext.ui.UIBindings; | ||
45 | import org.eclipse.xtext.ui.codetemplates.ui.AccessibleCodetemplatesActivator; | ||
46 | import org.eclipse.xtext.ui.codetemplates.ui.partialEditing.IPartialEditingContentAssistContextFactory; | ||
47 | import org.eclipse.xtext.ui.codetemplates.ui.partialEditing.PartialEditingContentAssistContextFactory; | ||
48 | import org.eclipse.xtext.ui.codetemplates.ui.preferences.AdvancedTemplatesPreferencePage; | ||
49 | import org.eclipse.xtext.ui.codetemplates.ui.preferences.TemplatesLanguageConfiguration; | ||
50 | import org.eclipse.xtext.ui.codetemplates.ui.registry.LanguageRegistrar; | ||
51 | import org.eclipse.xtext.ui.codetemplates.ui.registry.LanguageRegistry; | ||
52 | import org.eclipse.xtext.ui.compare.DefaultViewerCreator; | ||
53 | import org.eclipse.xtext.ui.editor.DocumentBasedDirtyResource; | ||
54 | import org.eclipse.xtext.ui.editor.IXtextEditorCallback; | ||
55 | import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext; | ||
56 | import org.eclipse.xtext.ui.editor.contentassist.FQNPrefixMatcher; | ||
57 | import org.eclipse.xtext.ui.editor.contentassist.IContentProposalProvider; | ||
58 | import org.eclipse.xtext.ui.editor.contentassist.IProposalConflictHelper; | ||
59 | import org.eclipse.xtext.ui.editor.contentassist.PrefixMatcher; | ||
60 | import org.eclipse.xtext.ui.editor.contentassist.antlr.AntlrProposalConflictHelper; | ||
61 | import org.eclipse.xtext.ui.editor.contentassist.antlr.DelegatingContentAssistContextFactory; | ||
62 | import org.eclipse.xtext.ui.editor.outline.IOutlineTreeProvider; | ||
63 | import org.eclipse.xtext.ui.editor.outline.impl.IOutlineTreeStructureProvider; | ||
64 | import org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreInitializer; | ||
65 | import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; | ||
66 | import org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage; | ||
67 | import org.eclipse.xtext.ui.refactoring.IDependentElementsCalculator; | ||
68 | import org.eclipse.xtext.ui.refactoring.IReferenceUpdater; | ||
69 | import org.eclipse.xtext.ui.refactoring.IRenameRefactoringProvider; | ||
70 | import org.eclipse.xtext.ui.refactoring.IRenameStrategy; | ||
71 | import org.eclipse.xtext.ui.refactoring.impl.DefaultDependentElementsCalculator; | ||
72 | import org.eclipse.xtext.ui.refactoring.impl.DefaultReferenceUpdater; | ||
73 | import org.eclipse.xtext.ui.refactoring.impl.DefaultRenameRefactoringProvider; | ||
74 | import org.eclipse.xtext.ui.refactoring.impl.DefaultRenameStrategy; | ||
75 | import org.eclipse.xtext.ui.refactoring.ui.DefaultRenameSupport; | ||
76 | import org.eclipse.xtext.ui.refactoring.ui.IRenameSupport; | ||
77 | import org.eclipse.xtext.ui.refactoring.ui.RefactoringPreferences; | ||
78 | import org.eclipse.xtext.ui.resource.ResourceServiceDescriptionLabelProvider; | ||
79 | import org.eclipse.xtext.ui.shared.Access; | ||
80 | import org.eclipse.xtext.ui.validation.AbstractValidatorConfigurationBlock; | ||
81 | |||
82 | /** | ||
83 | * Manual modifications go to {@link CftLanguageUiModule}. | ||
84 | */ | ||
85 | @SuppressWarnings("all") | ||
86 | public abstract class AbstractCftLanguageUiModule extends DefaultUiModule { | ||
87 | |||
88 | public AbstractCftLanguageUiModule(AbstractUIPlugin plugin) { | ||
89 | super(plugin); | ||
90 | } | ||
91 | |||
92 | // contributed by org.eclipse.xtext.xtext.generator.ImplicitFragment | ||
93 | public Provider<? extends IAllContainersState> provideIAllContainersState() { | ||
94 | return Access.getJavaProjectsState(); | ||
95 | } | ||
96 | |||
97 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
98 | public Class<? extends IProposalConflictHelper> bindIProposalConflictHelper() { | ||
99 | return AntlrProposalConflictHelper.class; | ||
100 | } | ||
101 | |||
102 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
103 | public void configureContentAssistLexer(Binder binder) { | ||
104 | binder.bind(Lexer.class) | ||
105 | .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST)) | ||
106 | .to(InternalCftLanguageLexer.class); | ||
107 | } | ||
108 | |||
109 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
110 | public void configureHighlightingLexer(Binder binder) { | ||
111 | binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class) | ||
112 | .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)) | ||
113 | .to(hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr.internal.InternalCftLanguageLexer.class); | ||
114 | } | ||
115 | |||
116 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
117 | public void configureHighlightingTokenDefProvider(Binder binder) { | ||
118 | binder.bind(ITokenDefProvider.class) | ||
119 | .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)) | ||
120 | .to(AntlrTokenDefProvider.class); | ||
121 | } | ||
122 | |||
123 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
124 | public Class<? extends ContentAssistContext.Factory> bindContentAssistContext$Factory() { | ||
125 | return DelegatingContentAssistContextFactory.class; | ||
126 | } | ||
127 | |||
128 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
129 | public Class<? extends IContentAssistParser> bindIContentAssistParser() { | ||
130 | return CftLanguageParser.class; | ||
131 | } | ||
132 | |||
133 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
134 | public void configureContentAssistLexerProvider(Binder binder) { | ||
135 | binder.bind(InternalCftLanguageLexer.class).toProvider(LexerProvider.create(InternalCftLanguageLexer.class)); | ||
136 | } | ||
137 | |||
138 | // contributed by org.eclipse.xtext.xtext.generator.validation.ValidatorFragment2 | ||
139 | public Class<? extends AbstractValidatorConfigurationBlock> bindAbstractValidatorConfigurationBlock() { | ||
140 | return CftLanguageValidatorConfigurationBlock.class; | ||
141 | } | ||
142 | |||
143 | // contributed by org.eclipse.xtext.xtext.generator.exporting.QualifiedNamesFragment2 | ||
144 | public Class<? extends PrefixMatcher> bindPrefixMatcher() { | ||
145 | return FQNPrefixMatcher.class; | ||
146 | } | ||
147 | |||
148 | // contributed by org.eclipse.xtext.xtext.generator.exporting.QualifiedNamesFragment2 | ||
149 | public Class<? extends IDependentElementsCalculator> bindIDependentElementsCalculator() { | ||
150 | return DefaultDependentElementsCalculator.class; | ||
151 | } | ||
152 | |||
153 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
154 | public void configureIResourceDescriptionsBuilderScope(Binder binder) { | ||
155 | binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.NAMED_BUILDER_SCOPE)).to(CurrentDescriptions.ResourceSetAware.class); | ||
156 | } | ||
157 | |||
158 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
159 | public Class<? extends IXtextEditorCallback> bindIXtextEditorCallback() { | ||
160 | return NatureAddingEditorCallback.class; | ||
161 | } | ||
162 | |||
163 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
164 | public Class<? extends IContextualOutputConfigurationProvider> bindIContextualOutputConfigurationProvider() { | ||
165 | return EclipseOutputConfigurationProvider.class; | ||
166 | } | ||
167 | |||
168 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
169 | public void configureIResourceDescriptionsPersisted(Binder binder) { | ||
170 | binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)).to(IBuilderState.class); | ||
171 | } | ||
172 | |||
173 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
174 | public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { | ||
175 | return PersistentDataAwareDirtyResource.class; | ||
176 | } | ||
177 | |||
178 | // contributed by org.eclipse.xtext.xtext.generator.generator.GeneratorFragment2 | ||
179 | public Class<? extends IXtextBuilderParticipant> bindIXtextBuilderParticipant() { | ||
180 | return BuilderParticipant.class; | ||
181 | } | ||
182 | |||
183 | // contributed by org.eclipse.xtext.xtext.generator.generator.GeneratorFragment2 | ||
184 | public IWorkspaceRoot bindIWorkspaceRootToInstance() { | ||
185 | return ResourcesPlugin.getWorkspace().getRoot(); | ||
186 | } | ||
187 | |||
188 | // contributed by org.eclipse.xtext.xtext.generator.generator.GeneratorFragment2 | ||
189 | public void configureBuilderPreferenceStoreInitializer(Binder binder) { | ||
190 | binder.bind(IPreferenceStoreInitializer.class) | ||
191 | .annotatedWith(Names.named("builderPreferenceInitializer")) | ||
192 | .to(BuilderPreferenceAccess.Initializer.class); | ||
193 | } | ||
194 | |||
195 | // contributed by org.eclipse.xtext.xtext.generator.ui.labeling.LabelProviderFragment2 | ||
196 | public Class<? extends ILabelProvider> bindILabelProvider() { | ||
197 | return CftLanguageLabelProvider.class; | ||
198 | } | ||
199 | |||
200 | // contributed by org.eclipse.xtext.xtext.generator.ui.labeling.LabelProviderFragment2 | ||
201 | public void configureResourceUIServiceLabelProvider(Binder binder) { | ||
202 | binder.bind(ILabelProvider.class).annotatedWith(ResourceServiceDescriptionLabelProvider.class).to(CftLanguageDescriptionLabelProvider.class); | ||
203 | } | ||
204 | |||
205 | // contributed by org.eclipse.xtext.xtext.generator.ui.outline.OutlineTreeProviderFragment2 | ||
206 | public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() { | ||
207 | return CftLanguageOutlineTreeProvider.class; | ||
208 | } | ||
209 | |||
210 | // contributed by org.eclipse.xtext.xtext.generator.ui.outline.OutlineTreeProviderFragment2 | ||
211 | public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { | ||
212 | return CftLanguageOutlineTreeProvider.class; | ||
213 | } | ||
214 | |||
215 | // contributed by org.eclipse.xtext.xtext.generator.ui.quickfix.QuickfixProviderFragment2 | ||
216 | public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() { | ||
217 | return CftLanguageQuickfixProvider.class; | ||
218 | } | ||
219 | |||
220 | // contributed by org.eclipse.xtext.xtext.generator.ui.contentAssist.ContentAssistFragment2 | ||
221 | public Class<? extends IContentProposalProvider> bindIContentProposalProvider() { | ||
222 | return CftLanguageProposalProvider.class; | ||
223 | } | ||
224 | |||
225 | // contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2 | ||
226 | public void configureIPreferenceStoreInitializer(Binder binder) { | ||
227 | binder.bind(IPreferenceStoreInitializer.class) | ||
228 | .annotatedWith(Names.named("RefactoringPreferences")) | ||
229 | .to(RefactoringPreferences.Initializer.class); | ||
230 | } | ||
231 | |||
232 | // contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2 | ||
233 | public Class<? extends IRenameStrategy> bindIRenameStrategy() { | ||
234 | return DefaultRenameStrategy.class; | ||
235 | } | ||
236 | |||
237 | // contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2 | ||
238 | public Class<? extends IReferenceUpdater> bindIReferenceUpdater() { | ||
239 | return DefaultReferenceUpdater.class; | ||
240 | } | ||
241 | |||
242 | // contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2 | ||
243 | public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() { | ||
244 | return DefaultRenameRefactoringProvider.class; | ||
245 | } | ||
246 | |||
247 | // contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2 | ||
248 | public Class<? extends IRenameSupport.Factory> bindIRenameSupport$Factory() { | ||
249 | return DefaultRenameSupport.Factory.class; | ||
250 | } | ||
251 | |||
252 | // contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2 | ||
253 | public Provider<? extends TemplatesLanguageConfiguration> provideTemplatesLanguageConfiguration() { | ||
254 | return AccessibleCodetemplatesActivator.getTemplatesLanguageConfigurationProvider(); | ||
255 | } | ||
256 | |||
257 | // contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2 | ||
258 | public Provider<? extends LanguageRegistry> provideLanguageRegistry() { | ||
259 | return AccessibleCodetemplatesActivator.getLanguageRegistry(); | ||
260 | } | ||
261 | |||
262 | // contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2 | ||
263 | @SingletonBinding(eager=true) | ||
264 | public Class<? extends LanguageRegistrar> bindLanguageRegistrar() { | ||
265 | return LanguageRegistrar.class; | ||
266 | } | ||
267 | |||
268 | // contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2 | ||
269 | public Class<? extends XtextTemplatePreferencePage> bindXtextTemplatePreferencePage() { | ||
270 | return AdvancedTemplatesPreferencePage.class; | ||
271 | } | ||
272 | |||
273 | // contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2 | ||
274 | public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() { | ||
275 | return PartialCftLanguageContentAssistParser.class; | ||
276 | } | ||
277 | |||
278 | // contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2 | ||
279 | public Class<? extends IPartialEditingContentAssistContextFactory> bindIPartialEditingContentAssistContextFactory() { | ||
280 | return PartialEditingContentAssistContextFactory.class; | ||
281 | } | ||
282 | |||
283 | // contributed by org.eclipse.xtext.xtext.generator.ui.compare.CompareFragment2 | ||
284 | public Class<? extends IViewerCreator> bindIViewerCreator() { | ||
285 | return DefaultViewerCreator.class; | ||
286 | } | ||
287 | |||
288 | // contributed by org.eclipse.xtext.xtext.generator.ui.compare.CompareFragment2 | ||
289 | public void configureCompareViewerTitle(Binder binder) { | ||
290 | binder.bind(String.class).annotatedWith(Names.named(UIBindings.COMPARE_VIEWER_TITLE)).toInstance("CftLanguage Compare"); | ||
291 | } | ||
292 | |||
293 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/CftLanguageExecutableExtensionFactory.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/CftLanguageExecutableExtensionFactory.java new file mode 100644 index 00000000..cf453a4f --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/CftLanguageExecutableExtensionFactory.java | |||
@@ -0,0 +1,29 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.ui; | ||
5 | |||
6 | import com.google.inject.Injector; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.ui.internal.ComponentsActivator; | ||
8 | import org.eclipse.core.runtime.Platform; | ||
9 | import org.eclipse.xtext.ui.guice.AbstractGuiceAwareExecutableExtensionFactory; | ||
10 | import org.osgi.framework.Bundle; | ||
11 | |||
12 | /** | ||
13 | * This class was generated. Customizations should only happen in a newly | ||
14 | * introduced subclass. | ||
15 | */ | ||
16 | public class CftLanguageExecutableExtensionFactory extends AbstractGuiceAwareExecutableExtensionFactory { | ||
17 | |||
18 | @Override | ||
19 | protected Bundle getBundle() { | ||
20 | return Platform.getBundle(ComponentsActivator.PLUGIN_ID); | ||
21 | } | ||
22 | |||
23 | @Override | ||
24 | protected Injector getInjector() { | ||
25 | ComponentsActivator activator = ComponentsActivator.getInstance(); | ||
26 | return activator != null ? activator.getInjector(ComponentsActivator.HU_BME_MIT_INF_DSLREASONER_FAULTTREE_COMPONENTS_CFTLANGUAGE) : null; | ||
27 | } | ||
28 | |||
29 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/contentassist/AbstractCftLanguageProposalProvider.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/contentassist/AbstractCftLanguageProposalProvider.java new file mode 100644 index 00000000..89cd0833 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/contentassist/AbstractCftLanguageProposalProvider.java | |||
@@ -0,0 +1,193 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.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 AbstractCftLanguageProposalProvider extends TerminalsProposalProvider { | ||
20 | |||
21 | public void completeCftModel_PackageName(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
22 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
23 | } | ||
24 | public void completeCftModel_Imports(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
25 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
26 | } | ||
27 | public void completeCftModel_ComponentDefinitions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
28 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
29 | } | ||
30 | public void completeCftModel_TransformationDefinitions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
31 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
32 | } | ||
33 | public void completeImportDeclaration_ImportedNamespace(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
34 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
35 | } | ||
36 | public void completeComponentDefinition_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
37 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
38 | } | ||
39 | public void completeComponentDefinition_InputEvents(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
40 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
41 | } | ||
42 | public void completeComponentDefinition_OutputEvents(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
43 | lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); | ||
44 | } | ||
45 | public void completeComponentDefinition_EventDefinitions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
46 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
47 | } | ||
48 | public void completeInputEvent_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
49 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
50 | } | ||
51 | public void completeInputEvent_Multiple(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
52 | // subclasses may override | ||
53 | } | ||
54 | public void completeBasicEventDefinition_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
55 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
56 | } | ||
57 | public void completeBasicEventDefinition_Rate(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
58 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
59 | } | ||
60 | public void completeAndGate_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
61 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
62 | } | ||
63 | public void completeAndGate_InputEvents(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
64 | lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); | ||
65 | } | ||
66 | public void completeOrGate_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
67 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
68 | } | ||
69 | public void completeOrGate_InputEvents(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
70 | lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); | ||
71 | } | ||
72 | public void completeTransformationDefinition_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
73 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
74 | } | ||
75 | public void completeTransformationDefinition_MappingDefinitions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
76 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
77 | } | ||
78 | public void completeMappingDefinition_TopLevel(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
79 | // subclasses may override | ||
80 | } | ||
81 | public void completeMappingDefinition_Pattern(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
82 | lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); | ||
83 | } | ||
84 | public void completeMappingDefinition_Parameters(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
85 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
86 | } | ||
87 | public void completeMappingDefinition_ComponentInstance(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
88 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
89 | } | ||
90 | public void completeMappingDefinition_LookupDefinitions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
91 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
92 | } | ||
93 | public void completeMappingDefinition_Assignments(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
94 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
95 | } | ||
96 | public void completeMappingParameter_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
97 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
98 | } | ||
99 | public void completeLookupDefinition_Mapping(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
100 | lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); | ||
101 | } | ||
102 | public void completeLookupDefinition_Arguments(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
103 | lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); | ||
104 | } | ||
105 | public void completeLookupDefinition_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
106 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
107 | } | ||
108 | public void completeAssignment_Input(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
109 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
110 | } | ||
111 | public void completeAssignment_Multiple(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
112 | // subclasses may override | ||
113 | } | ||
114 | public void completeAssignment_Output(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
115 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
116 | } | ||
117 | public void completeEventReference_Component(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
118 | lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); | ||
119 | } | ||
120 | public void completeEventReference_Event(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
121 | lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); | ||
122 | } | ||
123 | public void completeComponentInstance_ComponentType(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
124 | lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); | ||
125 | } | ||
126 | public void completeComponentInstance_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
127 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
128 | } | ||
129 | |||
130 | public void complete_CftModel(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
131 | // subclasses may override | ||
132 | } | ||
133 | public void complete_ImportDeclaration(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
134 | // subclasses may override | ||
135 | } | ||
136 | public void complete_ComponentDefinition(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
137 | // subclasses may override | ||
138 | } | ||
139 | public void complete_EventDeclaration(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
140 | // subclasses may override | ||
141 | } | ||
142 | public void complete_InputEvent(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
143 | // subclasses may override | ||
144 | } | ||
145 | public void complete_EventDefinition(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
146 | // subclasses may override | ||
147 | } | ||
148 | public void complete_BasicEventDefinition(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
149 | // subclasses may override | ||
150 | } | ||
151 | public void complete_GateDefinition(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
152 | // subclasses may override | ||
153 | } | ||
154 | public void complete_AndGate(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
155 | // subclasses may override | ||
156 | } | ||
157 | public void complete_OrGate(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
158 | // subclasses may override | ||
159 | } | ||
160 | public void complete_TransformationDefinition(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
161 | // subclasses may override | ||
162 | } | ||
163 | public void complete_MappingDefinition(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
164 | // subclasses may override | ||
165 | } | ||
166 | public void complete_MappingParameter(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
167 | // subclasses may override | ||
168 | } | ||
169 | public void complete_LookupDefinition(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
170 | // subclasses may override | ||
171 | } | ||
172 | public void complete_Variable(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
173 | // subclasses may override | ||
174 | } | ||
175 | public void complete_Assignment(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
176 | // subclasses may override | ||
177 | } | ||
178 | public void complete_EventReference(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
179 | // subclasses may override | ||
180 | } | ||
181 | public void complete_ComponentInstance(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
182 | // subclasses may override | ||
183 | } | ||
184 | public void complete_QualifiedName(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
185 | // subclasses may override | ||
186 | } | ||
187 | public void complete_QualifiedNameWithWildcard(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
188 | // subclasses may override | ||
189 | } | ||
190 | public void complete_DOULBE(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
191 | // subclasses may override | ||
192 | } | ||
193 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/internal/ComponentsActivator.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/internal/ComponentsActivator.java new file mode 100644 index 00000000..3b4702dd --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/internal/ComponentsActivator.java | |||
@@ -0,0 +1,94 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.ui.internal; | ||
5 | |||
6 | import com.google.common.collect.Maps; | ||
7 | import com.google.inject.Guice; | ||
8 | import com.google.inject.Injector; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguageRuntimeModule; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.ui.CftLanguageUiModule; | ||
11 | import java.util.Collections; | ||
12 | import java.util.Map; | ||
13 | import org.apache.log4j.Logger; | ||
14 | import org.eclipse.ui.plugin.AbstractUIPlugin; | ||
15 | import org.eclipse.xtext.ui.shared.SharedStateModule; | ||
16 | import org.eclipse.xtext.util.Modules2; | ||
17 | import org.osgi.framework.BundleContext; | ||
18 | |||
19 | /** | ||
20 | * This class was generated. Customizations should only happen in a newly | ||
21 | * introduced subclass. | ||
22 | */ | ||
23 | public class ComponentsActivator extends AbstractUIPlugin { | ||
24 | |||
25 | public static final String PLUGIN_ID = "hu.bme.mit.inf.dslreasoner.faulttree.components.ui"; | ||
26 | public static final String HU_BME_MIT_INF_DSLREASONER_FAULTTREE_COMPONENTS_CFTLANGUAGE = "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage"; | ||
27 | |||
28 | private static final Logger logger = Logger.getLogger(ComponentsActivator.class); | ||
29 | |||
30 | private static ComponentsActivator 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 ComponentsActivator 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 | com.google.inject.Module runtimeModule = getRuntimeModule(language); | ||
64 | com.google.inject.Module sharedStateModule = getSharedStateModule(); | ||
65 | com.google.inject.Module uiModule = getUiModule(language); | ||
66 | com.google.inject.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 com.google.inject.Module getRuntimeModule(String grammar) { | ||
76 | if (HU_BME_MIT_INF_DSLREASONER_FAULTTREE_COMPONENTS_CFTLANGUAGE.equals(grammar)) { | ||
77 | return new CftLanguageRuntimeModule(); | ||
78 | } | ||
79 | throw new IllegalArgumentException(grammar); | ||
80 | } | ||
81 | |||
82 | protected com.google.inject.Module getUiModule(String grammar) { | ||
83 | if (HU_BME_MIT_INF_DSLREASONER_FAULTTREE_COMPONENTS_CFTLANGUAGE.equals(grammar)) { | ||
84 | return new CftLanguageUiModule(this); | ||
85 | } | ||
86 | throw new IllegalArgumentException(grammar); | ||
87 | } | ||
88 | |||
89 | protected com.google.inject.Module getSharedStateModule() { | ||
90 | return new SharedStateModule(); | ||
91 | } | ||
92 | |||
93 | |||
94 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/CftLanguageValidatorConfigurationBlock.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/CftLanguageValidatorConfigurationBlock.java new file mode 100644 index 00000000..151699a2 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/CftLanguageValidatorConfigurationBlock.java | |||
@@ -0,0 +1,35 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.validation; | ||
5 | |||
6 | import org.eclipse.jface.dialogs.IDialogSettings; | ||
7 | import org.eclipse.swt.widgets.Composite; | ||
8 | import org.eclipse.xtext.ui.validation.AbstractValidatorConfigurationBlock; | ||
9 | |||
10 | @SuppressWarnings("restriction") | ||
11 | public class CftLanguageValidatorConfigurationBlock extends AbstractValidatorConfigurationBlock { | ||
12 | |||
13 | protected static final String SETTINGS_SECTION_NAME = "CftLanguage"; | ||
14 | |||
15 | @Override | ||
16 | protected void fillSettingsPage(Composite composite, int nColumns, int defaultIndent) { | ||
17 | addComboBox(CftLanguageConfigurableIssueCodesProvider.DEPRECATED_MODEL_PART, "Deprecated Model Part", composite, defaultIndent); | ||
18 | } | ||
19 | |||
20 | @Override | ||
21 | public void dispose() { | ||
22 | storeSectionExpansionStates(getDialogSettings()); | ||
23 | super.dispose(); | ||
24 | } | ||
25 | |||
26 | @Override | ||
27 | protected IDialogSettings getDialogSettings() { | ||
28 | IDialogSettings dialogSettings = super.getDialogSettings(); | ||
29 | IDialogSettings section = dialogSettings.getSection(SETTINGS_SECTION_NAME); | ||
30 | if (section == null) { | ||
31 | return dialogSettings.addNewSection(SETTINGS_SECTION_NAME); | ||
32 | } | ||
33 | return section; | ||
34 | } | ||
35 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/CftLanguageUiModule.xtend b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/CftLanguageUiModule.xtend new file mode 100644 index 00000000..9aa9ba9c --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/CftLanguageUiModule.xtend | |||
@@ -0,0 +1,13 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.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 CftLanguageUiModule extends AbstractCftLanguageUiModule { | ||
13 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/contentassist/CftLanguageProposalProvider.xtend b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/contentassist/CftLanguageProposalProvider.xtend new file mode 100644 index 00000000..2d173d73 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/contentassist/CftLanguageProposalProvider.xtend | |||
@@ -0,0 +1,12 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.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 CftLanguageProposalProvider extends AbstractCftLanguageProposalProvider { | ||
12 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/CftLanguageDescriptionLabelProvider.xtend b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/CftLanguageDescriptionLabelProvider.xtend new file mode 100644 index 00000000..17a734e1 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/CftLanguageDescriptionLabelProvider.xtend | |||
@@ -0,0 +1,24 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.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 CftLanguageDescriptionLabelProvider 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/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/CftLanguageLabelProvider.xtend b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/CftLanguageLabelProvider.xtend new file mode 100644 index 00000000..a6ea8f90 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/CftLanguageLabelProvider.xtend | |||
@@ -0,0 +1,31 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.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 CftLanguageLabelProvider 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/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/outline/CftLanguageOutlineTreeProvider.xtend b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/outline/CftLanguageOutlineTreeProvider.xtend new file mode 100644 index 00000000..5ffa82ad --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/outline/CftLanguageOutlineTreeProvider.xtend | |||
@@ -0,0 +1,15 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.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/310_eclipse_support.html#outline | ||
12 | */ | ||
13 | class CftLanguageOutlineTreeProvider extends DefaultOutlineTreeProvider { | ||
14 | |||
15 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/quickfix/CftLanguageQuickfixProvider.xtend b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/quickfix/CftLanguageQuickfixProvider.xtend new file mode 100644 index 00000000..4ca09e2b --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/quickfix/CftLanguageQuickfixProvider.xtend | |||
@@ -0,0 +1,24 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.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 CftLanguageQuickfixProvider extends DefaultQuickfixProvider { | ||
14 | |||
15 | // @Fix(CftLanguageValidator.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/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/.CftLanguageUiModule.xtendbin b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/.CftLanguageUiModule.xtendbin new file mode 100644 index 00000000..7eb6190d --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/.CftLanguageUiModule.xtendbin | |||
Binary files differ | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/.gitignore b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/.gitignore new file mode 100644 index 00000000..bee88ba2 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/.gitignore | |||
@@ -0,0 +1 @@ | |||
/.CftLanguageUiModule.java._trace | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/CftLanguageUiModule.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/CftLanguageUiModule.java new file mode 100644 index 00000000..4f1409d9 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/CftLanguageUiModule.java | |||
@@ -0,0 +1,19 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.ui; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.ui.AbstractCftLanguageUiModule; | ||
7 | import org.eclipse.ui.plugin.AbstractUIPlugin; | ||
8 | import org.eclipse.xtend.lib.annotations.FinalFieldsConstructor; | ||
9 | |||
10 | /** | ||
11 | * Use this class to register components to be used within the Eclipse IDE. | ||
12 | */ | ||
13 | @FinalFieldsConstructor | ||
14 | @SuppressWarnings("all") | ||
15 | public class CftLanguageUiModule extends AbstractCftLanguageUiModule { | ||
16 | public CftLanguageUiModule(final AbstractUIPlugin plugin) { | ||
17 | super(plugin); | ||
18 | } | ||
19 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/contentassist/.CftLanguageProposalProvider.xtendbin b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/contentassist/.CftLanguageProposalProvider.xtendbin new file mode 100644 index 00000000..a6a68b91 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/contentassist/.CftLanguageProposalProvider.xtendbin | |||
Binary files differ | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/contentassist/.gitignore b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/contentassist/.gitignore new file mode 100644 index 00000000..31aac8dc --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/contentassist/.gitignore | |||
@@ -0,0 +1 @@ | |||
/.CftLanguageProposalProvider.java._trace | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/contentassist/CftLanguageProposalProvider.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/contentassist/CftLanguageProposalProvider.java new file mode 100644 index 00000000..0d61f5be --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/contentassist/CftLanguageProposalProvider.java | |||
@@ -0,0 +1,14 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.ui.contentassist; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.ui.contentassist.AbstractCftLanguageProposalProvider; | ||
7 | |||
8 | /** | ||
9 | * See https://www.eclipse.org/Xtext/documentation/304_ide_concepts.html#content-assist | ||
10 | * on how to customize the content assistant. | ||
11 | */ | ||
12 | @SuppressWarnings("all") | ||
13 | public class CftLanguageProposalProvider extends AbstractCftLanguageProposalProvider { | ||
14 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/.CftLanguageDescriptionLabelProvider.xtendbin b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/.CftLanguageDescriptionLabelProvider.xtendbin new file mode 100644 index 00000000..e2a540db --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/.CftLanguageDescriptionLabelProvider.xtendbin | |||
Binary files differ | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/.CftLanguageLabelProvider.xtendbin b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/.CftLanguageLabelProvider.xtendbin new file mode 100644 index 00000000..58dd1f71 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/.CftLanguageLabelProvider.xtendbin | |||
Binary files differ | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/.gitignore b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/.gitignore new file mode 100644 index 00000000..20d80a0b --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/.gitignore | |||
@@ -0,0 +1,2 @@ | |||
1 | /.CftLanguageDescriptionLabelProvider.java._trace | ||
2 | /.CftLanguageLabelProvider.java._trace | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/CftLanguageDescriptionLabelProvider.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/CftLanguageDescriptionLabelProvider.java new file mode 100644 index 00000000..f38d3fb5 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/CftLanguageDescriptionLabelProvider.java | |||
@@ -0,0 +1,15 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.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 | @SuppressWarnings("all") | ||
14 | public class CftLanguageDescriptionLabelProvider extends DefaultDescriptionLabelProvider { | ||
15 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/CftLanguageLabelProvider.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/CftLanguageLabelProvider.java new file mode 100644 index 00000000..3a03868d --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/labeling/CftLanguageLabelProvider.java | |||
@@ -0,0 +1,21 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.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 | @SuppressWarnings("all") | ||
16 | public class CftLanguageLabelProvider extends DefaultEObjectLabelProvider { | ||
17 | @Inject | ||
18 | public CftLanguageLabelProvider(final AdapterFactoryLabelProvider delegate) { | ||
19 | super(delegate); | ||
20 | } | ||
21 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/outline/.CftLanguageOutlineTreeProvider.xtendbin b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/outline/.CftLanguageOutlineTreeProvider.xtendbin new file mode 100644 index 00000000..b785c6e2 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/outline/.CftLanguageOutlineTreeProvider.xtendbin | |||
Binary files differ | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/outline/.gitignore b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/outline/.gitignore new file mode 100644 index 00000000..a0d017e3 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/outline/.gitignore | |||
@@ -0,0 +1 @@ | |||
/.CftLanguageOutlineTreeProvider.java._trace | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/outline/CftLanguageOutlineTreeProvider.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/outline/CftLanguageOutlineTreeProvider.java new file mode 100644 index 00000000..76ea64c4 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/outline/CftLanguageOutlineTreeProvider.java | |||
@@ -0,0 +1,15 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.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/310_eclipse_support.html#outline | ||
12 | */ | ||
13 | @SuppressWarnings("all") | ||
14 | public class CftLanguageOutlineTreeProvider extends DefaultOutlineTreeProvider { | ||
15 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/quickfix/.CftLanguageQuickfixProvider.xtendbin b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/quickfix/.CftLanguageQuickfixProvider.xtendbin new file mode 100644 index 00000000..d199f277 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/quickfix/.CftLanguageQuickfixProvider.xtendbin | |||
Binary files differ | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/quickfix/.gitignore b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/quickfix/.gitignore new file mode 100644 index 00000000..1f83fa55 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/quickfix/.gitignore | |||
@@ -0,0 +1 @@ | |||
/.CftLanguageQuickfixProvider.java._trace | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/quickfix/CftLanguageQuickfixProvider.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/quickfix/CftLanguageQuickfixProvider.java new file mode 100644 index 00000000..361a00ca --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/quickfix/CftLanguageQuickfixProvider.java | |||
@@ -0,0 +1,15 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.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 | @SuppressWarnings("all") | ||
14 | public class CftLanguageQuickfixProvider extends DefaultQuickfixProvider { | ||
15 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/.classpath b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/.classpath new file mode 100644 index 00000000..9081d4f7 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/.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/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/.gitignore b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/.gitignore new file mode 100644 index 00000000..ae3c1726 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/.gitignore | |||
@@ -0,0 +1 @@ | |||
/bin/ | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/.launch/Generate CftLanguage (cft) Language Infrastructure.launch b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/.launch/Generate CftLanguage (cft) Language Infrastructure.launch new file mode 100644 index 00000000..25217aa6 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/.launch/Generate CftLanguage (cft) Language Infrastructure.launch | |||
@@ -0,0 +1,18 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <launchConfiguration type="org.eclipse.emf.mwe2.launch.Mwe2LaunchConfigurationType"> | ||
3 | <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"> | ||
4 | <listEntry value="/hu.bme.mit.inf.dslreasoner.faulttree.components"/> | ||
5 | </listAttribute> | ||
6 | <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> | ||
7 | <listEntry value="4"/> | ||
8 | </listAttribute> | ||
9 | <listAttribute key="org.eclipse.debug.ui.favoriteGroups"> | ||
10 | <listEntry value="org.eclipse.debug.ui.launchGroup.debug"/> | ||
11 | <listEntry value="org.eclipse.debug.ui.launchGroup.run"/> | ||
12 | </listAttribute> | ||
13 | <stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${working_set:<?xml version="1.0" encoding="UTF-8"?> <resources> <item path="/hu.bme.mit.inf.dslreasoner.faulttree.components" type="4"/> <item path="/hu.bme.mit.inf.dslreasoner.faulttree.components.ide" type="4"/> <item path="/hu.bme.mit.inf.dslreasoner.faulttree.components.ui" type="4"/> ;</resources>}"/> | ||
14 | <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher"/> | ||
15 | <stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="hu.bme.mit.inf.dslreasoner.faulttree.components.GenerateCftLanguage"/> | ||
16 | <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="hu.bme.mit.inf.dslreasoner.faulttree.components"/> | ||
17 | <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx512m"/> | ||
18 | </launchConfiguration> | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/.project b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/.project new file mode 100644 index 00000000..eb054def --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/.project | |||
@@ -0,0 +1,34 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <projectDescription> | ||
3 | <name>hu.bme.mit.inf.dslreasoner.faulttree.components</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/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/.settings/org.eclipse.core.resources.prefs b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 00000000..99f26c02 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/.settings/org.eclipse.core.resources.prefs | |||
@@ -0,0 +1,2 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | encoding/<project>=UTF-8 | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/.settings/org.eclipse.jdt.core.prefs b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..0c68a61d --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/.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/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/META-INF/MANIFEST.MF b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/META-INF/MANIFEST.MF new file mode 100644 index 00000000..66be4b49 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/META-INF/MANIFEST.MF | |||
@@ -0,0 +1,31 @@ | |||
1 | Manifest-Version: 1.0 | ||
2 | Automatic-Module-Name: hu.bme.mit.inf.dslreasoner.faulttree.components | ||
3 | Bundle-ManifestVersion: 2 | ||
4 | Bundle-Name: hu.bme.mit.inf.dslreasoner.faulttree.components | ||
5 | Bundle-Vendor: My Company | ||
6 | Bundle-Version: 1.0.0.qualifier | ||
7 | Bundle-SymbolicName: hu.bme.mit.inf.dslreasoner.faulttree.components; singleton:=true | ||
8 | Bundle-ActivationPolicy: lazy | ||
9 | Require-Bundle: org.eclipse.xtext, | ||
10 | org.eclipse.xtext.xbase, | ||
11 | org.eclipse.equinox.common;bundle-version="3.5.0", | ||
12 | org.eclipse.viatra.query.patternlanguage.emf, | ||
13 | org.eclipse.emf.ecore, | ||
14 | org.eclipse.xtext.xbase.lib;bundle-version="2.14.0", | ||
15 | org.eclipse.xtext.util, | ||
16 | org.eclipse.emf.common, | ||
17 | org.eclipse.xtend.lib;bundle-version="2.14.0", | ||
18 | org.antlr.runtime;bundle-version="[3.2.0,3.2.1)" | ||
19 | Bundle-RequiredExecutionEnvironment: JavaSE-1.8 | ||
20 | Export-Package: hu.bme.mit.inf.dslreasoner.faulttree.components, | ||
21 | hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage, | ||
22 | hu.bme.mit.inf.dslreasoner.faulttree.components.serializer, | ||
23 | hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.util, | ||
24 | hu.bme.mit.inf.dslreasoner.faulttree.components.scoping, | ||
25 | hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr.internal, | ||
26 | hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl, | ||
27 | hu.bme.mit.inf.dslreasoner.faulttree.components.generator, | ||
28 | hu.bme.mit.inf.dslreasoner.faulttree.components.validation, | ||
29 | hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr, | ||
30 | hu.bme.mit.inf.dslreasoner.faulttree.components.services | ||
31 | Import-Package: org.apache.log4j | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/build.properties b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/build.properties new file mode 100644 index 00000000..18d540bf --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/build.properties | |||
@@ -0,0 +1,20 @@ | |||
1 | source.. = src/,\ | ||
2 | src-gen/,\ | ||
3 | xtend-gen/ | ||
4 | bin.includes = model/generated/,\ | ||
5 | .,\ | ||
6 | META-INF/,\ | ||
7 | plugin.xml | ||
8 | bin.excludes = **/*.mwe2,\ | ||
9 | **/*.xtend | ||
10 | additional.bundles = org.eclipse.xtext.xbase,\ | ||
11 | org.eclipse.xtext.common.types,\ | ||
12 | org.eclipse.xtext.xtext.generator,\ | ||
13 | org.eclipse.emf.codegen.ecore,\ | ||
14 | org.eclipse.emf.mwe.utils,\ | ||
15 | org.eclipse.emf.mwe2.launch,\ | ||
16 | org.eclipse.emf.mwe2.lib,\ | ||
17 | org.objectweb.asm,\ | ||
18 | org.apache.commons.logging,\ | ||
19 | org.apache.log4j,\ | ||
20 | com.ibm.icu | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/model/generated/CftLanguage.ecore b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/model/generated/CftLanguage.ecore new file mode 100644 index 00000000..a86e503e --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/model/generated/CftLanguage.ecore | |||
@@ -0,0 +1,84 @@ | |||
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="cftLanguage" nsURI="http://www.bme.hu/mit/inf/dslreasoner/faulttree/components/CftLanguage" | ||
4 | nsPrefix="cftLanguage"> | ||
5 | <eClassifiers xsi:type="ecore:EClass" name="CftModel"> | ||
6 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="packageName" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/> | ||
7 | <eStructuralFeatures xsi:type="ecore:EReference" name="imports" upperBound="-1" | ||
8 | eType="#//ImportDeclaration" containment="true"/> | ||
9 | <eStructuralFeatures xsi:type="ecore:EReference" name="componentDefinitions" upperBound="-1" | ||
10 | eType="#//ComponentDefinition" containment="true"/> | ||
11 | <eStructuralFeatures xsi:type="ecore:EReference" name="transformationDefinitions" | ||
12 | upperBound="-1" eType="#//TransformationDefinition" containment="true"/> | ||
13 | </eClassifiers> | ||
14 | <eClassifiers xsi:type="ecore:EClass" name="ImportDeclaration"> | ||
15 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="importedNamespace" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/> | ||
16 | </eClassifiers> | ||
17 | <eClassifiers xsi:type="ecore:EClass" name="ComponentDefinition"> | ||
18 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/> | ||
19 | <eStructuralFeatures xsi:type="ecore:EReference" name="inputEvents" upperBound="-1" | ||
20 | eType="#//InputEvent" containment="true"/> | ||
21 | <eStructuralFeatures xsi:type="ecore:EReference" name="outputEvents" unique="false" | ||
22 | upperBound="-1" eType="#//EventDeclaration"/> | ||
23 | <eStructuralFeatures xsi:type="ecore:EReference" name="eventDefinitions" upperBound="-1" | ||
24 | eType="#//EventDefinition" containment="true"/> | ||
25 | </eClassifiers> | ||
26 | <eClassifiers xsi:type="ecore:EClass" name="EventDeclaration"> | ||
27 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/> | ||
28 | </eClassifiers> | ||
29 | <eClassifiers xsi:type="ecore:EClass" name="InputEvent" eSuperTypes="#//EventDeclaration"> | ||
30 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="multiple" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/> | ||
31 | </eClassifiers> | ||
32 | <eClassifiers xsi:type="ecore:EClass" name="EventDefinition" eSuperTypes="#//EventDeclaration"/> | ||
33 | <eClassifiers xsi:type="ecore:EClass" name="BasicEventDefinition" eSuperTypes="#//EventDefinition"> | ||
34 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="rate" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EDouble"/> | ||
35 | </eClassifiers> | ||
36 | <eClassifiers xsi:type="ecore:EClass" name="GateDefinition" eSuperTypes="#//EventDefinition"> | ||
37 | <eStructuralFeatures xsi:type="ecore:EReference" name="inputEvents" unique="false" | ||
38 | upperBound="-1" eType="#//EventDeclaration"/> | ||
39 | </eClassifiers> | ||
40 | <eClassifiers xsi:type="ecore:EClass" name="AndGate" eSuperTypes="#//GateDefinition"/> | ||
41 | <eClassifiers xsi:type="ecore:EClass" name="OrGate" eSuperTypes="#//GateDefinition"/> | ||
42 | <eClassifiers xsi:type="ecore:EClass" name="TransformationDefinition"> | ||
43 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/> | ||
44 | <eStructuralFeatures xsi:type="ecore:EReference" name="mappingDefinitions" upperBound="-1" | ||
45 | eType="#//MappingDefinition" containment="true"/> | ||
46 | </eClassifiers> | ||
47 | <eClassifiers xsi:type="ecore:EClass" name="MappingDefinition"> | ||
48 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="topLevel" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/> | ||
49 | <eStructuralFeatures xsi:type="ecore:EReference" name="pattern" eType="ecore:EClass platform:/resource/org.eclipse.viatra.query.patternlanguage.emf/model/PatternLanguage.ecore#//Pattern"/> | ||
50 | <eStructuralFeatures xsi:type="ecore:EReference" name="parameters" upperBound="-1" | ||
51 | eType="#//MappingParameter" containment="true"/> | ||
52 | <eStructuralFeatures xsi:type="ecore:EReference" name="componentInstance" eType="#//ComponentInstance" | ||
53 | containment="true"/> | ||
54 | <eStructuralFeatures xsi:type="ecore:EReference" name="lookupDefinitions" upperBound="-1" | ||
55 | eType="#//LookupDefinition" containment="true"/> | ||
56 | <eStructuralFeatures xsi:type="ecore:EReference" name="assignments" upperBound="-1" | ||
57 | eType="#//Assignment" containment="true"/> | ||
58 | </eClassifiers> | ||
59 | <eClassifiers xsi:type="ecore:EClass" name="MappingParameter"> | ||
60 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/> | ||
61 | </eClassifiers> | ||
62 | <eClassifiers xsi:type="ecore:EClass" name="LookupDefinition" eSuperTypes="#//Variable"> | ||
63 | <eStructuralFeatures xsi:type="ecore:EReference" name="mapping" eType="#//MappingDefinition"/> | ||
64 | <eStructuralFeatures xsi:type="ecore:EReference" name="arguments" unique="false" | ||
65 | upperBound="-1" eType="#//MappingParameter"/> | ||
66 | </eClassifiers> | ||
67 | <eClassifiers xsi:type="ecore:EClass" name="Variable"> | ||
68 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/> | ||
69 | </eClassifiers> | ||
70 | <eClassifiers xsi:type="ecore:EClass" name="Assignment"> | ||
71 | <eStructuralFeatures xsi:type="ecore:EReference" name="input" eType="#//EventReference" | ||
72 | containment="true"/> | ||
73 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="multiple" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/> | ||
74 | <eStructuralFeatures xsi:type="ecore:EReference" name="output" eType="#//EventReference" | ||
75 | containment="true"/> | ||
76 | </eClassifiers> | ||
77 | <eClassifiers xsi:type="ecore:EClass" name="EventReference"> | ||
78 | <eStructuralFeatures xsi:type="ecore:EReference" name="component" eType="#//Variable"/> | ||
79 | <eStructuralFeatures xsi:type="ecore:EReference" name="event" eType="#//EventDeclaration"/> | ||
80 | </eClassifiers> | ||
81 | <eClassifiers xsi:type="ecore:EClass" name="ComponentInstance" eSuperTypes="#//Variable"> | ||
82 | <eStructuralFeatures xsi:type="ecore:EReference" name="componentType" eType="#//ComponentDefinition"/> | ||
83 | </eClassifiers> | ||
84 | </ecore:EPackage> | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/model/generated/CftLanguage.genmodel b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/model/generated/CftLanguage.genmodel new file mode 100644 index 00000000..c2208adc --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/model/generated/CftLanguage.genmodel | |||
@@ -0,0 +1,74 @@ | |||
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.16.0" modelDirectory="/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen" | ||
4 | modelPluginID="hu.bme.mit.inf.dslreasoner.faulttree.components" forceOverwrite="true" | ||
5 | modelName="CftLanguage" updateClasspath="false" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" | ||
6 | complianceLevel="6.0" copyrightFields="false" runtimeVersion="2.16" usedGenPackages="platform:/resource/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore platform:/resource/org.eclipse.viatra.query.patternlanguage.emf/model/PatternLanguage.genmodel#//vql"> | ||
7 | <genPackages prefix="CftLanguage" basePackage="hu.bme.mit.inf.dslreasoner.faulttree.components" | ||
8 | disposableProviderFactory="true" fileExtensions="cft" ecorePackage="CftLanguage.ecore#/"> | ||
9 | <genClasses ecoreClass="CftLanguage.ecore#//CftModel"> | ||
10 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute CftLanguage.ecore#//CftModel/packageName"/> | ||
11 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference CftLanguage.ecore#//CftModel/imports"/> | ||
12 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference CftLanguage.ecore#//CftModel/componentDefinitions"/> | ||
13 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference CftLanguage.ecore#//CftModel/transformationDefinitions"/> | ||
14 | </genClasses> | ||
15 | <genClasses ecoreClass="CftLanguage.ecore#//ImportDeclaration"> | ||
16 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute CftLanguage.ecore#//ImportDeclaration/importedNamespace"/> | ||
17 | </genClasses> | ||
18 | <genClasses ecoreClass="CftLanguage.ecore#//ComponentDefinition"> | ||
19 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute CftLanguage.ecore#//ComponentDefinition/name"/> | ||
20 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference CftLanguage.ecore#//ComponentDefinition/inputEvents"/> | ||
21 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference CftLanguage.ecore#//ComponentDefinition/outputEvents"/> | ||
22 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference CftLanguage.ecore#//ComponentDefinition/eventDefinitions"/> | ||
23 | </genClasses> | ||
24 | <genClasses ecoreClass="CftLanguage.ecore#//EventDeclaration"> | ||
25 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute CftLanguage.ecore#//EventDeclaration/name"/> | ||
26 | </genClasses> | ||
27 | <genClasses ecoreClass="CftLanguage.ecore#//InputEvent"> | ||
28 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute CftLanguage.ecore#//InputEvent/multiple"/> | ||
29 | </genClasses> | ||
30 | <genClasses ecoreClass="CftLanguage.ecore#//EventDefinition"/> | ||
31 | <genClasses ecoreClass="CftLanguage.ecore#//BasicEventDefinition"> | ||
32 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute CftLanguage.ecore#//BasicEventDefinition/rate"/> | ||
33 | </genClasses> | ||
34 | <genClasses ecoreClass="CftLanguage.ecore#//GateDefinition"> | ||
35 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference CftLanguage.ecore#//GateDefinition/inputEvents"/> | ||
36 | </genClasses> | ||
37 | <genClasses ecoreClass="CftLanguage.ecore#//AndGate"/> | ||
38 | <genClasses ecoreClass="CftLanguage.ecore#//OrGate"/> | ||
39 | <genClasses ecoreClass="CftLanguage.ecore#//TransformationDefinition"> | ||
40 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute CftLanguage.ecore#//TransformationDefinition/name"/> | ||
41 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference CftLanguage.ecore#//TransformationDefinition/mappingDefinitions"/> | ||
42 | </genClasses> | ||
43 | <genClasses ecoreClass="CftLanguage.ecore#//MappingDefinition"> | ||
44 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute CftLanguage.ecore#//MappingDefinition/topLevel"/> | ||
45 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference CftLanguage.ecore#//MappingDefinition/pattern"/> | ||
46 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference CftLanguage.ecore#//MappingDefinition/parameters"/> | ||
47 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference CftLanguage.ecore#//MappingDefinition/componentInstance"/> | ||
48 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference CftLanguage.ecore#//MappingDefinition/lookupDefinitions"/> | ||
49 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference CftLanguage.ecore#//MappingDefinition/assignments"/> | ||
50 | </genClasses> | ||
51 | <genClasses ecoreClass="CftLanguage.ecore#//MappingParameter"> | ||
52 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute CftLanguage.ecore#//MappingParameter/name"/> | ||
53 | </genClasses> | ||
54 | <genClasses ecoreClass="CftLanguage.ecore#//LookupDefinition"> | ||
55 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference CftLanguage.ecore#//LookupDefinition/mapping"/> | ||
56 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference CftLanguage.ecore#//LookupDefinition/arguments"/> | ||
57 | </genClasses> | ||
58 | <genClasses ecoreClass="CftLanguage.ecore#//Variable"> | ||
59 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute CftLanguage.ecore#//Variable/name"/> | ||
60 | </genClasses> | ||
61 | <genClasses ecoreClass="CftLanguage.ecore#//Assignment"> | ||
62 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference CftLanguage.ecore#//Assignment/input"/> | ||
63 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute CftLanguage.ecore#//Assignment/multiple"/> | ||
64 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference CftLanguage.ecore#//Assignment/output"/> | ||
65 | </genClasses> | ||
66 | <genClasses ecoreClass="CftLanguage.ecore#//EventReference"> | ||
67 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference CftLanguage.ecore#//EventReference/component"/> | ||
68 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference CftLanguage.ecore#//EventReference/event"/> | ||
69 | </genClasses> | ||
70 | <genClasses ecoreClass="CftLanguage.ecore#//ComponentInstance"> | ||
71 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference CftLanguage.ecore#//ComponentInstance/componentType"/> | ||
72 | </genClasses> | ||
73 | </genPackages> | ||
74 | </genmodel:GenModel> | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/plugin.xml b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/plugin.xml new file mode 100644 index 00000000..698af7de --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/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/faulttree/components/CftLanguage" | ||
7 | class = "hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage" | ||
8 | genModel = "model/generated/CftLanguage.genmodel" /> | ||
9 | </extension> | ||
10 | </plugin> | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/AbstractCftLanguageRuntimeModule.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/AbstractCftLanguageRuntimeModule.java new file mode 100644 index 00000000..bdec0d5b --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/AbstractCftLanguageRuntimeModule.java | |||
@@ -0,0 +1,208 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components; | ||
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.faulttree.components.generator.CftLanguageGenerator; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr.CftLanguageAntlrTokenFileProvider; | ||
11 | import hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr.CftLanguageParser; | ||
12 | import hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr.internal.InternalCftLanguageLexer; | ||
13 | import hu.bme.mit.inf.dslreasoner.faulttree.components.scoping.CftLanguageScopeProvider; | ||
14 | import hu.bme.mit.inf.dslreasoner.faulttree.components.serializer.CftLanguageSemanticSequencer; | ||
15 | import hu.bme.mit.inf.dslreasoner.faulttree.components.serializer.CftLanguageSyntacticSequencer; | ||
16 | import hu.bme.mit.inf.dslreasoner.faulttree.components.services.CftLanguageGrammarAccess; | ||
17 | import hu.bme.mit.inf.dslreasoner.faulttree.components.validation.CftLanguageConfigurableIssueCodesProvider; | ||
18 | import hu.bme.mit.inf.dslreasoner.faulttree.components.validation.CftLanguageValidator; | ||
19 | import java.util.Properties; | ||
20 | import org.eclipse.xtext.Constants; | ||
21 | import org.eclipse.xtext.IGrammarAccess; | ||
22 | import org.eclipse.xtext.generator.IGenerator2; | ||
23 | import org.eclipse.xtext.naming.DefaultDeclarativeQualifiedNameProvider; | ||
24 | import org.eclipse.xtext.naming.IQualifiedNameProvider; | ||
25 | import org.eclipse.xtext.parser.IParser; | ||
26 | import org.eclipse.xtext.parser.ITokenToStringConverter; | ||
27 | import org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider; | ||
28 | import org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter; | ||
29 | import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider; | ||
30 | import org.eclipse.xtext.parser.antlr.ITokenDefProvider; | ||
31 | import org.eclipse.xtext.parser.antlr.IUnorderedGroupHelper; | ||
32 | import org.eclipse.xtext.parser.antlr.Lexer; | ||
33 | import org.eclipse.xtext.parser.antlr.LexerBindings; | ||
34 | import org.eclipse.xtext.parser.antlr.LexerProvider; | ||
35 | import org.eclipse.xtext.parser.antlr.UnorderedGroupHelper; | ||
36 | import org.eclipse.xtext.resource.IContainer; | ||
37 | import org.eclipse.xtext.resource.IResourceDescriptions; | ||
38 | import org.eclipse.xtext.resource.containers.IAllContainersState; | ||
39 | import org.eclipse.xtext.resource.containers.ResourceSetBasedAllContainersStateProvider; | ||
40 | import org.eclipse.xtext.resource.containers.StateBasedContainerManager; | ||
41 | import org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider; | ||
42 | import org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions; | ||
43 | import org.eclipse.xtext.scoping.IGlobalScopeProvider; | ||
44 | import org.eclipse.xtext.scoping.IScopeProvider; | ||
45 | import org.eclipse.xtext.scoping.IgnoreCaseLinking; | ||
46 | import org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider; | ||
47 | import org.eclipse.xtext.scoping.impl.DefaultGlobalScopeProvider; | ||
48 | import org.eclipse.xtext.scoping.impl.ImportedNamespaceAwareLocalScopeProvider; | ||
49 | import org.eclipse.xtext.serializer.ISerializer; | ||
50 | import org.eclipse.xtext.serializer.impl.Serializer; | ||
51 | import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer; | ||
52 | import org.eclipse.xtext.serializer.sequencer.ISyntacticSequencer; | ||
53 | import org.eclipse.xtext.service.DefaultRuntimeModule; | ||
54 | import org.eclipse.xtext.service.SingletonBinding; | ||
55 | import org.eclipse.xtext.validation.ConfigurableIssueCodesProvider; | ||
56 | |||
57 | /** | ||
58 | * Manual modifications go to {@link CftLanguageRuntimeModule}. | ||
59 | */ | ||
60 | @SuppressWarnings("all") | ||
61 | public abstract class AbstractCftLanguageRuntimeModule extends DefaultRuntimeModule { | ||
62 | |||
63 | protected Properties properties = null; | ||
64 | |||
65 | @Override | ||
66 | public void configure(Binder binder) { | ||
67 | properties = tryBindProperties(binder, "hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguage.properties"); | ||
68 | super.configure(binder); | ||
69 | } | ||
70 | |||
71 | public void configureLanguageName(Binder binder) { | ||
72 | binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage"); | ||
73 | } | ||
74 | |||
75 | public void configureFileExtensions(Binder binder) { | ||
76 | if (properties == null || properties.getProperty(Constants.FILE_EXTENSIONS) == null) | ||
77 | binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("cft"); | ||
78 | } | ||
79 | |||
80 | // contributed by org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessFragment2 | ||
81 | public ClassLoader bindClassLoaderToInstance() { | ||
82 | return getClass().getClassLoader(); | ||
83 | } | ||
84 | |||
85 | // contributed by org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessFragment2 | ||
86 | public Class<? extends IGrammarAccess> bindIGrammarAccess() { | ||
87 | return CftLanguageGrammarAccess.class; | ||
88 | } | ||
89 | |||
90 | // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 | ||
91 | public Class<? extends ISemanticSequencer> bindISemanticSequencer() { | ||
92 | return CftLanguageSemanticSequencer.class; | ||
93 | } | ||
94 | |||
95 | // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 | ||
96 | public Class<? extends ISyntacticSequencer> bindISyntacticSequencer() { | ||
97 | return CftLanguageSyntacticSequencer.class; | ||
98 | } | ||
99 | |||
100 | // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 | ||
101 | public Class<? extends ISerializer> bindISerializer() { | ||
102 | return Serializer.class; | ||
103 | } | ||
104 | |||
105 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
106 | public Class<? extends IParser> bindIParser() { | ||
107 | return CftLanguageParser.class; | ||
108 | } | ||
109 | |||
110 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
111 | public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { | ||
112 | return AntlrTokenToStringConverter.class; | ||
113 | } | ||
114 | |||
115 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
116 | public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() { | ||
117 | return CftLanguageAntlrTokenFileProvider.class; | ||
118 | } | ||
119 | |||
120 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
121 | public Class<? extends Lexer> bindLexer() { | ||
122 | return InternalCftLanguageLexer.class; | ||
123 | } | ||
124 | |||
125 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
126 | public Class<? extends ITokenDefProvider> bindITokenDefProvider() { | ||
127 | return AntlrTokenDefProvider.class; | ||
128 | } | ||
129 | |||
130 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
131 | public Provider<? extends InternalCftLanguageLexer> provideInternalCftLanguageLexer() { | ||
132 | return LexerProvider.create(InternalCftLanguageLexer.class); | ||
133 | } | ||
134 | |||
135 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
136 | public void configureRuntimeLexer(Binder binder) { | ||
137 | binder.bind(Lexer.class) | ||
138 | .annotatedWith(Names.named(LexerBindings.RUNTIME)) | ||
139 | .to(InternalCftLanguageLexer.class); | ||
140 | } | ||
141 | |||
142 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
143 | public Class<? extends IUnorderedGroupHelper> bindIUnorderedGroupHelper() { | ||
144 | return UnorderedGroupHelper.class; | ||
145 | } | ||
146 | |||
147 | // contributed by org.eclipse.xtext.xtext.generator.validation.ValidatorFragment2 | ||
148 | @SingletonBinding(eager=true) | ||
149 | public Class<? extends CftLanguageValidator> bindCftLanguageValidator() { | ||
150 | return CftLanguageValidator.class; | ||
151 | } | ||
152 | |||
153 | // contributed by org.eclipse.xtext.xtext.generator.validation.ValidatorFragment2 | ||
154 | public Class<? extends ConfigurableIssueCodesProvider> bindConfigurableIssueCodesProvider() { | ||
155 | return CftLanguageConfigurableIssueCodesProvider.class; | ||
156 | } | ||
157 | |||
158 | // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 | ||
159 | public Class<? extends IScopeProvider> bindIScopeProvider() { | ||
160 | return CftLanguageScopeProvider.class; | ||
161 | } | ||
162 | |||
163 | // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 | ||
164 | public void configureIScopeProviderDelegate(Binder binder) { | ||
165 | binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class); | ||
166 | } | ||
167 | |||
168 | // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 | ||
169 | public Class<? extends IGlobalScopeProvider> bindIGlobalScopeProvider() { | ||
170 | return DefaultGlobalScopeProvider.class; | ||
171 | } | ||
172 | |||
173 | // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 | ||
174 | public void configureIgnoreCaseLinking(Binder binder) { | ||
175 | binder.bindConstant().annotatedWith(IgnoreCaseLinking.class).to(false); | ||
176 | } | ||
177 | |||
178 | // contributed by org.eclipse.xtext.xtext.generator.exporting.QualifiedNamesFragment2 | ||
179 | public Class<? extends IQualifiedNameProvider> bindIQualifiedNameProvider() { | ||
180 | return DefaultDeclarativeQualifiedNameProvider.class; | ||
181 | } | ||
182 | |||
183 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
184 | public Class<? extends IContainer.Manager> bindIContainer$Manager() { | ||
185 | return StateBasedContainerManager.class; | ||
186 | } | ||
187 | |||
188 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
189 | public Class<? extends IAllContainersState.Provider> bindIAllContainersState$Provider() { | ||
190 | return ResourceSetBasedAllContainersStateProvider.class; | ||
191 | } | ||
192 | |||
193 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
194 | public void configureIResourceDescriptions(Binder binder) { | ||
195 | binder.bind(IResourceDescriptions.class).to(ResourceSetBasedResourceDescriptions.class); | ||
196 | } | ||
197 | |||
198 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
199 | public void configureIResourceDescriptionsPersisted(Binder binder) { | ||
200 | binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)).to(ResourceSetBasedResourceDescriptions.class); | ||
201 | } | ||
202 | |||
203 | // contributed by org.eclipse.xtext.xtext.generator.generator.GeneratorFragment2 | ||
204 | public Class<? extends IGenerator2> bindIGenerator2() { | ||
205 | return CftLanguageGenerator.class; | ||
206 | } | ||
207 | |||
208 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguage.xtextbin b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguage.xtextbin new file mode 100644 index 00000000..b39c9074 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguage.xtextbin | |||
Binary files differ | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguageStandaloneSetupGenerated.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguageStandaloneSetupGenerated.java new file mode 100644 index 00000000..75f38b14 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguageStandaloneSetupGenerated.java | |||
@@ -0,0 +1,42 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components; | ||
5 | |||
6 | import com.google.inject.Guice; | ||
7 | import com.google.inject.Injector; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
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 CftLanguageStandaloneSetupGenerated 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 CftLanguageRuntimeModule()); | ||
30 | } | ||
31 | |||
32 | public void register(Injector injector) { | ||
33 | if (!EPackage.Registry.INSTANCE.containsKey("http://www.bme.hu/mit/inf/dslreasoner/faulttree/components/CftLanguage")) { | ||
34 | EPackage.Registry.INSTANCE.put("http://www.bme.hu/mit/inf/dslreasoner/faulttree/components/CftLanguage", CftLanguagePackage.eINSTANCE); | ||
35 | } | ||
36 | IResourceFactory resourceFactory = injector.getInstance(IResourceFactory.class); | ||
37 | IResourceServiceProvider serviceProvider = injector.getInstance(IResourceServiceProvider.class); | ||
38 | |||
39 | Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("cft", resourceFactory); | ||
40 | IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("cft", serviceProvider); | ||
41 | } | ||
42 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/AndGate.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/AndGate.java new file mode 100644 index 00000000..6d197233 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/AndGate.java | |||
@@ -0,0 +1,19 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>And Gate</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * | ||
13 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getAndGate() | ||
14 | * @model | ||
15 | * @generated | ||
16 | */ | ||
17 | public interface AndGate extends GateDefinition | ||
18 | { | ||
19 | } // AndGate | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/Assignment.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/Assignment.java new file mode 100644 index 00000000..13c9d6c2 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/Assignment.java | |||
@@ -0,0 +1,106 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EObject; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * A representation of the model object '<em><b>Assignment</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.faulttree.components.cftLanguage.Assignment#getInput <em>Input</em>}</li> | ||
18 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#isMultiple <em>Multiple</em>}</li> | ||
19 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#getOutput <em>Output</em>}</li> | ||
20 | * </ul> | ||
21 | * | ||
22 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getAssignment() | ||
23 | * @model | ||
24 | * @generated | ||
25 | */ | ||
26 | public interface Assignment extends EObject | ||
27 | { | ||
28 | /** | ||
29 | * Returns the value of the '<em><b>Input</b></em>' containment reference. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <p> | ||
32 | * If the meaning of the '<em>Input</em>' containment 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>Input</em>' containment reference. | ||
37 | * @see #setInput(EventReference) | ||
38 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getAssignment_Input() | ||
39 | * @model containment="true" | ||
40 | * @generated | ||
41 | */ | ||
42 | EventReference getInput(); | ||
43 | |||
44 | /** | ||
45 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#getInput <em>Input</em>}' containment reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @param value the new value of the '<em>Input</em>' containment reference. | ||
49 | * @see #getInput() | ||
50 | * @generated | ||
51 | */ | ||
52 | void setInput(EventReference value); | ||
53 | |||
54 | /** | ||
55 | * Returns the value of the '<em><b>Multiple</b></em>' attribute. | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <p> | ||
58 | * If the meaning of the '<em>Multiple</em>' attribute 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>Multiple</em>' attribute. | ||
63 | * @see #setMultiple(boolean) | ||
64 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getAssignment_Multiple() | ||
65 | * @model | ||
66 | * @generated | ||
67 | */ | ||
68 | boolean isMultiple(); | ||
69 | |||
70 | /** | ||
71 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#isMultiple <em>Multiple</em>}' attribute. | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @param value the new value of the '<em>Multiple</em>' attribute. | ||
75 | * @see #isMultiple() | ||
76 | * @generated | ||
77 | */ | ||
78 | void setMultiple(boolean value); | ||
79 | |||
80 | /** | ||
81 | * Returns the value of the '<em><b>Output</b></em>' containment reference. | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <p> | ||
84 | * If the meaning of the '<em>Output</em>' containment reference isn't clear, | ||
85 | * there really should be more of a description here... | ||
86 | * </p> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @return the value of the '<em>Output</em>' containment reference. | ||
89 | * @see #setOutput(EventReference) | ||
90 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getAssignment_Output() | ||
91 | * @model containment="true" | ||
92 | * @generated | ||
93 | */ | ||
94 | EventReference getOutput(); | ||
95 | |||
96 | /** | ||
97 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#getOutput <em>Output</em>}' containment reference. | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @param value the new value of the '<em>Output</em>' containment reference. | ||
101 | * @see #getOutput() | ||
102 | * @generated | ||
103 | */ | ||
104 | void setOutput(EventReference value); | ||
105 | |||
106 | } // Assignment | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/BasicEventDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/BasicEventDefinition.java new file mode 100644 index 00000000..9a564a57 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/BasicEventDefinition.java | |||
@@ -0,0 +1,51 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Basic Event Definition</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.faulttree.components.cftLanguage.BasicEventDefinition#getRate <em>Rate</em>}</li> | ||
17 | * </ul> | ||
18 | * | ||
19 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getBasicEventDefinition() | ||
20 | * @model | ||
21 | * @generated | ||
22 | */ | ||
23 | public interface BasicEventDefinition extends EventDefinition | ||
24 | { | ||
25 | /** | ||
26 | * Returns the value of the '<em><b>Rate</b></em>' attribute. | ||
27 | * <!-- begin-user-doc --> | ||
28 | * <p> | ||
29 | * If the meaning of the '<em>Rate</em>' attribute 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>Rate</em>' attribute. | ||
34 | * @see #setRate(double) | ||
35 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getBasicEventDefinition_Rate() | ||
36 | * @model | ||
37 | * @generated | ||
38 | */ | ||
39 | double getRate(); | ||
40 | |||
41 | /** | ||
42 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition#getRate <em>Rate</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @param value the new value of the '<em>Rate</em>' attribute. | ||
46 | * @see #getRate() | ||
47 | * @generated | ||
48 | */ | ||
49 | void setRate(double value); | ||
50 | |||
51 | } // BasicEventDefinition | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftLanguageFactory.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftLanguageFactory.java new file mode 100644 index 00000000..07c5786f --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftLanguageFactory.java | |||
@@ -0,0 +1,197 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
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.faulttree.components.cftLanguage.CftLanguagePackage | ||
14 | * @generated | ||
15 | */ | ||
16 | public interface CftLanguageFactory extends EFactory | ||
17 | { | ||
18 | /** | ||
19 | * The singleton instance of the factory. | ||
20 | * <!-- begin-user-doc --> | ||
21 | * <!-- end-user-doc --> | ||
22 | * @generated | ||
23 | */ | ||
24 | CftLanguageFactory eINSTANCE = hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguageFactoryImpl.init(); | ||
25 | |||
26 | /** | ||
27 | * Returns a new object of class '<em>Cft Model</em>'. | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @return a new object of class '<em>Cft Model</em>'. | ||
31 | * @generated | ||
32 | */ | ||
33 | CftModel createCftModel(); | ||
34 | |||
35 | /** | ||
36 | * Returns a new object of class '<em>Import Declaration</em>'. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @return a new object of class '<em>Import Declaration</em>'. | ||
40 | * @generated | ||
41 | */ | ||
42 | ImportDeclaration createImportDeclaration(); | ||
43 | |||
44 | /** | ||
45 | * Returns a new object of class '<em>Component Definition</em>'. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @return a new object of class '<em>Component Definition</em>'. | ||
49 | * @generated | ||
50 | */ | ||
51 | ComponentDefinition createComponentDefinition(); | ||
52 | |||
53 | /** | ||
54 | * Returns a new object of class '<em>Event Declaration</em>'. | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @return a new object of class '<em>Event Declaration</em>'. | ||
58 | * @generated | ||
59 | */ | ||
60 | EventDeclaration createEventDeclaration(); | ||
61 | |||
62 | /** | ||
63 | * Returns a new object of class '<em>Input Event</em>'. | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @return a new object of class '<em>Input Event</em>'. | ||
67 | * @generated | ||
68 | */ | ||
69 | InputEvent createInputEvent(); | ||
70 | |||
71 | /** | ||
72 | * Returns a new object of class '<em>Event Definition</em>'. | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @return a new object of class '<em>Event Definition</em>'. | ||
76 | * @generated | ||
77 | */ | ||
78 | EventDefinition createEventDefinition(); | ||
79 | |||
80 | /** | ||
81 | * Returns a new object of class '<em>Basic Event Definition</em>'. | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @return a new object of class '<em>Basic Event Definition</em>'. | ||
85 | * @generated | ||
86 | */ | ||
87 | BasicEventDefinition createBasicEventDefinition(); | ||
88 | |||
89 | /** | ||
90 | * Returns a new object of class '<em>Gate Definition</em>'. | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @return a new object of class '<em>Gate Definition</em>'. | ||
94 | * @generated | ||
95 | */ | ||
96 | GateDefinition createGateDefinition(); | ||
97 | |||
98 | /** | ||
99 | * Returns a new object of class '<em>And Gate</em>'. | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @return a new object of class '<em>And Gate</em>'. | ||
103 | * @generated | ||
104 | */ | ||
105 | AndGate createAndGate(); | ||
106 | |||
107 | /** | ||
108 | * Returns a new object of class '<em>Or Gate</em>'. | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @return a new object of class '<em>Or Gate</em>'. | ||
112 | * @generated | ||
113 | */ | ||
114 | OrGate createOrGate(); | ||
115 | |||
116 | /** | ||
117 | * Returns a new object of class '<em>Transformation Definition</em>'. | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @return a new object of class '<em>Transformation Definition</em>'. | ||
121 | * @generated | ||
122 | */ | ||
123 | TransformationDefinition createTransformationDefinition(); | ||
124 | |||
125 | /** | ||
126 | * Returns a new object of class '<em>Mapping Definition</em>'. | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @return a new object of class '<em>Mapping Definition</em>'. | ||
130 | * @generated | ||
131 | */ | ||
132 | MappingDefinition createMappingDefinition(); | ||
133 | |||
134 | /** | ||
135 | * Returns a new object of class '<em>Mapping Parameter</em>'. | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @return a new object of class '<em>Mapping Parameter</em>'. | ||
139 | * @generated | ||
140 | */ | ||
141 | MappingParameter createMappingParameter(); | ||
142 | |||
143 | /** | ||
144 | * Returns a new object of class '<em>Lookup Definition</em>'. | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @return a new object of class '<em>Lookup Definition</em>'. | ||
148 | * @generated | ||
149 | */ | ||
150 | LookupDefinition createLookupDefinition(); | ||
151 | |||
152 | /** | ||
153 | * Returns a new object of class '<em>Variable</em>'. | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @return a new object of class '<em>Variable</em>'. | ||
157 | * @generated | ||
158 | */ | ||
159 | Variable createVariable(); | ||
160 | |||
161 | /** | ||
162 | * Returns a new object of class '<em>Assignment</em>'. | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @return a new object of class '<em>Assignment</em>'. | ||
166 | * @generated | ||
167 | */ | ||
168 | Assignment createAssignment(); | ||
169 | |||
170 | /** | ||
171 | * Returns a new object of class '<em>Event Reference</em>'. | ||
172 | * <!-- begin-user-doc --> | ||
173 | * <!-- end-user-doc --> | ||
174 | * @return a new object of class '<em>Event Reference</em>'. | ||
175 | * @generated | ||
176 | */ | ||
177 | EventReference createEventReference(); | ||
178 | |||
179 | /** | ||
180 | * Returns a new object of class '<em>Component Instance</em>'. | ||
181 | * <!-- begin-user-doc --> | ||
182 | * <!-- end-user-doc --> | ||
183 | * @return a new object of class '<em>Component Instance</em>'. | ||
184 | * @generated | ||
185 | */ | ||
186 | ComponentInstance createComponentInstance(); | ||
187 | |||
188 | /** | ||
189 | * Returns the package supported by this factory. | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @return the package supported by this factory. | ||
193 | * @generated | ||
194 | */ | ||
195 | CftLanguagePackage getCftLanguagePackage(); | ||
196 | |||
197 | } //CftLanguageFactory | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftLanguagePackage.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftLanguagePackage.java new file mode 100644 index 00000000..405a8691 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftLanguagePackage.java | |||
@@ -0,0 +1,1746 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
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.faulttree.components.cftLanguage.CftLanguageFactory | ||
23 | * @model kind="package" | ||
24 | * @generated | ||
25 | */ | ||
26 | public interface CftLanguagePackage extends EPackage | ||
27 | { | ||
28 | /** | ||
29 | * The package name. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @generated | ||
33 | */ | ||
34 | String eNAME = "cftLanguage"; | ||
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/faulttree/components/CftLanguage"; | ||
43 | |||
44 | /** | ||
45 | * The package namespace name. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @generated | ||
49 | */ | ||
50 | String eNS_PREFIX = "cftLanguage"; | ||
51 | |||
52 | /** | ||
53 | * The singleton instance of the package. | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | CftLanguagePackage eINSTANCE = hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl.init(); | ||
59 | |||
60 | /** | ||
61 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl <em>Cft Model</em>}' class. | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl | ||
65 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getCftModel() | ||
66 | * @generated | ||
67 | */ | ||
68 | int CFT_MODEL = 0; | ||
69 | |||
70 | /** | ||
71 | * The feature id for the '<em><b>Package Name</b></em>' attribute. | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | * @ordered | ||
76 | */ | ||
77 | int CFT_MODEL__PACKAGE_NAME = 0; | ||
78 | |||
79 | /** | ||
80 | * The feature id for the '<em><b>Imports</b></em>' containment reference list. | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @generated | ||
84 | * @ordered | ||
85 | */ | ||
86 | int CFT_MODEL__IMPORTS = 1; | ||
87 | |||
88 | /** | ||
89 | * The feature id for the '<em><b>Component Definitions</b></em>' containment reference list. | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | * @ordered | ||
94 | */ | ||
95 | int CFT_MODEL__COMPONENT_DEFINITIONS = 2; | ||
96 | |||
97 | /** | ||
98 | * The feature id for the '<em><b>Transformation Definitions</b></em>' containment reference list. | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @generated | ||
102 | * @ordered | ||
103 | */ | ||
104 | int CFT_MODEL__TRANSFORMATION_DEFINITIONS = 3; | ||
105 | |||
106 | /** | ||
107 | * The number of structural features of the '<em>Cft Model</em>' class. | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | * @ordered | ||
112 | */ | ||
113 | int CFT_MODEL_FEATURE_COUNT = 4; | ||
114 | |||
115 | /** | ||
116 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ImportDeclarationImpl <em>Import Declaration</em>}' class. | ||
117 | * <!-- begin-user-doc --> | ||
118 | * <!-- end-user-doc --> | ||
119 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ImportDeclarationImpl | ||
120 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getImportDeclaration() | ||
121 | * @generated | ||
122 | */ | ||
123 | int IMPORT_DECLARATION = 1; | ||
124 | |||
125 | /** | ||
126 | * The feature id for the '<em><b>Imported Namespace</b></em>' attribute. | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @generated | ||
130 | * @ordered | ||
131 | */ | ||
132 | int IMPORT_DECLARATION__IMPORTED_NAMESPACE = 0; | ||
133 | |||
134 | /** | ||
135 | * The number of structural features of the '<em>Import Declaration</em>' class. | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | * @ordered | ||
140 | */ | ||
141 | int IMPORT_DECLARATION_FEATURE_COUNT = 1; | ||
142 | |||
143 | /** | ||
144 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl <em>Component Definition</em>}' class. | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl | ||
148 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getComponentDefinition() | ||
149 | * @generated | ||
150 | */ | ||
151 | int COMPONENT_DEFINITION = 2; | ||
152 | |||
153 | /** | ||
154 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
155 | * <!-- begin-user-doc --> | ||
156 | * <!-- end-user-doc --> | ||
157 | * @generated | ||
158 | * @ordered | ||
159 | */ | ||
160 | int COMPONENT_DEFINITION__NAME = 0; | ||
161 | |||
162 | /** | ||
163 | * The feature id for the '<em><b>Input Events</b></em>' containment reference list. | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | * @ordered | ||
168 | */ | ||
169 | int COMPONENT_DEFINITION__INPUT_EVENTS = 1; | ||
170 | |||
171 | /** | ||
172 | * The feature id for the '<em><b>Output Events</b></em>' reference list. | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | * @ordered | ||
177 | */ | ||
178 | int COMPONENT_DEFINITION__OUTPUT_EVENTS = 2; | ||
179 | |||
180 | /** | ||
181 | * The feature id for the '<em><b>Event Definitions</b></em>' containment reference list. | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @generated | ||
185 | * @ordered | ||
186 | */ | ||
187 | int COMPONENT_DEFINITION__EVENT_DEFINITIONS = 3; | ||
188 | |||
189 | /** | ||
190 | * The number of structural features of the '<em>Component Definition</em>' class. | ||
191 | * <!-- begin-user-doc --> | ||
192 | * <!-- end-user-doc --> | ||
193 | * @generated | ||
194 | * @ordered | ||
195 | */ | ||
196 | int COMPONENT_DEFINITION_FEATURE_COUNT = 4; | ||
197 | |||
198 | /** | ||
199 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDeclarationImpl <em>Event Declaration</em>}' class. | ||
200 | * <!-- begin-user-doc --> | ||
201 | * <!-- end-user-doc --> | ||
202 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDeclarationImpl | ||
203 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getEventDeclaration() | ||
204 | * @generated | ||
205 | */ | ||
206 | int EVENT_DECLARATION = 3; | ||
207 | |||
208 | /** | ||
209 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
210 | * <!-- begin-user-doc --> | ||
211 | * <!-- end-user-doc --> | ||
212 | * @generated | ||
213 | * @ordered | ||
214 | */ | ||
215 | int EVENT_DECLARATION__NAME = 0; | ||
216 | |||
217 | /** | ||
218 | * The number of structural features of the '<em>Event Declaration</em>' class. | ||
219 | * <!-- begin-user-doc --> | ||
220 | * <!-- end-user-doc --> | ||
221 | * @generated | ||
222 | * @ordered | ||
223 | */ | ||
224 | int EVENT_DECLARATION_FEATURE_COUNT = 1; | ||
225 | |||
226 | /** | ||
227 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.InputEventImpl <em>Input Event</em>}' class. | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.InputEventImpl | ||
231 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getInputEvent() | ||
232 | * @generated | ||
233 | */ | ||
234 | int INPUT_EVENT = 4; | ||
235 | |||
236 | /** | ||
237 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
238 | * <!-- begin-user-doc --> | ||
239 | * <!-- end-user-doc --> | ||
240 | * @generated | ||
241 | * @ordered | ||
242 | */ | ||
243 | int INPUT_EVENT__NAME = EVENT_DECLARATION__NAME; | ||
244 | |||
245 | /** | ||
246 | * The feature id for the '<em><b>Multiple</b></em>' attribute. | ||
247 | * <!-- begin-user-doc --> | ||
248 | * <!-- end-user-doc --> | ||
249 | * @generated | ||
250 | * @ordered | ||
251 | */ | ||
252 | int INPUT_EVENT__MULTIPLE = EVENT_DECLARATION_FEATURE_COUNT + 0; | ||
253 | |||
254 | /** | ||
255 | * The number of structural features of the '<em>Input Event</em>' class. | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | * @ordered | ||
260 | */ | ||
261 | int INPUT_EVENT_FEATURE_COUNT = EVENT_DECLARATION_FEATURE_COUNT + 1; | ||
262 | |||
263 | /** | ||
264 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDefinitionImpl <em>Event Definition</em>}' class. | ||
265 | * <!-- begin-user-doc --> | ||
266 | * <!-- end-user-doc --> | ||
267 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDefinitionImpl | ||
268 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getEventDefinition() | ||
269 | * @generated | ||
270 | */ | ||
271 | int EVENT_DEFINITION = 5; | ||
272 | |||
273 | /** | ||
274 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
275 | * <!-- begin-user-doc --> | ||
276 | * <!-- end-user-doc --> | ||
277 | * @generated | ||
278 | * @ordered | ||
279 | */ | ||
280 | int EVENT_DEFINITION__NAME = EVENT_DECLARATION__NAME; | ||
281 | |||
282 | /** | ||
283 | * The number of structural features of the '<em>Event Definition</em>' class. | ||
284 | * <!-- begin-user-doc --> | ||
285 | * <!-- end-user-doc --> | ||
286 | * @generated | ||
287 | * @ordered | ||
288 | */ | ||
289 | int EVENT_DEFINITION_FEATURE_COUNT = EVENT_DECLARATION_FEATURE_COUNT + 0; | ||
290 | |||
291 | /** | ||
292 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.BasicEventDefinitionImpl <em>Basic Event Definition</em>}' class. | ||
293 | * <!-- begin-user-doc --> | ||
294 | * <!-- end-user-doc --> | ||
295 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.BasicEventDefinitionImpl | ||
296 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getBasicEventDefinition() | ||
297 | * @generated | ||
298 | */ | ||
299 | int BASIC_EVENT_DEFINITION = 6; | ||
300 | |||
301 | /** | ||
302 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
303 | * <!-- begin-user-doc --> | ||
304 | * <!-- end-user-doc --> | ||
305 | * @generated | ||
306 | * @ordered | ||
307 | */ | ||
308 | int BASIC_EVENT_DEFINITION__NAME = EVENT_DEFINITION__NAME; | ||
309 | |||
310 | /** | ||
311 | * The feature id for the '<em><b>Rate</b></em>' attribute. | ||
312 | * <!-- begin-user-doc --> | ||
313 | * <!-- end-user-doc --> | ||
314 | * @generated | ||
315 | * @ordered | ||
316 | */ | ||
317 | int BASIC_EVENT_DEFINITION__RATE = EVENT_DEFINITION_FEATURE_COUNT + 0; | ||
318 | |||
319 | /** | ||
320 | * The number of structural features of the '<em>Basic Event Definition</em>' class. | ||
321 | * <!-- begin-user-doc --> | ||
322 | * <!-- end-user-doc --> | ||
323 | * @generated | ||
324 | * @ordered | ||
325 | */ | ||
326 | int BASIC_EVENT_DEFINITION_FEATURE_COUNT = EVENT_DEFINITION_FEATURE_COUNT + 1; | ||
327 | |||
328 | /** | ||
329 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.GateDefinitionImpl <em>Gate Definition</em>}' class. | ||
330 | * <!-- begin-user-doc --> | ||
331 | * <!-- end-user-doc --> | ||
332 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.GateDefinitionImpl | ||
333 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getGateDefinition() | ||
334 | * @generated | ||
335 | */ | ||
336 | int GATE_DEFINITION = 7; | ||
337 | |||
338 | /** | ||
339 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
340 | * <!-- begin-user-doc --> | ||
341 | * <!-- end-user-doc --> | ||
342 | * @generated | ||
343 | * @ordered | ||
344 | */ | ||
345 | int GATE_DEFINITION__NAME = EVENT_DEFINITION__NAME; | ||
346 | |||
347 | /** | ||
348 | * The feature id for the '<em><b>Input Events</b></em>' reference list. | ||
349 | * <!-- begin-user-doc --> | ||
350 | * <!-- end-user-doc --> | ||
351 | * @generated | ||
352 | * @ordered | ||
353 | */ | ||
354 | int GATE_DEFINITION__INPUT_EVENTS = EVENT_DEFINITION_FEATURE_COUNT + 0; | ||
355 | |||
356 | /** | ||
357 | * The number of structural features of the '<em>Gate Definition</em>' class. | ||
358 | * <!-- begin-user-doc --> | ||
359 | * <!-- end-user-doc --> | ||
360 | * @generated | ||
361 | * @ordered | ||
362 | */ | ||
363 | int GATE_DEFINITION_FEATURE_COUNT = EVENT_DEFINITION_FEATURE_COUNT + 1; | ||
364 | |||
365 | /** | ||
366 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AndGateImpl <em>And Gate</em>}' class. | ||
367 | * <!-- begin-user-doc --> | ||
368 | * <!-- end-user-doc --> | ||
369 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AndGateImpl | ||
370 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getAndGate() | ||
371 | * @generated | ||
372 | */ | ||
373 | int AND_GATE = 8; | ||
374 | |||
375 | /** | ||
376 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
377 | * <!-- begin-user-doc --> | ||
378 | * <!-- end-user-doc --> | ||
379 | * @generated | ||
380 | * @ordered | ||
381 | */ | ||
382 | int AND_GATE__NAME = GATE_DEFINITION__NAME; | ||
383 | |||
384 | /** | ||
385 | * The feature id for the '<em><b>Input Events</b></em>' reference list. | ||
386 | * <!-- begin-user-doc --> | ||
387 | * <!-- end-user-doc --> | ||
388 | * @generated | ||
389 | * @ordered | ||
390 | */ | ||
391 | int AND_GATE__INPUT_EVENTS = GATE_DEFINITION__INPUT_EVENTS; | ||
392 | |||
393 | /** | ||
394 | * The number of structural features of the '<em>And Gate</em>' class. | ||
395 | * <!-- begin-user-doc --> | ||
396 | * <!-- end-user-doc --> | ||
397 | * @generated | ||
398 | * @ordered | ||
399 | */ | ||
400 | int AND_GATE_FEATURE_COUNT = GATE_DEFINITION_FEATURE_COUNT + 0; | ||
401 | |||
402 | /** | ||
403 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.OrGateImpl <em>Or Gate</em>}' class. | ||
404 | * <!-- begin-user-doc --> | ||
405 | * <!-- end-user-doc --> | ||
406 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.OrGateImpl | ||
407 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getOrGate() | ||
408 | * @generated | ||
409 | */ | ||
410 | int OR_GATE = 9; | ||
411 | |||
412 | /** | ||
413 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
414 | * <!-- begin-user-doc --> | ||
415 | * <!-- end-user-doc --> | ||
416 | * @generated | ||
417 | * @ordered | ||
418 | */ | ||
419 | int OR_GATE__NAME = GATE_DEFINITION__NAME; | ||
420 | |||
421 | /** | ||
422 | * The feature id for the '<em><b>Input Events</b></em>' reference list. | ||
423 | * <!-- begin-user-doc --> | ||
424 | * <!-- end-user-doc --> | ||
425 | * @generated | ||
426 | * @ordered | ||
427 | */ | ||
428 | int OR_GATE__INPUT_EVENTS = GATE_DEFINITION__INPUT_EVENTS; | ||
429 | |||
430 | /** | ||
431 | * The number of structural features of the '<em>Or Gate</em>' class. | ||
432 | * <!-- begin-user-doc --> | ||
433 | * <!-- end-user-doc --> | ||
434 | * @generated | ||
435 | * @ordered | ||
436 | */ | ||
437 | int OR_GATE_FEATURE_COUNT = GATE_DEFINITION_FEATURE_COUNT + 0; | ||
438 | |||
439 | /** | ||
440 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.TransformationDefinitionImpl <em>Transformation Definition</em>}' class. | ||
441 | * <!-- begin-user-doc --> | ||
442 | * <!-- end-user-doc --> | ||
443 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.TransformationDefinitionImpl | ||
444 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getTransformationDefinition() | ||
445 | * @generated | ||
446 | */ | ||
447 | int TRANSFORMATION_DEFINITION = 10; | ||
448 | |||
449 | /** | ||
450 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
451 | * <!-- begin-user-doc --> | ||
452 | * <!-- end-user-doc --> | ||
453 | * @generated | ||
454 | * @ordered | ||
455 | */ | ||
456 | int TRANSFORMATION_DEFINITION__NAME = 0; | ||
457 | |||
458 | /** | ||
459 | * The feature id for the '<em><b>Mapping Definitions</b></em>' containment reference list. | ||
460 | * <!-- begin-user-doc --> | ||
461 | * <!-- end-user-doc --> | ||
462 | * @generated | ||
463 | * @ordered | ||
464 | */ | ||
465 | int TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS = 1; | ||
466 | |||
467 | /** | ||
468 | * The number of structural features of the '<em>Transformation Definition</em>' class. | ||
469 | * <!-- begin-user-doc --> | ||
470 | * <!-- end-user-doc --> | ||
471 | * @generated | ||
472 | * @ordered | ||
473 | */ | ||
474 | int TRANSFORMATION_DEFINITION_FEATURE_COUNT = 2; | ||
475 | |||
476 | /** | ||
477 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl <em>Mapping Definition</em>}' class. | ||
478 | * <!-- begin-user-doc --> | ||
479 | * <!-- end-user-doc --> | ||
480 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl | ||
481 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getMappingDefinition() | ||
482 | * @generated | ||
483 | */ | ||
484 | int MAPPING_DEFINITION = 11; | ||
485 | |||
486 | /** | ||
487 | * The feature id for the '<em><b>Top Level</b></em>' attribute. | ||
488 | * <!-- begin-user-doc --> | ||
489 | * <!-- end-user-doc --> | ||
490 | * @generated | ||
491 | * @ordered | ||
492 | */ | ||
493 | int MAPPING_DEFINITION__TOP_LEVEL = 0; | ||
494 | |||
495 | /** | ||
496 | * The feature id for the '<em><b>Pattern</b></em>' reference. | ||
497 | * <!-- begin-user-doc --> | ||
498 | * <!-- end-user-doc --> | ||
499 | * @generated | ||
500 | * @ordered | ||
501 | */ | ||
502 | int MAPPING_DEFINITION__PATTERN = 1; | ||
503 | |||
504 | /** | ||
505 | * The feature id for the '<em><b>Parameters</b></em>' containment reference list. | ||
506 | * <!-- begin-user-doc --> | ||
507 | * <!-- end-user-doc --> | ||
508 | * @generated | ||
509 | * @ordered | ||
510 | */ | ||
511 | int MAPPING_DEFINITION__PARAMETERS = 2; | ||
512 | |||
513 | /** | ||
514 | * The feature id for the '<em><b>Component Instance</b></em>' containment reference. | ||
515 | * <!-- begin-user-doc --> | ||
516 | * <!-- end-user-doc --> | ||
517 | * @generated | ||
518 | * @ordered | ||
519 | */ | ||
520 | int MAPPING_DEFINITION__COMPONENT_INSTANCE = 3; | ||
521 | |||
522 | /** | ||
523 | * The feature id for the '<em><b>Lookup Definitions</b></em>' containment reference list. | ||
524 | * <!-- begin-user-doc --> | ||
525 | * <!-- end-user-doc --> | ||
526 | * @generated | ||
527 | * @ordered | ||
528 | */ | ||
529 | int MAPPING_DEFINITION__LOOKUP_DEFINITIONS = 4; | ||
530 | |||
531 | /** | ||
532 | * The feature id for the '<em><b>Assignments</b></em>' containment reference list. | ||
533 | * <!-- begin-user-doc --> | ||
534 | * <!-- end-user-doc --> | ||
535 | * @generated | ||
536 | * @ordered | ||
537 | */ | ||
538 | int MAPPING_DEFINITION__ASSIGNMENTS = 5; | ||
539 | |||
540 | /** | ||
541 | * The number of structural features of the '<em>Mapping Definition</em>' class. | ||
542 | * <!-- begin-user-doc --> | ||
543 | * <!-- end-user-doc --> | ||
544 | * @generated | ||
545 | * @ordered | ||
546 | */ | ||
547 | int MAPPING_DEFINITION_FEATURE_COUNT = 6; | ||
548 | |||
549 | /** | ||
550 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingParameterImpl <em>Mapping Parameter</em>}' class. | ||
551 | * <!-- begin-user-doc --> | ||
552 | * <!-- end-user-doc --> | ||
553 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingParameterImpl | ||
554 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getMappingParameter() | ||
555 | * @generated | ||
556 | */ | ||
557 | int MAPPING_PARAMETER = 12; | ||
558 | |||
559 | /** | ||
560 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
561 | * <!-- begin-user-doc --> | ||
562 | * <!-- end-user-doc --> | ||
563 | * @generated | ||
564 | * @ordered | ||
565 | */ | ||
566 | int MAPPING_PARAMETER__NAME = 0; | ||
567 | |||
568 | /** | ||
569 | * The number of structural features of the '<em>Mapping Parameter</em>' class. | ||
570 | * <!-- begin-user-doc --> | ||
571 | * <!-- end-user-doc --> | ||
572 | * @generated | ||
573 | * @ordered | ||
574 | */ | ||
575 | int MAPPING_PARAMETER_FEATURE_COUNT = 1; | ||
576 | |||
577 | /** | ||
578 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.VariableImpl <em>Variable</em>}' class. | ||
579 | * <!-- begin-user-doc --> | ||
580 | * <!-- end-user-doc --> | ||
581 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.VariableImpl | ||
582 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getVariable() | ||
583 | * @generated | ||
584 | */ | ||
585 | int VARIABLE = 14; | ||
586 | |||
587 | /** | ||
588 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
589 | * <!-- begin-user-doc --> | ||
590 | * <!-- end-user-doc --> | ||
591 | * @generated | ||
592 | * @ordered | ||
593 | */ | ||
594 | int VARIABLE__NAME = 0; | ||
595 | |||
596 | /** | ||
597 | * The number of structural features of the '<em>Variable</em>' class. | ||
598 | * <!-- begin-user-doc --> | ||
599 | * <!-- end-user-doc --> | ||
600 | * @generated | ||
601 | * @ordered | ||
602 | */ | ||
603 | int VARIABLE_FEATURE_COUNT = 1; | ||
604 | |||
605 | /** | ||
606 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.LookupDefinitionImpl <em>Lookup Definition</em>}' class. | ||
607 | * <!-- begin-user-doc --> | ||
608 | * <!-- end-user-doc --> | ||
609 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.LookupDefinitionImpl | ||
610 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getLookupDefinition() | ||
611 | * @generated | ||
612 | */ | ||
613 | int LOOKUP_DEFINITION = 13; | ||
614 | |||
615 | /** | ||
616 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
617 | * <!-- begin-user-doc --> | ||
618 | * <!-- end-user-doc --> | ||
619 | * @generated | ||
620 | * @ordered | ||
621 | */ | ||
622 | int LOOKUP_DEFINITION__NAME = VARIABLE__NAME; | ||
623 | |||
624 | /** | ||
625 | * The feature id for the '<em><b>Mapping</b></em>' reference. | ||
626 | * <!-- begin-user-doc --> | ||
627 | * <!-- end-user-doc --> | ||
628 | * @generated | ||
629 | * @ordered | ||
630 | */ | ||
631 | int LOOKUP_DEFINITION__MAPPING = VARIABLE_FEATURE_COUNT + 0; | ||
632 | |||
633 | /** | ||
634 | * The feature id for the '<em><b>Arguments</b></em>' reference list. | ||
635 | * <!-- begin-user-doc --> | ||
636 | * <!-- end-user-doc --> | ||
637 | * @generated | ||
638 | * @ordered | ||
639 | */ | ||
640 | int LOOKUP_DEFINITION__ARGUMENTS = VARIABLE_FEATURE_COUNT + 1; | ||
641 | |||
642 | /** | ||
643 | * The number of structural features of the '<em>Lookup Definition</em>' class. | ||
644 | * <!-- begin-user-doc --> | ||
645 | * <!-- end-user-doc --> | ||
646 | * @generated | ||
647 | * @ordered | ||
648 | */ | ||
649 | int LOOKUP_DEFINITION_FEATURE_COUNT = VARIABLE_FEATURE_COUNT + 2; | ||
650 | |||
651 | /** | ||
652 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AssignmentImpl <em>Assignment</em>}' class. | ||
653 | * <!-- begin-user-doc --> | ||
654 | * <!-- end-user-doc --> | ||
655 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AssignmentImpl | ||
656 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getAssignment() | ||
657 | * @generated | ||
658 | */ | ||
659 | int ASSIGNMENT = 15; | ||
660 | |||
661 | /** | ||
662 | * The feature id for the '<em><b>Input</b></em>' containment reference. | ||
663 | * <!-- begin-user-doc --> | ||
664 | * <!-- end-user-doc --> | ||
665 | * @generated | ||
666 | * @ordered | ||
667 | */ | ||
668 | int ASSIGNMENT__INPUT = 0; | ||
669 | |||
670 | /** | ||
671 | * The feature id for the '<em><b>Multiple</b></em>' attribute. | ||
672 | * <!-- begin-user-doc --> | ||
673 | * <!-- end-user-doc --> | ||
674 | * @generated | ||
675 | * @ordered | ||
676 | */ | ||
677 | int ASSIGNMENT__MULTIPLE = 1; | ||
678 | |||
679 | /** | ||
680 | * The feature id for the '<em><b>Output</b></em>' containment reference. | ||
681 | * <!-- begin-user-doc --> | ||
682 | * <!-- end-user-doc --> | ||
683 | * @generated | ||
684 | * @ordered | ||
685 | */ | ||
686 | int ASSIGNMENT__OUTPUT = 2; | ||
687 | |||
688 | /** | ||
689 | * The number of structural features of the '<em>Assignment</em>' class. | ||
690 | * <!-- begin-user-doc --> | ||
691 | * <!-- end-user-doc --> | ||
692 | * @generated | ||
693 | * @ordered | ||
694 | */ | ||
695 | int ASSIGNMENT_FEATURE_COUNT = 3; | ||
696 | |||
697 | /** | ||
698 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventReferenceImpl <em>Event Reference</em>}' class. | ||
699 | * <!-- begin-user-doc --> | ||
700 | * <!-- end-user-doc --> | ||
701 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventReferenceImpl | ||
702 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getEventReference() | ||
703 | * @generated | ||
704 | */ | ||
705 | int EVENT_REFERENCE = 16; | ||
706 | |||
707 | /** | ||
708 | * The feature id for the '<em><b>Component</b></em>' reference. | ||
709 | * <!-- begin-user-doc --> | ||
710 | * <!-- end-user-doc --> | ||
711 | * @generated | ||
712 | * @ordered | ||
713 | */ | ||
714 | int EVENT_REFERENCE__COMPONENT = 0; | ||
715 | |||
716 | /** | ||
717 | * The feature id for the '<em><b>Event</b></em>' reference. | ||
718 | * <!-- begin-user-doc --> | ||
719 | * <!-- end-user-doc --> | ||
720 | * @generated | ||
721 | * @ordered | ||
722 | */ | ||
723 | int EVENT_REFERENCE__EVENT = 1; | ||
724 | |||
725 | /** | ||
726 | * The number of structural features of the '<em>Event Reference</em>' class. | ||
727 | * <!-- begin-user-doc --> | ||
728 | * <!-- end-user-doc --> | ||
729 | * @generated | ||
730 | * @ordered | ||
731 | */ | ||
732 | int EVENT_REFERENCE_FEATURE_COUNT = 2; | ||
733 | |||
734 | /** | ||
735 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentInstanceImpl <em>Component Instance</em>}' class. | ||
736 | * <!-- begin-user-doc --> | ||
737 | * <!-- end-user-doc --> | ||
738 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentInstanceImpl | ||
739 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getComponentInstance() | ||
740 | * @generated | ||
741 | */ | ||
742 | int COMPONENT_INSTANCE = 17; | ||
743 | |||
744 | /** | ||
745 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
746 | * <!-- begin-user-doc --> | ||
747 | * <!-- end-user-doc --> | ||
748 | * @generated | ||
749 | * @ordered | ||
750 | */ | ||
751 | int COMPONENT_INSTANCE__NAME = VARIABLE__NAME; | ||
752 | |||
753 | /** | ||
754 | * The feature id for the '<em><b>Component Type</b></em>' reference. | ||
755 | * <!-- begin-user-doc --> | ||
756 | * <!-- end-user-doc --> | ||
757 | * @generated | ||
758 | * @ordered | ||
759 | */ | ||
760 | int COMPONENT_INSTANCE__COMPONENT_TYPE = VARIABLE_FEATURE_COUNT + 0; | ||
761 | |||
762 | /** | ||
763 | * The number of structural features of the '<em>Component Instance</em>' class. | ||
764 | * <!-- begin-user-doc --> | ||
765 | * <!-- end-user-doc --> | ||
766 | * @generated | ||
767 | * @ordered | ||
768 | */ | ||
769 | int COMPONENT_INSTANCE_FEATURE_COUNT = VARIABLE_FEATURE_COUNT + 1; | ||
770 | |||
771 | |||
772 | /** | ||
773 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel <em>Cft Model</em>}'. | ||
774 | * <!-- begin-user-doc --> | ||
775 | * <!-- end-user-doc --> | ||
776 | * @return the meta object for class '<em>Cft Model</em>'. | ||
777 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel | ||
778 | * @generated | ||
779 | */ | ||
780 | EClass getCftModel(); | ||
781 | |||
782 | /** | ||
783 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getPackageName <em>Package Name</em>}'. | ||
784 | * <!-- begin-user-doc --> | ||
785 | * <!-- end-user-doc --> | ||
786 | * @return the meta object for the attribute '<em>Package Name</em>'. | ||
787 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getPackageName() | ||
788 | * @see #getCftModel() | ||
789 | * @generated | ||
790 | */ | ||
791 | EAttribute getCftModel_PackageName(); | ||
792 | |||
793 | /** | ||
794 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getImports <em>Imports</em>}'. | ||
795 | * <!-- begin-user-doc --> | ||
796 | * <!-- end-user-doc --> | ||
797 | * @return the meta object for the containment reference list '<em>Imports</em>'. | ||
798 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getImports() | ||
799 | * @see #getCftModel() | ||
800 | * @generated | ||
801 | */ | ||
802 | EReference getCftModel_Imports(); | ||
803 | |||
804 | /** | ||
805 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getComponentDefinitions <em>Component Definitions</em>}'. | ||
806 | * <!-- begin-user-doc --> | ||
807 | * <!-- end-user-doc --> | ||
808 | * @return the meta object for the containment reference list '<em>Component Definitions</em>'. | ||
809 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getComponentDefinitions() | ||
810 | * @see #getCftModel() | ||
811 | * @generated | ||
812 | */ | ||
813 | EReference getCftModel_ComponentDefinitions(); | ||
814 | |||
815 | /** | ||
816 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getTransformationDefinitions <em>Transformation Definitions</em>}'. | ||
817 | * <!-- begin-user-doc --> | ||
818 | * <!-- end-user-doc --> | ||
819 | * @return the meta object for the containment reference list '<em>Transformation Definitions</em>'. | ||
820 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getTransformationDefinitions() | ||
821 | * @see #getCftModel() | ||
822 | * @generated | ||
823 | */ | ||
824 | EReference getCftModel_TransformationDefinitions(); | ||
825 | |||
826 | /** | ||
827 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration <em>Import Declaration</em>}'. | ||
828 | * <!-- begin-user-doc --> | ||
829 | * <!-- end-user-doc --> | ||
830 | * @return the meta object for class '<em>Import Declaration</em>'. | ||
831 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration | ||
832 | * @generated | ||
833 | */ | ||
834 | EClass getImportDeclaration(); | ||
835 | |||
836 | /** | ||
837 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration#getImportedNamespace <em>Imported Namespace</em>}'. | ||
838 | * <!-- begin-user-doc --> | ||
839 | * <!-- end-user-doc --> | ||
840 | * @return the meta object for the attribute '<em>Imported Namespace</em>'. | ||
841 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration#getImportedNamespace() | ||
842 | * @see #getImportDeclaration() | ||
843 | * @generated | ||
844 | */ | ||
845 | EAttribute getImportDeclaration_ImportedNamespace(); | ||
846 | |||
847 | /** | ||
848 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition <em>Component Definition</em>}'. | ||
849 | * <!-- begin-user-doc --> | ||
850 | * <!-- end-user-doc --> | ||
851 | * @return the meta object for class '<em>Component Definition</em>'. | ||
852 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition | ||
853 | * @generated | ||
854 | */ | ||
855 | EClass getComponentDefinition(); | ||
856 | |||
857 | /** | ||
858 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getName <em>Name</em>}'. | ||
859 | * <!-- begin-user-doc --> | ||
860 | * <!-- end-user-doc --> | ||
861 | * @return the meta object for the attribute '<em>Name</em>'. | ||
862 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getName() | ||
863 | * @see #getComponentDefinition() | ||
864 | * @generated | ||
865 | */ | ||
866 | EAttribute getComponentDefinition_Name(); | ||
867 | |||
868 | /** | ||
869 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getInputEvents <em>Input Events</em>}'. | ||
870 | * <!-- begin-user-doc --> | ||
871 | * <!-- end-user-doc --> | ||
872 | * @return the meta object for the containment reference list '<em>Input Events</em>'. | ||
873 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getInputEvents() | ||
874 | * @see #getComponentDefinition() | ||
875 | * @generated | ||
876 | */ | ||
877 | EReference getComponentDefinition_InputEvents(); | ||
878 | |||
879 | /** | ||
880 | * Returns the meta object for the reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getOutputEvents <em>Output Events</em>}'. | ||
881 | * <!-- begin-user-doc --> | ||
882 | * <!-- end-user-doc --> | ||
883 | * @return the meta object for the reference list '<em>Output Events</em>'. | ||
884 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getOutputEvents() | ||
885 | * @see #getComponentDefinition() | ||
886 | * @generated | ||
887 | */ | ||
888 | EReference getComponentDefinition_OutputEvents(); | ||
889 | |||
890 | /** | ||
891 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getEventDefinitions <em>Event Definitions</em>}'. | ||
892 | * <!-- begin-user-doc --> | ||
893 | * <!-- end-user-doc --> | ||
894 | * @return the meta object for the containment reference list '<em>Event Definitions</em>'. | ||
895 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getEventDefinitions() | ||
896 | * @see #getComponentDefinition() | ||
897 | * @generated | ||
898 | */ | ||
899 | EReference getComponentDefinition_EventDefinitions(); | ||
900 | |||
901 | /** | ||
902 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration <em>Event Declaration</em>}'. | ||
903 | * <!-- begin-user-doc --> | ||
904 | * <!-- end-user-doc --> | ||
905 | * @return the meta object for class '<em>Event Declaration</em>'. | ||
906 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration | ||
907 | * @generated | ||
908 | */ | ||
909 | EClass getEventDeclaration(); | ||
910 | |||
911 | /** | ||
912 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration#getName <em>Name</em>}'. | ||
913 | * <!-- begin-user-doc --> | ||
914 | * <!-- end-user-doc --> | ||
915 | * @return the meta object for the attribute '<em>Name</em>'. | ||
916 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration#getName() | ||
917 | * @see #getEventDeclaration() | ||
918 | * @generated | ||
919 | */ | ||
920 | EAttribute getEventDeclaration_Name(); | ||
921 | |||
922 | /** | ||
923 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent <em>Input Event</em>}'. | ||
924 | * <!-- begin-user-doc --> | ||
925 | * <!-- end-user-doc --> | ||
926 | * @return the meta object for class '<em>Input Event</em>'. | ||
927 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent | ||
928 | * @generated | ||
929 | */ | ||
930 | EClass getInputEvent(); | ||
931 | |||
932 | /** | ||
933 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent#isMultiple <em>Multiple</em>}'. | ||
934 | * <!-- begin-user-doc --> | ||
935 | * <!-- end-user-doc --> | ||
936 | * @return the meta object for the attribute '<em>Multiple</em>'. | ||
937 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent#isMultiple() | ||
938 | * @see #getInputEvent() | ||
939 | * @generated | ||
940 | */ | ||
941 | EAttribute getInputEvent_Multiple(); | ||
942 | |||
943 | /** | ||
944 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition <em>Event Definition</em>}'. | ||
945 | * <!-- begin-user-doc --> | ||
946 | * <!-- end-user-doc --> | ||
947 | * @return the meta object for class '<em>Event Definition</em>'. | ||
948 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition | ||
949 | * @generated | ||
950 | */ | ||
951 | EClass getEventDefinition(); | ||
952 | |||
953 | /** | ||
954 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition <em>Basic Event Definition</em>}'. | ||
955 | * <!-- begin-user-doc --> | ||
956 | * <!-- end-user-doc --> | ||
957 | * @return the meta object for class '<em>Basic Event Definition</em>'. | ||
958 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition | ||
959 | * @generated | ||
960 | */ | ||
961 | EClass getBasicEventDefinition(); | ||
962 | |||
963 | /** | ||
964 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition#getRate <em>Rate</em>}'. | ||
965 | * <!-- begin-user-doc --> | ||
966 | * <!-- end-user-doc --> | ||
967 | * @return the meta object for the attribute '<em>Rate</em>'. | ||
968 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition#getRate() | ||
969 | * @see #getBasicEventDefinition() | ||
970 | * @generated | ||
971 | */ | ||
972 | EAttribute getBasicEventDefinition_Rate(); | ||
973 | |||
974 | /** | ||
975 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition <em>Gate Definition</em>}'. | ||
976 | * <!-- begin-user-doc --> | ||
977 | * <!-- end-user-doc --> | ||
978 | * @return the meta object for class '<em>Gate Definition</em>'. | ||
979 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition | ||
980 | * @generated | ||
981 | */ | ||
982 | EClass getGateDefinition(); | ||
983 | |||
984 | /** | ||
985 | * Returns the meta object for the reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition#getInputEvents <em>Input Events</em>}'. | ||
986 | * <!-- begin-user-doc --> | ||
987 | * <!-- end-user-doc --> | ||
988 | * @return the meta object for the reference list '<em>Input Events</em>'. | ||
989 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition#getInputEvents() | ||
990 | * @see #getGateDefinition() | ||
991 | * @generated | ||
992 | */ | ||
993 | EReference getGateDefinition_InputEvents(); | ||
994 | |||
995 | /** | ||
996 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.AndGate <em>And Gate</em>}'. | ||
997 | * <!-- begin-user-doc --> | ||
998 | * <!-- end-user-doc --> | ||
999 | * @return the meta object for class '<em>And Gate</em>'. | ||
1000 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.AndGate | ||
1001 | * @generated | ||
1002 | */ | ||
1003 | EClass getAndGate(); | ||
1004 | |||
1005 | /** | ||
1006 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.OrGate <em>Or Gate</em>}'. | ||
1007 | * <!-- begin-user-doc --> | ||
1008 | * <!-- end-user-doc --> | ||
1009 | * @return the meta object for class '<em>Or Gate</em>'. | ||
1010 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.OrGate | ||
1011 | * @generated | ||
1012 | */ | ||
1013 | EClass getOrGate(); | ||
1014 | |||
1015 | /** | ||
1016 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition <em>Transformation Definition</em>}'. | ||
1017 | * <!-- begin-user-doc --> | ||
1018 | * <!-- end-user-doc --> | ||
1019 | * @return the meta object for class '<em>Transformation Definition</em>'. | ||
1020 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition | ||
1021 | * @generated | ||
1022 | */ | ||
1023 | EClass getTransformationDefinition(); | ||
1024 | |||
1025 | /** | ||
1026 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition#getName <em>Name</em>}'. | ||
1027 | * <!-- begin-user-doc --> | ||
1028 | * <!-- end-user-doc --> | ||
1029 | * @return the meta object for the attribute '<em>Name</em>'. | ||
1030 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition#getName() | ||
1031 | * @see #getTransformationDefinition() | ||
1032 | * @generated | ||
1033 | */ | ||
1034 | EAttribute getTransformationDefinition_Name(); | ||
1035 | |||
1036 | /** | ||
1037 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition#getMappingDefinitions <em>Mapping Definitions</em>}'. | ||
1038 | * <!-- begin-user-doc --> | ||
1039 | * <!-- end-user-doc --> | ||
1040 | * @return the meta object for the containment reference list '<em>Mapping Definitions</em>'. | ||
1041 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition#getMappingDefinitions() | ||
1042 | * @see #getTransformationDefinition() | ||
1043 | * @generated | ||
1044 | */ | ||
1045 | EReference getTransformationDefinition_MappingDefinitions(); | ||
1046 | |||
1047 | /** | ||
1048 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition <em>Mapping Definition</em>}'. | ||
1049 | * <!-- begin-user-doc --> | ||
1050 | * <!-- end-user-doc --> | ||
1051 | * @return the meta object for class '<em>Mapping Definition</em>'. | ||
1052 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition | ||
1053 | * @generated | ||
1054 | */ | ||
1055 | EClass getMappingDefinition(); | ||
1056 | |||
1057 | /** | ||
1058 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#isTopLevel <em>Top Level</em>}'. | ||
1059 | * <!-- begin-user-doc --> | ||
1060 | * <!-- end-user-doc --> | ||
1061 | * @return the meta object for the attribute '<em>Top Level</em>'. | ||
1062 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#isTopLevel() | ||
1063 | * @see #getMappingDefinition() | ||
1064 | * @generated | ||
1065 | */ | ||
1066 | EAttribute getMappingDefinition_TopLevel(); | ||
1067 | |||
1068 | /** | ||
1069 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getPattern <em>Pattern</em>}'. | ||
1070 | * <!-- begin-user-doc --> | ||
1071 | * <!-- end-user-doc --> | ||
1072 | * @return the meta object for the reference '<em>Pattern</em>'. | ||
1073 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getPattern() | ||
1074 | * @see #getMappingDefinition() | ||
1075 | * @generated | ||
1076 | */ | ||
1077 | EReference getMappingDefinition_Pattern(); | ||
1078 | |||
1079 | /** | ||
1080 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getParameters <em>Parameters</em>}'. | ||
1081 | * <!-- begin-user-doc --> | ||
1082 | * <!-- end-user-doc --> | ||
1083 | * @return the meta object for the containment reference list '<em>Parameters</em>'. | ||
1084 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getParameters() | ||
1085 | * @see #getMappingDefinition() | ||
1086 | * @generated | ||
1087 | */ | ||
1088 | EReference getMappingDefinition_Parameters(); | ||
1089 | |||
1090 | /** | ||
1091 | * Returns the meta object for the containment reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getComponentInstance <em>Component Instance</em>}'. | ||
1092 | * <!-- begin-user-doc --> | ||
1093 | * <!-- end-user-doc --> | ||
1094 | * @return the meta object for the containment reference '<em>Component Instance</em>'. | ||
1095 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getComponentInstance() | ||
1096 | * @see #getMappingDefinition() | ||
1097 | * @generated | ||
1098 | */ | ||
1099 | EReference getMappingDefinition_ComponentInstance(); | ||
1100 | |||
1101 | /** | ||
1102 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getLookupDefinitions <em>Lookup Definitions</em>}'. | ||
1103 | * <!-- begin-user-doc --> | ||
1104 | * <!-- end-user-doc --> | ||
1105 | * @return the meta object for the containment reference list '<em>Lookup Definitions</em>'. | ||
1106 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getLookupDefinitions() | ||
1107 | * @see #getMappingDefinition() | ||
1108 | * @generated | ||
1109 | */ | ||
1110 | EReference getMappingDefinition_LookupDefinitions(); | ||
1111 | |||
1112 | /** | ||
1113 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getAssignments <em>Assignments</em>}'. | ||
1114 | * <!-- begin-user-doc --> | ||
1115 | * <!-- end-user-doc --> | ||
1116 | * @return the meta object for the containment reference list '<em>Assignments</em>'. | ||
1117 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getAssignments() | ||
1118 | * @see #getMappingDefinition() | ||
1119 | * @generated | ||
1120 | */ | ||
1121 | EReference getMappingDefinition_Assignments(); | ||
1122 | |||
1123 | /** | ||
1124 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter <em>Mapping Parameter</em>}'. | ||
1125 | * <!-- begin-user-doc --> | ||
1126 | * <!-- end-user-doc --> | ||
1127 | * @return the meta object for class '<em>Mapping Parameter</em>'. | ||
1128 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter | ||
1129 | * @generated | ||
1130 | */ | ||
1131 | EClass getMappingParameter(); | ||
1132 | |||
1133 | /** | ||
1134 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter#getName <em>Name</em>}'. | ||
1135 | * <!-- begin-user-doc --> | ||
1136 | * <!-- end-user-doc --> | ||
1137 | * @return the meta object for the attribute '<em>Name</em>'. | ||
1138 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter#getName() | ||
1139 | * @see #getMappingParameter() | ||
1140 | * @generated | ||
1141 | */ | ||
1142 | EAttribute getMappingParameter_Name(); | ||
1143 | |||
1144 | /** | ||
1145 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition <em>Lookup Definition</em>}'. | ||
1146 | * <!-- begin-user-doc --> | ||
1147 | * <!-- end-user-doc --> | ||
1148 | * @return the meta object for class '<em>Lookup Definition</em>'. | ||
1149 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition | ||
1150 | * @generated | ||
1151 | */ | ||
1152 | EClass getLookupDefinition(); | ||
1153 | |||
1154 | /** | ||
1155 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition#getMapping <em>Mapping</em>}'. | ||
1156 | * <!-- begin-user-doc --> | ||
1157 | * <!-- end-user-doc --> | ||
1158 | * @return the meta object for the reference '<em>Mapping</em>'. | ||
1159 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition#getMapping() | ||
1160 | * @see #getLookupDefinition() | ||
1161 | * @generated | ||
1162 | */ | ||
1163 | EReference getLookupDefinition_Mapping(); | ||
1164 | |||
1165 | /** | ||
1166 | * Returns the meta object for the reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition#getArguments <em>Arguments</em>}'. | ||
1167 | * <!-- begin-user-doc --> | ||
1168 | * <!-- end-user-doc --> | ||
1169 | * @return the meta object for the reference list '<em>Arguments</em>'. | ||
1170 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition#getArguments() | ||
1171 | * @see #getLookupDefinition() | ||
1172 | * @generated | ||
1173 | */ | ||
1174 | EReference getLookupDefinition_Arguments(); | ||
1175 | |||
1176 | /** | ||
1177 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable <em>Variable</em>}'. | ||
1178 | * <!-- begin-user-doc --> | ||
1179 | * <!-- end-user-doc --> | ||
1180 | * @return the meta object for class '<em>Variable</em>'. | ||
1181 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable | ||
1182 | * @generated | ||
1183 | */ | ||
1184 | EClass getVariable(); | ||
1185 | |||
1186 | /** | ||
1187 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable#getName <em>Name</em>}'. | ||
1188 | * <!-- begin-user-doc --> | ||
1189 | * <!-- end-user-doc --> | ||
1190 | * @return the meta object for the attribute '<em>Name</em>'. | ||
1191 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable#getName() | ||
1192 | * @see #getVariable() | ||
1193 | * @generated | ||
1194 | */ | ||
1195 | EAttribute getVariable_Name(); | ||
1196 | |||
1197 | /** | ||
1198 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment <em>Assignment</em>}'. | ||
1199 | * <!-- begin-user-doc --> | ||
1200 | * <!-- end-user-doc --> | ||
1201 | * @return the meta object for class '<em>Assignment</em>'. | ||
1202 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment | ||
1203 | * @generated | ||
1204 | */ | ||
1205 | EClass getAssignment(); | ||
1206 | |||
1207 | /** | ||
1208 | * Returns the meta object for the containment reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#getInput <em>Input</em>}'. | ||
1209 | * <!-- begin-user-doc --> | ||
1210 | * <!-- end-user-doc --> | ||
1211 | * @return the meta object for the containment reference '<em>Input</em>'. | ||
1212 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#getInput() | ||
1213 | * @see #getAssignment() | ||
1214 | * @generated | ||
1215 | */ | ||
1216 | EReference getAssignment_Input(); | ||
1217 | |||
1218 | /** | ||
1219 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#isMultiple <em>Multiple</em>}'. | ||
1220 | * <!-- begin-user-doc --> | ||
1221 | * <!-- end-user-doc --> | ||
1222 | * @return the meta object for the attribute '<em>Multiple</em>'. | ||
1223 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#isMultiple() | ||
1224 | * @see #getAssignment() | ||
1225 | * @generated | ||
1226 | */ | ||
1227 | EAttribute getAssignment_Multiple(); | ||
1228 | |||
1229 | /** | ||
1230 | * Returns the meta object for the containment reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#getOutput <em>Output</em>}'. | ||
1231 | * <!-- begin-user-doc --> | ||
1232 | * <!-- end-user-doc --> | ||
1233 | * @return the meta object for the containment reference '<em>Output</em>'. | ||
1234 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#getOutput() | ||
1235 | * @see #getAssignment() | ||
1236 | * @generated | ||
1237 | */ | ||
1238 | EReference getAssignment_Output(); | ||
1239 | |||
1240 | /** | ||
1241 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference <em>Event Reference</em>}'. | ||
1242 | * <!-- begin-user-doc --> | ||
1243 | * <!-- end-user-doc --> | ||
1244 | * @return the meta object for class '<em>Event Reference</em>'. | ||
1245 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference | ||
1246 | * @generated | ||
1247 | */ | ||
1248 | EClass getEventReference(); | ||
1249 | |||
1250 | /** | ||
1251 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference#getComponent <em>Component</em>}'. | ||
1252 | * <!-- begin-user-doc --> | ||
1253 | * <!-- end-user-doc --> | ||
1254 | * @return the meta object for the reference '<em>Component</em>'. | ||
1255 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference#getComponent() | ||
1256 | * @see #getEventReference() | ||
1257 | * @generated | ||
1258 | */ | ||
1259 | EReference getEventReference_Component(); | ||
1260 | |||
1261 | /** | ||
1262 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference#getEvent <em>Event</em>}'. | ||
1263 | * <!-- begin-user-doc --> | ||
1264 | * <!-- end-user-doc --> | ||
1265 | * @return the meta object for the reference '<em>Event</em>'. | ||
1266 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference#getEvent() | ||
1267 | * @see #getEventReference() | ||
1268 | * @generated | ||
1269 | */ | ||
1270 | EReference getEventReference_Event(); | ||
1271 | |||
1272 | /** | ||
1273 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance <em>Component Instance</em>}'. | ||
1274 | * <!-- begin-user-doc --> | ||
1275 | * <!-- end-user-doc --> | ||
1276 | * @return the meta object for class '<em>Component Instance</em>'. | ||
1277 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance | ||
1278 | * @generated | ||
1279 | */ | ||
1280 | EClass getComponentInstance(); | ||
1281 | |||
1282 | /** | ||
1283 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance#getComponentType <em>Component Type</em>}'. | ||
1284 | * <!-- begin-user-doc --> | ||
1285 | * <!-- end-user-doc --> | ||
1286 | * @return the meta object for the reference '<em>Component Type</em>'. | ||
1287 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance#getComponentType() | ||
1288 | * @see #getComponentInstance() | ||
1289 | * @generated | ||
1290 | */ | ||
1291 | EReference getComponentInstance_ComponentType(); | ||
1292 | |||
1293 | /** | ||
1294 | * Returns the factory that creates the instances of the model. | ||
1295 | * <!-- begin-user-doc --> | ||
1296 | * <!-- end-user-doc --> | ||
1297 | * @return the factory that creates the instances of the model. | ||
1298 | * @generated | ||
1299 | */ | ||
1300 | CftLanguageFactory getCftLanguageFactory(); | ||
1301 | |||
1302 | /** | ||
1303 | * <!-- begin-user-doc --> | ||
1304 | * Defines literals for the meta objects that represent | ||
1305 | * <ul> | ||
1306 | * <li>each class,</li> | ||
1307 | * <li>each feature of each class,</li> | ||
1308 | * <li>each enum,</li> | ||
1309 | * <li>and each data type</li> | ||
1310 | * </ul> | ||
1311 | * <!-- end-user-doc --> | ||
1312 | * @generated | ||
1313 | */ | ||
1314 | interface Literals | ||
1315 | { | ||
1316 | /** | ||
1317 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl <em>Cft Model</em>}' class. | ||
1318 | * <!-- begin-user-doc --> | ||
1319 | * <!-- end-user-doc --> | ||
1320 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl | ||
1321 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getCftModel() | ||
1322 | * @generated | ||
1323 | */ | ||
1324 | EClass CFT_MODEL = eINSTANCE.getCftModel(); | ||
1325 | |||
1326 | /** | ||
1327 | * The meta object literal for the '<em><b>Package Name</b></em>' attribute feature. | ||
1328 | * <!-- begin-user-doc --> | ||
1329 | * <!-- end-user-doc --> | ||
1330 | * @generated | ||
1331 | */ | ||
1332 | EAttribute CFT_MODEL__PACKAGE_NAME = eINSTANCE.getCftModel_PackageName(); | ||
1333 | |||
1334 | /** | ||
1335 | * The meta object literal for the '<em><b>Imports</b></em>' containment reference list feature. | ||
1336 | * <!-- begin-user-doc --> | ||
1337 | * <!-- end-user-doc --> | ||
1338 | * @generated | ||
1339 | */ | ||
1340 | EReference CFT_MODEL__IMPORTS = eINSTANCE.getCftModel_Imports(); | ||
1341 | |||
1342 | /** | ||
1343 | * The meta object literal for the '<em><b>Component Definitions</b></em>' containment reference list feature. | ||
1344 | * <!-- begin-user-doc --> | ||
1345 | * <!-- end-user-doc --> | ||
1346 | * @generated | ||
1347 | */ | ||
1348 | EReference CFT_MODEL__COMPONENT_DEFINITIONS = eINSTANCE.getCftModel_ComponentDefinitions(); | ||
1349 | |||
1350 | /** | ||
1351 | * The meta object literal for the '<em><b>Transformation Definitions</b></em>' containment reference list feature. | ||
1352 | * <!-- begin-user-doc --> | ||
1353 | * <!-- end-user-doc --> | ||
1354 | * @generated | ||
1355 | */ | ||
1356 | EReference CFT_MODEL__TRANSFORMATION_DEFINITIONS = eINSTANCE.getCftModel_TransformationDefinitions(); | ||
1357 | |||
1358 | /** | ||
1359 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ImportDeclarationImpl <em>Import Declaration</em>}' class. | ||
1360 | * <!-- begin-user-doc --> | ||
1361 | * <!-- end-user-doc --> | ||
1362 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ImportDeclarationImpl | ||
1363 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getImportDeclaration() | ||
1364 | * @generated | ||
1365 | */ | ||
1366 | EClass IMPORT_DECLARATION = eINSTANCE.getImportDeclaration(); | ||
1367 | |||
1368 | /** | ||
1369 | * The meta object literal for the '<em><b>Imported Namespace</b></em>' attribute feature. | ||
1370 | * <!-- begin-user-doc --> | ||
1371 | * <!-- end-user-doc --> | ||
1372 | * @generated | ||
1373 | */ | ||
1374 | EAttribute IMPORT_DECLARATION__IMPORTED_NAMESPACE = eINSTANCE.getImportDeclaration_ImportedNamespace(); | ||
1375 | |||
1376 | /** | ||
1377 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl <em>Component Definition</em>}' class. | ||
1378 | * <!-- begin-user-doc --> | ||
1379 | * <!-- end-user-doc --> | ||
1380 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl | ||
1381 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getComponentDefinition() | ||
1382 | * @generated | ||
1383 | */ | ||
1384 | EClass COMPONENT_DEFINITION = eINSTANCE.getComponentDefinition(); | ||
1385 | |||
1386 | /** | ||
1387 | * The meta object literal for the '<em><b>Name</b></em>' attribute feature. | ||
1388 | * <!-- begin-user-doc --> | ||
1389 | * <!-- end-user-doc --> | ||
1390 | * @generated | ||
1391 | */ | ||
1392 | EAttribute COMPONENT_DEFINITION__NAME = eINSTANCE.getComponentDefinition_Name(); | ||
1393 | |||
1394 | /** | ||
1395 | * The meta object literal for the '<em><b>Input Events</b></em>' containment reference list feature. | ||
1396 | * <!-- begin-user-doc --> | ||
1397 | * <!-- end-user-doc --> | ||
1398 | * @generated | ||
1399 | */ | ||
1400 | EReference COMPONENT_DEFINITION__INPUT_EVENTS = eINSTANCE.getComponentDefinition_InputEvents(); | ||
1401 | |||
1402 | /** | ||
1403 | * The meta object literal for the '<em><b>Output Events</b></em>' reference list feature. | ||
1404 | * <!-- begin-user-doc --> | ||
1405 | * <!-- end-user-doc --> | ||
1406 | * @generated | ||
1407 | */ | ||
1408 | EReference COMPONENT_DEFINITION__OUTPUT_EVENTS = eINSTANCE.getComponentDefinition_OutputEvents(); | ||
1409 | |||
1410 | /** | ||
1411 | * The meta object literal for the '<em><b>Event Definitions</b></em>' containment reference list feature. | ||
1412 | * <!-- begin-user-doc --> | ||
1413 | * <!-- end-user-doc --> | ||
1414 | * @generated | ||
1415 | */ | ||
1416 | EReference COMPONENT_DEFINITION__EVENT_DEFINITIONS = eINSTANCE.getComponentDefinition_EventDefinitions(); | ||
1417 | |||
1418 | /** | ||
1419 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDeclarationImpl <em>Event Declaration</em>}' class. | ||
1420 | * <!-- begin-user-doc --> | ||
1421 | * <!-- end-user-doc --> | ||
1422 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDeclarationImpl | ||
1423 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getEventDeclaration() | ||
1424 | * @generated | ||
1425 | */ | ||
1426 | EClass EVENT_DECLARATION = eINSTANCE.getEventDeclaration(); | ||
1427 | |||
1428 | /** | ||
1429 | * The meta object literal for the '<em><b>Name</b></em>' attribute feature. | ||
1430 | * <!-- begin-user-doc --> | ||
1431 | * <!-- end-user-doc --> | ||
1432 | * @generated | ||
1433 | */ | ||
1434 | EAttribute EVENT_DECLARATION__NAME = eINSTANCE.getEventDeclaration_Name(); | ||
1435 | |||
1436 | /** | ||
1437 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.InputEventImpl <em>Input Event</em>}' class. | ||
1438 | * <!-- begin-user-doc --> | ||
1439 | * <!-- end-user-doc --> | ||
1440 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.InputEventImpl | ||
1441 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getInputEvent() | ||
1442 | * @generated | ||
1443 | */ | ||
1444 | EClass INPUT_EVENT = eINSTANCE.getInputEvent(); | ||
1445 | |||
1446 | /** | ||
1447 | * The meta object literal for the '<em><b>Multiple</b></em>' attribute feature. | ||
1448 | * <!-- begin-user-doc --> | ||
1449 | * <!-- end-user-doc --> | ||
1450 | * @generated | ||
1451 | */ | ||
1452 | EAttribute INPUT_EVENT__MULTIPLE = eINSTANCE.getInputEvent_Multiple(); | ||
1453 | |||
1454 | /** | ||
1455 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDefinitionImpl <em>Event Definition</em>}' class. | ||
1456 | * <!-- begin-user-doc --> | ||
1457 | * <!-- end-user-doc --> | ||
1458 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDefinitionImpl | ||
1459 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getEventDefinition() | ||
1460 | * @generated | ||
1461 | */ | ||
1462 | EClass EVENT_DEFINITION = eINSTANCE.getEventDefinition(); | ||
1463 | |||
1464 | /** | ||
1465 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.BasicEventDefinitionImpl <em>Basic Event Definition</em>}' class. | ||
1466 | * <!-- begin-user-doc --> | ||
1467 | * <!-- end-user-doc --> | ||
1468 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.BasicEventDefinitionImpl | ||
1469 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getBasicEventDefinition() | ||
1470 | * @generated | ||
1471 | */ | ||
1472 | EClass BASIC_EVENT_DEFINITION = eINSTANCE.getBasicEventDefinition(); | ||
1473 | |||
1474 | /** | ||
1475 | * The meta object literal for the '<em><b>Rate</b></em>' attribute feature. | ||
1476 | * <!-- begin-user-doc --> | ||
1477 | * <!-- end-user-doc --> | ||
1478 | * @generated | ||
1479 | */ | ||
1480 | EAttribute BASIC_EVENT_DEFINITION__RATE = eINSTANCE.getBasicEventDefinition_Rate(); | ||
1481 | |||
1482 | /** | ||
1483 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.GateDefinitionImpl <em>Gate Definition</em>}' class. | ||
1484 | * <!-- begin-user-doc --> | ||
1485 | * <!-- end-user-doc --> | ||
1486 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.GateDefinitionImpl | ||
1487 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getGateDefinition() | ||
1488 | * @generated | ||
1489 | */ | ||
1490 | EClass GATE_DEFINITION = eINSTANCE.getGateDefinition(); | ||
1491 | |||
1492 | /** | ||
1493 | * The meta object literal for the '<em><b>Input Events</b></em>' reference list feature. | ||
1494 | * <!-- begin-user-doc --> | ||
1495 | * <!-- end-user-doc --> | ||
1496 | * @generated | ||
1497 | */ | ||
1498 | EReference GATE_DEFINITION__INPUT_EVENTS = eINSTANCE.getGateDefinition_InputEvents(); | ||
1499 | |||
1500 | /** | ||
1501 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AndGateImpl <em>And Gate</em>}' class. | ||
1502 | * <!-- begin-user-doc --> | ||
1503 | * <!-- end-user-doc --> | ||
1504 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AndGateImpl | ||
1505 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getAndGate() | ||
1506 | * @generated | ||
1507 | */ | ||
1508 | EClass AND_GATE = eINSTANCE.getAndGate(); | ||
1509 | |||
1510 | /** | ||
1511 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.OrGateImpl <em>Or Gate</em>}' class. | ||
1512 | * <!-- begin-user-doc --> | ||
1513 | * <!-- end-user-doc --> | ||
1514 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.OrGateImpl | ||
1515 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getOrGate() | ||
1516 | * @generated | ||
1517 | */ | ||
1518 | EClass OR_GATE = eINSTANCE.getOrGate(); | ||
1519 | |||
1520 | /** | ||
1521 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.TransformationDefinitionImpl <em>Transformation Definition</em>}' class. | ||
1522 | * <!-- begin-user-doc --> | ||
1523 | * <!-- end-user-doc --> | ||
1524 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.TransformationDefinitionImpl | ||
1525 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getTransformationDefinition() | ||
1526 | * @generated | ||
1527 | */ | ||
1528 | EClass TRANSFORMATION_DEFINITION = eINSTANCE.getTransformationDefinition(); | ||
1529 | |||
1530 | /** | ||
1531 | * The meta object literal for the '<em><b>Name</b></em>' attribute feature. | ||
1532 | * <!-- begin-user-doc --> | ||
1533 | * <!-- end-user-doc --> | ||
1534 | * @generated | ||
1535 | */ | ||
1536 | EAttribute TRANSFORMATION_DEFINITION__NAME = eINSTANCE.getTransformationDefinition_Name(); | ||
1537 | |||
1538 | /** | ||
1539 | * The meta object literal for the '<em><b>Mapping Definitions</b></em>' containment reference list feature. | ||
1540 | * <!-- begin-user-doc --> | ||
1541 | * <!-- end-user-doc --> | ||
1542 | * @generated | ||
1543 | */ | ||
1544 | EReference TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS = eINSTANCE.getTransformationDefinition_MappingDefinitions(); | ||
1545 | |||
1546 | /** | ||
1547 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl <em>Mapping Definition</em>}' class. | ||
1548 | * <!-- begin-user-doc --> | ||
1549 | * <!-- end-user-doc --> | ||
1550 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl | ||
1551 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getMappingDefinition() | ||
1552 | * @generated | ||
1553 | */ | ||
1554 | EClass MAPPING_DEFINITION = eINSTANCE.getMappingDefinition(); | ||
1555 | |||
1556 | /** | ||
1557 | * The meta object literal for the '<em><b>Top Level</b></em>' attribute feature. | ||
1558 | * <!-- begin-user-doc --> | ||
1559 | * <!-- end-user-doc --> | ||
1560 | * @generated | ||
1561 | */ | ||
1562 | EAttribute MAPPING_DEFINITION__TOP_LEVEL = eINSTANCE.getMappingDefinition_TopLevel(); | ||
1563 | |||
1564 | /** | ||
1565 | * The meta object literal for the '<em><b>Pattern</b></em>' reference feature. | ||
1566 | * <!-- begin-user-doc --> | ||
1567 | * <!-- end-user-doc --> | ||
1568 | * @generated | ||
1569 | */ | ||
1570 | EReference MAPPING_DEFINITION__PATTERN = eINSTANCE.getMappingDefinition_Pattern(); | ||
1571 | |||
1572 | /** | ||
1573 | * The meta object literal for the '<em><b>Parameters</b></em>' containment reference list feature. | ||
1574 | * <!-- begin-user-doc --> | ||
1575 | * <!-- end-user-doc --> | ||
1576 | * @generated | ||
1577 | */ | ||
1578 | EReference MAPPING_DEFINITION__PARAMETERS = eINSTANCE.getMappingDefinition_Parameters(); | ||
1579 | |||
1580 | /** | ||
1581 | * The meta object literal for the '<em><b>Component Instance</b></em>' containment reference feature. | ||
1582 | * <!-- begin-user-doc --> | ||
1583 | * <!-- end-user-doc --> | ||
1584 | * @generated | ||
1585 | */ | ||
1586 | EReference MAPPING_DEFINITION__COMPONENT_INSTANCE = eINSTANCE.getMappingDefinition_ComponentInstance(); | ||
1587 | |||
1588 | /** | ||
1589 | * The meta object literal for the '<em><b>Lookup Definitions</b></em>' containment reference list feature. | ||
1590 | * <!-- begin-user-doc --> | ||
1591 | * <!-- end-user-doc --> | ||
1592 | * @generated | ||
1593 | */ | ||
1594 | EReference MAPPING_DEFINITION__LOOKUP_DEFINITIONS = eINSTANCE.getMappingDefinition_LookupDefinitions(); | ||
1595 | |||
1596 | /** | ||
1597 | * The meta object literal for the '<em><b>Assignments</b></em>' containment reference list feature. | ||
1598 | * <!-- begin-user-doc --> | ||
1599 | * <!-- end-user-doc --> | ||
1600 | * @generated | ||
1601 | */ | ||
1602 | EReference MAPPING_DEFINITION__ASSIGNMENTS = eINSTANCE.getMappingDefinition_Assignments(); | ||
1603 | |||
1604 | /** | ||
1605 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingParameterImpl <em>Mapping Parameter</em>}' class. | ||
1606 | * <!-- begin-user-doc --> | ||
1607 | * <!-- end-user-doc --> | ||
1608 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingParameterImpl | ||
1609 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getMappingParameter() | ||
1610 | * @generated | ||
1611 | */ | ||
1612 | EClass MAPPING_PARAMETER = eINSTANCE.getMappingParameter(); | ||
1613 | |||
1614 | /** | ||
1615 | * The meta object literal for the '<em><b>Name</b></em>' attribute feature. | ||
1616 | * <!-- begin-user-doc --> | ||
1617 | * <!-- end-user-doc --> | ||
1618 | * @generated | ||
1619 | */ | ||
1620 | EAttribute MAPPING_PARAMETER__NAME = eINSTANCE.getMappingParameter_Name(); | ||
1621 | |||
1622 | /** | ||
1623 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.LookupDefinitionImpl <em>Lookup Definition</em>}' class. | ||
1624 | * <!-- begin-user-doc --> | ||
1625 | * <!-- end-user-doc --> | ||
1626 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.LookupDefinitionImpl | ||
1627 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getLookupDefinition() | ||
1628 | * @generated | ||
1629 | */ | ||
1630 | EClass LOOKUP_DEFINITION = eINSTANCE.getLookupDefinition(); | ||
1631 | |||
1632 | /** | ||
1633 | * The meta object literal for the '<em><b>Mapping</b></em>' reference feature. | ||
1634 | * <!-- begin-user-doc --> | ||
1635 | * <!-- end-user-doc --> | ||
1636 | * @generated | ||
1637 | */ | ||
1638 | EReference LOOKUP_DEFINITION__MAPPING = eINSTANCE.getLookupDefinition_Mapping(); | ||
1639 | |||
1640 | /** | ||
1641 | * The meta object literal for the '<em><b>Arguments</b></em>' reference list feature. | ||
1642 | * <!-- begin-user-doc --> | ||
1643 | * <!-- end-user-doc --> | ||
1644 | * @generated | ||
1645 | */ | ||
1646 | EReference LOOKUP_DEFINITION__ARGUMENTS = eINSTANCE.getLookupDefinition_Arguments(); | ||
1647 | |||
1648 | /** | ||
1649 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.VariableImpl <em>Variable</em>}' class. | ||
1650 | * <!-- begin-user-doc --> | ||
1651 | * <!-- end-user-doc --> | ||
1652 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.VariableImpl | ||
1653 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getVariable() | ||
1654 | * @generated | ||
1655 | */ | ||
1656 | EClass VARIABLE = eINSTANCE.getVariable(); | ||
1657 | |||
1658 | /** | ||
1659 | * The meta object literal for the '<em><b>Name</b></em>' attribute feature. | ||
1660 | * <!-- begin-user-doc --> | ||
1661 | * <!-- end-user-doc --> | ||
1662 | * @generated | ||
1663 | */ | ||
1664 | EAttribute VARIABLE__NAME = eINSTANCE.getVariable_Name(); | ||
1665 | |||
1666 | /** | ||
1667 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AssignmentImpl <em>Assignment</em>}' class. | ||
1668 | * <!-- begin-user-doc --> | ||
1669 | * <!-- end-user-doc --> | ||
1670 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AssignmentImpl | ||
1671 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getAssignment() | ||
1672 | * @generated | ||
1673 | */ | ||
1674 | EClass ASSIGNMENT = eINSTANCE.getAssignment(); | ||
1675 | |||
1676 | /** | ||
1677 | * The meta object literal for the '<em><b>Input</b></em>' containment reference feature. | ||
1678 | * <!-- begin-user-doc --> | ||
1679 | * <!-- end-user-doc --> | ||
1680 | * @generated | ||
1681 | */ | ||
1682 | EReference ASSIGNMENT__INPUT = eINSTANCE.getAssignment_Input(); | ||
1683 | |||
1684 | /** | ||
1685 | * The meta object literal for the '<em><b>Multiple</b></em>' attribute feature. | ||
1686 | * <!-- begin-user-doc --> | ||
1687 | * <!-- end-user-doc --> | ||
1688 | * @generated | ||
1689 | */ | ||
1690 | EAttribute ASSIGNMENT__MULTIPLE = eINSTANCE.getAssignment_Multiple(); | ||
1691 | |||
1692 | /** | ||
1693 | * The meta object literal for the '<em><b>Output</b></em>' containment reference feature. | ||
1694 | * <!-- begin-user-doc --> | ||
1695 | * <!-- end-user-doc --> | ||
1696 | * @generated | ||
1697 | */ | ||
1698 | EReference ASSIGNMENT__OUTPUT = eINSTANCE.getAssignment_Output(); | ||
1699 | |||
1700 | /** | ||
1701 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventReferenceImpl <em>Event Reference</em>}' class. | ||
1702 | * <!-- begin-user-doc --> | ||
1703 | * <!-- end-user-doc --> | ||
1704 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventReferenceImpl | ||
1705 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getEventReference() | ||
1706 | * @generated | ||
1707 | */ | ||
1708 | EClass EVENT_REFERENCE = eINSTANCE.getEventReference(); | ||
1709 | |||
1710 | /** | ||
1711 | * The meta object literal for the '<em><b>Component</b></em>' reference feature. | ||
1712 | * <!-- begin-user-doc --> | ||
1713 | * <!-- end-user-doc --> | ||
1714 | * @generated | ||
1715 | */ | ||
1716 | EReference EVENT_REFERENCE__COMPONENT = eINSTANCE.getEventReference_Component(); | ||
1717 | |||
1718 | /** | ||
1719 | * The meta object literal for the '<em><b>Event</b></em>' reference feature. | ||
1720 | * <!-- begin-user-doc --> | ||
1721 | * <!-- end-user-doc --> | ||
1722 | * @generated | ||
1723 | */ | ||
1724 | EReference EVENT_REFERENCE__EVENT = eINSTANCE.getEventReference_Event(); | ||
1725 | |||
1726 | /** | ||
1727 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentInstanceImpl <em>Component Instance</em>}' class. | ||
1728 | * <!-- begin-user-doc --> | ||
1729 | * <!-- end-user-doc --> | ||
1730 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentInstanceImpl | ||
1731 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getComponentInstance() | ||
1732 | * @generated | ||
1733 | */ | ||
1734 | EClass COMPONENT_INSTANCE = eINSTANCE.getComponentInstance(); | ||
1735 | |||
1736 | /** | ||
1737 | * The meta object literal for the '<em><b>Component Type</b></em>' reference feature. | ||
1738 | * <!-- begin-user-doc --> | ||
1739 | * <!-- end-user-doc --> | ||
1740 | * @generated | ||
1741 | */ | ||
1742 | EReference COMPONENT_INSTANCE__COMPONENT_TYPE = eINSTANCE.getComponentInstance_ComponentType(); | ||
1743 | |||
1744 | } | ||
1745 | |||
1746 | } //CftLanguagePackage | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftModel.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftModel.java new file mode 100644 index 00000000..5291e747 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftModel.java | |||
@@ -0,0 +1,105 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
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>Cft Model</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.faulttree.components.cftLanguage.CftModel#getPackageName <em>Package Name</em>}</li> | ||
20 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getImports <em>Imports</em>}</li> | ||
21 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getComponentDefinitions <em>Component Definitions</em>}</li> | ||
22 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getTransformationDefinitions <em>Transformation Definitions</em>}</li> | ||
23 | * </ul> | ||
24 | * | ||
25 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getCftModel() | ||
26 | * @model | ||
27 | * @generated | ||
28 | */ | ||
29 | public interface CftModel extends EObject | ||
30 | { | ||
31 | /** | ||
32 | * Returns the value of the '<em><b>Package Name</b></em>' attribute. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <p> | ||
35 | * If the meaning of the '<em>Package Name</em>' attribute isn't clear, | ||
36 | * there really should be more of a description here... | ||
37 | * </p> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @return the value of the '<em>Package Name</em>' attribute. | ||
40 | * @see #setPackageName(String) | ||
41 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getCftModel_PackageName() | ||
42 | * @model | ||
43 | * @generated | ||
44 | */ | ||
45 | String getPackageName(); | ||
46 | |||
47 | /** | ||
48 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getPackageName <em>Package Name</em>}' attribute. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @param value the new value of the '<em>Package Name</em>' attribute. | ||
52 | * @see #getPackageName() | ||
53 | * @generated | ||
54 | */ | ||
55 | void setPackageName(String value); | ||
56 | |||
57 | /** | ||
58 | * Returns the value of the '<em><b>Imports</b></em>' containment reference list. | ||
59 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration}. | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <p> | ||
62 | * If the meaning of the '<em>Imports</em>' containment reference list isn't clear, | ||
63 | * there really should be more of a description here... | ||
64 | * </p> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @return the value of the '<em>Imports</em>' containment reference list. | ||
67 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getCftModel_Imports() | ||
68 | * @model containment="true" | ||
69 | * @generated | ||
70 | */ | ||
71 | EList<ImportDeclaration> getImports(); | ||
72 | |||
73 | /** | ||
74 | * Returns the value of the '<em><b>Component Definitions</b></em>' containment reference list. | ||
75 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition}. | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <p> | ||
78 | * If the meaning of the '<em>Component Definitions</em>' containment reference list isn't clear, | ||
79 | * there really should be more of a description here... | ||
80 | * </p> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @return the value of the '<em>Component Definitions</em>' containment reference list. | ||
83 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getCftModel_ComponentDefinitions() | ||
84 | * @model containment="true" | ||
85 | * @generated | ||
86 | */ | ||
87 | EList<ComponentDefinition> getComponentDefinitions(); | ||
88 | |||
89 | /** | ||
90 | * Returns the value of the '<em><b>Transformation Definitions</b></em>' containment reference list. | ||
91 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition}. | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <p> | ||
94 | * If the meaning of the '<em>Transformation Definitions</em>' containment reference list isn't clear, | ||
95 | * there really should be more of a description here... | ||
96 | * </p> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @return the value of the '<em>Transformation Definitions</em>' containment reference list. | ||
99 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getCftModel_TransformationDefinitions() | ||
100 | * @model containment="true" | ||
101 | * @generated | ||
102 | */ | ||
103 | EList<TransformationDefinition> getTransformationDefinitions(); | ||
104 | |||
105 | } // CftModel | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ComponentDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ComponentDefinition.java new file mode 100644 index 00000000..dae78e7e --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ComponentDefinition.java | |||
@@ -0,0 +1,105 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
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>Component Definition</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.faulttree.components.cftLanguage.ComponentDefinition#getName <em>Name</em>}</li> | ||
20 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getInputEvents <em>Input Events</em>}</li> | ||
21 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getOutputEvents <em>Output Events</em>}</li> | ||
22 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getEventDefinitions <em>Event Definitions</em>}</li> | ||
23 | * </ul> | ||
24 | * | ||
25 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getComponentDefinition() | ||
26 | * @model | ||
27 | * @generated | ||
28 | */ | ||
29 | public interface ComponentDefinition extends EObject | ||
30 | { | ||
31 | /** | ||
32 | * Returns the value of the '<em><b>Name</b></em>' attribute. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <p> | ||
35 | * If the meaning of the '<em>Name</em>' attribute isn't clear, | ||
36 | * there really should be more of a description here... | ||
37 | * </p> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @return the value of the '<em>Name</em>' attribute. | ||
40 | * @see #setName(String) | ||
41 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getComponentDefinition_Name() | ||
42 | * @model | ||
43 | * @generated | ||
44 | */ | ||
45 | String getName(); | ||
46 | |||
47 | /** | ||
48 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getName <em>Name</em>}' attribute. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @param value the new value of the '<em>Name</em>' attribute. | ||
52 | * @see #getName() | ||
53 | * @generated | ||
54 | */ | ||
55 | void setName(String value); | ||
56 | |||
57 | /** | ||
58 | * Returns the value of the '<em><b>Input Events</b></em>' containment reference list. | ||
59 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent}. | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <p> | ||
62 | * If the meaning of the '<em>Input Events</em>' containment reference list isn't clear, | ||
63 | * there really should be more of a description here... | ||
64 | * </p> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @return the value of the '<em>Input Events</em>' containment reference list. | ||
67 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getComponentDefinition_InputEvents() | ||
68 | * @model containment="true" | ||
69 | * @generated | ||
70 | */ | ||
71 | EList<InputEvent> getInputEvents(); | ||
72 | |||
73 | /** | ||
74 | * Returns the value of the '<em><b>Output Events</b></em>' reference list. | ||
75 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration}. | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <p> | ||
78 | * If the meaning of the '<em>Output Events</em>' reference list isn't clear, | ||
79 | * there really should be more of a description here... | ||
80 | * </p> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @return the value of the '<em>Output Events</em>' reference list. | ||
83 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getComponentDefinition_OutputEvents() | ||
84 | * @model | ||
85 | * @generated | ||
86 | */ | ||
87 | EList<EventDeclaration> getOutputEvents(); | ||
88 | |||
89 | /** | ||
90 | * Returns the value of the '<em><b>Event Definitions</b></em>' containment reference list. | ||
91 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition}. | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <p> | ||
94 | * If the meaning of the '<em>Event Definitions</em>' containment reference list isn't clear, | ||
95 | * there really should be more of a description here... | ||
96 | * </p> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @return the value of the '<em>Event Definitions</em>' containment reference list. | ||
99 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getComponentDefinition_EventDefinitions() | ||
100 | * @model containment="true" | ||
101 | * @generated | ||
102 | */ | ||
103 | EList<EventDefinition> getEventDefinitions(); | ||
104 | |||
105 | } // ComponentDefinition | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ComponentInstance.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ComponentInstance.java new file mode 100644 index 00000000..f9f0f57b --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ComponentInstance.java | |||
@@ -0,0 +1,51 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Component Instance</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.faulttree.components.cftLanguage.ComponentInstance#getComponentType <em>Component Type</em>}</li> | ||
17 | * </ul> | ||
18 | * | ||
19 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getComponentInstance() | ||
20 | * @model | ||
21 | * @generated | ||
22 | */ | ||
23 | public interface ComponentInstance extends Variable | ||
24 | { | ||
25 | /** | ||
26 | * Returns the value of the '<em><b>Component Type</b></em>' reference. | ||
27 | * <!-- begin-user-doc --> | ||
28 | * <p> | ||
29 | * If the meaning of the '<em>Component Type</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>Component Type</em>' reference. | ||
34 | * @see #setComponentType(ComponentDefinition) | ||
35 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getComponentInstance_ComponentType() | ||
36 | * @model | ||
37 | * @generated | ||
38 | */ | ||
39 | ComponentDefinition getComponentType(); | ||
40 | |||
41 | /** | ||
42 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance#getComponentType <em>Component Type</em>}' reference. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @param value the new value of the '<em>Component Type</em>' reference. | ||
46 | * @see #getComponentType() | ||
47 | * @generated | ||
48 | */ | ||
49 | void setComponentType(ComponentDefinition value); | ||
50 | |||
51 | } // ComponentInstance | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventDeclaration.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventDeclaration.java new file mode 100644 index 00000000..c03c117e --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventDeclaration.java | |||
@@ -0,0 +1,52 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EObject; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * A representation of the model object '<em><b>Event Declaration</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.faulttree.components.cftLanguage.EventDeclaration#getName <em>Name</em>}</li> | ||
18 | * </ul> | ||
19 | * | ||
20 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getEventDeclaration() | ||
21 | * @model | ||
22 | * @generated | ||
23 | */ | ||
24 | public interface EventDeclaration extends EObject | ||
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.faulttree.components.cftLanguage.CftLanguagePackage#getEventDeclaration_Name() | ||
37 | * @model | ||
38 | * @generated | ||
39 | */ | ||
40 | String getName(); | ||
41 | |||
42 | /** | ||
43 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration#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 | } // EventDeclaration | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventDefinition.java new file mode 100644 index 00000000..0d4f7f95 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventDefinition.java | |||
@@ -0,0 +1,19 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Event Definition</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * | ||
13 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getEventDefinition() | ||
14 | * @model | ||
15 | * @generated | ||
16 | */ | ||
17 | public interface EventDefinition extends EventDeclaration | ||
18 | { | ||
19 | } // EventDefinition | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventReference.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventReference.java new file mode 100644 index 00000000..b351b185 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventReference.java | |||
@@ -0,0 +1,79 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EObject; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * A representation of the model object '<em><b>Event Reference</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.faulttree.components.cftLanguage.EventReference#getComponent <em>Component</em>}</li> | ||
18 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference#getEvent <em>Event</em>}</li> | ||
19 | * </ul> | ||
20 | * | ||
21 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getEventReference() | ||
22 | * @model | ||
23 | * @generated | ||
24 | */ | ||
25 | public interface EventReference extends EObject | ||
26 | { | ||
27 | /** | ||
28 | * Returns the value of the '<em><b>Component</b></em>' reference. | ||
29 | * <!-- begin-user-doc --> | ||
30 | * <p> | ||
31 | * If the meaning of the '<em>Component</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>Component</em>' reference. | ||
36 | * @see #setComponent(Variable) | ||
37 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getEventReference_Component() | ||
38 | * @model | ||
39 | * @generated | ||
40 | */ | ||
41 | Variable getComponent(); | ||
42 | |||
43 | /** | ||
44 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference#getComponent <em>Component</em>}' reference. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @param value the new value of the '<em>Component</em>' reference. | ||
48 | * @see #getComponent() | ||
49 | * @generated | ||
50 | */ | ||
51 | void setComponent(Variable value); | ||
52 | |||
53 | /** | ||
54 | * Returns the value of the '<em><b>Event</b></em>' reference. | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <p> | ||
57 | * If the meaning of the '<em>Event</em>' reference isn't clear, | ||
58 | * there really should be more of a description here... | ||
59 | * </p> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @return the value of the '<em>Event</em>' reference. | ||
62 | * @see #setEvent(EventDeclaration) | ||
63 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getEventReference_Event() | ||
64 | * @model | ||
65 | * @generated | ||
66 | */ | ||
67 | EventDeclaration getEvent(); | ||
68 | |||
69 | /** | ||
70 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference#getEvent <em>Event</em>}' reference. | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @param value the new value of the '<em>Event</em>' reference. | ||
74 | * @see #getEvent() | ||
75 | * @generated | ||
76 | */ | ||
77 | void setEvent(EventDeclaration value); | ||
78 | |||
79 | } // EventReference | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/GateDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/GateDefinition.java new file mode 100644 index 00000000..3020f2ca --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/GateDefinition.java | |||
@@ -0,0 +1,42 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import org.eclipse.emf.common.util.EList; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * A representation of the model object '<em><b>Gate Definition</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.faulttree.components.cftLanguage.GateDefinition#getInputEvents <em>Input Events</em>}</li> | ||
18 | * </ul> | ||
19 | * | ||
20 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getGateDefinition() | ||
21 | * @model | ||
22 | * @generated | ||
23 | */ | ||
24 | public interface GateDefinition extends EventDefinition | ||
25 | { | ||
26 | /** | ||
27 | * Returns the value of the '<em><b>Input Events</b></em>' reference list. | ||
28 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration}. | ||
29 | * <!-- begin-user-doc --> | ||
30 | * <p> | ||
31 | * If the meaning of the '<em>Input Events</em>' 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>Input Events</em>' reference list. | ||
36 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getGateDefinition_InputEvents() | ||
37 | * @model | ||
38 | * @generated | ||
39 | */ | ||
40 | EList<EventDeclaration> getInputEvents(); | ||
41 | |||
42 | } // GateDefinition | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ImportDeclaration.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ImportDeclaration.java new file mode 100644 index 00000000..bcb36395 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ImportDeclaration.java | |||
@@ -0,0 +1,52 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EObject; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * A representation of the model object '<em><b>Import Declaration</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.faulttree.components.cftLanguage.ImportDeclaration#getImportedNamespace <em>Imported Namespace</em>}</li> | ||
18 | * </ul> | ||
19 | * | ||
20 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getImportDeclaration() | ||
21 | * @model | ||
22 | * @generated | ||
23 | */ | ||
24 | public interface ImportDeclaration extends EObject | ||
25 | { | ||
26 | /** | ||
27 | * Returns the value of the '<em><b>Imported Namespace</b></em>' attribute. | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <p> | ||
30 | * If the meaning of the '<em>Imported Namespace</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>Imported Namespace</em>' attribute. | ||
35 | * @see #setImportedNamespace(String) | ||
36 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getImportDeclaration_ImportedNamespace() | ||
37 | * @model | ||
38 | * @generated | ||
39 | */ | ||
40 | String getImportedNamespace(); | ||
41 | |||
42 | /** | ||
43 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration#getImportedNamespace <em>Imported Namespace</em>}' attribute. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @param value the new value of the '<em>Imported Namespace</em>' attribute. | ||
47 | * @see #getImportedNamespace() | ||
48 | * @generated | ||
49 | */ | ||
50 | void setImportedNamespace(String value); | ||
51 | |||
52 | } // ImportDeclaration | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/InputEvent.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/InputEvent.java new file mode 100644 index 00000000..4269fa10 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/InputEvent.java | |||
@@ -0,0 +1,51 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Input Event</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.faulttree.components.cftLanguage.InputEvent#isMultiple <em>Multiple</em>}</li> | ||
17 | * </ul> | ||
18 | * | ||
19 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getInputEvent() | ||
20 | * @model | ||
21 | * @generated | ||
22 | */ | ||
23 | public interface InputEvent extends EventDeclaration | ||
24 | { | ||
25 | /** | ||
26 | * Returns the value of the '<em><b>Multiple</b></em>' attribute. | ||
27 | * <!-- begin-user-doc --> | ||
28 | * <p> | ||
29 | * If the meaning of the '<em>Multiple</em>' attribute 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>Multiple</em>' attribute. | ||
34 | * @see #setMultiple(boolean) | ||
35 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getInputEvent_Multiple() | ||
36 | * @model | ||
37 | * @generated | ||
38 | */ | ||
39 | boolean isMultiple(); | ||
40 | |||
41 | /** | ||
42 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent#isMultiple <em>Multiple</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @param value the new value of the '<em>Multiple</em>' attribute. | ||
46 | * @see #isMultiple() | ||
47 | * @generated | ||
48 | */ | ||
49 | void setMultiple(boolean value); | ||
50 | |||
51 | } // InputEvent | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/LookupDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/LookupDefinition.java new file mode 100644 index 00000000..f0ad3519 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/LookupDefinition.java | |||
@@ -0,0 +1,69 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import org.eclipse.emf.common.util.EList; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * A representation of the model object '<em><b>Lookup Definition</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.faulttree.components.cftLanguage.LookupDefinition#getMapping <em>Mapping</em>}</li> | ||
18 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition#getArguments <em>Arguments</em>}</li> | ||
19 | * </ul> | ||
20 | * | ||
21 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getLookupDefinition() | ||
22 | * @model | ||
23 | * @generated | ||
24 | */ | ||
25 | public interface LookupDefinition extends Variable | ||
26 | { | ||
27 | /** | ||
28 | * Returns the value of the '<em><b>Mapping</b></em>' reference. | ||
29 | * <!-- begin-user-doc --> | ||
30 | * <p> | ||
31 | * If the meaning of the '<em>Mapping</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>Mapping</em>' reference. | ||
36 | * @see #setMapping(MappingDefinition) | ||
37 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getLookupDefinition_Mapping() | ||
38 | * @model | ||
39 | * @generated | ||
40 | */ | ||
41 | MappingDefinition getMapping(); | ||
42 | |||
43 | /** | ||
44 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition#getMapping <em>Mapping</em>}' reference. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @param value the new value of the '<em>Mapping</em>' reference. | ||
48 | * @see #getMapping() | ||
49 | * @generated | ||
50 | */ | ||
51 | void setMapping(MappingDefinition value); | ||
52 | |||
53 | /** | ||
54 | * Returns the value of the '<em><b>Arguments</b></em>' reference list. | ||
55 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter}. | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <p> | ||
58 | * If the meaning of the '<em>Arguments</em>' reference list 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>Arguments</em>' reference list. | ||
63 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getLookupDefinition_Arguments() | ||
64 | * @model | ||
65 | * @generated | ||
66 | */ | ||
67 | EList<MappingParameter> getArguments(); | ||
68 | |||
69 | } // LookupDefinition | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/MappingDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/MappingDefinition.java new file mode 100644 index 00000000..14c539b4 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/MappingDefinition.java | |||
@@ -0,0 +1,161 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import org.eclipse.emf.common.util.EList; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EObject; | ||
9 | |||
10 | import org.eclipse.viatra.query.patternlanguage.emf.vql.Pattern; | ||
11 | |||
12 | /** | ||
13 | * <!-- begin-user-doc --> | ||
14 | * A representation of the model object '<em><b>Mapping Definition</b></em>'. | ||
15 | * <!-- end-user-doc --> | ||
16 | * | ||
17 | * <p> | ||
18 | * The following features are supported: | ||
19 | * </p> | ||
20 | * <ul> | ||
21 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#isTopLevel <em>Top Level</em>}</li> | ||
22 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getPattern <em>Pattern</em>}</li> | ||
23 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getParameters <em>Parameters</em>}</li> | ||
24 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getComponentInstance <em>Component Instance</em>}</li> | ||
25 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getLookupDefinitions <em>Lookup Definitions</em>}</li> | ||
26 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getAssignments <em>Assignments</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getMappingDefinition() | ||
30 | * @model | ||
31 | * @generated | ||
32 | */ | ||
33 | public interface MappingDefinition extends EObject | ||
34 | { | ||
35 | /** | ||
36 | * Returns the value of the '<em><b>Top Level</b></em>' attribute. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <p> | ||
39 | * If the meaning of the '<em>Top Level</em>' attribute isn't clear, | ||
40 | * there really should be more of a description here... | ||
41 | * </p> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @return the value of the '<em>Top Level</em>' attribute. | ||
44 | * @see #setTopLevel(boolean) | ||
45 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getMappingDefinition_TopLevel() | ||
46 | * @model | ||
47 | * @generated | ||
48 | */ | ||
49 | boolean isTopLevel(); | ||
50 | |||
51 | /** | ||
52 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#isTopLevel <em>Top Level</em>}' attribute. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @param value the new value of the '<em>Top Level</em>' attribute. | ||
56 | * @see #isTopLevel() | ||
57 | * @generated | ||
58 | */ | ||
59 | void setTopLevel(boolean value); | ||
60 | |||
61 | /** | ||
62 | * Returns the value of the '<em><b>Pattern</b></em>' reference. | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <p> | ||
65 | * If the meaning of the '<em>Pattern</em>' reference isn't clear, | ||
66 | * there really should be more of a description here... | ||
67 | * </p> | ||
68 | * <!-- end-user-doc --> | ||
69 | * @return the value of the '<em>Pattern</em>' reference. | ||
70 | * @see #setPattern(Pattern) | ||
71 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getMappingDefinition_Pattern() | ||
72 | * @model | ||
73 | * @generated | ||
74 | */ | ||
75 | Pattern getPattern(); | ||
76 | |||
77 | /** | ||
78 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getPattern <em>Pattern</em>}' reference. | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @param value the new value of the '<em>Pattern</em>' reference. | ||
82 | * @see #getPattern() | ||
83 | * @generated | ||
84 | */ | ||
85 | void setPattern(Pattern value); | ||
86 | |||
87 | /** | ||
88 | * Returns the value of the '<em><b>Parameters</b></em>' containment reference list. | ||
89 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter}. | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <p> | ||
92 | * If the meaning of the '<em>Parameters</em>' containment reference list isn't clear, | ||
93 | * there really should be more of a description here... | ||
94 | * </p> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @return the value of the '<em>Parameters</em>' containment reference list. | ||
97 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getMappingDefinition_Parameters() | ||
98 | * @model containment="true" | ||
99 | * @generated | ||
100 | */ | ||
101 | EList<MappingParameter> getParameters(); | ||
102 | |||
103 | /** | ||
104 | * Returns the value of the '<em><b>Component Instance</b></em>' containment reference. | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <p> | ||
107 | * If the meaning of the '<em>Component Instance</em>' containment reference isn't clear, | ||
108 | * there really should be more of a description here... | ||
109 | * </p> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @return the value of the '<em>Component Instance</em>' containment reference. | ||
112 | * @see #setComponentInstance(ComponentInstance) | ||
113 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getMappingDefinition_ComponentInstance() | ||
114 | * @model containment="true" | ||
115 | * @generated | ||
116 | */ | ||
117 | ComponentInstance getComponentInstance(); | ||
118 | |||
119 | /** | ||
120 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getComponentInstance <em>Component Instance</em>}' containment reference. | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @param value the new value of the '<em>Component Instance</em>' containment reference. | ||
124 | * @see #getComponentInstance() | ||
125 | * @generated | ||
126 | */ | ||
127 | void setComponentInstance(ComponentInstance value); | ||
128 | |||
129 | /** | ||
130 | * Returns the value of the '<em><b>Lookup Definitions</b></em>' containment reference list. | ||
131 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition}. | ||
132 | * <!-- begin-user-doc --> | ||
133 | * <p> | ||
134 | * If the meaning of the '<em>Lookup Definitions</em>' containment reference list isn't clear, | ||
135 | * there really should be more of a description here... | ||
136 | * </p> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @return the value of the '<em>Lookup Definitions</em>' containment reference list. | ||
139 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getMappingDefinition_LookupDefinitions() | ||
140 | * @model containment="true" | ||
141 | * @generated | ||
142 | */ | ||
143 | EList<LookupDefinition> getLookupDefinitions(); | ||
144 | |||
145 | /** | ||
146 | * Returns the value of the '<em><b>Assignments</b></em>' containment reference list. | ||
147 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment}. | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <p> | ||
150 | * If the meaning of the '<em>Assignments</em>' containment reference list isn't clear, | ||
151 | * there really should be more of a description here... | ||
152 | * </p> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @return the value of the '<em>Assignments</em>' containment reference list. | ||
155 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getMappingDefinition_Assignments() | ||
156 | * @model containment="true" | ||
157 | * @generated | ||
158 | */ | ||
159 | EList<Assignment> getAssignments(); | ||
160 | |||
161 | } // MappingDefinition | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/MappingParameter.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/MappingParameter.java new file mode 100644 index 00000000..5fc3c006 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/MappingParameter.java | |||
@@ -0,0 +1,52 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EObject; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * A representation of the model object '<em><b>Mapping Parameter</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.faulttree.components.cftLanguage.MappingParameter#getName <em>Name</em>}</li> | ||
18 | * </ul> | ||
19 | * | ||
20 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getMappingParameter() | ||
21 | * @model | ||
22 | * @generated | ||
23 | */ | ||
24 | public interface MappingParameter extends EObject | ||
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.faulttree.components.cftLanguage.CftLanguagePackage#getMappingParameter_Name() | ||
37 | * @model | ||
38 | * @generated | ||
39 | */ | ||
40 | String getName(); | ||
41 | |||
42 | /** | ||
43 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter#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 | } // MappingParameter | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/OrGate.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/OrGate.java new file mode 100644 index 00000000..44a2bc07 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/OrGate.java | |||
@@ -0,0 +1,19 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Or Gate</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * | ||
13 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getOrGate() | ||
14 | * @model | ||
15 | * @generated | ||
16 | */ | ||
17 | public interface OrGate extends GateDefinition | ||
18 | { | ||
19 | } // OrGate | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/TransformationDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/TransformationDefinition.java new file mode 100644 index 00000000..1412e725 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/TransformationDefinition.java | |||
@@ -0,0 +1,71 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
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>Transformation Definition</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.faulttree.components.cftLanguage.TransformationDefinition#getName <em>Name</em>}</li> | ||
20 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition#getMappingDefinitions <em>Mapping Definitions</em>}</li> | ||
21 | * </ul> | ||
22 | * | ||
23 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getTransformationDefinition() | ||
24 | * @model | ||
25 | * @generated | ||
26 | */ | ||
27 | public interface TransformationDefinition extends EObject | ||
28 | { | ||
29 | /** | ||
30 | * Returns the value of the '<em><b>Name</b></em>' attribute. | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <p> | ||
33 | * If the meaning of the '<em>Name</em>' attribute isn't clear, | ||
34 | * there really should be more of a description here... | ||
35 | * </p> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @return the value of the '<em>Name</em>' attribute. | ||
38 | * @see #setName(String) | ||
39 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getTransformationDefinition_Name() | ||
40 | * @model | ||
41 | * @generated | ||
42 | */ | ||
43 | String getName(); | ||
44 | |||
45 | /** | ||
46 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition#getName <em>Name</em>}' attribute. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @param value the new value of the '<em>Name</em>' attribute. | ||
50 | * @see #getName() | ||
51 | * @generated | ||
52 | */ | ||
53 | void setName(String value); | ||
54 | |||
55 | /** | ||
56 | * Returns the value of the '<em><b>Mapping Definitions</b></em>' containment reference list. | ||
57 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition}. | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <p> | ||
60 | * If the meaning of the '<em>Mapping Definitions</em>' containment reference list isn't clear, | ||
61 | * there really should be more of a description here... | ||
62 | * </p> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @return the value of the '<em>Mapping Definitions</em>' containment reference list. | ||
65 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getTransformationDefinition_MappingDefinitions() | ||
66 | * @model containment="true" | ||
67 | * @generated | ||
68 | */ | ||
69 | EList<MappingDefinition> getMappingDefinitions(); | ||
70 | |||
71 | } // TransformationDefinition | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/Variable.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/Variable.java new file mode 100644 index 00000000..d49749da --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/Variable.java | |||
@@ -0,0 +1,52 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EObject; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * A representation of the model object '<em><b>Variable</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.faulttree.components.cftLanguage.Variable#getName <em>Name</em>}</li> | ||
18 | * </ul> | ||
19 | * | ||
20 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getVariable() | ||
21 | * @model | ||
22 | * @generated | ||
23 | */ | ||
24 | public interface Variable extends EObject | ||
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.faulttree.components.cftLanguage.CftLanguagePackage#getVariable_Name() | ||
37 | * @model | ||
38 | * @generated | ||
39 | */ | ||
40 | String getName(); | ||
41 | |||
42 | /** | ||
43 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable#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 | } // Variable | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/AndGateImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/AndGateImpl.java new file mode 100644 index 00000000..d38a9fcd --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/AndGateImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.AndGate; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>And Gate</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class AndGateImpl extends GateDefinitionImpl implements AndGate | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected AndGateImpl() | ||
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 CftLanguagePackage.Literals.AND_GATE; | ||
39 | } | ||
40 | |||
41 | } //AndGateImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/AssignmentImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/AssignmentImpl.java new file mode 100644 index 00000000..0b37cdbb --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/AssignmentImpl.java | |||
@@ -0,0 +1,343 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference; | ||
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 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Assignment</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AssignmentImpl#getInput <em>Input</em>}</li> | ||
28 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AssignmentImpl#isMultiple <em>Multiple</em>}</li> | ||
29 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AssignmentImpl#getOutput <em>Output</em>}</li> | ||
30 | * </ul> | ||
31 | * | ||
32 | * @generated | ||
33 | */ | ||
34 | public class AssignmentImpl extends MinimalEObjectImpl.Container implements Assignment | ||
35 | { | ||
36 | /** | ||
37 | * The cached value of the '{@link #getInput() <em>Input</em>}' containment reference. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @see #getInput() | ||
41 | * @generated | ||
42 | * @ordered | ||
43 | */ | ||
44 | protected EventReference input; | ||
45 | |||
46 | /** | ||
47 | * The default value of the '{@link #isMultiple() <em>Multiple</em>}' attribute. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @see #isMultiple() | ||
51 | * @generated | ||
52 | * @ordered | ||
53 | */ | ||
54 | protected static final boolean MULTIPLE_EDEFAULT = false; | ||
55 | |||
56 | /** | ||
57 | * The cached value of the '{@link #isMultiple() <em>Multiple</em>}' attribute. | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @see #isMultiple() | ||
61 | * @generated | ||
62 | * @ordered | ||
63 | */ | ||
64 | protected boolean multiple = MULTIPLE_EDEFAULT; | ||
65 | |||
66 | /** | ||
67 | * The cached value of the '{@link #getOutput() <em>Output</em>}' containment reference. | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @see #getOutput() | ||
71 | * @generated | ||
72 | * @ordered | ||
73 | */ | ||
74 | protected EventReference output; | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | protected AssignmentImpl() | ||
82 | { | ||
83 | super(); | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | @Override | ||
92 | protected EClass eStaticClass() | ||
93 | { | ||
94 | return CftLanguagePackage.Literals.ASSIGNMENT; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public EventReference getInput() | ||
104 | { | ||
105 | return input; | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | public NotificationChain basicSetInput(EventReference newInput, NotificationChain msgs) | ||
114 | { | ||
115 | EventReference oldInput = input; | ||
116 | input = newInput; | ||
117 | if (eNotificationRequired()) | ||
118 | { | ||
119 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CftLanguagePackage.ASSIGNMENT__INPUT, oldInput, newInput); | ||
120 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
121 | } | ||
122 | return msgs; | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | @Override | ||
131 | public void setInput(EventReference newInput) | ||
132 | { | ||
133 | if (newInput != input) | ||
134 | { | ||
135 | NotificationChain msgs = null; | ||
136 | if (input != null) | ||
137 | msgs = ((InternalEObject)input).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CftLanguagePackage.ASSIGNMENT__INPUT, null, msgs); | ||
138 | if (newInput != null) | ||
139 | msgs = ((InternalEObject)newInput).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CftLanguagePackage.ASSIGNMENT__INPUT, null, msgs); | ||
140 | msgs = basicSetInput(newInput, msgs); | ||
141 | if (msgs != null) msgs.dispatch(); | ||
142 | } | ||
143 | else if (eNotificationRequired()) | ||
144 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.ASSIGNMENT__INPUT, newInput, newInput)); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public boolean isMultiple() | ||
154 | { | ||
155 | return multiple; | ||
156 | } | ||
157 | |||
158 | /** | ||
159 | * <!-- begin-user-doc --> | ||
160 | * <!-- end-user-doc --> | ||
161 | * @generated | ||
162 | */ | ||
163 | @Override | ||
164 | public void setMultiple(boolean newMultiple) | ||
165 | { | ||
166 | boolean oldMultiple = multiple; | ||
167 | multiple = newMultiple; | ||
168 | if (eNotificationRequired()) | ||
169 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.ASSIGNMENT__MULTIPLE, oldMultiple, multiple)); | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | */ | ||
177 | @Override | ||
178 | public EventReference getOutput() | ||
179 | { | ||
180 | return output; | ||
181 | } | ||
182 | |||
183 | /** | ||
184 | * <!-- begin-user-doc --> | ||
185 | * <!-- end-user-doc --> | ||
186 | * @generated | ||
187 | */ | ||
188 | public NotificationChain basicSetOutput(EventReference newOutput, NotificationChain msgs) | ||
189 | { | ||
190 | EventReference oldOutput = output; | ||
191 | output = newOutput; | ||
192 | if (eNotificationRequired()) | ||
193 | { | ||
194 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CftLanguagePackage.ASSIGNMENT__OUTPUT, oldOutput, newOutput); | ||
195 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
196 | } | ||
197 | return msgs; | ||
198 | } | ||
199 | |||
200 | /** | ||
201 | * <!-- begin-user-doc --> | ||
202 | * <!-- end-user-doc --> | ||
203 | * @generated | ||
204 | */ | ||
205 | @Override | ||
206 | public void setOutput(EventReference newOutput) | ||
207 | { | ||
208 | if (newOutput != output) | ||
209 | { | ||
210 | NotificationChain msgs = null; | ||
211 | if (output != null) | ||
212 | msgs = ((InternalEObject)output).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CftLanguagePackage.ASSIGNMENT__OUTPUT, null, msgs); | ||
213 | if (newOutput != null) | ||
214 | msgs = ((InternalEObject)newOutput).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CftLanguagePackage.ASSIGNMENT__OUTPUT, null, msgs); | ||
215 | msgs = basicSetOutput(newOutput, msgs); | ||
216 | if (msgs != null) msgs.dispatch(); | ||
217 | } | ||
218 | else if (eNotificationRequired()) | ||
219 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.ASSIGNMENT__OUTPUT, newOutput, newOutput)); | ||
220 | } | ||
221 | |||
222 | /** | ||
223 | * <!-- begin-user-doc --> | ||
224 | * <!-- end-user-doc --> | ||
225 | * @generated | ||
226 | */ | ||
227 | @Override | ||
228 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
229 | { | ||
230 | switch (featureID) | ||
231 | { | ||
232 | case CftLanguagePackage.ASSIGNMENT__INPUT: | ||
233 | return basicSetInput(null, msgs); | ||
234 | case CftLanguagePackage.ASSIGNMENT__OUTPUT: | ||
235 | return basicSetOutput(null, msgs); | ||
236 | } | ||
237 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
238 | } | ||
239 | |||
240 | /** | ||
241 | * <!-- begin-user-doc --> | ||
242 | * <!-- end-user-doc --> | ||
243 | * @generated | ||
244 | */ | ||
245 | @Override | ||
246 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
247 | { | ||
248 | switch (featureID) | ||
249 | { | ||
250 | case CftLanguagePackage.ASSIGNMENT__INPUT: | ||
251 | return getInput(); | ||
252 | case CftLanguagePackage.ASSIGNMENT__MULTIPLE: | ||
253 | return isMultiple(); | ||
254 | case CftLanguagePackage.ASSIGNMENT__OUTPUT: | ||
255 | return getOutput(); | ||
256 | } | ||
257 | return super.eGet(featureID, resolve, coreType); | ||
258 | } | ||
259 | |||
260 | /** | ||
261 | * <!-- begin-user-doc --> | ||
262 | * <!-- end-user-doc --> | ||
263 | * @generated | ||
264 | */ | ||
265 | @Override | ||
266 | public void eSet(int featureID, Object newValue) | ||
267 | { | ||
268 | switch (featureID) | ||
269 | { | ||
270 | case CftLanguagePackage.ASSIGNMENT__INPUT: | ||
271 | setInput((EventReference)newValue); | ||
272 | return; | ||
273 | case CftLanguagePackage.ASSIGNMENT__MULTIPLE: | ||
274 | setMultiple((Boolean)newValue); | ||
275 | return; | ||
276 | case CftLanguagePackage.ASSIGNMENT__OUTPUT: | ||
277 | setOutput((EventReference)newValue); | ||
278 | return; | ||
279 | } | ||
280 | super.eSet(featureID, newValue); | ||
281 | } | ||
282 | |||
283 | /** | ||
284 | * <!-- begin-user-doc --> | ||
285 | * <!-- end-user-doc --> | ||
286 | * @generated | ||
287 | */ | ||
288 | @Override | ||
289 | public void eUnset(int featureID) | ||
290 | { | ||
291 | switch (featureID) | ||
292 | { | ||
293 | case CftLanguagePackage.ASSIGNMENT__INPUT: | ||
294 | setInput((EventReference)null); | ||
295 | return; | ||
296 | case CftLanguagePackage.ASSIGNMENT__MULTIPLE: | ||
297 | setMultiple(MULTIPLE_EDEFAULT); | ||
298 | return; | ||
299 | case CftLanguagePackage.ASSIGNMENT__OUTPUT: | ||
300 | setOutput((EventReference)null); | ||
301 | return; | ||
302 | } | ||
303 | super.eUnset(featureID); | ||
304 | } | ||
305 | |||
306 | /** | ||
307 | * <!-- begin-user-doc --> | ||
308 | * <!-- end-user-doc --> | ||
309 | * @generated | ||
310 | */ | ||
311 | @Override | ||
312 | public boolean eIsSet(int featureID) | ||
313 | { | ||
314 | switch (featureID) | ||
315 | { | ||
316 | case CftLanguagePackage.ASSIGNMENT__INPUT: | ||
317 | return input != null; | ||
318 | case CftLanguagePackage.ASSIGNMENT__MULTIPLE: | ||
319 | return multiple != MULTIPLE_EDEFAULT; | ||
320 | case CftLanguagePackage.ASSIGNMENT__OUTPUT: | ||
321 | return output != null; | ||
322 | } | ||
323 | return super.eIsSet(featureID); | ||
324 | } | ||
325 | |||
326 | /** | ||
327 | * <!-- begin-user-doc --> | ||
328 | * <!-- end-user-doc --> | ||
329 | * @generated | ||
330 | */ | ||
331 | @Override | ||
332 | public String toString() | ||
333 | { | ||
334 | if (eIsProxy()) return super.toString(); | ||
335 | |||
336 | StringBuilder result = new StringBuilder(super.toString()); | ||
337 | result.append(" (multiple: "); | ||
338 | result.append(multiple); | ||
339 | result.append(')'); | ||
340 | return result.toString(); | ||
341 | } | ||
342 | |||
343 | } //AssignmentImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/BasicEventDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/BasicEventDefinitionImpl.java new file mode 100644 index 00000000..34c865c3 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/BasicEventDefinitionImpl.java | |||
@@ -0,0 +1,179 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | |||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Basic Event Definition</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.BasicEventDefinitionImpl#getRate <em>Rate</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class BasicEventDefinitionImpl extends EventDefinitionImpl implements BasicEventDefinition | ||
29 | { | ||
30 | /** | ||
31 | * The default value of the '{@link #getRate() <em>Rate</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getRate() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final double RATE_EDEFAULT = 0.0; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #getRate() <em>Rate</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getRate() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected double rate = RATE_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | protected BasicEventDefinitionImpl() | ||
56 | { | ||
57 | super(); | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | protected EClass eStaticClass() | ||
67 | { | ||
68 | return CftLanguagePackage.Literals.BASIC_EVENT_DEFINITION; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | @Override | ||
77 | public double getRate() | ||
78 | { | ||
79 | return rate; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | public void setRate(double newRate) | ||
89 | { | ||
90 | double oldRate = rate; | ||
91 | rate = newRate; | ||
92 | if (eNotificationRequired()) | ||
93 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.BASIC_EVENT_DEFINITION__RATE, oldRate, rate)); | ||
94 | } | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | @Override | ||
102 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
103 | { | ||
104 | switch (featureID) | ||
105 | { | ||
106 | case CftLanguagePackage.BASIC_EVENT_DEFINITION__RATE: | ||
107 | return getRate(); | ||
108 | } | ||
109 | return super.eGet(featureID, resolve, coreType); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public void eSet(int featureID, Object newValue) | ||
119 | { | ||
120 | switch (featureID) | ||
121 | { | ||
122 | case CftLanguagePackage.BASIC_EVENT_DEFINITION__RATE: | ||
123 | setRate((Double)newValue); | ||
124 | return; | ||
125 | } | ||
126 | super.eSet(featureID, newValue); | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void eUnset(int featureID) | ||
136 | { | ||
137 | switch (featureID) | ||
138 | { | ||
139 | case CftLanguagePackage.BASIC_EVENT_DEFINITION__RATE: | ||
140 | setRate(RATE_EDEFAULT); | ||
141 | return; | ||
142 | } | ||
143 | super.eUnset(featureID); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public boolean eIsSet(int featureID) | ||
153 | { | ||
154 | switch (featureID) | ||
155 | { | ||
156 | case CftLanguagePackage.BASIC_EVENT_DEFINITION__RATE: | ||
157 | return rate != RATE_EDEFAULT; | ||
158 | } | ||
159 | return super.eIsSet(featureID); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public String toString() | ||
169 | { | ||
170 | if (eIsProxy()) return super.toString(); | ||
171 | |||
172 | StringBuilder result = new StringBuilder(super.toString()); | ||
173 | result.append(" (rate: "); | ||
174 | result.append(rate); | ||
175 | result.append(')'); | ||
176 | return result.toString(); | ||
177 | } | ||
178 | |||
179 | } //BasicEventDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguageFactoryImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguageFactoryImpl.java new file mode 100644 index 00000000..04b066b2 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguageFactoryImpl.java | |||
@@ -0,0 +1,330 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.*; | ||
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 CftLanguageFactoryImpl extends EFactoryImpl implements CftLanguageFactory | ||
23 | { | ||
24 | /** | ||
25 | * Creates the default factory implementation. | ||
26 | * <!-- begin-user-doc --> | ||
27 | * <!-- end-user-doc --> | ||
28 | * @generated | ||
29 | */ | ||
30 | public static CftLanguageFactory init() | ||
31 | { | ||
32 | try | ||
33 | { | ||
34 | CftLanguageFactory theCftLanguageFactory = (CftLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(CftLanguagePackage.eNS_URI); | ||
35 | if (theCftLanguageFactory != null) | ||
36 | { | ||
37 | return theCftLanguageFactory; | ||
38 | } | ||
39 | } | ||
40 | catch (Exception exception) | ||
41 | { | ||
42 | EcorePlugin.INSTANCE.log(exception); | ||
43 | } | ||
44 | return new CftLanguageFactoryImpl(); | ||
45 | } | ||
46 | |||
47 | /** | ||
48 | * Creates an instance of the factory. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @generated | ||
52 | */ | ||
53 | public CftLanguageFactoryImpl() | ||
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 CftLanguagePackage.CFT_MODEL: return createCftModel(); | ||
69 | case CftLanguagePackage.IMPORT_DECLARATION: return createImportDeclaration(); | ||
70 | case CftLanguagePackage.COMPONENT_DEFINITION: return createComponentDefinition(); | ||
71 | case CftLanguagePackage.EVENT_DECLARATION: return createEventDeclaration(); | ||
72 | case CftLanguagePackage.INPUT_EVENT: return createInputEvent(); | ||
73 | case CftLanguagePackage.EVENT_DEFINITION: return createEventDefinition(); | ||
74 | case CftLanguagePackage.BASIC_EVENT_DEFINITION: return createBasicEventDefinition(); | ||
75 | case CftLanguagePackage.GATE_DEFINITION: return createGateDefinition(); | ||
76 | case CftLanguagePackage.AND_GATE: return createAndGate(); | ||
77 | case CftLanguagePackage.OR_GATE: return createOrGate(); | ||
78 | case CftLanguagePackage.TRANSFORMATION_DEFINITION: return createTransformationDefinition(); | ||
79 | case CftLanguagePackage.MAPPING_DEFINITION: return createMappingDefinition(); | ||
80 | case CftLanguagePackage.MAPPING_PARAMETER: return createMappingParameter(); | ||
81 | case CftLanguagePackage.LOOKUP_DEFINITION: return createLookupDefinition(); | ||
82 | case CftLanguagePackage.VARIABLE: return createVariable(); | ||
83 | case CftLanguagePackage.ASSIGNMENT: return createAssignment(); | ||
84 | case CftLanguagePackage.EVENT_REFERENCE: return createEventReference(); | ||
85 | case CftLanguagePackage.COMPONENT_INSTANCE: return createComponentInstance(); | ||
86 | default: | ||
87 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); | ||
88 | } | ||
89 | } | ||
90 | |||
91 | /** | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <!-- end-user-doc --> | ||
94 | * @generated | ||
95 | */ | ||
96 | @Override | ||
97 | public CftModel createCftModel() | ||
98 | { | ||
99 | CftModelImpl cftModel = new CftModelImpl(); | ||
100 | return cftModel; | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | @Override | ||
109 | public ImportDeclaration createImportDeclaration() | ||
110 | { | ||
111 | ImportDeclarationImpl importDeclaration = new ImportDeclarationImpl(); | ||
112 | return importDeclaration; | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | @Override | ||
121 | public ComponentDefinition createComponentDefinition() | ||
122 | { | ||
123 | ComponentDefinitionImpl componentDefinition = new ComponentDefinitionImpl(); | ||
124 | return componentDefinition; | ||
125 | } | ||
126 | |||
127 | /** | ||
128 | * <!-- begin-user-doc --> | ||
129 | * <!-- end-user-doc --> | ||
130 | * @generated | ||
131 | */ | ||
132 | @Override | ||
133 | public EventDeclaration createEventDeclaration() | ||
134 | { | ||
135 | EventDeclarationImpl eventDeclaration = new EventDeclarationImpl(); | ||
136 | return eventDeclaration; | ||
137 | } | ||
138 | |||
139 | /** | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @generated | ||
143 | */ | ||
144 | @Override | ||
145 | public InputEvent createInputEvent() | ||
146 | { | ||
147 | InputEventImpl inputEvent = new InputEventImpl(); | ||
148 | return inputEvent; | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | @Override | ||
157 | public EventDefinition createEventDefinition() | ||
158 | { | ||
159 | EventDefinitionImpl eventDefinition = new EventDefinitionImpl(); | ||
160 | return eventDefinition; | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public BasicEventDefinition createBasicEventDefinition() | ||
170 | { | ||
171 | BasicEventDefinitionImpl basicEventDefinition = new BasicEventDefinitionImpl(); | ||
172 | return basicEventDefinition; | ||
173 | } | ||
174 | |||
175 | /** | ||
176 | * <!-- begin-user-doc --> | ||
177 | * <!-- end-user-doc --> | ||
178 | * @generated | ||
179 | */ | ||
180 | @Override | ||
181 | public GateDefinition createGateDefinition() | ||
182 | { | ||
183 | GateDefinitionImpl gateDefinition = new GateDefinitionImpl(); | ||
184 | return gateDefinition; | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * <!-- begin-user-doc --> | ||
189 | * <!-- end-user-doc --> | ||
190 | * @generated | ||
191 | */ | ||
192 | @Override | ||
193 | public AndGate createAndGate() | ||
194 | { | ||
195 | AndGateImpl andGate = new AndGateImpl(); | ||
196 | return andGate; | ||
197 | } | ||
198 | |||
199 | /** | ||
200 | * <!-- begin-user-doc --> | ||
201 | * <!-- end-user-doc --> | ||
202 | * @generated | ||
203 | */ | ||
204 | @Override | ||
205 | public OrGate createOrGate() | ||
206 | { | ||
207 | OrGateImpl orGate = new OrGateImpl(); | ||
208 | return orGate; | ||
209 | } | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | @Override | ||
217 | public TransformationDefinition createTransformationDefinition() | ||
218 | { | ||
219 | TransformationDefinitionImpl transformationDefinition = new TransformationDefinitionImpl(); | ||
220 | return transformationDefinition; | ||
221 | } | ||
222 | |||
223 | /** | ||
224 | * <!-- begin-user-doc --> | ||
225 | * <!-- end-user-doc --> | ||
226 | * @generated | ||
227 | */ | ||
228 | @Override | ||
229 | public MappingDefinition createMappingDefinition() | ||
230 | { | ||
231 | MappingDefinitionImpl mappingDefinition = new MappingDefinitionImpl(); | ||
232 | return mappingDefinition; | ||
233 | } | ||
234 | |||
235 | /** | ||
236 | * <!-- begin-user-doc --> | ||
237 | * <!-- end-user-doc --> | ||
238 | * @generated | ||
239 | */ | ||
240 | @Override | ||
241 | public MappingParameter createMappingParameter() | ||
242 | { | ||
243 | MappingParameterImpl mappingParameter = new MappingParameterImpl(); | ||
244 | return mappingParameter; | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * <!-- begin-user-doc --> | ||
249 | * <!-- end-user-doc --> | ||
250 | * @generated | ||
251 | */ | ||
252 | @Override | ||
253 | public LookupDefinition createLookupDefinition() | ||
254 | { | ||
255 | LookupDefinitionImpl lookupDefinition = new LookupDefinitionImpl(); | ||
256 | return lookupDefinition; | ||
257 | } | ||
258 | |||
259 | /** | ||
260 | * <!-- begin-user-doc --> | ||
261 | * <!-- end-user-doc --> | ||
262 | * @generated | ||
263 | */ | ||
264 | @Override | ||
265 | public Variable createVariable() | ||
266 | { | ||
267 | VariableImpl variable = new VariableImpl(); | ||
268 | return variable; | ||
269 | } | ||
270 | |||
271 | /** | ||
272 | * <!-- begin-user-doc --> | ||
273 | * <!-- end-user-doc --> | ||
274 | * @generated | ||
275 | */ | ||
276 | @Override | ||
277 | public Assignment createAssignment() | ||
278 | { | ||
279 | AssignmentImpl assignment = new AssignmentImpl(); | ||
280 | return assignment; | ||
281 | } | ||
282 | |||
283 | /** | ||
284 | * <!-- begin-user-doc --> | ||
285 | * <!-- end-user-doc --> | ||
286 | * @generated | ||
287 | */ | ||
288 | @Override | ||
289 | public EventReference createEventReference() | ||
290 | { | ||
291 | EventReferenceImpl eventReference = new EventReferenceImpl(); | ||
292 | return eventReference; | ||
293 | } | ||
294 | |||
295 | /** | ||
296 | * <!-- begin-user-doc --> | ||
297 | * <!-- end-user-doc --> | ||
298 | * @generated | ||
299 | */ | ||
300 | @Override | ||
301 | public ComponentInstance createComponentInstance() | ||
302 | { | ||
303 | ComponentInstanceImpl componentInstance = new ComponentInstanceImpl(); | ||
304 | return componentInstance; | ||
305 | } | ||
306 | |||
307 | /** | ||
308 | * <!-- begin-user-doc --> | ||
309 | * <!-- end-user-doc --> | ||
310 | * @generated | ||
311 | */ | ||
312 | @Override | ||
313 | public CftLanguagePackage getCftLanguagePackage() | ||
314 | { | ||
315 | return (CftLanguagePackage)getEPackage(); | ||
316 | } | ||
317 | |||
318 | /** | ||
319 | * <!-- begin-user-doc --> | ||
320 | * <!-- end-user-doc --> | ||
321 | * @deprecated | ||
322 | * @generated | ||
323 | */ | ||
324 | @Deprecated | ||
325 | public static CftLanguagePackage getPackage() | ||
326 | { | ||
327 | return CftLanguagePackage.eINSTANCE; | ||
328 | } | ||
329 | |||
330 | } //CftLanguageFactoryImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguagePackageImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguagePackageImpl.java new file mode 100644 index 00000000..95520ab8 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguagePackageImpl.java | |||
@@ -0,0 +1,999 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.AndGate; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguageFactory; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
11 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel; | ||
12 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition; | ||
13 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance; | ||
14 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration; | ||
15 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition; | ||
16 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference; | ||
17 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition; | ||
18 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration; | ||
19 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent; | ||
20 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition; | ||
21 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition; | ||
22 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter; | ||
23 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.OrGate; | ||
24 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition; | ||
25 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable; | ||
26 | |||
27 | import org.eclipse.emf.ecore.EAttribute; | ||
28 | import org.eclipse.emf.ecore.EClass; | ||
29 | import org.eclipse.emf.ecore.EPackage; | ||
30 | import org.eclipse.emf.ecore.EReference; | ||
31 | import org.eclipse.emf.ecore.EcorePackage; | ||
32 | |||
33 | import org.eclipse.emf.ecore.impl.EPackageImpl; | ||
34 | |||
35 | import org.eclipse.viatra.query.patternlanguage.emf.vql.PatternLanguagePackage; | ||
36 | |||
37 | import org.eclipse.xtext.common.types.TypesPackage; | ||
38 | |||
39 | import org.eclipse.xtext.xbase.XbasePackage; | ||
40 | |||
41 | import org.eclipse.xtext.xtype.XtypePackage; | ||
42 | |||
43 | /** | ||
44 | * <!-- begin-user-doc --> | ||
45 | * An implementation of the model <b>Package</b>. | ||
46 | * <!-- end-user-doc --> | ||
47 | * @generated | ||
48 | */ | ||
49 | public class CftLanguagePackageImpl extends EPackageImpl implements CftLanguagePackage | ||
50 | { | ||
51 | /** | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @generated | ||
55 | */ | ||
56 | private EClass cftModelEClass = null; | ||
57 | |||
58 | /** | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @generated | ||
62 | */ | ||
63 | private EClass importDeclarationEClass = null; | ||
64 | |||
65 | /** | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @generated | ||
69 | */ | ||
70 | private EClass componentDefinitionEClass = null; | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | private EClass eventDeclarationEClass = null; | ||
78 | |||
79 | /** | ||
80 | * <!-- begin-user-doc --> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @generated | ||
83 | */ | ||
84 | private EClass inputEventEClass = null; | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | private EClass eventDefinitionEClass = null; | ||
92 | |||
93 | /** | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @generated | ||
97 | */ | ||
98 | private EClass basicEventDefinitionEClass = null; | ||
99 | |||
100 | /** | ||
101 | * <!-- begin-user-doc --> | ||
102 | * <!-- end-user-doc --> | ||
103 | * @generated | ||
104 | */ | ||
105 | private EClass gateDefinitionEClass = null; | ||
106 | |||
107 | /** | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | */ | ||
112 | private EClass andGateEClass = null; | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | private EClass orGateEClass = null; | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | private EClass transformationDefinitionEClass = null; | ||
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | private EClass mappingDefinitionEClass = null; | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | private EClass mappingParameterEClass = null; | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | private EClass lookupDefinitionEClass = null; | ||
148 | |||
149 | /** | ||
150 | * <!-- begin-user-doc --> | ||
151 | * <!-- end-user-doc --> | ||
152 | * @generated | ||
153 | */ | ||
154 | private EClass variableEClass = null; | ||
155 | |||
156 | /** | ||
157 | * <!-- begin-user-doc --> | ||
158 | * <!-- end-user-doc --> | ||
159 | * @generated | ||
160 | */ | ||
161 | private EClass assignmentEClass = null; | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | private EClass eventReferenceEClass = null; | ||
169 | |||
170 | /** | ||
171 | * <!-- begin-user-doc --> | ||
172 | * <!-- end-user-doc --> | ||
173 | * @generated | ||
174 | */ | ||
175 | private EClass componentInstanceEClass = null; | ||
176 | |||
177 | /** | ||
178 | * Creates an instance of the model <b>Package</b>, registered with | ||
179 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | ||
180 | * package URI value. | ||
181 | * <p>Note: the correct way to create the package is via the static | ||
182 | * factory method {@link #init init()}, which also performs | ||
183 | * initialization of the package, or returns the registered package, | ||
184 | * if one already exists. | ||
185 | * <!-- begin-user-doc --> | ||
186 | * <!-- end-user-doc --> | ||
187 | * @see org.eclipse.emf.ecore.EPackage.Registry | ||
188 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#eNS_URI | ||
189 | * @see #init() | ||
190 | * @generated | ||
191 | */ | ||
192 | private CftLanguagePackageImpl() | ||
193 | { | ||
194 | super(eNS_URI, CftLanguageFactory.eINSTANCE); | ||
195 | } | ||
196 | |||
197 | /** | ||
198 | * <!-- begin-user-doc --> | ||
199 | * <!-- end-user-doc --> | ||
200 | * @generated | ||
201 | */ | ||
202 | private static boolean isInited = false; | ||
203 | |||
204 | /** | ||
205 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | ||
206 | * | ||
207 | * <p>This method is used to initialize {@link CftLanguagePackage#eINSTANCE} when that field is accessed. | ||
208 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | ||
209 | * <!-- begin-user-doc --> | ||
210 | * <!-- end-user-doc --> | ||
211 | * @see #eNS_URI | ||
212 | * @see #createPackageContents() | ||
213 | * @see #initializePackageContents() | ||
214 | * @generated | ||
215 | */ | ||
216 | public static CftLanguagePackage init() | ||
217 | { | ||
218 | if (isInited) return (CftLanguagePackage)EPackage.Registry.INSTANCE.getEPackage(CftLanguagePackage.eNS_URI); | ||
219 | |||
220 | // Obtain or create and register package | ||
221 | Object registeredCftLanguagePackage = EPackage.Registry.INSTANCE.get(eNS_URI); | ||
222 | CftLanguagePackageImpl theCftLanguagePackage = registeredCftLanguagePackage instanceof CftLanguagePackageImpl ? (CftLanguagePackageImpl)registeredCftLanguagePackage : new CftLanguagePackageImpl(); | ||
223 | |||
224 | isInited = true; | ||
225 | |||
226 | // Initialize simple dependencies | ||
227 | EcorePackage.eINSTANCE.eClass(); | ||
228 | PatternLanguagePackage.eINSTANCE.eClass(); | ||
229 | XtypePackage.eINSTANCE.eClass(); | ||
230 | TypesPackage.eINSTANCE.eClass(); | ||
231 | XbasePackage.eINSTANCE.eClass(); | ||
232 | |||
233 | // Create package meta-data objects | ||
234 | theCftLanguagePackage.createPackageContents(); | ||
235 | |||
236 | // Initialize created meta-data | ||
237 | theCftLanguagePackage.initializePackageContents(); | ||
238 | |||
239 | // Mark meta-data to indicate it can't be changed | ||
240 | theCftLanguagePackage.freeze(); | ||
241 | |||
242 | // Update the registry and return the package | ||
243 | EPackage.Registry.INSTANCE.put(CftLanguagePackage.eNS_URI, theCftLanguagePackage); | ||
244 | return theCftLanguagePackage; | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * <!-- begin-user-doc --> | ||
249 | * <!-- end-user-doc --> | ||
250 | * @generated | ||
251 | */ | ||
252 | @Override | ||
253 | public EClass getCftModel() | ||
254 | { | ||
255 | return cftModelEClass; | ||
256 | } | ||
257 | |||
258 | /** | ||
259 | * <!-- begin-user-doc --> | ||
260 | * <!-- end-user-doc --> | ||
261 | * @generated | ||
262 | */ | ||
263 | @Override | ||
264 | public EAttribute getCftModel_PackageName() | ||
265 | { | ||
266 | return (EAttribute)cftModelEClass.getEStructuralFeatures().get(0); | ||
267 | } | ||
268 | |||
269 | /** | ||
270 | * <!-- begin-user-doc --> | ||
271 | * <!-- end-user-doc --> | ||
272 | * @generated | ||
273 | */ | ||
274 | @Override | ||
275 | public EReference getCftModel_Imports() | ||
276 | { | ||
277 | return (EReference)cftModelEClass.getEStructuralFeatures().get(1); | ||
278 | } | ||
279 | |||
280 | /** | ||
281 | * <!-- begin-user-doc --> | ||
282 | * <!-- end-user-doc --> | ||
283 | * @generated | ||
284 | */ | ||
285 | @Override | ||
286 | public EReference getCftModel_ComponentDefinitions() | ||
287 | { | ||
288 | return (EReference)cftModelEClass.getEStructuralFeatures().get(2); | ||
289 | } | ||
290 | |||
291 | /** | ||
292 | * <!-- begin-user-doc --> | ||
293 | * <!-- end-user-doc --> | ||
294 | * @generated | ||
295 | */ | ||
296 | @Override | ||
297 | public EReference getCftModel_TransformationDefinitions() | ||
298 | { | ||
299 | return (EReference)cftModelEClass.getEStructuralFeatures().get(3); | ||
300 | } | ||
301 | |||
302 | /** | ||
303 | * <!-- begin-user-doc --> | ||
304 | * <!-- end-user-doc --> | ||
305 | * @generated | ||
306 | */ | ||
307 | @Override | ||
308 | public EClass getImportDeclaration() | ||
309 | { | ||
310 | return importDeclarationEClass; | ||
311 | } | ||
312 | |||
313 | /** | ||
314 | * <!-- begin-user-doc --> | ||
315 | * <!-- end-user-doc --> | ||
316 | * @generated | ||
317 | */ | ||
318 | @Override | ||
319 | public EAttribute getImportDeclaration_ImportedNamespace() | ||
320 | { | ||
321 | return (EAttribute)importDeclarationEClass.getEStructuralFeatures().get(0); | ||
322 | } | ||
323 | |||
324 | /** | ||
325 | * <!-- begin-user-doc --> | ||
326 | * <!-- end-user-doc --> | ||
327 | * @generated | ||
328 | */ | ||
329 | @Override | ||
330 | public EClass getComponentDefinition() | ||
331 | { | ||
332 | return componentDefinitionEClass; | ||
333 | } | ||
334 | |||
335 | /** | ||
336 | * <!-- begin-user-doc --> | ||
337 | * <!-- end-user-doc --> | ||
338 | * @generated | ||
339 | */ | ||
340 | @Override | ||
341 | public EAttribute getComponentDefinition_Name() | ||
342 | { | ||
343 | return (EAttribute)componentDefinitionEClass.getEStructuralFeatures().get(0); | ||
344 | } | ||
345 | |||
346 | /** | ||
347 | * <!-- begin-user-doc --> | ||
348 | * <!-- end-user-doc --> | ||
349 | * @generated | ||
350 | */ | ||
351 | @Override | ||
352 | public EReference getComponentDefinition_InputEvents() | ||
353 | { | ||
354 | return (EReference)componentDefinitionEClass.getEStructuralFeatures().get(1); | ||
355 | } | ||
356 | |||
357 | /** | ||
358 | * <!-- begin-user-doc --> | ||
359 | * <!-- end-user-doc --> | ||
360 | * @generated | ||
361 | */ | ||
362 | @Override | ||
363 | public EReference getComponentDefinition_OutputEvents() | ||
364 | { | ||
365 | return (EReference)componentDefinitionEClass.getEStructuralFeatures().get(2); | ||
366 | } | ||
367 | |||
368 | /** | ||
369 | * <!-- begin-user-doc --> | ||
370 | * <!-- end-user-doc --> | ||
371 | * @generated | ||
372 | */ | ||
373 | @Override | ||
374 | public EReference getComponentDefinition_EventDefinitions() | ||
375 | { | ||
376 | return (EReference)componentDefinitionEClass.getEStructuralFeatures().get(3); | ||
377 | } | ||
378 | |||
379 | /** | ||
380 | * <!-- begin-user-doc --> | ||
381 | * <!-- end-user-doc --> | ||
382 | * @generated | ||
383 | */ | ||
384 | @Override | ||
385 | public EClass getEventDeclaration() | ||
386 | { | ||
387 | return eventDeclarationEClass; | ||
388 | } | ||
389 | |||
390 | /** | ||
391 | * <!-- begin-user-doc --> | ||
392 | * <!-- end-user-doc --> | ||
393 | * @generated | ||
394 | */ | ||
395 | @Override | ||
396 | public EAttribute getEventDeclaration_Name() | ||
397 | { | ||
398 | return (EAttribute)eventDeclarationEClass.getEStructuralFeatures().get(0); | ||
399 | } | ||
400 | |||
401 | /** | ||
402 | * <!-- begin-user-doc --> | ||
403 | * <!-- end-user-doc --> | ||
404 | * @generated | ||
405 | */ | ||
406 | @Override | ||
407 | public EClass getInputEvent() | ||
408 | { | ||
409 | return inputEventEClass; | ||
410 | } | ||
411 | |||
412 | /** | ||
413 | * <!-- begin-user-doc --> | ||
414 | * <!-- end-user-doc --> | ||
415 | * @generated | ||
416 | */ | ||
417 | @Override | ||
418 | public EAttribute getInputEvent_Multiple() | ||
419 | { | ||
420 | return (EAttribute)inputEventEClass.getEStructuralFeatures().get(0); | ||
421 | } | ||
422 | |||
423 | /** | ||
424 | * <!-- begin-user-doc --> | ||
425 | * <!-- end-user-doc --> | ||
426 | * @generated | ||
427 | */ | ||
428 | @Override | ||
429 | public EClass getEventDefinition() | ||
430 | { | ||
431 | return eventDefinitionEClass; | ||
432 | } | ||
433 | |||
434 | /** | ||
435 | * <!-- begin-user-doc --> | ||
436 | * <!-- end-user-doc --> | ||
437 | * @generated | ||
438 | */ | ||
439 | @Override | ||
440 | public EClass getBasicEventDefinition() | ||
441 | { | ||
442 | return basicEventDefinitionEClass; | ||
443 | } | ||
444 | |||
445 | /** | ||
446 | * <!-- begin-user-doc --> | ||
447 | * <!-- end-user-doc --> | ||
448 | * @generated | ||
449 | */ | ||
450 | @Override | ||
451 | public EAttribute getBasicEventDefinition_Rate() | ||
452 | { | ||
453 | return (EAttribute)basicEventDefinitionEClass.getEStructuralFeatures().get(0); | ||
454 | } | ||
455 | |||
456 | /** | ||
457 | * <!-- begin-user-doc --> | ||
458 | * <!-- end-user-doc --> | ||
459 | * @generated | ||
460 | */ | ||
461 | @Override | ||
462 | public EClass getGateDefinition() | ||
463 | { | ||
464 | return gateDefinitionEClass; | ||
465 | } | ||
466 | |||
467 | /** | ||
468 | * <!-- begin-user-doc --> | ||
469 | * <!-- end-user-doc --> | ||
470 | * @generated | ||
471 | */ | ||
472 | @Override | ||
473 | public EReference getGateDefinition_InputEvents() | ||
474 | { | ||
475 | return (EReference)gateDefinitionEClass.getEStructuralFeatures().get(0); | ||
476 | } | ||
477 | |||
478 | /** | ||
479 | * <!-- begin-user-doc --> | ||
480 | * <!-- end-user-doc --> | ||
481 | * @generated | ||
482 | */ | ||
483 | @Override | ||
484 | public EClass getAndGate() | ||
485 | { | ||
486 | return andGateEClass; | ||
487 | } | ||
488 | |||
489 | /** | ||
490 | * <!-- begin-user-doc --> | ||
491 | * <!-- end-user-doc --> | ||
492 | * @generated | ||
493 | */ | ||
494 | @Override | ||
495 | public EClass getOrGate() | ||
496 | { | ||
497 | return orGateEClass; | ||
498 | } | ||
499 | |||
500 | /** | ||
501 | * <!-- begin-user-doc --> | ||
502 | * <!-- end-user-doc --> | ||
503 | * @generated | ||
504 | */ | ||
505 | @Override | ||
506 | public EClass getTransformationDefinition() | ||
507 | { | ||
508 | return transformationDefinitionEClass; | ||
509 | } | ||
510 | |||
511 | /** | ||
512 | * <!-- begin-user-doc --> | ||
513 | * <!-- end-user-doc --> | ||
514 | * @generated | ||
515 | */ | ||
516 | @Override | ||
517 | public EAttribute getTransformationDefinition_Name() | ||
518 | { | ||
519 | return (EAttribute)transformationDefinitionEClass.getEStructuralFeatures().get(0); | ||
520 | } | ||
521 | |||
522 | /** | ||
523 | * <!-- begin-user-doc --> | ||
524 | * <!-- end-user-doc --> | ||
525 | * @generated | ||
526 | */ | ||
527 | @Override | ||
528 | public EReference getTransformationDefinition_MappingDefinitions() | ||
529 | { | ||
530 | return (EReference)transformationDefinitionEClass.getEStructuralFeatures().get(1); | ||
531 | } | ||
532 | |||
533 | /** | ||
534 | * <!-- begin-user-doc --> | ||
535 | * <!-- end-user-doc --> | ||
536 | * @generated | ||
537 | */ | ||
538 | @Override | ||
539 | public EClass getMappingDefinition() | ||
540 | { | ||
541 | return mappingDefinitionEClass; | ||
542 | } | ||
543 | |||
544 | /** | ||
545 | * <!-- begin-user-doc --> | ||
546 | * <!-- end-user-doc --> | ||
547 | * @generated | ||
548 | */ | ||
549 | @Override | ||
550 | public EAttribute getMappingDefinition_TopLevel() | ||
551 | { | ||
552 | return (EAttribute)mappingDefinitionEClass.getEStructuralFeatures().get(0); | ||
553 | } | ||
554 | |||
555 | /** | ||
556 | * <!-- begin-user-doc --> | ||
557 | * <!-- end-user-doc --> | ||
558 | * @generated | ||
559 | */ | ||
560 | @Override | ||
561 | public EReference getMappingDefinition_Pattern() | ||
562 | { | ||
563 | return (EReference)mappingDefinitionEClass.getEStructuralFeatures().get(1); | ||
564 | } | ||
565 | |||
566 | /** | ||
567 | * <!-- begin-user-doc --> | ||
568 | * <!-- end-user-doc --> | ||
569 | * @generated | ||
570 | */ | ||
571 | @Override | ||
572 | public EReference getMappingDefinition_Parameters() | ||
573 | { | ||
574 | return (EReference)mappingDefinitionEClass.getEStructuralFeatures().get(2); | ||
575 | } | ||
576 | |||
577 | /** | ||
578 | * <!-- begin-user-doc --> | ||
579 | * <!-- end-user-doc --> | ||
580 | * @generated | ||
581 | */ | ||
582 | @Override | ||
583 | public EReference getMappingDefinition_ComponentInstance() | ||
584 | { | ||
585 | return (EReference)mappingDefinitionEClass.getEStructuralFeatures().get(3); | ||
586 | } | ||
587 | |||
588 | /** | ||
589 | * <!-- begin-user-doc --> | ||
590 | * <!-- end-user-doc --> | ||
591 | * @generated | ||
592 | */ | ||
593 | @Override | ||
594 | public EReference getMappingDefinition_LookupDefinitions() | ||
595 | { | ||
596 | return (EReference)mappingDefinitionEClass.getEStructuralFeatures().get(4); | ||
597 | } | ||
598 | |||
599 | /** | ||
600 | * <!-- begin-user-doc --> | ||
601 | * <!-- end-user-doc --> | ||
602 | * @generated | ||
603 | */ | ||
604 | @Override | ||
605 | public EReference getMappingDefinition_Assignments() | ||
606 | { | ||
607 | return (EReference)mappingDefinitionEClass.getEStructuralFeatures().get(5); | ||
608 | } | ||
609 | |||
610 | /** | ||
611 | * <!-- begin-user-doc --> | ||
612 | * <!-- end-user-doc --> | ||
613 | * @generated | ||
614 | */ | ||
615 | @Override | ||
616 | public EClass getMappingParameter() | ||
617 | { | ||
618 | return mappingParameterEClass; | ||
619 | } | ||
620 | |||
621 | /** | ||
622 | * <!-- begin-user-doc --> | ||
623 | * <!-- end-user-doc --> | ||
624 | * @generated | ||
625 | */ | ||
626 | @Override | ||
627 | public EAttribute getMappingParameter_Name() | ||
628 | { | ||
629 | return (EAttribute)mappingParameterEClass.getEStructuralFeatures().get(0); | ||
630 | } | ||
631 | |||
632 | /** | ||
633 | * <!-- begin-user-doc --> | ||
634 | * <!-- end-user-doc --> | ||
635 | * @generated | ||
636 | */ | ||
637 | @Override | ||
638 | public EClass getLookupDefinition() | ||
639 | { | ||
640 | return lookupDefinitionEClass; | ||
641 | } | ||
642 | |||
643 | /** | ||
644 | * <!-- begin-user-doc --> | ||
645 | * <!-- end-user-doc --> | ||
646 | * @generated | ||
647 | */ | ||
648 | @Override | ||
649 | public EReference getLookupDefinition_Mapping() | ||
650 | { | ||
651 | return (EReference)lookupDefinitionEClass.getEStructuralFeatures().get(0); | ||
652 | } | ||
653 | |||
654 | /** | ||
655 | * <!-- begin-user-doc --> | ||
656 | * <!-- end-user-doc --> | ||
657 | * @generated | ||
658 | */ | ||
659 | @Override | ||
660 | public EReference getLookupDefinition_Arguments() | ||
661 | { | ||
662 | return (EReference)lookupDefinitionEClass.getEStructuralFeatures().get(1); | ||
663 | } | ||
664 | |||
665 | /** | ||
666 | * <!-- begin-user-doc --> | ||
667 | * <!-- end-user-doc --> | ||
668 | * @generated | ||
669 | */ | ||
670 | @Override | ||
671 | public EClass getVariable() | ||
672 | { | ||
673 | return variableEClass; | ||
674 | } | ||
675 | |||
676 | /** | ||
677 | * <!-- begin-user-doc --> | ||
678 | * <!-- end-user-doc --> | ||
679 | * @generated | ||
680 | */ | ||
681 | @Override | ||
682 | public EAttribute getVariable_Name() | ||
683 | { | ||
684 | return (EAttribute)variableEClass.getEStructuralFeatures().get(0); | ||
685 | } | ||
686 | |||
687 | /** | ||
688 | * <!-- begin-user-doc --> | ||
689 | * <!-- end-user-doc --> | ||
690 | * @generated | ||
691 | */ | ||
692 | @Override | ||
693 | public EClass getAssignment() | ||
694 | { | ||
695 | return assignmentEClass; | ||
696 | } | ||
697 | |||
698 | /** | ||
699 | * <!-- begin-user-doc --> | ||
700 | * <!-- end-user-doc --> | ||
701 | * @generated | ||
702 | */ | ||
703 | @Override | ||
704 | public EReference getAssignment_Input() | ||
705 | { | ||
706 | return (EReference)assignmentEClass.getEStructuralFeatures().get(0); | ||
707 | } | ||
708 | |||
709 | /** | ||
710 | * <!-- begin-user-doc --> | ||
711 | * <!-- end-user-doc --> | ||
712 | * @generated | ||
713 | */ | ||
714 | @Override | ||
715 | public EAttribute getAssignment_Multiple() | ||
716 | { | ||
717 | return (EAttribute)assignmentEClass.getEStructuralFeatures().get(1); | ||
718 | } | ||
719 | |||
720 | /** | ||
721 | * <!-- begin-user-doc --> | ||
722 | * <!-- end-user-doc --> | ||
723 | * @generated | ||
724 | */ | ||
725 | @Override | ||
726 | public EReference getAssignment_Output() | ||
727 | { | ||
728 | return (EReference)assignmentEClass.getEStructuralFeatures().get(2); | ||
729 | } | ||
730 | |||
731 | /** | ||
732 | * <!-- begin-user-doc --> | ||
733 | * <!-- end-user-doc --> | ||
734 | * @generated | ||
735 | */ | ||
736 | @Override | ||
737 | public EClass getEventReference() | ||
738 | { | ||
739 | return eventReferenceEClass; | ||
740 | } | ||
741 | |||
742 | /** | ||
743 | * <!-- begin-user-doc --> | ||
744 | * <!-- end-user-doc --> | ||
745 | * @generated | ||
746 | */ | ||
747 | @Override | ||
748 | public EReference getEventReference_Component() | ||
749 | { | ||
750 | return (EReference)eventReferenceEClass.getEStructuralFeatures().get(0); | ||
751 | } | ||
752 | |||
753 | /** | ||
754 | * <!-- begin-user-doc --> | ||
755 | * <!-- end-user-doc --> | ||
756 | * @generated | ||
757 | */ | ||
758 | @Override | ||
759 | public EReference getEventReference_Event() | ||
760 | { | ||
761 | return (EReference)eventReferenceEClass.getEStructuralFeatures().get(1); | ||
762 | } | ||
763 | |||
764 | /** | ||
765 | * <!-- begin-user-doc --> | ||
766 | * <!-- end-user-doc --> | ||
767 | * @generated | ||
768 | */ | ||
769 | @Override | ||
770 | public EClass getComponentInstance() | ||
771 | { | ||
772 | return componentInstanceEClass; | ||
773 | } | ||
774 | |||
775 | /** | ||
776 | * <!-- begin-user-doc --> | ||
777 | * <!-- end-user-doc --> | ||
778 | * @generated | ||
779 | */ | ||
780 | @Override | ||
781 | public EReference getComponentInstance_ComponentType() | ||
782 | { | ||
783 | return (EReference)componentInstanceEClass.getEStructuralFeatures().get(0); | ||
784 | } | ||
785 | |||
786 | /** | ||
787 | * <!-- begin-user-doc --> | ||
788 | * <!-- end-user-doc --> | ||
789 | * @generated | ||
790 | */ | ||
791 | @Override | ||
792 | public CftLanguageFactory getCftLanguageFactory() | ||
793 | { | ||
794 | return (CftLanguageFactory)getEFactoryInstance(); | ||
795 | } | ||
796 | |||
797 | /** | ||
798 | * <!-- begin-user-doc --> | ||
799 | * <!-- end-user-doc --> | ||
800 | * @generated | ||
801 | */ | ||
802 | private boolean isCreated = false; | ||
803 | |||
804 | /** | ||
805 | * Creates the meta-model objects for the package. This method is | ||
806 | * guarded to have no affect on any invocation but its first. | ||
807 | * <!-- begin-user-doc --> | ||
808 | * <!-- end-user-doc --> | ||
809 | * @generated | ||
810 | */ | ||
811 | public void createPackageContents() | ||
812 | { | ||
813 | if (isCreated) return; | ||
814 | isCreated = true; | ||
815 | |||
816 | // Create classes and their features | ||
817 | cftModelEClass = createEClass(CFT_MODEL); | ||
818 | createEAttribute(cftModelEClass, CFT_MODEL__PACKAGE_NAME); | ||
819 | createEReference(cftModelEClass, CFT_MODEL__IMPORTS); | ||
820 | createEReference(cftModelEClass, CFT_MODEL__COMPONENT_DEFINITIONS); | ||
821 | createEReference(cftModelEClass, CFT_MODEL__TRANSFORMATION_DEFINITIONS); | ||
822 | |||
823 | importDeclarationEClass = createEClass(IMPORT_DECLARATION); | ||
824 | createEAttribute(importDeclarationEClass, IMPORT_DECLARATION__IMPORTED_NAMESPACE); | ||
825 | |||
826 | componentDefinitionEClass = createEClass(COMPONENT_DEFINITION); | ||
827 | createEAttribute(componentDefinitionEClass, COMPONENT_DEFINITION__NAME); | ||
828 | createEReference(componentDefinitionEClass, COMPONENT_DEFINITION__INPUT_EVENTS); | ||
829 | createEReference(componentDefinitionEClass, COMPONENT_DEFINITION__OUTPUT_EVENTS); | ||
830 | createEReference(componentDefinitionEClass, COMPONENT_DEFINITION__EVENT_DEFINITIONS); | ||
831 | |||
832 | eventDeclarationEClass = createEClass(EVENT_DECLARATION); | ||
833 | createEAttribute(eventDeclarationEClass, EVENT_DECLARATION__NAME); | ||
834 | |||
835 | inputEventEClass = createEClass(INPUT_EVENT); | ||
836 | createEAttribute(inputEventEClass, INPUT_EVENT__MULTIPLE); | ||
837 | |||
838 | eventDefinitionEClass = createEClass(EVENT_DEFINITION); | ||
839 | |||
840 | basicEventDefinitionEClass = createEClass(BASIC_EVENT_DEFINITION); | ||
841 | createEAttribute(basicEventDefinitionEClass, BASIC_EVENT_DEFINITION__RATE); | ||
842 | |||
843 | gateDefinitionEClass = createEClass(GATE_DEFINITION); | ||
844 | createEReference(gateDefinitionEClass, GATE_DEFINITION__INPUT_EVENTS); | ||
845 | |||
846 | andGateEClass = createEClass(AND_GATE); | ||
847 | |||
848 | orGateEClass = createEClass(OR_GATE); | ||
849 | |||
850 | transformationDefinitionEClass = createEClass(TRANSFORMATION_DEFINITION); | ||
851 | createEAttribute(transformationDefinitionEClass, TRANSFORMATION_DEFINITION__NAME); | ||
852 | createEReference(transformationDefinitionEClass, TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS); | ||
853 | |||
854 | mappingDefinitionEClass = createEClass(MAPPING_DEFINITION); | ||
855 | createEAttribute(mappingDefinitionEClass, MAPPING_DEFINITION__TOP_LEVEL); | ||
856 | createEReference(mappingDefinitionEClass, MAPPING_DEFINITION__PATTERN); | ||
857 | createEReference(mappingDefinitionEClass, MAPPING_DEFINITION__PARAMETERS); | ||
858 | createEReference(mappingDefinitionEClass, MAPPING_DEFINITION__COMPONENT_INSTANCE); | ||
859 | createEReference(mappingDefinitionEClass, MAPPING_DEFINITION__LOOKUP_DEFINITIONS); | ||
860 | createEReference(mappingDefinitionEClass, MAPPING_DEFINITION__ASSIGNMENTS); | ||
861 | |||
862 | mappingParameterEClass = createEClass(MAPPING_PARAMETER); | ||
863 | createEAttribute(mappingParameterEClass, MAPPING_PARAMETER__NAME); | ||
864 | |||
865 | lookupDefinitionEClass = createEClass(LOOKUP_DEFINITION); | ||
866 | createEReference(lookupDefinitionEClass, LOOKUP_DEFINITION__MAPPING); | ||
867 | createEReference(lookupDefinitionEClass, LOOKUP_DEFINITION__ARGUMENTS); | ||
868 | |||
869 | variableEClass = createEClass(VARIABLE); | ||
870 | createEAttribute(variableEClass, VARIABLE__NAME); | ||
871 | |||
872 | assignmentEClass = createEClass(ASSIGNMENT); | ||
873 | createEReference(assignmentEClass, ASSIGNMENT__INPUT); | ||
874 | createEAttribute(assignmentEClass, ASSIGNMENT__MULTIPLE); | ||
875 | createEReference(assignmentEClass, ASSIGNMENT__OUTPUT); | ||
876 | |||
877 | eventReferenceEClass = createEClass(EVENT_REFERENCE); | ||
878 | createEReference(eventReferenceEClass, EVENT_REFERENCE__COMPONENT); | ||
879 | createEReference(eventReferenceEClass, EVENT_REFERENCE__EVENT); | ||
880 | |||
881 | componentInstanceEClass = createEClass(COMPONENT_INSTANCE); | ||
882 | createEReference(componentInstanceEClass, COMPONENT_INSTANCE__COMPONENT_TYPE); | ||
883 | } | ||
884 | |||
885 | /** | ||
886 | * <!-- begin-user-doc --> | ||
887 | * <!-- end-user-doc --> | ||
888 | * @generated | ||
889 | */ | ||
890 | private boolean isInitialized = false; | ||
891 | |||
892 | /** | ||
893 | * Complete the initialization of the package and its meta-model. This | ||
894 | * method is guarded to have no affect on any invocation but its first. | ||
895 | * <!-- begin-user-doc --> | ||
896 | * <!-- end-user-doc --> | ||
897 | * @generated | ||
898 | */ | ||
899 | public void initializePackageContents() | ||
900 | { | ||
901 | if (isInitialized) return; | ||
902 | isInitialized = true; | ||
903 | |||
904 | // Initialize package | ||
905 | setName(eNAME); | ||
906 | setNsPrefix(eNS_PREFIX); | ||
907 | setNsURI(eNS_URI); | ||
908 | |||
909 | // Obtain other dependent packages | ||
910 | EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); | ||
911 | PatternLanguagePackage thePatternLanguagePackage = (PatternLanguagePackage)EPackage.Registry.INSTANCE.getEPackage(PatternLanguagePackage.eNS_URI); | ||
912 | |||
913 | // Create type parameters | ||
914 | |||
915 | // Set bounds for type parameters | ||
916 | |||
917 | // Add supertypes to classes | ||
918 | inputEventEClass.getESuperTypes().add(this.getEventDeclaration()); | ||
919 | eventDefinitionEClass.getESuperTypes().add(this.getEventDeclaration()); | ||
920 | basicEventDefinitionEClass.getESuperTypes().add(this.getEventDefinition()); | ||
921 | gateDefinitionEClass.getESuperTypes().add(this.getEventDefinition()); | ||
922 | andGateEClass.getESuperTypes().add(this.getGateDefinition()); | ||
923 | orGateEClass.getESuperTypes().add(this.getGateDefinition()); | ||
924 | lookupDefinitionEClass.getESuperTypes().add(this.getVariable()); | ||
925 | componentInstanceEClass.getESuperTypes().add(this.getVariable()); | ||
926 | |||
927 | // Initialize classes and features; add operations and parameters | ||
928 | initEClass(cftModelEClass, CftModel.class, "CftModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
929 | initEAttribute(getCftModel_PackageName(), theEcorePackage.getEString(), "packageName", null, 0, 1, CftModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
930 | initEReference(getCftModel_Imports(), this.getImportDeclaration(), null, "imports", null, 0, -1, CftModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
931 | initEReference(getCftModel_ComponentDefinitions(), this.getComponentDefinition(), null, "componentDefinitions", null, 0, -1, CftModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
932 | initEReference(getCftModel_TransformationDefinitions(), this.getTransformationDefinition(), null, "transformationDefinitions", null, 0, -1, CftModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
933 | |||
934 | initEClass(importDeclarationEClass, ImportDeclaration.class, "ImportDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
935 | initEAttribute(getImportDeclaration_ImportedNamespace(), theEcorePackage.getEString(), "importedNamespace", null, 0, 1, ImportDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
936 | |||
937 | initEClass(componentDefinitionEClass, ComponentDefinition.class, "ComponentDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
938 | initEAttribute(getComponentDefinition_Name(), theEcorePackage.getEString(), "name", null, 0, 1, ComponentDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
939 | initEReference(getComponentDefinition_InputEvents(), this.getInputEvent(), null, "inputEvents", null, 0, -1, ComponentDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
940 | initEReference(getComponentDefinition_OutputEvents(), this.getEventDeclaration(), null, "outputEvents", null, 0, -1, ComponentDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
941 | initEReference(getComponentDefinition_EventDefinitions(), this.getEventDefinition(), null, "eventDefinitions", null, 0, -1, ComponentDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
942 | |||
943 | initEClass(eventDeclarationEClass, EventDeclaration.class, "EventDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
944 | initEAttribute(getEventDeclaration_Name(), theEcorePackage.getEString(), "name", null, 0, 1, EventDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
945 | |||
946 | initEClass(inputEventEClass, InputEvent.class, "InputEvent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
947 | initEAttribute(getInputEvent_Multiple(), theEcorePackage.getEBoolean(), "multiple", null, 0, 1, InputEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
948 | |||
949 | initEClass(eventDefinitionEClass, EventDefinition.class, "EventDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
950 | |||
951 | initEClass(basicEventDefinitionEClass, BasicEventDefinition.class, "BasicEventDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
952 | initEAttribute(getBasicEventDefinition_Rate(), theEcorePackage.getEDouble(), "rate", null, 0, 1, BasicEventDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
953 | |||
954 | initEClass(gateDefinitionEClass, GateDefinition.class, "GateDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
955 | initEReference(getGateDefinition_InputEvents(), this.getEventDeclaration(), null, "inputEvents", null, 0, -1, GateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
956 | |||
957 | initEClass(andGateEClass, AndGate.class, "AndGate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
958 | |||
959 | initEClass(orGateEClass, OrGate.class, "OrGate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
960 | |||
961 | initEClass(transformationDefinitionEClass, TransformationDefinition.class, "TransformationDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
962 | initEAttribute(getTransformationDefinition_Name(), theEcorePackage.getEString(), "name", null, 0, 1, TransformationDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
963 | initEReference(getTransformationDefinition_MappingDefinitions(), this.getMappingDefinition(), null, "mappingDefinitions", null, 0, -1, TransformationDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
964 | |||
965 | initEClass(mappingDefinitionEClass, MappingDefinition.class, "MappingDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
966 | initEAttribute(getMappingDefinition_TopLevel(), theEcorePackage.getEBoolean(), "topLevel", null, 0, 1, MappingDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
967 | initEReference(getMappingDefinition_Pattern(), thePatternLanguagePackage.getPattern(), null, "pattern", null, 0, 1, MappingDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
968 | initEReference(getMappingDefinition_Parameters(), this.getMappingParameter(), null, "parameters", null, 0, -1, MappingDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
969 | initEReference(getMappingDefinition_ComponentInstance(), this.getComponentInstance(), null, "componentInstance", null, 0, 1, MappingDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
970 | initEReference(getMappingDefinition_LookupDefinitions(), this.getLookupDefinition(), null, "lookupDefinitions", null, 0, -1, MappingDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
971 | initEReference(getMappingDefinition_Assignments(), this.getAssignment(), null, "assignments", null, 0, -1, MappingDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
972 | |||
973 | initEClass(mappingParameterEClass, MappingParameter.class, "MappingParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
974 | initEAttribute(getMappingParameter_Name(), theEcorePackage.getEString(), "name", null, 0, 1, MappingParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
975 | |||
976 | initEClass(lookupDefinitionEClass, LookupDefinition.class, "LookupDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
977 | initEReference(getLookupDefinition_Mapping(), this.getMappingDefinition(), null, "mapping", null, 0, 1, LookupDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
978 | initEReference(getLookupDefinition_Arguments(), this.getMappingParameter(), null, "arguments", null, 0, -1, LookupDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
979 | |||
980 | initEClass(variableEClass, Variable.class, "Variable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
981 | initEAttribute(getVariable_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Variable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
982 | |||
983 | initEClass(assignmentEClass, Assignment.class, "Assignment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
984 | initEReference(getAssignment_Input(), this.getEventReference(), null, "input", null, 0, 1, Assignment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
985 | initEAttribute(getAssignment_Multiple(), theEcorePackage.getEBoolean(), "multiple", null, 0, 1, Assignment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
986 | initEReference(getAssignment_Output(), this.getEventReference(), null, "output", null, 0, 1, Assignment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
987 | |||
988 | initEClass(eventReferenceEClass, EventReference.class, "EventReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
989 | initEReference(getEventReference_Component(), this.getVariable(), null, "component", null, 0, 1, EventReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
990 | initEReference(getEventReference_Event(), this.getEventDeclaration(), null, "event", null, 0, 1, EventReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
991 | |||
992 | initEClass(componentInstanceEClass, ComponentInstance.class, "ComponentInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
993 | initEReference(getComponentInstance_ComponentType(), this.getComponentDefinition(), null, "componentType", null, 0, 1, ComponentInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
994 | |||
995 | // Create resource | ||
996 | createResource(eNS_URI); | ||
997 | } | ||
998 | |||
999 | } //CftLanguagePackageImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftModelImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftModelImpl.java new file mode 100644 index 00000000..b51f54ab --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftModelImpl.java | |||
@@ -0,0 +1,324 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition; | ||
11 | |||
12 | import java.util.Collection; | ||
13 | |||
14 | import org.eclipse.emf.common.notify.Notification; | ||
15 | import org.eclipse.emf.common.notify.NotificationChain; | ||
16 | |||
17 | import org.eclipse.emf.common.util.EList; | ||
18 | |||
19 | import org.eclipse.emf.ecore.EClass; | ||
20 | import org.eclipse.emf.ecore.InternalEObject; | ||
21 | |||
22 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
23 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
24 | |||
25 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
26 | import org.eclipse.emf.ecore.util.InternalEList; | ||
27 | |||
28 | /** | ||
29 | * <!-- begin-user-doc --> | ||
30 | * An implementation of the model object '<em><b>Cft Model</b></em>'. | ||
31 | * <!-- end-user-doc --> | ||
32 | * <p> | ||
33 | * The following features are implemented: | ||
34 | * </p> | ||
35 | * <ul> | ||
36 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl#getPackageName <em>Package Name</em>}</li> | ||
37 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl#getImports <em>Imports</em>}</li> | ||
38 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl#getComponentDefinitions <em>Component Definitions</em>}</li> | ||
39 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl#getTransformationDefinitions <em>Transformation Definitions</em>}</li> | ||
40 | * </ul> | ||
41 | * | ||
42 | * @generated | ||
43 | */ | ||
44 | public class CftModelImpl extends MinimalEObjectImpl.Container implements CftModel | ||
45 | { | ||
46 | /** | ||
47 | * The default value of the '{@link #getPackageName() <em>Package Name</em>}' attribute. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @see #getPackageName() | ||
51 | * @generated | ||
52 | * @ordered | ||
53 | */ | ||
54 | protected static final String PACKAGE_NAME_EDEFAULT = null; | ||
55 | |||
56 | /** | ||
57 | * The cached value of the '{@link #getPackageName() <em>Package Name</em>}' attribute. | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @see #getPackageName() | ||
61 | * @generated | ||
62 | * @ordered | ||
63 | */ | ||
64 | protected String packageName = PACKAGE_NAME_EDEFAULT; | ||
65 | |||
66 | /** | ||
67 | * The cached value of the '{@link #getImports() <em>Imports</em>}' containment reference list. | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @see #getImports() | ||
71 | * @generated | ||
72 | * @ordered | ||
73 | */ | ||
74 | protected EList<ImportDeclaration> imports; | ||
75 | |||
76 | /** | ||
77 | * The cached value of the '{@link #getComponentDefinitions() <em>Component Definitions</em>}' containment reference list. | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @see #getComponentDefinitions() | ||
81 | * @generated | ||
82 | * @ordered | ||
83 | */ | ||
84 | protected EList<ComponentDefinition> componentDefinitions; | ||
85 | |||
86 | /** | ||
87 | * The cached value of the '{@link #getTransformationDefinitions() <em>Transformation Definitions</em>}' containment reference list. | ||
88 | * <!-- begin-user-doc --> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @see #getTransformationDefinitions() | ||
91 | * @generated | ||
92 | * @ordered | ||
93 | */ | ||
94 | protected EList<TransformationDefinition> transformationDefinitions; | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | protected CftModelImpl() | ||
102 | { | ||
103 | super(); | ||
104 | } | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | @Override | ||
112 | protected EClass eStaticClass() | ||
113 | { | ||
114 | return CftLanguagePackage.Literals.CFT_MODEL; | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | @Override | ||
123 | public String getPackageName() | ||
124 | { | ||
125 | return packageName; | ||
126 | } | ||
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | @Override | ||
134 | public void setPackageName(String newPackageName) | ||
135 | { | ||
136 | String oldPackageName = packageName; | ||
137 | packageName = newPackageName; | ||
138 | if (eNotificationRequired()) | ||
139 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.CFT_MODEL__PACKAGE_NAME, oldPackageName, packageName)); | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | @Override | ||
148 | public EList<ImportDeclaration> getImports() | ||
149 | { | ||
150 | if (imports == null) | ||
151 | { | ||
152 | imports = new EObjectContainmentEList<ImportDeclaration>(ImportDeclaration.class, this, CftLanguagePackage.CFT_MODEL__IMPORTS); | ||
153 | } | ||
154 | return imports; | ||
155 | } | ||
156 | |||
157 | /** | ||
158 | * <!-- begin-user-doc --> | ||
159 | * <!-- end-user-doc --> | ||
160 | * @generated | ||
161 | */ | ||
162 | @Override | ||
163 | public EList<ComponentDefinition> getComponentDefinitions() | ||
164 | { | ||
165 | if (componentDefinitions == null) | ||
166 | { | ||
167 | componentDefinitions = new EObjectContainmentEList<ComponentDefinition>(ComponentDefinition.class, this, CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS); | ||
168 | } | ||
169 | return componentDefinitions; | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | */ | ||
177 | @Override | ||
178 | public EList<TransformationDefinition> getTransformationDefinitions() | ||
179 | { | ||
180 | if (transformationDefinitions == null) | ||
181 | { | ||
182 | transformationDefinitions = new EObjectContainmentEList<TransformationDefinition>(TransformationDefinition.class, this, CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS); | ||
183 | } | ||
184 | return transformationDefinitions; | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * <!-- begin-user-doc --> | ||
189 | * <!-- end-user-doc --> | ||
190 | * @generated | ||
191 | */ | ||
192 | @Override | ||
193 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
194 | { | ||
195 | switch (featureID) | ||
196 | { | ||
197 | case CftLanguagePackage.CFT_MODEL__IMPORTS: | ||
198 | return ((InternalEList<?>)getImports()).basicRemove(otherEnd, msgs); | ||
199 | case CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS: | ||
200 | return ((InternalEList<?>)getComponentDefinitions()).basicRemove(otherEnd, msgs); | ||
201 | case CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS: | ||
202 | return ((InternalEList<?>)getTransformationDefinitions()).basicRemove(otherEnd, msgs); | ||
203 | } | ||
204 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @Override | ||
213 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
214 | { | ||
215 | switch (featureID) | ||
216 | { | ||
217 | case CftLanguagePackage.CFT_MODEL__PACKAGE_NAME: | ||
218 | return getPackageName(); | ||
219 | case CftLanguagePackage.CFT_MODEL__IMPORTS: | ||
220 | return getImports(); | ||
221 | case CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS: | ||
222 | return getComponentDefinitions(); | ||
223 | case CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS: | ||
224 | return getTransformationDefinitions(); | ||
225 | } | ||
226 | return super.eGet(featureID, resolve, coreType); | ||
227 | } | ||
228 | |||
229 | /** | ||
230 | * <!-- begin-user-doc --> | ||
231 | * <!-- end-user-doc --> | ||
232 | * @generated | ||
233 | */ | ||
234 | @SuppressWarnings("unchecked") | ||
235 | @Override | ||
236 | public void eSet(int featureID, Object newValue) | ||
237 | { | ||
238 | switch (featureID) | ||
239 | { | ||
240 | case CftLanguagePackage.CFT_MODEL__PACKAGE_NAME: | ||
241 | setPackageName((String)newValue); | ||
242 | return; | ||
243 | case CftLanguagePackage.CFT_MODEL__IMPORTS: | ||
244 | getImports().clear(); | ||
245 | getImports().addAll((Collection<? extends ImportDeclaration>)newValue); | ||
246 | return; | ||
247 | case CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS: | ||
248 | getComponentDefinitions().clear(); | ||
249 | getComponentDefinitions().addAll((Collection<? extends ComponentDefinition>)newValue); | ||
250 | return; | ||
251 | case CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS: | ||
252 | getTransformationDefinitions().clear(); | ||
253 | getTransformationDefinitions().addAll((Collection<? extends TransformationDefinition>)newValue); | ||
254 | return; | ||
255 | } | ||
256 | super.eSet(featureID, newValue); | ||
257 | } | ||
258 | |||
259 | /** | ||
260 | * <!-- begin-user-doc --> | ||
261 | * <!-- end-user-doc --> | ||
262 | * @generated | ||
263 | */ | ||
264 | @Override | ||
265 | public void eUnset(int featureID) | ||
266 | { | ||
267 | switch (featureID) | ||
268 | { | ||
269 | case CftLanguagePackage.CFT_MODEL__PACKAGE_NAME: | ||
270 | setPackageName(PACKAGE_NAME_EDEFAULT); | ||
271 | return; | ||
272 | case CftLanguagePackage.CFT_MODEL__IMPORTS: | ||
273 | getImports().clear(); | ||
274 | return; | ||
275 | case CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS: | ||
276 | getComponentDefinitions().clear(); | ||
277 | return; | ||
278 | case CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS: | ||
279 | getTransformationDefinitions().clear(); | ||
280 | return; | ||
281 | } | ||
282 | super.eUnset(featureID); | ||
283 | } | ||
284 | |||
285 | /** | ||
286 | * <!-- begin-user-doc --> | ||
287 | * <!-- end-user-doc --> | ||
288 | * @generated | ||
289 | */ | ||
290 | @Override | ||
291 | public boolean eIsSet(int featureID) | ||
292 | { | ||
293 | switch (featureID) | ||
294 | { | ||
295 | case CftLanguagePackage.CFT_MODEL__PACKAGE_NAME: | ||
296 | return PACKAGE_NAME_EDEFAULT == null ? packageName != null : !PACKAGE_NAME_EDEFAULT.equals(packageName); | ||
297 | case CftLanguagePackage.CFT_MODEL__IMPORTS: | ||
298 | return imports != null && !imports.isEmpty(); | ||
299 | case CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS: | ||
300 | return componentDefinitions != null && !componentDefinitions.isEmpty(); | ||
301 | case CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS: | ||
302 | return transformationDefinitions != null && !transformationDefinitions.isEmpty(); | ||
303 | } | ||
304 | return super.eIsSet(featureID); | ||
305 | } | ||
306 | |||
307 | /** | ||
308 | * <!-- begin-user-doc --> | ||
309 | * <!-- end-user-doc --> | ||
310 | * @generated | ||
311 | */ | ||
312 | @Override | ||
313 | public String toString() | ||
314 | { | ||
315 | if (eIsProxy()) return super.toString(); | ||
316 | |||
317 | StringBuilder result = new StringBuilder(super.toString()); | ||
318 | result.append(" (packageName: "); | ||
319 | result.append(packageName); | ||
320 | result.append(')'); | ||
321 | return result.toString(); | ||
322 | } | ||
323 | |||
324 | } //CftModelImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentDefinitionImpl.java new file mode 100644 index 00000000..4633d839 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentDefinitionImpl.java | |||
@@ -0,0 +1,323 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent; | ||
11 | |||
12 | import java.util.Collection; | ||
13 | |||
14 | import org.eclipse.emf.common.notify.Notification; | ||
15 | import org.eclipse.emf.common.notify.NotificationChain; | ||
16 | |||
17 | import org.eclipse.emf.common.util.EList; | ||
18 | |||
19 | import org.eclipse.emf.ecore.EClass; | ||
20 | import org.eclipse.emf.ecore.InternalEObject; | ||
21 | |||
22 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
23 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
24 | |||
25 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
26 | import org.eclipse.emf.ecore.util.EObjectResolvingEList; | ||
27 | import org.eclipse.emf.ecore.util.InternalEList; | ||
28 | |||
29 | /** | ||
30 | * <!-- begin-user-doc --> | ||
31 | * An implementation of the model object '<em><b>Component Definition</b></em>'. | ||
32 | * <!-- end-user-doc --> | ||
33 | * <p> | ||
34 | * The following features are implemented: | ||
35 | * </p> | ||
36 | * <ul> | ||
37 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl#getName <em>Name</em>}</li> | ||
38 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl#getInputEvents <em>Input Events</em>}</li> | ||
39 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl#getOutputEvents <em>Output Events</em>}</li> | ||
40 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl#getEventDefinitions <em>Event Definitions</em>}</li> | ||
41 | * </ul> | ||
42 | * | ||
43 | * @generated | ||
44 | */ | ||
45 | public class ComponentDefinitionImpl extends MinimalEObjectImpl.Container implements ComponentDefinition | ||
46 | { | ||
47 | /** | ||
48 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @see #getName() | ||
52 | * @generated | ||
53 | * @ordered | ||
54 | */ | ||
55 | protected static final String NAME_EDEFAULT = null; | ||
56 | |||
57 | /** | ||
58 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @see #getName() | ||
62 | * @generated | ||
63 | * @ordered | ||
64 | */ | ||
65 | protected String name = NAME_EDEFAULT; | ||
66 | |||
67 | /** | ||
68 | * The cached value of the '{@link #getInputEvents() <em>Input Events</em>}' containment reference list. | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @see #getInputEvents() | ||
72 | * @generated | ||
73 | * @ordered | ||
74 | */ | ||
75 | protected EList<InputEvent> inputEvents; | ||
76 | |||
77 | /** | ||
78 | * The cached value of the '{@link #getOutputEvents() <em>Output Events</em>}' reference list. | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @see #getOutputEvents() | ||
82 | * @generated | ||
83 | * @ordered | ||
84 | */ | ||
85 | protected EList<EventDeclaration> outputEvents; | ||
86 | |||
87 | /** | ||
88 | * The cached value of the '{@link #getEventDefinitions() <em>Event Definitions</em>}' containment reference list. | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @see #getEventDefinitions() | ||
92 | * @generated | ||
93 | * @ordered | ||
94 | */ | ||
95 | protected EList<EventDefinition> eventDefinitions; | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | protected ComponentDefinitionImpl() | ||
103 | { | ||
104 | super(); | ||
105 | } | ||
106 | |||
107 | /** | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | */ | ||
112 | @Override | ||
113 | protected EClass eStaticClass() | ||
114 | { | ||
115 | return CftLanguagePackage.Literals.COMPONENT_DEFINITION; | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | @Override | ||
124 | public String getName() | ||
125 | { | ||
126 | return name; | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void setName(String newName) | ||
136 | { | ||
137 | String oldName = name; | ||
138 | name = newName; | ||
139 | if (eNotificationRequired()) | ||
140 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.COMPONENT_DEFINITION__NAME, oldName, name)); | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | @Override | ||
149 | public EList<InputEvent> getInputEvents() | ||
150 | { | ||
151 | if (inputEvents == null) | ||
152 | { | ||
153 | inputEvents = new EObjectContainmentEList<InputEvent>(InputEvent.class, this, CftLanguagePackage.COMPONENT_DEFINITION__INPUT_EVENTS); | ||
154 | } | ||
155 | return inputEvents; | ||
156 | } | ||
157 | |||
158 | /** | ||
159 | * <!-- begin-user-doc --> | ||
160 | * <!-- end-user-doc --> | ||
161 | * @generated | ||
162 | */ | ||
163 | @Override | ||
164 | public EList<EventDeclaration> getOutputEvents() | ||
165 | { | ||
166 | if (outputEvents == null) | ||
167 | { | ||
168 | outputEvents = new EObjectResolvingEList<EventDeclaration>(EventDeclaration.class, this, CftLanguagePackage.COMPONENT_DEFINITION__OUTPUT_EVENTS); | ||
169 | } | ||
170 | return outputEvents; | ||
171 | } | ||
172 | |||
173 | /** | ||
174 | * <!-- begin-user-doc --> | ||
175 | * <!-- end-user-doc --> | ||
176 | * @generated | ||
177 | */ | ||
178 | @Override | ||
179 | public EList<EventDefinition> getEventDefinitions() | ||
180 | { | ||
181 | if (eventDefinitions == null) | ||
182 | { | ||
183 | eventDefinitions = new EObjectContainmentEList<EventDefinition>(EventDefinition.class, this, CftLanguagePackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS); | ||
184 | } | ||
185 | return eventDefinitions; | ||
186 | } | ||
187 | |||
188 | /** | ||
189 | * <!-- begin-user-doc --> | ||
190 | * <!-- end-user-doc --> | ||
191 | * @generated | ||
192 | */ | ||
193 | @Override | ||
194 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
195 | { | ||
196 | switch (featureID) | ||
197 | { | ||
198 | case CftLanguagePackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
199 | return ((InternalEList<?>)getInputEvents()).basicRemove(otherEnd, msgs); | ||
200 | case CftLanguagePackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
201 | return ((InternalEList<?>)getEventDefinitions()).basicRemove(otherEnd, msgs); | ||
202 | } | ||
203 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @generated | ||
210 | */ | ||
211 | @Override | ||
212 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
213 | { | ||
214 | switch (featureID) | ||
215 | { | ||
216 | case CftLanguagePackage.COMPONENT_DEFINITION__NAME: | ||
217 | return getName(); | ||
218 | case CftLanguagePackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
219 | return getInputEvents(); | ||
220 | case CftLanguagePackage.COMPONENT_DEFINITION__OUTPUT_EVENTS: | ||
221 | return getOutputEvents(); | ||
222 | case CftLanguagePackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
223 | return getEventDefinitions(); | ||
224 | } | ||
225 | return super.eGet(featureID, resolve, coreType); | ||
226 | } | ||
227 | |||
228 | /** | ||
229 | * <!-- begin-user-doc --> | ||
230 | * <!-- end-user-doc --> | ||
231 | * @generated | ||
232 | */ | ||
233 | @SuppressWarnings("unchecked") | ||
234 | @Override | ||
235 | public void eSet(int featureID, Object newValue) | ||
236 | { | ||
237 | switch (featureID) | ||
238 | { | ||
239 | case CftLanguagePackage.COMPONENT_DEFINITION__NAME: | ||
240 | setName((String)newValue); | ||
241 | return; | ||
242 | case CftLanguagePackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
243 | getInputEvents().clear(); | ||
244 | getInputEvents().addAll((Collection<? extends InputEvent>)newValue); | ||
245 | return; | ||
246 | case CftLanguagePackage.COMPONENT_DEFINITION__OUTPUT_EVENTS: | ||
247 | getOutputEvents().clear(); | ||
248 | getOutputEvents().addAll((Collection<? extends EventDeclaration>)newValue); | ||
249 | return; | ||
250 | case CftLanguagePackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
251 | getEventDefinitions().clear(); | ||
252 | getEventDefinitions().addAll((Collection<? extends EventDefinition>)newValue); | ||
253 | return; | ||
254 | } | ||
255 | super.eSet(featureID, newValue); | ||
256 | } | ||
257 | |||
258 | /** | ||
259 | * <!-- begin-user-doc --> | ||
260 | * <!-- end-user-doc --> | ||
261 | * @generated | ||
262 | */ | ||
263 | @Override | ||
264 | public void eUnset(int featureID) | ||
265 | { | ||
266 | switch (featureID) | ||
267 | { | ||
268 | case CftLanguagePackage.COMPONENT_DEFINITION__NAME: | ||
269 | setName(NAME_EDEFAULT); | ||
270 | return; | ||
271 | case CftLanguagePackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
272 | getInputEvents().clear(); | ||
273 | return; | ||
274 | case CftLanguagePackage.COMPONENT_DEFINITION__OUTPUT_EVENTS: | ||
275 | getOutputEvents().clear(); | ||
276 | return; | ||
277 | case CftLanguagePackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
278 | getEventDefinitions().clear(); | ||
279 | return; | ||
280 | } | ||
281 | super.eUnset(featureID); | ||
282 | } | ||
283 | |||
284 | /** | ||
285 | * <!-- begin-user-doc --> | ||
286 | * <!-- end-user-doc --> | ||
287 | * @generated | ||
288 | */ | ||
289 | @Override | ||
290 | public boolean eIsSet(int featureID) | ||
291 | { | ||
292 | switch (featureID) | ||
293 | { | ||
294 | case CftLanguagePackage.COMPONENT_DEFINITION__NAME: | ||
295 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
296 | case CftLanguagePackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
297 | return inputEvents != null && !inputEvents.isEmpty(); | ||
298 | case CftLanguagePackage.COMPONENT_DEFINITION__OUTPUT_EVENTS: | ||
299 | return outputEvents != null && !outputEvents.isEmpty(); | ||
300 | case CftLanguagePackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
301 | return eventDefinitions != null && !eventDefinitions.isEmpty(); | ||
302 | } | ||
303 | return super.eIsSet(featureID); | ||
304 | } | ||
305 | |||
306 | /** | ||
307 | * <!-- begin-user-doc --> | ||
308 | * <!-- end-user-doc --> | ||
309 | * @generated | ||
310 | */ | ||
311 | @Override | ||
312 | public String toString() | ||
313 | { | ||
314 | if (eIsProxy()) return super.toString(); | ||
315 | |||
316 | StringBuilder result = new StringBuilder(super.toString()); | ||
317 | result.append(" (name: "); | ||
318 | result.append(name); | ||
319 | result.append(')'); | ||
320 | return result.toString(); | ||
321 | } | ||
322 | |||
323 | } //ComponentDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentInstanceImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentInstanceImpl.java new file mode 100644 index 00000000..5966e55c --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentInstanceImpl.java | |||
@@ -0,0 +1,175 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance; | ||
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>Component Instance</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.faulttree.components.cftLanguage.impl.ComponentInstanceImpl#getComponentType <em>Component Type</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @generated | ||
29 | */ | ||
30 | public class ComponentInstanceImpl extends VariableImpl implements ComponentInstance | ||
31 | { | ||
32 | /** | ||
33 | * The cached value of the '{@link #getComponentType() <em>Component Type</em>}' reference. | ||
34 | * <!-- begin-user-doc --> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @see #getComponentType() | ||
37 | * @generated | ||
38 | * @ordered | ||
39 | */ | ||
40 | protected ComponentDefinition componentType; | ||
41 | |||
42 | /** | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @generated | ||
46 | */ | ||
47 | protected ComponentInstanceImpl() | ||
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 CftLanguagePackage.Literals.COMPONENT_INSTANCE; | ||
61 | } | ||
62 | |||
63 | /** | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @generated | ||
67 | */ | ||
68 | @Override | ||
69 | public ComponentDefinition getComponentType() | ||
70 | { | ||
71 | if (componentType != null && componentType.eIsProxy()) | ||
72 | { | ||
73 | InternalEObject oldComponentType = (InternalEObject)componentType; | ||
74 | componentType = (ComponentDefinition)eResolveProxy(oldComponentType); | ||
75 | if (componentType != oldComponentType) | ||
76 | { | ||
77 | if (eNotificationRequired()) | ||
78 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftLanguagePackage.COMPONENT_INSTANCE__COMPONENT_TYPE, oldComponentType, componentType)); | ||
79 | } | ||
80 | } | ||
81 | return componentType; | ||
82 | } | ||
83 | |||
84 | /** | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @generated | ||
88 | */ | ||
89 | public ComponentDefinition basicGetComponentType() | ||
90 | { | ||
91 | return componentType; | ||
92 | } | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | @Override | ||
100 | public void setComponentType(ComponentDefinition newComponentType) | ||
101 | { | ||
102 | ComponentDefinition oldComponentType = componentType; | ||
103 | componentType = newComponentType; | ||
104 | if (eNotificationRequired()) | ||
105 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.COMPONENT_INSTANCE__COMPONENT_TYPE, oldComponentType, componentType)); | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | @Override | ||
114 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
115 | { | ||
116 | switch (featureID) | ||
117 | { | ||
118 | case CftLanguagePackage.COMPONENT_INSTANCE__COMPONENT_TYPE: | ||
119 | if (resolve) return getComponentType(); | ||
120 | return basicGetComponentType(); | ||
121 | } | ||
122 | return super.eGet(featureID, resolve, coreType); | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | @Override | ||
131 | public void eSet(int featureID, Object newValue) | ||
132 | { | ||
133 | switch (featureID) | ||
134 | { | ||
135 | case CftLanguagePackage.COMPONENT_INSTANCE__COMPONENT_TYPE: | ||
136 | setComponentType((ComponentDefinition)newValue); | ||
137 | return; | ||
138 | } | ||
139 | super.eSet(featureID, newValue); | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | @Override | ||
148 | public void eUnset(int featureID) | ||
149 | { | ||
150 | switch (featureID) | ||
151 | { | ||
152 | case CftLanguagePackage.COMPONENT_INSTANCE__COMPONENT_TYPE: | ||
153 | setComponentType((ComponentDefinition)null); | ||
154 | return; | ||
155 | } | ||
156 | super.eUnset(featureID); | ||
157 | } | ||
158 | |||
159 | /** | ||
160 | * <!-- begin-user-doc --> | ||
161 | * <!-- end-user-doc --> | ||
162 | * @generated | ||
163 | */ | ||
164 | @Override | ||
165 | public boolean eIsSet(int featureID) | ||
166 | { | ||
167 | switch (featureID) | ||
168 | { | ||
169 | case CftLanguagePackage.COMPONENT_INSTANCE__COMPONENT_TYPE: | ||
170 | return componentType != null; | ||
171 | } | ||
172 | return super.eIsSet(featureID); | ||
173 | } | ||
174 | |||
175 | } //ComponentInstanceImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventDeclarationImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventDeclarationImpl.java new file mode 100644 index 00000000..c9964c20 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventDeclarationImpl.java | |||
@@ -0,0 +1,180 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | |||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
14 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model object '<em><b>Event Declaration</b></em>'. | ||
19 | * <!-- end-user-doc --> | ||
20 | * <p> | ||
21 | * The following features are implemented: | ||
22 | * </p> | ||
23 | * <ul> | ||
24 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDeclarationImpl#getName <em>Name</em>}</li> | ||
25 | * </ul> | ||
26 | * | ||
27 | * @generated | ||
28 | */ | ||
29 | public class EventDeclarationImpl extends MinimalEObjectImpl.Container implements EventDeclaration | ||
30 | { | ||
31 | /** | ||
32 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getName() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected static final String NAME_EDEFAULT = null; | ||
40 | |||
41 | /** | ||
42 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getName() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected String name = NAME_EDEFAULT; | ||
50 | |||
51 | /** | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @generated | ||
55 | */ | ||
56 | protected EventDeclarationImpl() | ||
57 | { | ||
58 | super(); | ||
59 | } | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected EClass eStaticClass() | ||
68 | { | ||
69 | return CftLanguagePackage.Literals.EVENT_DECLARATION; | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | @Override | ||
78 | public String getName() | ||
79 | { | ||
80 | return name; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public void setName(String newName) | ||
90 | { | ||
91 | String oldName = name; | ||
92 | name = newName; | ||
93 | if (eNotificationRequired()) | ||
94 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.EVENT_DECLARATION__NAME, oldName, name)); | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
104 | { | ||
105 | switch (featureID) | ||
106 | { | ||
107 | case CftLanguagePackage.EVENT_DECLARATION__NAME: | ||
108 | return getName(); | ||
109 | } | ||
110 | return super.eGet(featureID, resolve, coreType); | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | @Override | ||
119 | public void eSet(int featureID, Object newValue) | ||
120 | { | ||
121 | switch (featureID) | ||
122 | { | ||
123 | case CftLanguagePackage.EVENT_DECLARATION__NAME: | ||
124 | setName((String)newValue); | ||
125 | return; | ||
126 | } | ||
127 | super.eSet(featureID, newValue); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public void eUnset(int featureID) | ||
137 | { | ||
138 | switch (featureID) | ||
139 | { | ||
140 | case CftLanguagePackage.EVENT_DECLARATION__NAME: | ||
141 | setName(NAME_EDEFAULT); | ||
142 | return; | ||
143 | } | ||
144 | super.eUnset(featureID); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public boolean eIsSet(int featureID) | ||
154 | { | ||
155 | switch (featureID) | ||
156 | { | ||
157 | case CftLanguagePackage.EVENT_DECLARATION__NAME: | ||
158 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
159 | } | ||
160 | return super.eIsSet(featureID); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public String toString() | ||
170 | { | ||
171 | if (eIsProxy()) return super.toString(); | ||
172 | |||
173 | StringBuilder result = new StringBuilder(super.toString()); | ||
174 | result.append(" (name: "); | ||
175 | result.append(name); | ||
176 | result.append(')'); | ||
177 | return result.toString(); | ||
178 | } | ||
179 | |||
180 | } //EventDeclarationImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventDefinitionImpl.java new file mode 100644 index 00000000..0c03504b --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventDefinitionImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Event Definition</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class EventDefinitionImpl extends EventDeclarationImpl implements EventDefinition | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected EventDefinitionImpl() | ||
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 CftLanguagePackage.Literals.EVENT_DEFINITION; | ||
39 | } | ||
40 | |||
41 | } //EventDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventReferenceImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventReferenceImpl.java new file mode 100644 index 00000000..f10ae8a2 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventReferenceImpl.java | |||
@@ -0,0 +1,244 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable; | ||
10 | |||
11 | import org.eclipse.emf.common.notify.Notification; | ||
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 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Event Reference</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventReferenceImpl#getComponent <em>Component</em>}</li> | ||
28 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventReferenceImpl#getEvent <em>Event</em>}</li> | ||
29 | * </ul> | ||
30 | * | ||
31 | * @generated | ||
32 | */ | ||
33 | public class EventReferenceImpl extends MinimalEObjectImpl.Container implements EventReference | ||
34 | { | ||
35 | /** | ||
36 | * The cached value of the '{@link #getComponent() <em>Component</em>}' reference. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @see #getComponent() | ||
40 | * @generated | ||
41 | * @ordered | ||
42 | */ | ||
43 | protected Variable component; | ||
44 | |||
45 | /** | ||
46 | * The cached value of the '{@link #getEvent() <em>Event</em>}' reference. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @see #getEvent() | ||
50 | * @generated | ||
51 | * @ordered | ||
52 | */ | ||
53 | protected EventDeclaration event; | ||
54 | |||
55 | /** | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @generated | ||
59 | */ | ||
60 | protected EventReferenceImpl() | ||
61 | { | ||
62 | super(); | ||
63 | } | ||
64 | |||
65 | /** | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @generated | ||
69 | */ | ||
70 | @Override | ||
71 | protected EClass eStaticClass() | ||
72 | { | ||
73 | return CftLanguagePackage.Literals.EVENT_REFERENCE; | ||
74 | } | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | @Override | ||
82 | public Variable getComponent() | ||
83 | { | ||
84 | if (component != null && component.eIsProxy()) | ||
85 | { | ||
86 | InternalEObject oldComponent = (InternalEObject)component; | ||
87 | component = (Variable)eResolveProxy(oldComponent); | ||
88 | if (component != oldComponent) | ||
89 | { | ||
90 | if (eNotificationRequired()) | ||
91 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftLanguagePackage.EVENT_REFERENCE__COMPONENT, oldComponent, component)); | ||
92 | } | ||
93 | } | ||
94 | return component; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | public Variable basicGetComponent() | ||
103 | { | ||
104 | return component; | ||
105 | } | ||
106 | |||
107 | /** | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | */ | ||
112 | @Override | ||
113 | public void setComponent(Variable newComponent) | ||
114 | { | ||
115 | Variable oldComponent = component; | ||
116 | component = newComponent; | ||
117 | if (eNotificationRequired()) | ||
118 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.EVENT_REFERENCE__COMPONENT, oldComponent, component)); | ||
119 | } | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | @Override | ||
127 | public EventDeclaration getEvent() | ||
128 | { | ||
129 | if (event != null && event.eIsProxy()) | ||
130 | { | ||
131 | InternalEObject oldEvent = (InternalEObject)event; | ||
132 | event = (EventDeclaration)eResolveProxy(oldEvent); | ||
133 | if (event != oldEvent) | ||
134 | { | ||
135 | if (eNotificationRequired()) | ||
136 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftLanguagePackage.EVENT_REFERENCE__EVENT, oldEvent, event)); | ||
137 | } | ||
138 | } | ||
139 | return event; | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | public EventDeclaration basicGetEvent() | ||
148 | { | ||
149 | return event; | ||
150 | } | ||
151 | |||
152 | /** | ||
153 | * <!-- begin-user-doc --> | ||
154 | * <!-- end-user-doc --> | ||
155 | * @generated | ||
156 | */ | ||
157 | @Override | ||
158 | public void setEvent(EventDeclaration newEvent) | ||
159 | { | ||
160 | EventDeclaration oldEvent = event; | ||
161 | event = newEvent; | ||
162 | if (eNotificationRequired()) | ||
163 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.EVENT_REFERENCE__EVENT, oldEvent, event)); | ||
164 | } | ||
165 | |||
166 | /** | ||
167 | * <!-- begin-user-doc --> | ||
168 | * <!-- end-user-doc --> | ||
169 | * @generated | ||
170 | */ | ||
171 | @Override | ||
172 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
173 | { | ||
174 | switch (featureID) | ||
175 | { | ||
176 | case CftLanguagePackage.EVENT_REFERENCE__COMPONENT: | ||
177 | if (resolve) return getComponent(); | ||
178 | return basicGetComponent(); | ||
179 | case CftLanguagePackage.EVENT_REFERENCE__EVENT: | ||
180 | if (resolve) return getEvent(); | ||
181 | return basicGetEvent(); | ||
182 | } | ||
183 | return super.eGet(featureID, resolve, coreType); | ||
184 | } | ||
185 | |||
186 | /** | ||
187 | * <!-- begin-user-doc --> | ||
188 | * <!-- end-user-doc --> | ||
189 | * @generated | ||
190 | */ | ||
191 | @Override | ||
192 | public void eSet(int featureID, Object newValue) | ||
193 | { | ||
194 | switch (featureID) | ||
195 | { | ||
196 | case CftLanguagePackage.EVENT_REFERENCE__COMPONENT: | ||
197 | setComponent((Variable)newValue); | ||
198 | return; | ||
199 | case CftLanguagePackage.EVENT_REFERENCE__EVENT: | ||
200 | setEvent((EventDeclaration)newValue); | ||
201 | return; | ||
202 | } | ||
203 | super.eSet(featureID, newValue); | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @generated | ||
210 | */ | ||
211 | @Override | ||
212 | public void eUnset(int featureID) | ||
213 | { | ||
214 | switch (featureID) | ||
215 | { | ||
216 | case CftLanguagePackage.EVENT_REFERENCE__COMPONENT: | ||
217 | setComponent((Variable)null); | ||
218 | return; | ||
219 | case CftLanguagePackage.EVENT_REFERENCE__EVENT: | ||
220 | setEvent((EventDeclaration)null); | ||
221 | return; | ||
222 | } | ||
223 | super.eUnset(featureID); | ||
224 | } | ||
225 | |||
226 | /** | ||
227 | * <!-- begin-user-doc --> | ||
228 | * <!-- end-user-doc --> | ||
229 | * @generated | ||
230 | */ | ||
231 | @Override | ||
232 | public boolean eIsSet(int featureID) | ||
233 | { | ||
234 | switch (featureID) | ||
235 | { | ||
236 | case CftLanguagePackage.EVENT_REFERENCE__COMPONENT: | ||
237 | return component != null; | ||
238 | case CftLanguagePackage.EVENT_REFERENCE__EVENT: | ||
239 | return event != null; | ||
240 | } | ||
241 | return super.eIsSet(featureID); | ||
242 | } | ||
243 | |||
244 | } //EventReferenceImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/GateDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/GateDefinitionImpl.java new file mode 100644 index 00000000..76b12fc2 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/GateDefinitionImpl.java | |||
@@ -0,0 +1,147 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition; | ||
9 | |||
10 | import java.util.Collection; | ||
11 | |||
12 | import org.eclipse.emf.common.util.EList; | ||
13 | |||
14 | import org.eclipse.emf.ecore.EClass; | ||
15 | |||
16 | import org.eclipse.emf.ecore.util.EObjectResolvingEList; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Gate Definition</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.faulttree.components.cftLanguage.impl.GateDefinitionImpl#getInputEvents <em>Input Events</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class GateDefinitionImpl extends EventDefinitionImpl implements GateDefinition | ||
32 | { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getInputEvents() <em>Input Events</em>}' reference list. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getInputEvents() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected EList<EventDeclaration> inputEvents; | ||
42 | |||
43 | /** | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | protected GateDefinitionImpl() | ||
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 CftLanguagePackage.Literals.GATE_DEFINITION; | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | @Override | ||
70 | public EList<EventDeclaration> getInputEvents() | ||
71 | { | ||
72 | if (inputEvents == null) | ||
73 | { | ||
74 | inputEvents = new EObjectResolvingEList<EventDeclaration>(EventDeclaration.class, this, CftLanguagePackage.GATE_DEFINITION__INPUT_EVENTS); | ||
75 | } | ||
76 | return inputEvents; | ||
77 | } | ||
78 | |||
79 | /** | ||
80 | * <!-- begin-user-doc --> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @generated | ||
83 | */ | ||
84 | @Override | ||
85 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
86 | { | ||
87 | switch (featureID) | ||
88 | { | ||
89 | case CftLanguagePackage.GATE_DEFINITION__INPUT_EVENTS: | ||
90 | return getInputEvents(); | ||
91 | } | ||
92 | return super.eGet(featureID, resolve, coreType); | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | @SuppressWarnings("unchecked") | ||
101 | @Override | ||
102 | public void eSet(int featureID, Object newValue) | ||
103 | { | ||
104 | switch (featureID) | ||
105 | { | ||
106 | case CftLanguagePackage.GATE_DEFINITION__INPUT_EVENTS: | ||
107 | getInputEvents().clear(); | ||
108 | getInputEvents().addAll((Collection<? extends EventDeclaration>)newValue); | ||
109 | return; | ||
110 | } | ||
111 | super.eSet(featureID, newValue); | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | @Override | ||
120 | public void eUnset(int featureID) | ||
121 | { | ||
122 | switch (featureID) | ||
123 | { | ||
124 | case CftLanguagePackage.GATE_DEFINITION__INPUT_EVENTS: | ||
125 | getInputEvents().clear(); | ||
126 | return; | ||
127 | } | ||
128 | super.eUnset(featureID); | ||
129 | } | ||
130 | |||
131 | /** | ||
132 | * <!-- begin-user-doc --> | ||
133 | * <!-- end-user-doc --> | ||
134 | * @generated | ||
135 | */ | ||
136 | @Override | ||
137 | public boolean eIsSet(int featureID) | ||
138 | { | ||
139 | switch (featureID) | ||
140 | { | ||
141 | case CftLanguagePackage.GATE_DEFINITION__INPUT_EVENTS: | ||
142 | return inputEvents != null && !inputEvents.isEmpty(); | ||
143 | } | ||
144 | return super.eIsSet(featureID); | ||
145 | } | ||
146 | |||
147 | } //GateDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ImportDeclarationImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ImportDeclarationImpl.java new file mode 100644 index 00000000..f4e45535 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ImportDeclarationImpl.java | |||
@@ -0,0 +1,180 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | |||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
14 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model object '<em><b>Import Declaration</b></em>'. | ||
19 | * <!-- end-user-doc --> | ||
20 | * <p> | ||
21 | * The following features are implemented: | ||
22 | * </p> | ||
23 | * <ul> | ||
24 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ImportDeclarationImpl#getImportedNamespace <em>Imported Namespace</em>}</li> | ||
25 | * </ul> | ||
26 | * | ||
27 | * @generated | ||
28 | */ | ||
29 | public class ImportDeclarationImpl extends MinimalEObjectImpl.Container implements ImportDeclaration | ||
30 | { | ||
31 | /** | ||
32 | * The default value of the '{@link #getImportedNamespace() <em>Imported Namespace</em>}' attribute. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getImportedNamespace() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected static final String IMPORTED_NAMESPACE_EDEFAULT = null; | ||
40 | |||
41 | /** | ||
42 | * The cached value of the '{@link #getImportedNamespace() <em>Imported Namespace</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getImportedNamespace() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected String importedNamespace = IMPORTED_NAMESPACE_EDEFAULT; | ||
50 | |||
51 | /** | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @generated | ||
55 | */ | ||
56 | protected ImportDeclarationImpl() | ||
57 | { | ||
58 | super(); | ||
59 | } | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected EClass eStaticClass() | ||
68 | { | ||
69 | return CftLanguagePackage.Literals.IMPORT_DECLARATION; | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | @Override | ||
78 | public String getImportedNamespace() | ||
79 | { | ||
80 | return importedNamespace; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public void setImportedNamespace(String newImportedNamespace) | ||
90 | { | ||
91 | String oldImportedNamespace = importedNamespace; | ||
92 | importedNamespace = newImportedNamespace; | ||
93 | if (eNotificationRequired()) | ||
94 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.IMPORT_DECLARATION__IMPORTED_NAMESPACE, oldImportedNamespace, importedNamespace)); | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
104 | { | ||
105 | switch (featureID) | ||
106 | { | ||
107 | case CftLanguagePackage.IMPORT_DECLARATION__IMPORTED_NAMESPACE: | ||
108 | return getImportedNamespace(); | ||
109 | } | ||
110 | return super.eGet(featureID, resolve, coreType); | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | @Override | ||
119 | public void eSet(int featureID, Object newValue) | ||
120 | { | ||
121 | switch (featureID) | ||
122 | { | ||
123 | case CftLanguagePackage.IMPORT_DECLARATION__IMPORTED_NAMESPACE: | ||
124 | setImportedNamespace((String)newValue); | ||
125 | return; | ||
126 | } | ||
127 | super.eSet(featureID, newValue); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public void eUnset(int featureID) | ||
137 | { | ||
138 | switch (featureID) | ||
139 | { | ||
140 | case CftLanguagePackage.IMPORT_DECLARATION__IMPORTED_NAMESPACE: | ||
141 | setImportedNamespace(IMPORTED_NAMESPACE_EDEFAULT); | ||
142 | return; | ||
143 | } | ||
144 | super.eUnset(featureID); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public boolean eIsSet(int featureID) | ||
154 | { | ||
155 | switch (featureID) | ||
156 | { | ||
157 | case CftLanguagePackage.IMPORT_DECLARATION__IMPORTED_NAMESPACE: | ||
158 | return IMPORTED_NAMESPACE_EDEFAULT == null ? importedNamespace != null : !IMPORTED_NAMESPACE_EDEFAULT.equals(importedNamespace); | ||
159 | } | ||
160 | return super.eIsSet(featureID); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public String toString() | ||
170 | { | ||
171 | if (eIsProxy()) return super.toString(); | ||
172 | |||
173 | StringBuilder result = new StringBuilder(super.toString()); | ||
174 | result.append(" (importedNamespace: "); | ||
175 | result.append(importedNamespace); | ||
176 | result.append(')'); | ||
177 | return result.toString(); | ||
178 | } | ||
179 | |||
180 | } //ImportDeclarationImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/InputEventImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/InputEventImpl.java new file mode 100644 index 00000000..edb03bdc --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/InputEventImpl.java | |||
@@ -0,0 +1,179 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | |||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Input Event</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.InputEventImpl#isMultiple <em>Multiple</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class InputEventImpl extends EventDeclarationImpl implements InputEvent | ||
29 | { | ||
30 | /** | ||
31 | * The default value of the '{@link #isMultiple() <em>Multiple</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #isMultiple() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final boolean MULTIPLE_EDEFAULT = false; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #isMultiple() <em>Multiple</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #isMultiple() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected boolean multiple = MULTIPLE_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | protected InputEventImpl() | ||
56 | { | ||
57 | super(); | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | protected EClass eStaticClass() | ||
67 | { | ||
68 | return CftLanguagePackage.Literals.INPUT_EVENT; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | @Override | ||
77 | public boolean isMultiple() | ||
78 | { | ||
79 | return multiple; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | public void setMultiple(boolean newMultiple) | ||
89 | { | ||
90 | boolean oldMultiple = multiple; | ||
91 | multiple = newMultiple; | ||
92 | if (eNotificationRequired()) | ||
93 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.INPUT_EVENT__MULTIPLE, oldMultiple, multiple)); | ||
94 | } | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | @Override | ||
102 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
103 | { | ||
104 | switch (featureID) | ||
105 | { | ||
106 | case CftLanguagePackage.INPUT_EVENT__MULTIPLE: | ||
107 | return isMultiple(); | ||
108 | } | ||
109 | return super.eGet(featureID, resolve, coreType); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public void eSet(int featureID, Object newValue) | ||
119 | { | ||
120 | switch (featureID) | ||
121 | { | ||
122 | case CftLanguagePackage.INPUT_EVENT__MULTIPLE: | ||
123 | setMultiple((Boolean)newValue); | ||
124 | return; | ||
125 | } | ||
126 | super.eSet(featureID, newValue); | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void eUnset(int featureID) | ||
136 | { | ||
137 | switch (featureID) | ||
138 | { | ||
139 | case CftLanguagePackage.INPUT_EVENT__MULTIPLE: | ||
140 | setMultiple(MULTIPLE_EDEFAULT); | ||
141 | return; | ||
142 | } | ||
143 | super.eUnset(featureID); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public boolean eIsSet(int featureID) | ||
153 | { | ||
154 | switch (featureID) | ||
155 | { | ||
156 | case CftLanguagePackage.INPUT_EVENT__MULTIPLE: | ||
157 | return multiple != MULTIPLE_EDEFAULT; | ||
158 | } | ||
159 | return super.eIsSet(featureID); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public String toString() | ||
169 | { | ||
170 | if (eIsProxy()) return super.toString(); | ||
171 | |||
172 | StringBuilder result = new StringBuilder(super.toString()); | ||
173 | result.append(" (multiple: "); | ||
174 | result.append(multiple); | ||
175 | result.append(')'); | ||
176 | return result.toString(); | ||
177 | } | ||
178 | |||
179 | } //InputEventImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/LookupDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/LookupDefinitionImpl.java new file mode 100644 index 00000000..f4877855 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/LookupDefinitionImpl.java | |||
@@ -0,0 +1,220 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter; | ||
10 | |||
11 | import java.util.Collection; | ||
12 | |||
13 | import org.eclipse.emf.common.notify.Notification; | ||
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.ENotificationImpl; | ||
21 | |||
22 | import org.eclipse.emf.ecore.util.EObjectResolvingEList; | ||
23 | |||
24 | /** | ||
25 | * <!-- begin-user-doc --> | ||
26 | * An implementation of the model object '<em><b>Lookup Definition</b></em>'. | ||
27 | * <!-- end-user-doc --> | ||
28 | * <p> | ||
29 | * The following features are implemented: | ||
30 | * </p> | ||
31 | * <ul> | ||
32 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.LookupDefinitionImpl#getMapping <em>Mapping</em>}</li> | ||
33 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.LookupDefinitionImpl#getArguments <em>Arguments</em>}</li> | ||
34 | * </ul> | ||
35 | * | ||
36 | * @generated | ||
37 | */ | ||
38 | public class LookupDefinitionImpl extends VariableImpl implements LookupDefinition | ||
39 | { | ||
40 | /** | ||
41 | * The cached value of the '{@link #getMapping() <em>Mapping</em>}' reference. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getMapping() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected MappingDefinition mapping; | ||
49 | |||
50 | /** | ||
51 | * The cached value of the '{@link #getArguments() <em>Arguments</em>}' reference list. | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @see #getArguments() | ||
55 | * @generated | ||
56 | * @ordered | ||
57 | */ | ||
58 | protected EList<MappingParameter> arguments; | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | protected LookupDefinitionImpl() | ||
66 | { | ||
67 | super(); | ||
68 | } | ||
69 | |||
70 | /** | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | */ | ||
75 | @Override | ||
76 | protected EClass eStaticClass() | ||
77 | { | ||
78 | return CftLanguagePackage.Literals.LOOKUP_DEFINITION; | ||
79 | } | ||
80 | |||
81 | /** | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @generated | ||
85 | */ | ||
86 | @Override | ||
87 | public MappingDefinition getMapping() | ||
88 | { | ||
89 | if (mapping != null && mapping.eIsProxy()) | ||
90 | { | ||
91 | InternalEObject oldMapping = (InternalEObject)mapping; | ||
92 | mapping = (MappingDefinition)eResolveProxy(oldMapping); | ||
93 | if (mapping != oldMapping) | ||
94 | { | ||
95 | if (eNotificationRequired()) | ||
96 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftLanguagePackage.LOOKUP_DEFINITION__MAPPING, oldMapping, mapping)); | ||
97 | } | ||
98 | } | ||
99 | return mapping; | ||
100 | } | ||
101 | |||
102 | /** | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @generated | ||
106 | */ | ||
107 | public MappingDefinition basicGetMapping() | ||
108 | { | ||
109 | return mapping; | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public void setMapping(MappingDefinition newMapping) | ||
119 | { | ||
120 | MappingDefinition oldMapping = mapping; | ||
121 | mapping = newMapping; | ||
122 | if (eNotificationRequired()) | ||
123 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.LOOKUP_DEFINITION__MAPPING, oldMapping, mapping)); | ||
124 | } | ||
125 | |||
126 | /** | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @generated | ||
130 | */ | ||
131 | @Override | ||
132 | public EList<MappingParameter> getArguments() | ||
133 | { | ||
134 | if (arguments == null) | ||
135 | { | ||
136 | arguments = new EObjectResolvingEList<MappingParameter>(MappingParameter.class, this, CftLanguagePackage.LOOKUP_DEFINITION__ARGUMENTS); | ||
137 | } | ||
138 | return arguments; | ||
139 | } | ||
140 | |||
141 | /** | ||
142 | * <!-- begin-user-doc --> | ||
143 | * <!-- end-user-doc --> | ||
144 | * @generated | ||
145 | */ | ||
146 | @Override | ||
147 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
148 | { | ||
149 | switch (featureID) | ||
150 | { | ||
151 | case CftLanguagePackage.LOOKUP_DEFINITION__MAPPING: | ||
152 | if (resolve) return getMapping(); | ||
153 | return basicGetMapping(); | ||
154 | case CftLanguagePackage.LOOKUP_DEFINITION__ARGUMENTS: | ||
155 | return getArguments(); | ||
156 | } | ||
157 | return super.eGet(featureID, resolve, coreType); | ||
158 | } | ||
159 | |||
160 | /** | ||
161 | * <!-- begin-user-doc --> | ||
162 | * <!-- end-user-doc --> | ||
163 | * @generated | ||
164 | */ | ||
165 | @SuppressWarnings("unchecked") | ||
166 | @Override | ||
167 | public void eSet(int featureID, Object newValue) | ||
168 | { | ||
169 | switch (featureID) | ||
170 | { | ||
171 | case CftLanguagePackage.LOOKUP_DEFINITION__MAPPING: | ||
172 | setMapping((MappingDefinition)newValue); | ||
173 | return; | ||
174 | case CftLanguagePackage.LOOKUP_DEFINITION__ARGUMENTS: | ||
175 | getArguments().clear(); | ||
176 | getArguments().addAll((Collection<? extends MappingParameter>)newValue); | ||
177 | return; | ||
178 | } | ||
179 | super.eSet(featureID, newValue); | ||
180 | } | ||
181 | |||
182 | /** | ||
183 | * <!-- begin-user-doc --> | ||
184 | * <!-- end-user-doc --> | ||
185 | * @generated | ||
186 | */ | ||
187 | @Override | ||
188 | public void eUnset(int featureID) | ||
189 | { | ||
190 | switch (featureID) | ||
191 | { | ||
192 | case CftLanguagePackage.LOOKUP_DEFINITION__MAPPING: | ||
193 | setMapping((MappingDefinition)null); | ||
194 | return; | ||
195 | case CftLanguagePackage.LOOKUP_DEFINITION__ARGUMENTS: | ||
196 | getArguments().clear(); | ||
197 | return; | ||
198 | } | ||
199 | super.eUnset(featureID); | ||
200 | } | ||
201 | |||
202 | /** | ||
203 | * <!-- begin-user-doc --> | ||
204 | * <!-- end-user-doc --> | ||
205 | * @generated | ||
206 | */ | ||
207 | @Override | ||
208 | public boolean eIsSet(int featureID) | ||
209 | { | ||
210 | switch (featureID) | ||
211 | { | ||
212 | case CftLanguagePackage.LOOKUP_DEFINITION__MAPPING: | ||
213 | return mapping != null; | ||
214 | case CftLanguagePackage.LOOKUP_DEFINITION__ARGUMENTS: | ||
215 | return arguments != null && !arguments.isEmpty(); | ||
216 | } | ||
217 | return super.eIsSet(featureID); | ||
218 | } | ||
219 | |||
220 | } //LookupDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/MappingDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/MappingDefinitionImpl.java new file mode 100644 index 00000000..d92dd935 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/MappingDefinitionImpl.java | |||
@@ -0,0 +1,467 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition; | ||
11 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter; | ||
12 | |||
13 | import java.util.Collection; | ||
14 | |||
15 | import org.eclipse.emf.common.notify.Notification; | ||
16 | import org.eclipse.emf.common.notify.NotificationChain; | ||
17 | |||
18 | import org.eclipse.emf.common.util.EList; | ||
19 | |||
20 | import org.eclipse.emf.ecore.EClass; | ||
21 | import org.eclipse.emf.ecore.InternalEObject; | ||
22 | |||
23 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
24 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
25 | |||
26 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
27 | import org.eclipse.emf.ecore.util.InternalEList; | ||
28 | |||
29 | import org.eclipse.viatra.query.patternlanguage.emf.vql.Pattern; | ||
30 | |||
31 | /** | ||
32 | * <!-- begin-user-doc --> | ||
33 | * An implementation of the model object '<em><b>Mapping Definition</b></em>'. | ||
34 | * <!-- end-user-doc --> | ||
35 | * <p> | ||
36 | * The following features are implemented: | ||
37 | * </p> | ||
38 | * <ul> | ||
39 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl#isTopLevel <em>Top Level</em>}</li> | ||
40 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl#getPattern <em>Pattern</em>}</li> | ||
41 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl#getParameters <em>Parameters</em>}</li> | ||
42 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl#getComponentInstance <em>Component Instance</em>}</li> | ||
43 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl#getLookupDefinitions <em>Lookup Definitions</em>}</li> | ||
44 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl#getAssignments <em>Assignments</em>}</li> | ||
45 | * </ul> | ||
46 | * | ||
47 | * @generated | ||
48 | */ | ||
49 | public class MappingDefinitionImpl extends MinimalEObjectImpl.Container implements MappingDefinition | ||
50 | { | ||
51 | /** | ||
52 | * The default value of the '{@link #isTopLevel() <em>Top Level</em>}' attribute. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #isTopLevel() | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | protected static final boolean TOP_LEVEL_EDEFAULT = false; | ||
60 | |||
61 | /** | ||
62 | * The cached value of the '{@link #isTopLevel() <em>Top Level</em>}' attribute. | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @see #isTopLevel() | ||
66 | * @generated | ||
67 | * @ordered | ||
68 | */ | ||
69 | protected boolean topLevel = TOP_LEVEL_EDEFAULT; | ||
70 | |||
71 | /** | ||
72 | * The cached value of the '{@link #getPattern() <em>Pattern</em>}' reference. | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @see #getPattern() | ||
76 | * @generated | ||
77 | * @ordered | ||
78 | */ | ||
79 | protected Pattern pattern; | ||
80 | |||
81 | /** | ||
82 | * The cached value of the '{@link #getParameters() <em>Parameters</em>}' containment reference list. | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @see #getParameters() | ||
86 | * @generated | ||
87 | * @ordered | ||
88 | */ | ||
89 | protected EList<MappingParameter> parameters; | ||
90 | |||
91 | /** | ||
92 | * The cached value of the '{@link #getComponentInstance() <em>Component Instance</em>}' containment reference. | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @see #getComponentInstance() | ||
96 | * @generated | ||
97 | * @ordered | ||
98 | */ | ||
99 | protected ComponentInstance componentInstance; | ||
100 | |||
101 | /** | ||
102 | * The cached value of the '{@link #getLookupDefinitions() <em>Lookup Definitions</em>}' containment reference list. | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @see #getLookupDefinitions() | ||
106 | * @generated | ||
107 | * @ordered | ||
108 | */ | ||
109 | protected EList<LookupDefinition> lookupDefinitions; | ||
110 | |||
111 | /** | ||
112 | * The cached value of the '{@link #getAssignments() <em>Assignments</em>}' containment reference list. | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @see #getAssignments() | ||
116 | * @generated | ||
117 | * @ordered | ||
118 | */ | ||
119 | protected EList<Assignment> assignments; | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | protected MappingDefinitionImpl() | ||
127 | { | ||
128 | super(); | ||
129 | } | ||
130 | |||
131 | /** | ||
132 | * <!-- begin-user-doc --> | ||
133 | * <!-- end-user-doc --> | ||
134 | * @generated | ||
135 | */ | ||
136 | @Override | ||
137 | protected EClass eStaticClass() | ||
138 | { | ||
139 | return CftLanguagePackage.Literals.MAPPING_DEFINITION; | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | @Override | ||
148 | public boolean isTopLevel() | ||
149 | { | ||
150 | return topLevel; | ||
151 | } | ||
152 | |||
153 | /** | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @generated | ||
157 | */ | ||
158 | @Override | ||
159 | public void setTopLevel(boolean newTopLevel) | ||
160 | { | ||
161 | boolean oldTopLevel = topLevel; | ||
162 | topLevel = newTopLevel; | ||
163 | if (eNotificationRequired()) | ||
164 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.MAPPING_DEFINITION__TOP_LEVEL, oldTopLevel, topLevel)); | ||
165 | } | ||
166 | |||
167 | /** | ||
168 | * <!-- begin-user-doc --> | ||
169 | * <!-- end-user-doc --> | ||
170 | * @generated | ||
171 | */ | ||
172 | @Override | ||
173 | public Pattern getPattern() | ||
174 | { | ||
175 | if (pattern != null && pattern.eIsProxy()) | ||
176 | { | ||
177 | InternalEObject oldPattern = (InternalEObject)pattern; | ||
178 | pattern = (Pattern)eResolveProxy(oldPattern); | ||
179 | if (pattern != oldPattern) | ||
180 | { | ||
181 | if (eNotificationRequired()) | ||
182 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftLanguagePackage.MAPPING_DEFINITION__PATTERN, oldPattern, pattern)); | ||
183 | } | ||
184 | } | ||
185 | return pattern; | ||
186 | } | ||
187 | |||
188 | /** | ||
189 | * <!-- begin-user-doc --> | ||
190 | * <!-- end-user-doc --> | ||
191 | * @generated | ||
192 | */ | ||
193 | public Pattern basicGetPattern() | ||
194 | { | ||
195 | return pattern; | ||
196 | } | ||
197 | |||
198 | /** | ||
199 | * <!-- begin-user-doc --> | ||
200 | * <!-- end-user-doc --> | ||
201 | * @generated | ||
202 | */ | ||
203 | @Override | ||
204 | public void setPattern(Pattern newPattern) | ||
205 | { | ||
206 | Pattern oldPattern = pattern; | ||
207 | pattern = newPattern; | ||
208 | if (eNotificationRequired()) | ||
209 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.MAPPING_DEFINITION__PATTERN, oldPattern, pattern)); | ||
210 | } | ||
211 | |||
212 | /** | ||
213 | * <!-- begin-user-doc --> | ||
214 | * <!-- end-user-doc --> | ||
215 | * @generated | ||
216 | */ | ||
217 | @Override | ||
218 | public EList<MappingParameter> getParameters() | ||
219 | { | ||
220 | if (parameters == null) | ||
221 | { | ||
222 | parameters = new EObjectContainmentEList<MappingParameter>(MappingParameter.class, this, CftLanguagePackage.MAPPING_DEFINITION__PARAMETERS); | ||
223 | } | ||
224 | return parameters; | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public ComponentInstance getComponentInstance() | ||
234 | { | ||
235 | return componentInstance; | ||
236 | } | ||
237 | |||
238 | /** | ||
239 | * <!-- begin-user-doc --> | ||
240 | * <!-- end-user-doc --> | ||
241 | * @generated | ||
242 | */ | ||
243 | public NotificationChain basicSetComponentInstance(ComponentInstance newComponentInstance, NotificationChain msgs) | ||
244 | { | ||
245 | ComponentInstance oldComponentInstance = componentInstance; | ||
246 | componentInstance = newComponentInstance; | ||
247 | if (eNotificationRequired()) | ||
248 | { | ||
249 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE, oldComponentInstance, newComponentInstance); | ||
250 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
251 | } | ||
252 | return msgs; | ||
253 | } | ||
254 | |||
255 | /** | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | */ | ||
260 | @Override | ||
261 | public void setComponentInstance(ComponentInstance newComponentInstance) | ||
262 | { | ||
263 | if (newComponentInstance != componentInstance) | ||
264 | { | ||
265 | NotificationChain msgs = null; | ||
266 | if (componentInstance != null) | ||
267 | msgs = ((InternalEObject)componentInstance).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE, null, msgs); | ||
268 | if (newComponentInstance != null) | ||
269 | msgs = ((InternalEObject)newComponentInstance).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE, null, msgs); | ||
270 | msgs = basicSetComponentInstance(newComponentInstance, msgs); | ||
271 | if (msgs != null) msgs.dispatch(); | ||
272 | } | ||
273 | else if (eNotificationRequired()) | ||
274 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE, newComponentInstance, newComponentInstance)); | ||
275 | } | ||
276 | |||
277 | /** | ||
278 | * <!-- begin-user-doc --> | ||
279 | * <!-- end-user-doc --> | ||
280 | * @generated | ||
281 | */ | ||
282 | @Override | ||
283 | public EList<LookupDefinition> getLookupDefinitions() | ||
284 | { | ||
285 | if (lookupDefinitions == null) | ||
286 | { | ||
287 | lookupDefinitions = new EObjectContainmentEList<LookupDefinition>(LookupDefinition.class, this, CftLanguagePackage.MAPPING_DEFINITION__LOOKUP_DEFINITIONS); | ||
288 | } | ||
289 | return lookupDefinitions; | ||
290 | } | ||
291 | |||
292 | /** | ||
293 | * <!-- begin-user-doc --> | ||
294 | * <!-- end-user-doc --> | ||
295 | * @generated | ||
296 | */ | ||
297 | @Override | ||
298 | public EList<Assignment> getAssignments() | ||
299 | { | ||
300 | if (assignments == null) | ||
301 | { | ||
302 | assignments = new EObjectContainmentEList<Assignment>(Assignment.class, this, CftLanguagePackage.MAPPING_DEFINITION__ASSIGNMENTS); | ||
303 | } | ||
304 | return assignments; | ||
305 | } | ||
306 | |||
307 | /** | ||
308 | * <!-- begin-user-doc --> | ||
309 | * <!-- end-user-doc --> | ||
310 | * @generated | ||
311 | */ | ||
312 | @Override | ||
313 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
314 | { | ||
315 | switch (featureID) | ||
316 | { | ||
317 | case CftLanguagePackage.MAPPING_DEFINITION__PARAMETERS: | ||
318 | return ((InternalEList<?>)getParameters()).basicRemove(otherEnd, msgs); | ||
319 | case CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE: | ||
320 | return basicSetComponentInstance(null, msgs); | ||
321 | case CftLanguagePackage.MAPPING_DEFINITION__LOOKUP_DEFINITIONS: | ||
322 | return ((InternalEList<?>)getLookupDefinitions()).basicRemove(otherEnd, msgs); | ||
323 | case CftLanguagePackage.MAPPING_DEFINITION__ASSIGNMENTS: | ||
324 | return ((InternalEList<?>)getAssignments()).basicRemove(otherEnd, msgs); | ||
325 | } | ||
326 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
327 | } | ||
328 | |||
329 | /** | ||
330 | * <!-- begin-user-doc --> | ||
331 | * <!-- end-user-doc --> | ||
332 | * @generated | ||
333 | */ | ||
334 | @Override | ||
335 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
336 | { | ||
337 | switch (featureID) | ||
338 | { | ||
339 | case CftLanguagePackage.MAPPING_DEFINITION__TOP_LEVEL: | ||
340 | return isTopLevel(); | ||
341 | case CftLanguagePackage.MAPPING_DEFINITION__PATTERN: | ||
342 | if (resolve) return getPattern(); | ||
343 | return basicGetPattern(); | ||
344 | case CftLanguagePackage.MAPPING_DEFINITION__PARAMETERS: | ||
345 | return getParameters(); | ||
346 | case CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE: | ||
347 | return getComponentInstance(); | ||
348 | case CftLanguagePackage.MAPPING_DEFINITION__LOOKUP_DEFINITIONS: | ||
349 | return getLookupDefinitions(); | ||
350 | case CftLanguagePackage.MAPPING_DEFINITION__ASSIGNMENTS: | ||
351 | return getAssignments(); | ||
352 | } | ||
353 | return super.eGet(featureID, resolve, coreType); | ||
354 | } | ||
355 | |||
356 | /** | ||
357 | * <!-- begin-user-doc --> | ||
358 | * <!-- end-user-doc --> | ||
359 | * @generated | ||
360 | */ | ||
361 | @SuppressWarnings("unchecked") | ||
362 | @Override | ||
363 | public void eSet(int featureID, Object newValue) | ||
364 | { | ||
365 | switch (featureID) | ||
366 | { | ||
367 | case CftLanguagePackage.MAPPING_DEFINITION__TOP_LEVEL: | ||
368 | setTopLevel((Boolean)newValue); | ||
369 | return; | ||
370 | case CftLanguagePackage.MAPPING_DEFINITION__PATTERN: | ||
371 | setPattern((Pattern)newValue); | ||
372 | return; | ||
373 | case CftLanguagePackage.MAPPING_DEFINITION__PARAMETERS: | ||
374 | getParameters().clear(); | ||
375 | getParameters().addAll((Collection<? extends MappingParameter>)newValue); | ||
376 | return; | ||
377 | case CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE: | ||
378 | setComponentInstance((ComponentInstance)newValue); | ||
379 | return; | ||
380 | case CftLanguagePackage.MAPPING_DEFINITION__LOOKUP_DEFINITIONS: | ||
381 | getLookupDefinitions().clear(); | ||
382 | getLookupDefinitions().addAll((Collection<? extends LookupDefinition>)newValue); | ||
383 | return; | ||
384 | case CftLanguagePackage.MAPPING_DEFINITION__ASSIGNMENTS: | ||
385 | getAssignments().clear(); | ||
386 | getAssignments().addAll((Collection<? extends Assignment>)newValue); | ||
387 | return; | ||
388 | } | ||
389 | super.eSet(featureID, newValue); | ||
390 | } | ||
391 | |||
392 | /** | ||
393 | * <!-- begin-user-doc --> | ||
394 | * <!-- end-user-doc --> | ||
395 | * @generated | ||
396 | */ | ||
397 | @Override | ||
398 | public void eUnset(int featureID) | ||
399 | { | ||
400 | switch (featureID) | ||
401 | { | ||
402 | case CftLanguagePackage.MAPPING_DEFINITION__TOP_LEVEL: | ||
403 | setTopLevel(TOP_LEVEL_EDEFAULT); | ||
404 | return; | ||
405 | case CftLanguagePackage.MAPPING_DEFINITION__PATTERN: | ||
406 | setPattern((Pattern)null); | ||
407 | return; | ||
408 | case CftLanguagePackage.MAPPING_DEFINITION__PARAMETERS: | ||
409 | getParameters().clear(); | ||
410 | return; | ||
411 | case CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE: | ||
412 | setComponentInstance((ComponentInstance)null); | ||
413 | return; | ||
414 | case CftLanguagePackage.MAPPING_DEFINITION__LOOKUP_DEFINITIONS: | ||
415 | getLookupDefinitions().clear(); | ||
416 | return; | ||
417 | case CftLanguagePackage.MAPPING_DEFINITION__ASSIGNMENTS: | ||
418 | getAssignments().clear(); | ||
419 | return; | ||
420 | } | ||
421 | super.eUnset(featureID); | ||
422 | } | ||
423 | |||
424 | /** | ||
425 | * <!-- begin-user-doc --> | ||
426 | * <!-- end-user-doc --> | ||
427 | * @generated | ||
428 | */ | ||
429 | @Override | ||
430 | public boolean eIsSet(int featureID) | ||
431 | { | ||
432 | switch (featureID) | ||
433 | { | ||
434 | case CftLanguagePackage.MAPPING_DEFINITION__TOP_LEVEL: | ||
435 | return topLevel != TOP_LEVEL_EDEFAULT; | ||
436 | case CftLanguagePackage.MAPPING_DEFINITION__PATTERN: | ||
437 | return pattern != null; | ||
438 | case CftLanguagePackage.MAPPING_DEFINITION__PARAMETERS: | ||
439 | return parameters != null && !parameters.isEmpty(); | ||
440 | case CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE: | ||
441 | return componentInstance != null; | ||
442 | case CftLanguagePackage.MAPPING_DEFINITION__LOOKUP_DEFINITIONS: | ||
443 | return lookupDefinitions != null && !lookupDefinitions.isEmpty(); | ||
444 | case CftLanguagePackage.MAPPING_DEFINITION__ASSIGNMENTS: | ||
445 | return assignments != null && !assignments.isEmpty(); | ||
446 | } | ||
447 | return super.eIsSet(featureID); | ||
448 | } | ||
449 | |||
450 | /** | ||
451 | * <!-- begin-user-doc --> | ||
452 | * <!-- end-user-doc --> | ||
453 | * @generated | ||
454 | */ | ||
455 | @Override | ||
456 | public String toString() | ||
457 | { | ||
458 | if (eIsProxy()) return super.toString(); | ||
459 | |||
460 | StringBuilder result = new StringBuilder(super.toString()); | ||
461 | result.append(" (topLevel: "); | ||
462 | result.append(topLevel); | ||
463 | result.append(')'); | ||
464 | return result.toString(); | ||
465 | } | ||
466 | |||
467 | } //MappingDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/MappingParameterImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/MappingParameterImpl.java new file mode 100644 index 00000000..9d0ee701 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/MappingParameterImpl.java | |||
@@ -0,0 +1,180 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | |||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
14 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model object '<em><b>Mapping Parameter</b></em>'. | ||
19 | * <!-- end-user-doc --> | ||
20 | * <p> | ||
21 | * The following features are implemented: | ||
22 | * </p> | ||
23 | * <ul> | ||
24 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingParameterImpl#getName <em>Name</em>}</li> | ||
25 | * </ul> | ||
26 | * | ||
27 | * @generated | ||
28 | */ | ||
29 | public class MappingParameterImpl extends MinimalEObjectImpl.Container implements MappingParameter | ||
30 | { | ||
31 | /** | ||
32 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getName() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected static final String NAME_EDEFAULT = null; | ||
40 | |||
41 | /** | ||
42 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getName() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected String name = NAME_EDEFAULT; | ||
50 | |||
51 | /** | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @generated | ||
55 | */ | ||
56 | protected MappingParameterImpl() | ||
57 | { | ||
58 | super(); | ||
59 | } | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected EClass eStaticClass() | ||
68 | { | ||
69 | return CftLanguagePackage.Literals.MAPPING_PARAMETER; | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | @Override | ||
78 | public String getName() | ||
79 | { | ||
80 | return name; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public void setName(String newName) | ||
90 | { | ||
91 | String oldName = name; | ||
92 | name = newName; | ||
93 | if (eNotificationRequired()) | ||
94 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.MAPPING_PARAMETER__NAME, oldName, name)); | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
104 | { | ||
105 | switch (featureID) | ||
106 | { | ||
107 | case CftLanguagePackage.MAPPING_PARAMETER__NAME: | ||
108 | return getName(); | ||
109 | } | ||
110 | return super.eGet(featureID, resolve, coreType); | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | @Override | ||
119 | public void eSet(int featureID, Object newValue) | ||
120 | { | ||
121 | switch (featureID) | ||
122 | { | ||
123 | case CftLanguagePackage.MAPPING_PARAMETER__NAME: | ||
124 | setName((String)newValue); | ||
125 | return; | ||
126 | } | ||
127 | super.eSet(featureID, newValue); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public void eUnset(int featureID) | ||
137 | { | ||
138 | switch (featureID) | ||
139 | { | ||
140 | case CftLanguagePackage.MAPPING_PARAMETER__NAME: | ||
141 | setName(NAME_EDEFAULT); | ||
142 | return; | ||
143 | } | ||
144 | super.eUnset(featureID); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public boolean eIsSet(int featureID) | ||
154 | { | ||
155 | switch (featureID) | ||
156 | { | ||
157 | case CftLanguagePackage.MAPPING_PARAMETER__NAME: | ||
158 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
159 | } | ||
160 | return super.eIsSet(featureID); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public String toString() | ||
170 | { | ||
171 | if (eIsProxy()) return super.toString(); | ||
172 | |||
173 | StringBuilder result = new StringBuilder(super.toString()); | ||
174 | result.append(" (name: "); | ||
175 | result.append(name); | ||
176 | result.append(')'); | ||
177 | return result.toString(); | ||
178 | } | ||
179 | |||
180 | } //MappingParameterImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/OrGateImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/OrGateImpl.java new file mode 100644 index 00000000..eaaf1686 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/OrGateImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.OrGate; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Or Gate</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class OrGateImpl extends GateDefinitionImpl implements OrGate | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected OrGateImpl() | ||
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 CftLanguagePackage.Literals.OR_GATE; | ||
39 | } | ||
40 | |||
41 | } //OrGateImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/TransformationDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/TransformationDefinitionImpl.java new file mode 100644 index 00000000..89e89b0f --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/TransformationDefinitionImpl.java | |||
@@ -0,0 +1,244 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition; | ||
9 | |||
10 | import java.util.Collection; | ||
11 | |||
12 | import org.eclipse.emf.common.notify.Notification; | ||
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.ENotificationImpl; | ||
21 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
22 | |||
23 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
24 | import org.eclipse.emf.ecore.util.InternalEList; | ||
25 | |||
26 | /** | ||
27 | * <!-- begin-user-doc --> | ||
28 | * An implementation of the model object '<em><b>Transformation Definition</b></em>'. | ||
29 | * <!-- end-user-doc --> | ||
30 | * <p> | ||
31 | * The following features are implemented: | ||
32 | * </p> | ||
33 | * <ul> | ||
34 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.TransformationDefinitionImpl#getName <em>Name</em>}</li> | ||
35 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.TransformationDefinitionImpl#getMappingDefinitions <em>Mapping Definitions</em>}</li> | ||
36 | * </ul> | ||
37 | * | ||
38 | * @generated | ||
39 | */ | ||
40 | public class TransformationDefinitionImpl extends MinimalEObjectImpl.Container implements TransformationDefinition | ||
41 | { | ||
42 | /** | ||
43 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @see #getName() | ||
47 | * @generated | ||
48 | * @ordered | ||
49 | */ | ||
50 | protected static final String NAME_EDEFAULT = null; | ||
51 | |||
52 | /** | ||
53 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @see #getName() | ||
57 | * @generated | ||
58 | * @ordered | ||
59 | */ | ||
60 | protected String name = NAME_EDEFAULT; | ||
61 | |||
62 | /** | ||
63 | * The cached value of the '{@link #getMappingDefinitions() <em>Mapping Definitions</em>}' containment reference list. | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @see #getMappingDefinitions() | ||
67 | * @generated | ||
68 | * @ordered | ||
69 | */ | ||
70 | protected EList<MappingDefinition> mappingDefinitions; | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | protected TransformationDefinitionImpl() | ||
78 | { | ||
79 | super(); | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | protected EClass eStaticClass() | ||
89 | { | ||
90 | return CftLanguagePackage.Literals.TRANSFORMATION_DEFINITION; | ||
91 | } | ||
92 | |||
93 | /** | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @generated | ||
97 | */ | ||
98 | @Override | ||
99 | public String getName() | ||
100 | { | ||
101 | return name; | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | @Override | ||
110 | public void setName(String newName) | ||
111 | { | ||
112 | String oldName = name; | ||
113 | name = newName; | ||
114 | if (eNotificationRequired()) | ||
115 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.TRANSFORMATION_DEFINITION__NAME, oldName, name)); | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | @Override | ||
124 | public EList<MappingDefinition> getMappingDefinitions() | ||
125 | { | ||
126 | if (mappingDefinitions == null) | ||
127 | { | ||
128 | mappingDefinitions = new EObjectContainmentEList<MappingDefinition>(MappingDefinition.class, this, CftLanguagePackage.TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS); | ||
129 | } | ||
130 | return mappingDefinitions; | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | @Override | ||
139 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
140 | { | ||
141 | switch (featureID) | ||
142 | { | ||
143 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS: | ||
144 | return ((InternalEList<?>)getMappingDefinitions()).basicRemove(otherEnd, msgs); | ||
145 | } | ||
146 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
147 | } | ||
148 | |||
149 | /** | ||
150 | * <!-- begin-user-doc --> | ||
151 | * <!-- end-user-doc --> | ||
152 | * @generated | ||
153 | */ | ||
154 | @Override | ||
155 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
156 | { | ||
157 | switch (featureID) | ||
158 | { | ||
159 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__NAME: | ||
160 | return getName(); | ||
161 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS: | ||
162 | return getMappingDefinitions(); | ||
163 | } | ||
164 | return super.eGet(featureID, resolve, coreType); | ||
165 | } | ||
166 | |||
167 | /** | ||
168 | * <!-- begin-user-doc --> | ||
169 | * <!-- end-user-doc --> | ||
170 | * @generated | ||
171 | */ | ||
172 | @SuppressWarnings("unchecked") | ||
173 | @Override | ||
174 | public void eSet(int featureID, Object newValue) | ||
175 | { | ||
176 | switch (featureID) | ||
177 | { | ||
178 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__NAME: | ||
179 | setName((String)newValue); | ||
180 | return; | ||
181 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS: | ||
182 | getMappingDefinitions().clear(); | ||
183 | getMappingDefinitions().addAll((Collection<? extends MappingDefinition>)newValue); | ||
184 | return; | ||
185 | } | ||
186 | super.eSet(featureID, newValue); | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | @Override | ||
195 | public void eUnset(int featureID) | ||
196 | { | ||
197 | switch (featureID) | ||
198 | { | ||
199 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__NAME: | ||
200 | setName(NAME_EDEFAULT); | ||
201 | return; | ||
202 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS: | ||
203 | getMappingDefinitions().clear(); | ||
204 | return; | ||
205 | } | ||
206 | super.eUnset(featureID); | ||
207 | } | ||
208 | |||
209 | /** | ||
210 | * <!-- begin-user-doc --> | ||
211 | * <!-- end-user-doc --> | ||
212 | * @generated | ||
213 | */ | ||
214 | @Override | ||
215 | public boolean eIsSet(int featureID) | ||
216 | { | ||
217 | switch (featureID) | ||
218 | { | ||
219 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__NAME: | ||
220 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
221 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS: | ||
222 | return mappingDefinitions != null && !mappingDefinitions.isEmpty(); | ||
223 | } | ||
224 | return super.eIsSet(featureID); | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public String toString() | ||
234 | { | ||
235 | if (eIsProxy()) return super.toString(); | ||
236 | |||
237 | StringBuilder result = new StringBuilder(super.toString()); | ||
238 | result.append(" (name: "); | ||
239 | result.append(name); | ||
240 | result.append(')'); | ||
241 | return result.toString(); | ||
242 | } | ||
243 | |||
244 | } //TransformationDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/VariableImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/VariableImpl.java new file mode 100644 index 00000000..3c7d1ccb --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/VariableImpl.java | |||
@@ -0,0 +1,180 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | |||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
14 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model object '<em><b>Variable</b></em>'. | ||
19 | * <!-- end-user-doc --> | ||
20 | * <p> | ||
21 | * The following features are implemented: | ||
22 | * </p> | ||
23 | * <ul> | ||
24 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.VariableImpl#getName <em>Name</em>}</li> | ||
25 | * </ul> | ||
26 | * | ||
27 | * @generated | ||
28 | */ | ||
29 | public class VariableImpl extends MinimalEObjectImpl.Container implements Variable | ||
30 | { | ||
31 | /** | ||
32 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getName() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected static final String NAME_EDEFAULT = null; | ||
40 | |||
41 | /** | ||
42 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getName() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected String name = NAME_EDEFAULT; | ||
50 | |||
51 | /** | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @generated | ||
55 | */ | ||
56 | protected VariableImpl() | ||
57 | { | ||
58 | super(); | ||
59 | } | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected EClass eStaticClass() | ||
68 | { | ||
69 | return CftLanguagePackage.Literals.VARIABLE; | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | @Override | ||
78 | public String getName() | ||
79 | { | ||
80 | return name; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public void setName(String newName) | ||
90 | { | ||
91 | String oldName = name; | ||
92 | name = newName; | ||
93 | if (eNotificationRequired()) | ||
94 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.VARIABLE__NAME, oldName, name)); | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
104 | { | ||
105 | switch (featureID) | ||
106 | { | ||
107 | case CftLanguagePackage.VARIABLE__NAME: | ||
108 | return getName(); | ||
109 | } | ||
110 | return super.eGet(featureID, resolve, coreType); | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | @Override | ||
119 | public void eSet(int featureID, Object newValue) | ||
120 | { | ||
121 | switch (featureID) | ||
122 | { | ||
123 | case CftLanguagePackage.VARIABLE__NAME: | ||
124 | setName((String)newValue); | ||
125 | return; | ||
126 | } | ||
127 | super.eSet(featureID, newValue); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public void eUnset(int featureID) | ||
137 | { | ||
138 | switch (featureID) | ||
139 | { | ||
140 | case CftLanguagePackage.VARIABLE__NAME: | ||
141 | setName(NAME_EDEFAULT); | ||
142 | return; | ||
143 | } | ||
144 | super.eUnset(featureID); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public boolean eIsSet(int featureID) | ||
154 | { | ||
155 | switch (featureID) | ||
156 | { | ||
157 | case CftLanguagePackage.VARIABLE__NAME: | ||
158 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
159 | } | ||
160 | return super.eIsSet(featureID); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public String toString() | ||
170 | { | ||
171 | if (eIsProxy()) return super.toString(); | ||
172 | |||
173 | StringBuilder result = new StringBuilder(super.toString()); | ||
174 | result.append(" (name: "); | ||
175 | result.append(name); | ||
176 | result.append(')'); | ||
177 | return result.toString(); | ||
178 | } | ||
179 | |||
180 | } //VariableImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageAdapterFactory.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageAdapterFactory.java new file mode 100644 index 00000000..035b1191 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageAdapterFactory.java | |||
@@ -0,0 +1,473 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.util; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.*; | ||
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.faulttree.components.cftLanguage.CftLanguagePackage | ||
21 | * @generated | ||
22 | */ | ||
23 | public class CftLanguageAdapterFactory extends AdapterFactoryImpl | ||
24 | { | ||
25 | /** | ||
26 | * The cached model package. | ||
27 | * <!-- begin-user-doc --> | ||
28 | * <!-- end-user-doc --> | ||
29 | * @generated | ||
30 | */ | ||
31 | protected static CftLanguagePackage modelPackage; | ||
32 | |||
33 | /** | ||
34 | * Creates an instance of the adapter factory. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @generated | ||
38 | */ | ||
39 | public CftLanguageAdapterFactory() | ||
40 | { | ||
41 | if (modelPackage == null) | ||
42 | { | ||
43 | modelPackage = CftLanguagePackage.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 CftLanguageSwitch<Adapter> modelSwitch = | ||
76 | new CftLanguageSwitch<Adapter>() | ||
77 | { | ||
78 | @Override | ||
79 | public Adapter caseCftModel(CftModel object) | ||
80 | { | ||
81 | return createCftModelAdapter(); | ||
82 | } | ||
83 | @Override | ||
84 | public Adapter caseImportDeclaration(ImportDeclaration object) | ||
85 | { | ||
86 | return createImportDeclarationAdapter(); | ||
87 | } | ||
88 | @Override | ||
89 | public Adapter caseComponentDefinition(ComponentDefinition object) | ||
90 | { | ||
91 | return createComponentDefinitionAdapter(); | ||
92 | } | ||
93 | @Override | ||
94 | public Adapter caseEventDeclaration(EventDeclaration object) | ||
95 | { | ||
96 | return createEventDeclarationAdapter(); | ||
97 | } | ||
98 | @Override | ||
99 | public Adapter caseInputEvent(InputEvent object) | ||
100 | { | ||
101 | return createInputEventAdapter(); | ||
102 | } | ||
103 | @Override | ||
104 | public Adapter caseEventDefinition(EventDefinition object) | ||
105 | { | ||
106 | return createEventDefinitionAdapter(); | ||
107 | } | ||
108 | @Override | ||
109 | public Adapter caseBasicEventDefinition(BasicEventDefinition object) | ||
110 | { | ||
111 | return createBasicEventDefinitionAdapter(); | ||
112 | } | ||
113 | @Override | ||
114 | public Adapter caseGateDefinition(GateDefinition object) | ||
115 | { | ||
116 | return createGateDefinitionAdapter(); | ||
117 | } | ||
118 | @Override | ||
119 | public Adapter caseAndGate(AndGate object) | ||
120 | { | ||
121 | return createAndGateAdapter(); | ||
122 | } | ||
123 | @Override | ||
124 | public Adapter caseOrGate(OrGate object) | ||
125 | { | ||
126 | return createOrGateAdapter(); | ||
127 | } | ||
128 | @Override | ||
129 | public Adapter caseTransformationDefinition(TransformationDefinition object) | ||
130 | { | ||
131 | return createTransformationDefinitionAdapter(); | ||
132 | } | ||
133 | @Override | ||
134 | public Adapter caseMappingDefinition(MappingDefinition object) | ||
135 | { | ||
136 | return createMappingDefinitionAdapter(); | ||
137 | } | ||
138 | @Override | ||
139 | public Adapter caseMappingParameter(MappingParameter object) | ||
140 | { | ||
141 | return createMappingParameterAdapter(); | ||
142 | } | ||
143 | @Override | ||
144 | public Adapter caseLookupDefinition(LookupDefinition object) | ||
145 | { | ||
146 | return createLookupDefinitionAdapter(); | ||
147 | } | ||
148 | @Override | ||
149 | public Adapter caseVariable(Variable object) | ||
150 | { | ||
151 | return createVariableAdapter(); | ||
152 | } | ||
153 | @Override | ||
154 | public Adapter caseAssignment(Assignment object) | ||
155 | { | ||
156 | return createAssignmentAdapter(); | ||
157 | } | ||
158 | @Override | ||
159 | public Adapter caseEventReference(EventReference object) | ||
160 | { | ||
161 | return createEventReferenceAdapter(); | ||
162 | } | ||
163 | @Override | ||
164 | public Adapter caseComponentInstance(ComponentInstance object) | ||
165 | { | ||
166 | return createComponentInstanceAdapter(); | ||
167 | } | ||
168 | @Override | ||
169 | public Adapter defaultCase(EObject object) | ||
170 | { | ||
171 | return createEObjectAdapter(); | ||
172 | } | ||
173 | }; | ||
174 | |||
175 | /** | ||
176 | * Creates an adapter for the <code>target</code>. | ||
177 | * <!-- begin-user-doc --> | ||
178 | * <!-- end-user-doc --> | ||
179 | * @param target the object to adapt. | ||
180 | * @return the adapter for the <code>target</code>. | ||
181 | * @generated | ||
182 | */ | ||
183 | @Override | ||
184 | public Adapter createAdapter(Notifier target) | ||
185 | { | ||
186 | return modelSwitch.doSwitch((EObject)target); | ||
187 | } | ||
188 | |||
189 | |||
190 | /** | ||
191 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel <em>Cft Model</em>}'. | ||
192 | * <!-- begin-user-doc --> | ||
193 | * This default implementation returns null so that we can easily ignore cases; | ||
194 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
195 | * <!-- end-user-doc --> | ||
196 | * @return the new adapter. | ||
197 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel | ||
198 | * @generated | ||
199 | */ | ||
200 | public Adapter createCftModelAdapter() | ||
201 | { | ||
202 | return null; | ||
203 | } | ||
204 | |||
205 | /** | ||
206 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration <em>Import Declaration</em>}'. | ||
207 | * <!-- begin-user-doc --> | ||
208 | * This default implementation returns null so that we can easily ignore cases; | ||
209 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
210 | * <!-- end-user-doc --> | ||
211 | * @return the new adapter. | ||
212 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration | ||
213 | * @generated | ||
214 | */ | ||
215 | public Adapter createImportDeclarationAdapter() | ||
216 | { | ||
217 | return null; | ||
218 | } | ||
219 | |||
220 | /** | ||
221 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition <em>Component Definition</em>}'. | ||
222 | * <!-- begin-user-doc --> | ||
223 | * This default implementation returns null so that we can easily ignore cases; | ||
224 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
225 | * <!-- end-user-doc --> | ||
226 | * @return the new adapter. | ||
227 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition | ||
228 | * @generated | ||
229 | */ | ||
230 | public Adapter createComponentDefinitionAdapter() | ||
231 | { | ||
232 | return null; | ||
233 | } | ||
234 | |||
235 | /** | ||
236 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration <em>Event Declaration</em>}'. | ||
237 | * <!-- begin-user-doc --> | ||
238 | * This default implementation returns null so that we can easily ignore cases; | ||
239 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
240 | * <!-- end-user-doc --> | ||
241 | * @return the new adapter. | ||
242 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration | ||
243 | * @generated | ||
244 | */ | ||
245 | public Adapter createEventDeclarationAdapter() | ||
246 | { | ||
247 | return null; | ||
248 | } | ||
249 | |||
250 | /** | ||
251 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent <em>Input Event</em>}'. | ||
252 | * <!-- begin-user-doc --> | ||
253 | * This default implementation returns null so that we can easily ignore cases; | ||
254 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
255 | * <!-- end-user-doc --> | ||
256 | * @return the new adapter. | ||
257 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent | ||
258 | * @generated | ||
259 | */ | ||
260 | public Adapter createInputEventAdapter() | ||
261 | { | ||
262 | return null; | ||
263 | } | ||
264 | |||
265 | /** | ||
266 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition <em>Event Definition</em>}'. | ||
267 | * <!-- begin-user-doc --> | ||
268 | * This default implementation returns null so that we can easily ignore cases; | ||
269 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
270 | * <!-- end-user-doc --> | ||
271 | * @return the new adapter. | ||
272 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition | ||
273 | * @generated | ||
274 | */ | ||
275 | public Adapter createEventDefinitionAdapter() | ||
276 | { | ||
277 | return null; | ||
278 | } | ||
279 | |||
280 | /** | ||
281 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition <em>Basic Event Definition</em>}'. | ||
282 | * <!-- begin-user-doc --> | ||
283 | * This default implementation returns null so that we can easily ignore cases; | ||
284 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
285 | * <!-- end-user-doc --> | ||
286 | * @return the new adapter. | ||
287 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition | ||
288 | * @generated | ||
289 | */ | ||
290 | public Adapter createBasicEventDefinitionAdapter() | ||
291 | { | ||
292 | return null; | ||
293 | } | ||
294 | |||
295 | /** | ||
296 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition <em>Gate Definition</em>}'. | ||
297 | * <!-- begin-user-doc --> | ||
298 | * This default implementation returns null so that we can easily ignore cases; | ||
299 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
300 | * <!-- end-user-doc --> | ||
301 | * @return the new adapter. | ||
302 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition | ||
303 | * @generated | ||
304 | */ | ||
305 | public Adapter createGateDefinitionAdapter() | ||
306 | { | ||
307 | return null; | ||
308 | } | ||
309 | |||
310 | /** | ||
311 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.AndGate <em>And Gate</em>}'. | ||
312 | * <!-- begin-user-doc --> | ||
313 | * This default implementation returns null so that we can easily ignore cases; | ||
314 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
315 | * <!-- end-user-doc --> | ||
316 | * @return the new adapter. | ||
317 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.AndGate | ||
318 | * @generated | ||
319 | */ | ||
320 | public Adapter createAndGateAdapter() | ||
321 | { | ||
322 | return null; | ||
323 | } | ||
324 | |||
325 | /** | ||
326 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.OrGate <em>Or Gate</em>}'. | ||
327 | * <!-- begin-user-doc --> | ||
328 | * This default implementation returns null so that we can easily ignore cases; | ||
329 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
330 | * <!-- end-user-doc --> | ||
331 | * @return the new adapter. | ||
332 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.OrGate | ||
333 | * @generated | ||
334 | */ | ||
335 | public Adapter createOrGateAdapter() | ||
336 | { | ||
337 | return null; | ||
338 | } | ||
339 | |||
340 | /** | ||
341 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition <em>Transformation Definition</em>}'. | ||
342 | * <!-- begin-user-doc --> | ||
343 | * This default implementation returns null so that we can easily ignore cases; | ||
344 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
345 | * <!-- end-user-doc --> | ||
346 | * @return the new adapter. | ||
347 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition | ||
348 | * @generated | ||
349 | */ | ||
350 | public Adapter createTransformationDefinitionAdapter() | ||
351 | { | ||
352 | return null; | ||
353 | } | ||
354 | |||
355 | /** | ||
356 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition <em>Mapping Definition</em>}'. | ||
357 | * <!-- begin-user-doc --> | ||
358 | * This default implementation returns null so that we can easily ignore cases; | ||
359 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
360 | * <!-- end-user-doc --> | ||
361 | * @return the new adapter. | ||
362 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition | ||
363 | * @generated | ||
364 | */ | ||
365 | public Adapter createMappingDefinitionAdapter() | ||
366 | { | ||
367 | return null; | ||
368 | } | ||
369 | |||
370 | /** | ||
371 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter <em>Mapping Parameter</em>}'. | ||
372 | * <!-- begin-user-doc --> | ||
373 | * This default implementation returns null so that we can easily ignore cases; | ||
374 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
375 | * <!-- end-user-doc --> | ||
376 | * @return the new adapter. | ||
377 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter | ||
378 | * @generated | ||
379 | */ | ||
380 | public Adapter createMappingParameterAdapter() | ||
381 | { | ||
382 | return null; | ||
383 | } | ||
384 | |||
385 | /** | ||
386 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition <em>Lookup Definition</em>}'. | ||
387 | * <!-- begin-user-doc --> | ||
388 | * This default implementation returns null so that we can easily ignore cases; | ||
389 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
390 | * <!-- end-user-doc --> | ||
391 | * @return the new adapter. | ||
392 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition | ||
393 | * @generated | ||
394 | */ | ||
395 | public Adapter createLookupDefinitionAdapter() | ||
396 | { | ||
397 | return null; | ||
398 | } | ||
399 | |||
400 | /** | ||
401 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable <em>Variable</em>}'. | ||
402 | * <!-- begin-user-doc --> | ||
403 | * This default implementation returns null so that we can easily ignore cases; | ||
404 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
405 | * <!-- end-user-doc --> | ||
406 | * @return the new adapter. | ||
407 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable | ||
408 | * @generated | ||
409 | */ | ||
410 | public Adapter createVariableAdapter() | ||
411 | { | ||
412 | return null; | ||
413 | } | ||
414 | |||
415 | /** | ||
416 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment <em>Assignment</em>}'. | ||
417 | * <!-- begin-user-doc --> | ||
418 | * This default implementation returns null so that we can easily ignore cases; | ||
419 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
420 | * <!-- end-user-doc --> | ||
421 | * @return the new adapter. | ||
422 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment | ||
423 | * @generated | ||
424 | */ | ||
425 | public Adapter createAssignmentAdapter() | ||
426 | { | ||
427 | return null; | ||
428 | } | ||
429 | |||
430 | /** | ||
431 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference <em>Event Reference</em>}'. | ||
432 | * <!-- begin-user-doc --> | ||
433 | * This default implementation returns null so that we can easily ignore cases; | ||
434 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
435 | * <!-- end-user-doc --> | ||
436 | * @return the new adapter. | ||
437 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference | ||
438 | * @generated | ||
439 | */ | ||
440 | public Adapter createEventReferenceAdapter() | ||
441 | { | ||
442 | return null; | ||
443 | } | ||
444 | |||
445 | /** | ||
446 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance <em>Component Instance</em>}'. | ||
447 | * <!-- begin-user-doc --> | ||
448 | * This default implementation returns null so that we can easily ignore cases; | ||
449 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
450 | * <!-- end-user-doc --> | ||
451 | * @return the new adapter. | ||
452 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance | ||
453 | * @generated | ||
454 | */ | ||
455 | public Adapter createComponentInstanceAdapter() | ||
456 | { | ||
457 | return null; | ||
458 | } | ||
459 | |||
460 | /** | ||
461 | * Creates a new adapter for the default case. | ||
462 | * <!-- begin-user-doc --> | ||
463 | * This default implementation returns null. | ||
464 | * <!-- end-user-doc --> | ||
465 | * @return the new adapter. | ||
466 | * @generated | ||
467 | */ | ||
468 | public Adapter createEObjectAdapter() | ||
469 | { | ||
470 | return null; | ||
471 | } | ||
472 | |||
473 | } //CftLanguageAdapterFactory | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageSwitch.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageSwitch.java new file mode 100644 index 00000000..29266601 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageSwitch.java | |||
@@ -0,0 +1,525 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.util; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.*; | ||
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.faulttree.components.cftLanguage.CftLanguagePackage | ||
24 | * @generated | ||
25 | */ | ||
26 | public class CftLanguageSwitch<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 CftLanguagePackage modelPackage; | ||
35 | |||
36 | /** | ||
37 | * Creates an instance of the switch. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @generated | ||
41 | */ | ||
42 | public CftLanguageSwitch() | ||
43 | { | ||
44 | if (modelPackage == null) | ||
45 | { | ||
46 | modelPackage = CftLanguagePackage.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 CftLanguagePackage.CFT_MODEL: | ||
77 | { | ||
78 | CftModel cftModel = (CftModel)theEObject; | ||
79 | T result = caseCftModel(cftModel); | ||
80 | if (result == null) result = defaultCase(theEObject); | ||
81 | return result; | ||
82 | } | ||
83 | case CftLanguagePackage.IMPORT_DECLARATION: | ||
84 | { | ||
85 | ImportDeclaration importDeclaration = (ImportDeclaration)theEObject; | ||
86 | T result = caseImportDeclaration(importDeclaration); | ||
87 | if (result == null) result = defaultCase(theEObject); | ||
88 | return result; | ||
89 | } | ||
90 | case CftLanguagePackage.COMPONENT_DEFINITION: | ||
91 | { | ||
92 | ComponentDefinition componentDefinition = (ComponentDefinition)theEObject; | ||
93 | T result = caseComponentDefinition(componentDefinition); | ||
94 | if (result == null) result = defaultCase(theEObject); | ||
95 | return result; | ||
96 | } | ||
97 | case CftLanguagePackage.EVENT_DECLARATION: | ||
98 | { | ||
99 | EventDeclaration eventDeclaration = (EventDeclaration)theEObject; | ||
100 | T result = caseEventDeclaration(eventDeclaration); | ||
101 | if (result == null) result = defaultCase(theEObject); | ||
102 | return result; | ||
103 | } | ||
104 | case CftLanguagePackage.INPUT_EVENT: | ||
105 | { | ||
106 | InputEvent inputEvent = (InputEvent)theEObject; | ||
107 | T result = caseInputEvent(inputEvent); | ||
108 | if (result == null) result = caseEventDeclaration(inputEvent); | ||
109 | if (result == null) result = defaultCase(theEObject); | ||
110 | return result; | ||
111 | } | ||
112 | case CftLanguagePackage.EVENT_DEFINITION: | ||
113 | { | ||
114 | EventDefinition eventDefinition = (EventDefinition)theEObject; | ||
115 | T result = caseEventDefinition(eventDefinition); | ||
116 | if (result == null) result = caseEventDeclaration(eventDefinition); | ||
117 | if (result == null) result = defaultCase(theEObject); | ||
118 | return result; | ||
119 | } | ||
120 | case CftLanguagePackage.BASIC_EVENT_DEFINITION: | ||
121 | { | ||
122 | BasicEventDefinition basicEventDefinition = (BasicEventDefinition)theEObject; | ||
123 | T result = caseBasicEventDefinition(basicEventDefinition); | ||
124 | if (result == null) result = caseEventDefinition(basicEventDefinition); | ||
125 | if (result == null) result = caseEventDeclaration(basicEventDefinition); | ||
126 | if (result == null) result = defaultCase(theEObject); | ||
127 | return result; | ||
128 | } | ||
129 | case CftLanguagePackage.GATE_DEFINITION: | ||
130 | { | ||
131 | GateDefinition gateDefinition = (GateDefinition)theEObject; | ||
132 | T result = caseGateDefinition(gateDefinition); | ||
133 | if (result == null) result = caseEventDefinition(gateDefinition); | ||
134 | if (result == null) result = caseEventDeclaration(gateDefinition); | ||
135 | if (result == null) result = defaultCase(theEObject); | ||
136 | return result; | ||
137 | } | ||
138 | case CftLanguagePackage.AND_GATE: | ||
139 | { | ||
140 | AndGate andGate = (AndGate)theEObject; | ||
141 | T result = caseAndGate(andGate); | ||
142 | if (result == null) result = caseGateDefinition(andGate); | ||
143 | if (result == null) result = caseEventDefinition(andGate); | ||
144 | if (result == null) result = caseEventDeclaration(andGate); | ||
145 | if (result == null) result = defaultCase(theEObject); | ||
146 | return result; | ||
147 | } | ||
148 | case CftLanguagePackage.OR_GATE: | ||
149 | { | ||
150 | OrGate orGate = (OrGate)theEObject; | ||
151 | T result = caseOrGate(orGate); | ||
152 | if (result == null) result = caseGateDefinition(orGate); | ||
153 | if (result == null) result = caseEventDefinition(orGate); | ||
154 | if (result == null) result = caseEventDeclaration(orGate); | ||
155 | if (result == null) result = defaultCase(theEObject); | ||
156 | return result; | ||
157 | } | ||
158 | case CftLanguagePackage.TRANSFORMATION_DEFINITION: | ||
159 | { | ||
160 | TransformationDefinition transformationDefinition = (TransformationDefinition)theEObject; | ||
161 | T result = caseTransformationDefinition(transformationDefinition); | ||
162 | if (result == null) result = defaultCase(theEObject); | ||
163 | return result; | ||
164 | } | ||
165 | case CftLanguagePackage.MAPPING_DEFINITION: | ||
166 | { | ||
167 | MappingDefinition mappingDefinition = (MappingDefinition)theEObject; | ||
168 | T result = caseMappingDefinition(mappingDefinition); | ||
169 | if (result == null) result = defaultCase(theEObject); | ||
170 | return result; | ||
171 | } | ||
172 | case CftLanguagePackage.MAPPING_PARAMETER: | ||
173 | { | ||
174 | MappingParameter mappingParameter = (MappingParameter)theEObject; | ||
175 | T result = caseMappingParameter(mappingParameter); | ||
176 | if (result == null) result = defaultCase(theEObject); | ||
177 | return result; | ||
178 | } | ||
179 | case CftLanguagePackage.LOOKUP_DEFINITION: | ||
180 | { | ||
181 | LookupDefinition lookupDefinition = (LookupDefinition)theEObject; | ||
182 | T result = caseLookupDefinition(lookupDefinition); | ||
183 | if (result == null) result = caseVariable(lookupDefinition); | ||
184 | if (result == null) result = defaultCase(theEObject); | ||
185 | return result; | ||
186 | } | ||
187 | case CftLanguagePackage.VARIABLE: | ||
188 | { | ||
189 | Variable variable = (Variable)theEObject; | ||
190 | T result = caseVariable(variable); | ||
191 | if (result == null) result = defaultCase(theEObject); | ||
192 | return result; | ||
193 | } | ||
194 | case CftLanguagePackage.ASSIGNMENT: | ||
195 | { | ||
196 | Assignment assignment = (Assignment)theEObject; | ||
197 | T result = caseAssignment(assignment); | ||
198 | if (result == null) result = defaultCase(theEObject); | ||
199 | return result; | ||
200 | } | ||
201 | case CftLanguagePackage.EVENT_REFERENCE: | ||
202 | { | ||
203 | EventReference eventReference = (EventReference)theEObject; | ||
204 | T result = caseEventReference(eventReference); | ||
205 | if (result == null) result = defaultCase(theEObject); | ||
206 | return result; | ||
207 | } | ||
208 | case CftLanguagePackage.COMPONENT_INSTANCE: | ||
209 | { | ||
210 | ComponentInstance componentInstance = (ComponentInstance)theEObject; | ||
211 | T result = caseComponentInstance(componentInstance); | ||
212 | if (result == null) result = caseVariable(componentInstance); | ||
213 | if (result == null) result = defaultCase(theEObject); | ||
214 | return result; | ||
215 | } | ||
216 | default: return defaultCase(theEObject); | ||
217 | } | ||
218 | } | ||
219 | |||
220 | /** | ||
221 | * Returns the result of interpreting the object as an instance of '<em>Cft Model</em>'. | ||
222 | * <!-- begin-user-doc --> | ||
223 | * This implementation returns null; | ||
224 | * returning a non-null result will terminate the switch. | ||
225 | * <!-- end-user-doc --> | ||
226 | * @param object the target of the switch. | ||
227 | * @return the result of interpreting the object as an instance of '<em>Cft Model</em>'. | ||
228 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
229 | * @generated | ||
230 | */ | ||
231 | public T caseCftModel(CftModel object) | ||
232 | { | ||
233 | return null; | ||
234 | } | ||
235 | |||
236 | /** | ||
237 | * Returns the result of interpreting the object as an instance of '<em>Import Declaration</em>'. | ||
238 | * <!-- begin-user-doc --> | ||
239 | * This implementation returns null; | ||
240 | * returning a non-null result will terminate the switch. | ||
241 | * <!-- end-user-doc --> | ||
242 | * @param object the target of the switch. | ||
243 | * @return the result of interpreting the object as an instance of '<em>Import Declaration</em>'. | ||
244 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
245 | * @generated | ||
246 | */ | ||
247 | public T caseImportDeclaration(ImportDeclaration object) | ||
248 | { | ||
249 | return null; | ||
250 | } | ||
251 | |||
252 | /** | ||
253 | * Returns the result of interpreting the object as an instance of '<em>Component Definition</em>'. | ||
254 | * <!-- begin-user-doc --> | ||
255 | * This implementation returns null; | ||
256 | * returning a non-null result will terminate the switch. | ||
257 | * <!-- end-user-doc --> | ||
258 | * @param object the target of the switch. | ||
259 | * @return the result of interpreting the object as an instance of '<em>Component Definition</em>'. | ||
260 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
261 | * @generated | ||
262 | */ | ||
263 | public T caseComponentDefinition(ComponentDefinition object) | ||
264 | { | ||
265 | return null; | ||
266 | } | ||
267 | |||
268 | /** | ||
269 | * Returns the result of interpreting the object as an instance of '<em>Event Declaration</em>'. | ||
270 | * <!-- begin-user-doc --> | ||
271 | * This implementation returns null; | ||
272 | * returning a non-null result will terminate the switch. | ||
273 | * <!-- end-user-doc --> | ||
274 | * @param object the target of the switch. | ||
275 | * @return the result of interpreting the object as an instance of '<em>Event Declaration</em>'. | ||
276 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
277 | * @generated | ||
278 | */ | ||
279 | public T caseEventDeclaration(EventDeclaration object) | ||
280 | { | ||
281 | return null; | ||
282 | } | ||
283 | |||
284 | /** | ||
285 | * Returns the result of interpreting the object as an instance of '<em>Input Event</em>'. | ||
286 | * <!-- begin-user-doc --> | ||
287 | * This implementation returns null; | ||
288 | * returning a non-null result will terminate the switch. | ||
289 | * <!-- end-user-doc --> | ||
290 | * @param object the target of the switch. | ||
291 | * @return the result of interpreting the object as an instance of '<em>Input Event</em>'. | ||
292 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
293 | * @generated | ||
294 | */ | ||
295 | public T caseInputEvent(InputEvent object) | ||
296 | { | ||
297 | return null; | ||
298 | } | ||
299 | |||
300 | /** | ||
301 | * Returns the result of interpreting the object as an instance of '<em>Event Definition</em>'. | ||
302 | * <!-- begin-user-doc --> | ||
303 | * This implementation returns null; | ||
304 | * returning a non-null result will terminate the switch. | ||
305 | * <!-- end-user-doc --> | ||
306 | * @param object the target of the switch. | ||
307 | * @return the result of interpreting the object as an instance of '<em>Event Definition</em>'. | ||
308 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
309 | * @generated | ||
310 | */ | ||
311 | public T caseEventDefinition(EventDefinition object) | ||
312 | { | ||
313 | return null; | ||
314 | } | ||
315 | |||
316 | /** | ||
317 | * Returns the result of interpreting the object as an instance of '<em>Basic Event Definition</em>'. | ||
318 | * <!-- begin-user-doc --> | ||
319 | * This implementation returns null; | ||
320 | * returning a non-null result will terminate the switch. | ||
321 | * <!-- end-user-doc --> | ||
322 | * @param object the target of the switch. | ||
323 | * @return the result of interpreting the object as an instance of '<em>Basic Event Definition</em>'. | ||
324 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
325 | * @generated | ||
326 | */ | ||
327 | public T caseBasicEventDefinition(BasicEventDefinition object) | ||
328 | { | ||
329 | return null; | ||
330 | } | ||
331 | |||
332 | /** | ||
333 | * Returns the result of interpreting the object as an instance of '<em>Gate Definition</em>'. | ||
334 | * <!-- begin-user-doc --> | ||
335 | * This implementation returns null; | ||
336 | * returning a non-null result will terminate the switch. | ||
337 | * <!-- end-user-doc --> | ||
338 | * @param object the target of the switch. | ||
339 | * @return the result of interpreting the object as an instance of '<em>Gate Definition</em>'. | ||
340 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
341 | * @generated | ||
342 | */ | ||
343 | public T caseGateDefinition(GateDefinition object) | ||
344 | { | ||
345 | return null; | ||
346 | } | ||
347 | |||
348 | /** | ||
349 | * Returns the result of interpreting the object as an instance of '<em>And Gate</em>'. | ||
350 | * <!-- begin-user-doc --> | ||
351 | * This implementation returns null; | ||
352 | * returning a non-null result will terminate the switch. | ||
353 | * <!-- end-user-doc --> | ||
354 | * @param object the target of the switch. | ||
355 | * @return the result of interpreting the object as an instance of '<em>And Gate</em>'. | ||
356 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
357 | * @generated | ||
358 | */ | ||
359 | public T caseAndGate(AndGate object) | ||
360 | { | ||
361 | return null; | ||
362 | } | ||
363 | |||
364 | /** | ||
365 | * Returns the result of interpreting the object as an instance of '<em>Or Gate</em>'. | ||
366 | * <!-- begin-user-doc --> | ||
367 | * This implementation returns null; | ||
368 | * returning a non-null result will terminate the switch. | ||
369 | * <!-- end-user-doc --> | ||
370 | * @param object the target of the switch. | ||
371 | * @return the result of interpreting the object as an instance of '<em>Or Gate</em>'. | ||
372 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
373 | * @generated | ||
374 | */ | ||
375 | public T caseOrGate(OrGate object) | ||
376 | { | ||
377 | return null; | ||
378 | } | ||
379 | |||
380 | /** | ||
381 | * Returns the result of interpreting the object as an instance of '<em>Transformation Definition</em>'. | ||
382 | * <!-- begin-user-doc --> | ||
383 | * This implementation returns null; | ||
384 | * returning a non-null result will terminate the switch. | ||
385 | * <!-- end-user-doc --> | ||
386 | * @param object the target of the switch. | ||
387 | * @return the result of interpreting the object as an instance of '<em>Transformation Definition</em>'. | ||
388 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
389 | * @generated | ||
390 | */ | ||
391 | public T caseTransformationDefinition(TransformationDefinition object) | ||
392 | { | ||
393 | return null; | ||
394 | } | ||
395 | |||
396 | /** | ||
397 | * Returns the result of interpreting the object as an instance of '<em>Mapping Definition</em>'. | ||
398 | * <!-- begin-user-doc --> | ||
399 | * This implementation returns null; | ||
400 | * returning a non-null result will terminate the switch. | ||
401 | * <!-- end-user-doc --> | ||
402 | * @param object the target of the switch. | ||
403 | * @return the result of interpreting the object as an instance of '<em>Mapping Definition</em>'. | ||
404 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
405 | * @generated | ||
406 | */ | ||
407 | public T caseMappingDefinition(MappingDefinition object) | ||
408 | { | ||
409 | return null; | ||
410 | } | ||
411 | |||
412 | /** | ||
413 | * Returns the result of interpreting the object as an instance of '<em>Mapping Parameter</em>'. | ||
414 | * <!-- begin-user-doc --> | ||
415 | * This implementation returns null; | ||
416 | * returning a non-null result will terminate the switch. | ||
417 | * <!-- end-user-doc --> | ||
418 | * @param object the target of the switch. | ||
419 | * @return the result of interpreting the object as an instance of '<em>Mapping Parameter</em>'. | ||
420 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
421 | * @generated | ||
422 | */ | ||
423 | public T caseMappingParameter(MappingParameter object) | ||
424 | { | ||
425 | return null; | ||
426 | } | ||
427 | |||
428 | /** | ||
429 | * Returns the result of interpreting the object as an instance of '<em>Lookup Definition</em>'. | ||
430 | * <!-- begin-user-doc --> | ||
431 | * This implementation returns null; | ||
432 | * returning a non-null result will terminate the switch. | ||
433 | * <!-- end-user-doc --> | ||
434 | * @param object the target of the switch. | ||
435 | * @return the result of interpreting the object as an instance of '<em>Lookup Definition</em>'. | ||
436 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
437 | * @generated | ||
438 | */ | ||
439 | public T caseLookupDefinition(LookupDefinition object) | ||
440 | { | ||
441 | return null; | ||
442 | } | ||
443 | |||
444 | /** | ||
445 | * Returns the result of interpreting the object as an instance of '<em>Variable</em>'. | ||
446 | * <!-- begin-user-doc --> | ||
447 | * This implementation returns null; | ||
448 | * returning a non-null result will terminate the switch. | ||
449 | * <!-- end-user-doc --> | ||
450 | * @param object the target of the switch. | ||
451 | * @return the result of interpreting the object as an instance of '<em>Variable</em>'. | ||
452 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
453 | * @generated | ||
454 | */ | ||
455 | public T caseVariable(Variable object) | ||
456 | { | ||
457 | return null; | ||
458 | } | ||
459 | |||
460 | /** | ||
461 | * Returns the result of interpreting the object as an instance of '<em>Assignment</em>'. | ||
462 | * <!-- begin-user-doc --> | ||
463 | * This implementation returns null; | ||
464 | * returning a non-null result will terminate the switch. | ||
465 | * <!-- end-user-doc --> | ||
466 | * @param object the target of the switch. | ||
467 | * @return the result of interpreting the object as an instance of '<em>Assignment</em>'. | ||
468 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
469 | * @generated | ||
470 | */ | ||
471 | public T caseAssignment(Assignment object) | ||
472 | { | ||
473 | return null; | ||
474 | } | ||
475 | |||
476 | /** | ||
477 | * Returns the result of interpreting the object as an instance of '<em>Event Reference</em>'. | ||
478 | * <!-- begin-user-doc --> | ||
479 | * This implementation returns null; | ||
480 | * returning a non-null result will terminate the switch. | ||
481 | * <!-- end-user-doc --> | ||
482 | * @param object the target of the switch. | ||
483 | * @return the result of interpreting the object as an instance of '<em>Event Reference</em>'. | ||
484 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
485 | * @generated | ||
486 | */ | ||
487 | public T caseEventReference(EventReference object) | ||
488 | { | ||
489 | return null; | ||
490 | } | ||
491 | |||
492 | /** | ||
493 | * Returns the result of interpreting the object as an instance of '<em>Component Instance</em>'. | ||
494 | * <!-- begin-user-doc --> | ||
495 | * This implementation returns null; | ||
496 | * returning a non-null result will terminate the switch. | ||
497 | * <!-- end-user-doc --> | ||
498 | * @param object the target of the switch. | ||
499 | * @return the result of interpreting the object as an instance of '<em>Component Instance</em>'. | ||
500 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
501 | * @generated | ||
502 | */ | ||
503 | public T caseComponentInstance(ComponentInstance object) | ||
504 | { | ||
505 | return null; | ||
506 | } | ||
507 | |||
508 | /** | ||
509 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
510 | * <!-- begin-user-doc --> | ||
511 | * This implementation returns null; | ||
512 | * returning a non-null result will terminate the switch, but this is the last case anyway. | ||
513 | * <!-- end-user-doc --> | ||
514 | * @param object the target of the switch. | ||
515 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
516 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) | ||
517 | * @generated | ||
518 | */ | ||
519 | @Override | ||
520 | public T defaultCase(EObject object) | ||
521 | { | ||
522 | return null; | ||
523 | } | ||
524 | |||
525 | } //CftLanguageSwitch | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/CftLanguageAntlrTokenFileProvider.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/CftLanguageAntlrTokenFileProvider.java new file mode 100644 index 00000000..14a64042 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/CftLanguageAntlrTokenFileProvider.java | |||
@@ -0,0 +1,16 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr; | ||
5 | |||
6 | import java.io.InputStream; | ||
7 | import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider; | ||
8 | |||
9 | public class CftLanguageAntlrTokenFileProvider implements IAntlrTokenFileProvider { | ||
10 | |||
11 | @Override | ||
12 | public InputStream getAntlrTokenFile() { | ||
13 | ClassLoader classLoader = getClass().getClassLoader(); | ||
14 | return classLoader.getResourceAsStream("hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.tokens"); | ||
15 | } | ||
16 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/CftLanguageParser.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/CftLanguageParser.java new file mode 100644 index 00000000..602ea50d --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/CftLanguageParser.java | |||
@@ -0,0 +1,40 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr; | ||
5 | |||
6 | import com.google.inject.Inject; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr.internal.InternalCftLanguageParser; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.services.CftLanguageGrammarAccess; | ||
9 | import org.eclipse.xtext.parser.antlr.AbstractAntlrParser; | ||
10 | import org.eclipse.xtext.parser.antlr.XtextTokenStream; | ||
11 | |||
12 | public class CftLanguageParser extends AbstractAntlrParser { | ||
13 | |||
14 | @Inject | ||
15 | private CftLanguageGrammarAccess 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 InternalCftLanguageParser createParser(XtextTokenStream stream) { | ||
25 | return new InternalCftLanguageParser(stream, getGrammarAccess()); | ||
26 | } | ||
27 | |||
28 | @Override | ||
29 | protected String getDefaultRuleName() { | ||
30 | return "CftModel"; | ||
31 | } | ||
32 | |||
33 | public CftLanguageGrammarAccess getGrammarAccess() { | ||
34 | return this.grammarAccess; | ||
35 | } | ||
36 | |||
37 | public void setGrammarAccess(CftLanguageGrammarAccess grammarAccess) { | ||
38 | this.grammarAccess = grammarAccess; | ||
39 | } | ||
40 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.g b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.g new file mode 100644 index 00000000..ff509b0a --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.g | |||
@@ -0,0 +1,1332 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | grammar InternalCftLanguage; | ||
5 | |||
6 | options { | ||
7 | superClass=AbstractInternalAntlrParser; | ||
8 | } | ||
9 | |||
10 | @lexer::header { | ||
11 | package hu.bme.mit.inf.dslreasoner.faulttree.components.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.faulttree.components.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.faulttree.components.services.CftLanguageGrammarAccess; | ||
31 | |||
32 | } | ||
33 | |||
34 | @parser::members { | ||
35 | |||
36 | private CftLanguageGrammarAccess grammarAccess; | ||
37 | |||
38 | public InternalCftLanguageParser(TokenStream input, CftLanguageGrammarAccess grammarAccess) { | ||
39 | this(input); | ||
40 | this.grammarAccess = grammarAccess; | ||
41 | registerRules(grammarAccess.getGrammar()); | ||
42 | } | ||
43 | |||
44 | @Override | ||
45 | protected String getFirstRuleName() { | ||
46 | return "CftModel"; | ||
47 | } | ||
48 | |||
49 | @Override | ||
50 | protected CftLanguageGrammarAccess 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 entryRuleCftModel | ||
64 | entryRuleCftModel returns [EObject current=null]: | ||
65 | { newCompositeNode(grammarAccess.getCftModelRule()); } | ||
66 | iv_ruleCftModel=ruleCftModel | ||
67 | { $current=$iv_ruleCftModel.current; } | ||
68 | EOF; | ||
69 | |||
70 | // Rule CftModel | ||
71 | ruleCftModel returns [EObject current=null] | ||
72 | @init { | ||
73 | enterRule(); | ||
74 | } | ||
75 | @after { | ||
76 | leaveRule(); | ||
77 | }: | ||
78 | ( | ||
79 | otherlv_0='package' | ||
80 | { | ||
81 | newLeafNode(otherlv_0, grammarAccess.getCftModelAccess().getPackageKeyword_0()); | ||
82 | } | ||
83 | ( | ||
84 | ( | ||
85 | { | ||
86 | newCompositeNode(grammarAccess.getCftModelAccess().getPackageNameQualifiedNameParserRuleCall_1_0()); | ||
87 | } | ||
88 | lv_packageName_1_0=ruleQualifiedName | ||
89 | { | ||
90 | if ($current==null) { | ||
91 | $current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
92 | } | ||
93 | set( | ||
94 | $current, | ||
95 | "packageName", | ||
96 | lv_packageName_1_0, | ||
97 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedName"); | ||
98 | afterParserOrEnumRuleCall(); | ||
99 | } | ||
100 | ) | ||
101 | ) | ||
102 | ( | ||
103 | otherlv_2=';' | ||
104 | { | ||
105 | newLeafNode(otherlv_2, grammarAccess.getCftModelAccess().getSemicolonKeyword_2()); | ||
106 | } | ||
107 | )? | ||
108 | ( | ||
109 | ( | ||
110 | { | ||
111 | newCompositeNode(grammarAccess.getCftModelAccess().getImportsImportDeclarationParserRuleCall_3_0()); | ||
112 | } | ||
113 | lv_imports_3_0=ruleImportDeclaration | ||
114 | { | ||
115 | if ($current==null) { | ||
116 | $current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
117 | } | ||
118 | add( | ||
119 | $current, | ||
120 | "imports", | ||
121 | lv_imports_3_0, | ||
122 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ImportDeclaration"); | ||
123 | afterParserOrEnumRuleCall(); | ||
124 | } | ||
125 | ) | ||
126 | )* | ||
127 | ( | ||
128 | ( | ||
129 | ( | ||
130 | { | ||
131 | newCompositeNode(grammarAccess.getCftModelAccess().getComponentDefinitionsComponentDefinitionParserRuleCall_4_0_0()); | ||
132 | } | ||
133 | lv_componentDefinitions_4_0=ruleComponentDefinition | ||
134 | { | ||
135 | if ($current==null) { | ||
136 | $current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
137 | } | ||
138 | add( | ||
139 | $current, | ||
140 | "componentDefinitions", | ||
141 | lv_componentDefinitions_4_0, | ||
142 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentDefinition"); | ||
143 | afterParserOrEnumRuleCall(); | ||
144 | } | ||
145 | ) | ||
146 | ) | ||
147 | | | ||
148 | ( | ||
149 | ( | ||
150 | { | ||
151 | newCompositeNode(grammarAccess.getCftModelAccess().getTransformationDefinitionsTransformationDefinitionParserRuleCall_4_1_0()); | ||
152 | } | ||
153 | lv_transformationDefinitions_5_0=ruleTransformationDefinition | ||
154 | { | ||
155 | if ($current==null) { | ||
156 | $current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
157 | } | ||
158 | add( | ||
159 | $current, | ||
160 | "transformationDefinitions", | ||
161 | lv_transformationDefinitions_5_0, | ||
162 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.TransformationDefinition"); | ||
163 | afterParserOrEnumRuleCall(); | ||
164 | } | ||
165 | ) | ||
166 | ) | ||
167 | )* | ||
168 | ) | ||
169 | ; | ||
170 | |||
171 | // Entry rule entryRuleImportDeclaration | ||
172 | entryRuleImportDeclaration returns [EObject current=null]: | ||
173 | { newCompositeNode(grammarAccess.getImportDeclarationRule()); } | ||
174 | iv_ruleImportDeclaration=ruleImportDeclaration | ||
175 | { $current=$iv_ruleImportDeclaration.current; } | ||
176 | EOF; | ||
177 | |||
178 | // Rule ImportDeclaration | ||
179 | ruleImportDeclaration returns [EObject current=null] | ||
180 | @init { | ||
181 | enterRule(); | ||
182 | } | ||
183 | @after { | ||
184 | leaveRule(); | ||
185 | }: | ||
186 | ( | ||
187 | otherlv_0='import' | ||
188 | { | ||
189 | newLeafNode(otherlv_0, grammarAccess.getImportDeclarationAccess().getImportKeyword_0()); | ||
190 | } | ||
191 | ( | ||
192 | ( | ||
193 | { | ||
194 | newCompositeNode(grammarAccess.getImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_0()); | ||
195 | } | ||
196 | lv_importedNamespace_1_0=ruleQualifiedNameWithWildcard | ||
197 | { | ||
198 | if ($current==null) { | ||
199 | $current = createModelElementForParent(grammarAccess.getImportDeclarationRule()); | ||
200 | } | ||
201 | set( | ||
202 | $current, | ||
203 | "importedNamespace", | ||
204 | lv_importedNamespace_1_0, | ||
205 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedNameWithWildcard"); | ||
206 | afterParserOrEnumRuleCall(); | ||
207 | } | ||
208 | ) | ||
209 | ) | ||
210 | ( | ||
211 | otherlv_2=';' | ||
212 | { | ||
213 | newLeafNode(otherlv_2, grammarAccess.getImportDeclarationAccess().getSemicolonKeyword_2()); | ||
214 | } | ||
215 | )? | ||
216 | ) | ||
217 | ; | ||
218 | |||
219 | // Entry rule entryRuleComponentDefinition | ||
220 | entryRuleComponentDefinition returns [EObject current=null]: | ||
221 | { newCompositeNode(grammarAccess.getComponentDefinitionRule()); } | ||
222 | iv_ruleComponentDefinition=ruleComponentDefinition | ||
223 | { $current=$iv_ruleComponentDefinition.current; } | ||
224 | EOF; | ||
225 | |||
226 | // Rule ComponentDefinition | ||
227 | ruleComponentDefinition returns [EObject current=null] | ||
228 | @init { | ||
229 | enterRule(); | ||
230 | } | ||
231 | @after { | ||
232 | leaveRule(); | ||
233 | }: | ||
234 | ( | ||
235 | otherlv_0='cft' | ||
236 | { | ||
237 | newLeafNode(otherlv_0, grammarAccess.getComponentDefinitionAccess().getCftKeyword_0()); | ||
238 | } | ||
239 | ( | ||
240 | ( | ||
241 | lv_name_1_0=RULE_ID | ||
242 | { | ||
243 | newLeafNode(lv_name_1_0, grammarAccess.getComponentDefinitionAccess().getNameIDTerminalRuleCall_1_0()); | ||
244 | } | ||
245 | { | ||
246 | if ($current==null) { | ||
247 | $current = createModelElement(grammarAccess.getComponentDefinitionRule()); | ||
248 | } | ||
249 | setWithLastConsumed( | ||
250 | $current, | ||
251 | "name", | ||
252 | lv_name_1_0, | ||
253 | "org.eclipse.xtext.common.Terminals.ID"); | ||
254 | } | ||
255 | ) | ||
256 | ) | ||
257 | otherlv_2='{' | ||
258 | { | ||
259 | newLeafNode(otherlv_2, grammarAccess.getComponentDefinitionAccess().getLeftCurlyBracketKeyword_2()); | ||
260 | } | ||
261 | ( | ||
262 | ( | ||
263 | { | ||
264 | getUnorderedGroupHelper().enter(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
265 | } | ||
266 | ( | ||
267 | ( | ||
268 | ( | ||
269 | {getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0)}?=>( | ||
270 | { | ||
271 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0); | ||
272 | } | ||
273 | ({true}?=>(otherlv_4='in' | ||
274 | { | ||
275 | newLeafNode(otherlv_4, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()); | ||
276 | } | ||
277 | ( | ||
278 | ( | ||
279 | { | ||
280 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getInputEventsInputEventParserRuleCall_3_0_1_0()); | ||
281 | } | ||
282 | lv_inputEvents_5_0=ruleInputEvent | ||
283 | { | ||
284 | if ($current==null) { | ||
285 | $current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); | ||
286 | } | ||
287 | add( | ||
288 | $current, | ||
289 | "inputEvents", | ||
290 | lv_inputEvents_5_0, | ||
291 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.InputEvent"); | ||
292 | afterParserOrEnumRuleCall(); | ||
293 | } | ||
294 | ) | ||
295 | )* | ||
296 | otherlv_6=';' | ||
297 | { | ||
298 | newLeafNode(otherlv_6, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()); | ||
299 | } | ||
300 | )) | ||
301 | { | ||
302 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
303 | } | ||
304 | ) | ||
305 | )| | ||
306 | ( | ||
307 | {getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1)}?=>( | ||
308 | { | ||
309 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1); | ||
310 | } | ||
311 | ({true}?=>(otherlv_7='out' | ||
312 | { | ||
313 | newLeafNode(otherlv_7, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()); | ||
314 | } | ||
315 | ( | ||
316 | ( | ||
317 | { | ||
318 | if ($current==null) { | ||
319 | $current = createModelElement(grammarAccess.getComponentDefinitionRule()); | ||
320 | } | ||
321 | } | ||
322 | otherlv_8=RULE_ID | ||
323 | { | ||
324 | newLeafNode(otherlv_8, grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationCrossReference_3_1_1_0()); | ||
325 | } | ||
326 | ) | ||
327 | )* | ||
328 | otherlv_9=';' | ||
329 | { | ||
330 | newLeafNode(otherlv_9, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()); | ||
331 | } | ||
332 | )) | ||
333 | { | ||
334 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
335 | } | ||
336 | ) | ||
337 | ) | ||
338 | )* | ||
339 | ) | ||
340 | ) | ||
341 | { | ||
342 | getUnorderedGroupHelper().leave(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
343 | } | ||
344 | ) | ||
345 | ( | ||
346 | ( | ||
347 | ( | ||
348 | { | ||
349 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getEventDefinitionsEventDefinitionParserRuleCall_4_0_0()); | ||
350 | } | ||
351 | lv_eventDefinitions_10_0=ruleEventDefinition | ||
352 | { | ||
353 | if ($current==null) { | ||
354 | $current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); | ||
355 | } | ||
356 | add( | ||
357 | $current, | ||
358 | "eventDefinitions", | ||
359 | lv_eventDefinitions_10_0, | ||
360 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventDefinition"); | ||
361 | afterParserOrEnumRuleCall(); | ||
362 | } | ||
363 | ) | ||
364 | ) | ||
365 | otherlv_11=';' | ||
366 | { | ||
367 | newLeafNode(otherlv_11, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_4_1()); | ||
368 | } | ||
369 | )* | ||
370 | otherlv_12='}' | ||
371 | { | ||
372 | newLeafNode(otherlv_12, grammarAccess.getComponentDefinitionAccess().getRightCurlyBracketKeyword_5()); | ||
373 | } | ||
374 | ) | ||
375 | ; | ||
376 | |||
377 | // Entry rule entryRuleInputEvent | ||
378 | entryRuleInputEvent returns [EObject current=null]: | ||
379 | { newCompositeNode(grammarAccess.getInputEventRule()); } | ||
380 | iv_ruleInputEvent=ruleInputEvent | ||
381 | { $current=$iv_ruleInputEvent.current; } | ||
382 | EOF; | ||
383 | |||
384 | // Rule InputEvent | ||
385 | ruleInputEvent returns [EObject current=null] | ||
386 | @init { | ||
387 | enterRule(); | ||
388 | } | ||
389 | @after { | ||
390 | leaveRule(); | ||
391 | }: | ||
392 | ( | ||
393 | ( | ||
394 | ( | ||
395 | lv_name_0_0=RULE_ID | ||
396 | { | ||
397 | newLeafNode(lv_name_0_0, grammarAccess.getInputEventAccess().getNameIDTerminalRuleCall_0_0()); | ||
398 | } | ||
399 | { | ||
400 | if ($current==null) { | ||
401 | $current = createModelElement(grammarAccess.getInputEventRule()); | ||
402 | } | ||
403 | setWithLastConsumed( | ||
404 | $current, | ||
405 | "name", | ||
406 | lv_name_0_0, | ||
407 | "org.eclipse.xtext.common.Terminals.ID"); | ||
408 | } | ||
409 | ) | ||
410 | ) | ||
411 | ( | ||
412 | ( | ||
413 | lv_multiple_1_0='[]' | ||
414 | { | ||
415 | newLeafNode(lv_multiple_1_0, grammarAccess.getInputEventAccess().getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0()); | ||
416 | } | ||
417 | { | ||
418 | if ($current==null) { | ||
419 | $current = createModelElement(grammarAccess.getInputEventRule()); | ||
420 | } | ||
421 | setWithLastConsumed($current, "multiple", true, "[]"); | ||
422 | } | ||
423 | ) | ||
424 | )? | ||
425 | ) | ||
426 | ; | ||
427 | |||
428 | // Entry rule entryRuleEventDefinition | ||
429 | entryRuleEventDefinition returns [EObject current=null]: | ||
430 | { newCompositeNode(grammarAccess.getEventDefinitionRule()); } | ||
431 | iv_ruleEventDefinition=ruleEventDefinition | ||
432 | { $current=$iv_ruleEventDefinition.current; } | ||
433 | EOF; | ||
434 | |||
435 | // Rule EventDefinition | ||
436 | ruleEventDefinition returns [EObject current=null] | ||
437 | @init { | ||
438 | enterRule(); | ||
439 | } | ||
440 | @after { | ||
441 | leaveRule(); | ||
442 | }: | ||
443 | ( | ||
444 | { | ||
445 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getBasicEventDefinitionParserRuleCall_0()); | ||
446 | } | ||
447 | this_BasicEventDefinition_0=ruleBasicEventDefinition | ||
448 | { | ||
449 | $current = $this_BasicEventDefinition_0.current; | ||
450 | afterParserOrEnumRuleCall(); | ||
451 | } | ||
452 | | | ||
453 | { | ||
454 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getGateDefinitionParserRuleCall_1()); | ||
455 | } | ||
456 | this_GateDefinition_1=ruleGateDefinition | ||
457 | { | ||
458 | $current = $this_GateDefinition_1.current; | ||
459 | afterParserOrEnumRuleCall(); | ||
460 | } | ||
461 | ) | ||
462 | ; | ||
463 | |||
464 | // Entry rule entryRuleBasicEventDefinition | ||
465 | entryRuleBasicEventDefinition returns [EObject current=null]: | ||
466 | { newCompositeNode(grammarAccess.getBasicEventDefinitionRule()); } | ||
467 | iv_ruleBasicEventDefinition=ruleBasicEventDefinition | ||
468 | { $current=$iv_ruleBasicEventDefinition.current; } | ||
469 | EOF; | ||
470 | |||
471 | // Rule BasicEventDefinition | ||
472 | ruleBasicEventDefinition returns [EObject current=null] | ||
473 | @init { | ||
474 | enterRule(); | ||
475 | } | ||
476 | @after { | ||
477 | leaveRule(); | ||
478 | }: | ||
479 | ( | ||
480 | ( | ||
481 | ( | ||
482 | lv_name_0_0=RULE_ID | ||
483 | { | ||
484 | newLeafNode(lv_name_0_0, grammarAccess.getBasicEventDefinitionAccess().getNameIDTerminalRuleCall_0_0()); | ||
485 | } | ||
486 | { | ||
487 | if ($current==null) { | ||
488 | $current = createModelElement(grammarAccess.getBasicEventDefinitionRule()); | ||
489 | } | ||
490 | setWithLastConsumed( | ||
491 | $current, | ||
492 | "name", | ||
493 | lv_name_0_0, | ||
494 | "org.eclipse.xtext.common.Terminals.ID"); | ||
495 | } | ||
496 | ) | ||
497 | ) | ||
498 | otherlv_1='lambda' | ||
499 | { | ||
500 | newLeafNode(otherlv_1, grammarAccess.getBasicEventDefinitionAccess().getLambdaKeyword_1()); | ||
501 | } | ||
502 | otherlv_2='=' | ||
503 | { | ||
504 | newLeafNode(otherlv_2, grammarAccess.getBasicEventDefinitionAccess().getEqualsSignKeyword_2()); | ||
505 | } | ||
506 | ( | ||
507 | ( | ||
508 | lv_rate_3_0=RULE_DOULBE | ||
509 | { | ||
510 | newLeafNode(lv_rate_3_0, grammarAccess.getBasicEventDefinitionAccess().getRateDOULBETerminalRuleCall_3_0()); | ||
511 | } | ||
512 | { | ||
513 | if ($current==null) { | ||
514 | $current = createModelElement(grammarAccess.getBasicEventDefinitionRule()); | ||
515 | } | ||
516 | setWithLastConsumed( | ||
517 | $current, | ||
518 | "rate", | ||
519 | lv_rate_3_0, | ||
520 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.DOULBE"); | ||
521 | } | ||
522 | ) | ||
523 | ) | ||
524 | ) | ||
525 | ; | ||
526 | |||
527 | // Entry rule entryRuleGateDefinition | ||
528 | entryRuleGateDefinition returns [EObject current=null]: | ||
529 | { newCompositeNode(grammarAccess.getGateDefinitionRule()); } | ||
530 | iv_ruleGateDefinition=ruleGateDefinition | ||
531 | { $current=$iv_ruleGateDefinition.current; } | ||
532 | EOF; | ||
533 | |||
534 | // Rule GateDefinition | ||
535 | ruleGateDefinition returns [EObject current=null] | ||
536 | @init { | ||
537 | enterRule(); | ||
538 | } | ||
539 | @after { | ||
540 | leaveRule(); | ||
541 | }: | ||
542 | ( | ||
543 | { | ||
544 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getAndGateParserRuleCall_0()); | ||
545 | } | ||
546 | this_AndGate_0=ruleAndGate | ||
547 | { | ||
548 | $current = $this_AndGate_0.current; | ||
549 | afterParserOrEnumRuleCall(); | ||
550 | } | ||
551 | | | ||
552 | { | ||
553 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getOrGateParserRuleCall_1()); | ||
554 | } | ||
555 | this_OrGate_1=ruleOrGate | ||
556 | { | ||
557 | $current = $this_OrGate_1.current; | ||
558 | afterParserOrEnumRuleCall(); | ||
559 | } | ||
560 | ) | ||
561 | ; | ||
562 | |||
563 | // Entry rule entryRuleAndGate | ||
564 | entryRuleAndGate returns [EObject current=null]: | ||
565 | { newCompositeNode(grammarAccess.getAndGateRule()); } | ||
566 | iv_ruleAndGate=ruleAndGate | ||
567 | { $current=$iv_ruleAndGate.current; } | ||
568 | EOF; | ||
569 | |||
570 | // Rule AndGate | ||
571 | ruleAndGate returns [EObject current=null] | ||
572 | @init { | ||
573 | enterRule(); | ||
574 | } | ||
575 | @after { | ||
576 | leaveRule(); | ||
577 | }: | ||
578 | ( | ||
579 | ( | ||
580 | ( | ||
581 | lv_name_0_0=RULE_ID | ||
582 | { | ||
583 | newLeafNode(lv_name_0_0, grammarAccess.getAndGateAccess().getNameIDTerminalRuleCall_0_0()); | ||
584 | } | ||
585 | { | ||
586 | if ($current==null) { | ||
587 | $current = createModelElement(grammarAccess.getAndGateRule()); | ||
588 | } | ||
589 | setWithLastConsumed( | ||
590 | $current, | ||
591 | "name", | ||
592 | lv_name_0_0, | ||
593 | "org.eclipse.xtext.common.Terminals.ID"); | ||
594 | } | ||
595 | ) | ||
596 | ) | ||
597 | otherlv_1='and' | ||
598 | { | ||
599 | newLeafNode(otherlv_1, grammarAccess.getAndGateAccess().getAndKeyword_1()); | ||
600 | } | ||
601 | ( | ||
602 | ( | ||
603 | { | ||
604 | if ($current==null) { | ||
605 | $current = createModelElement(grammarAccess.getAndGateRule()); | ||
606 | } | ||
607 | } | ||
608 | otherlv_2=RULE_ID | ||
609 | { | ||
610 | newLeafNode(otherlv_2, grammarAccess.getAndGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); | ||
611 | } | ||
612 | ) | ||
613 | )* | ||
614 | ) | ||
615 | ; | ||
616 | |||
617 | // Entry rule entryRuleOrGate | ||
618 | entryRuleOrGate returns [EObject current=null]: | ||
619 | { newCompositeNode(grammarAccess.getOrGateRule()); } | ||
620 | iv_ruleOrGate=ruleOrGate | ||
621 | { $current=$iv_ruleOrGate.current; } | ||
622 | EOF; | ||
623 | |||
624 | // Rule OrGate | ||
625 | ruleOrGate returns [EObject current=null] | ||
626 | @init { | ||
627 | enterRule(); | ||
628 | } | ||
629 | @after { | ||
630 | leaveRule(); | ||
631 | }: | ||
632 | ( | ||
633 | ( | ||
634 | ( | ||
635 | lv_name_0_0=RULE_ID | ||
636 | { | ||
637 | newLeafNode(lv_name_0_0, grammarAccess.getOrGateAccess().getNameIDTerminalRuleCall_0_0()); | ||
638 | } | ||
639 | { | ||
640 | if ($current==null) { | ||
641 | $current = createModelElement(grammarAccess.getOrGateRule()); | ||
642 | } | ||
643 | setWithLastConsumed( | ||
644 | $current, | ||
645 | "name", | ||
646 | lv_name_0_0, | ||
647 | "org.eclipse.xtext.common.Terminals.ID"); | ||
648 | } | ||
649 | ) | ||
650 | ) | ||
651 | otherlv_1='or' | ||
652 | { | ||
653 | newLeafNode(otherlv_1, grammarAccess.getOrGateAccess().getOrKeyword_1()); | ||
654 | } | ||
655 | ( | ||
656 | ( | ||
657 | { | ||
658 | if ($current==null) { | ||
659 | $current = createModelElement(grammarAccess.getOrGateRule()); | ||
660 | } | ||
661 | } | ||
662 | otherlv_2=RULE_ID | ||
663 | { | ||
664 | newLeafNode(otherlv_2, grammarAccess.getOrGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); | ||
665 | } | ||
666 | ) | ||
667 | )* | ||
668 | ) | ||
669 | ; | ||
670 | |||
671 | // Entry rule entryRuleTransformationDefinition | ||
672 | entryRuleTransformationDefinition returns [EObject current=null]: | ||
673 | { newCompositeNode(grammarAccess.getTransformationDefinitionRule()); } | ||
674 | iv_ruleTransformationDefinition=ruleTransformationDefinition | ||
675 | { $current=$iv_ruleTransformationDefinition.current; } | ||
676 | EOF; | ||
677 | |||
678 | // Rule TransformationDefinition | ||
679 | ruleTransformationDefinition returns [EObject current=null] | ||
680 | @init { | ||
681 | enterRule(); | ||
682 | } | ||
683 | @after { | ||
684 | leaveRule(); | ||
685 | }: | ||
686 | ( | ||
687 | otherlv_0='transformation' | ||
688 | { | ||
689 | newLeafNode(otherlv_0, grammarAccess.getTransformationDefinitionAccess().getTransformationKeyword_0()); | ||
690 | } | ||
691 | ( | ||
692 | ( | ||
693 | lv_name_1_0=RULE_ID | ||
694 | { | ||
695 | newLeafNode(lv_name_1_0, grammarAccess.getTransformationDefinitionAccess().getNameIDTerminalRuleCall_1_0()); | ||
696 | } | ||
697 | { | ||
698 | if ($current==null) { | ||
699 | $current = createModelElement(grammarAccess.getTransformationDefinitionRule()); | ||
700 | } | ||
701 | setWithLastConsumed( | ||
702 | $current, | ||
703 | "name", | ||
704 | lv_name_1_0, | ||
705 | "org.eclipse.xtext.common.Terminals.ID"); | ||
706 | } | ||
707 | ) | ||
708 | ) | ||
709 | otherlv_2='{' | ||
710 | { | ||
711 | newLeafNode(otherlv_2, grammarAccess.getTransformationDefinitionAccess().getLeftCurlyBracketKeyword_2()); | ||
712 | } | ||
713 | ( | ||
714 | ( | ||
715 | { | ||
716 | newCompositeNode(grammarAccess.getTransformationDefinitionAccess().getMappingDefinitionsMappingDefinitionParserRuleCall_3_0()); | ||
717 | } | ||
718 | lv_mappingDefinitions_3_0=ruleMappingDefinition | ||
719 | { | ||
720 | if ($current==null) { | ||
721 | $current = createModelElementForParent(grammarAccess.getTransformationDefinitionRule()); | ||
722 | } | ||
723 | add( | ||
724 | $current, | ||
725 | "mappingDefinitions", | ||
726 | lv_mappingDefinitions_3_0, | ||
727 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingDefinition"); | ||
728 | afterParserOrEnumRuleCall(); | ||
729 | } | ||
730 | ) | ||
731 | )* | ||
732 | otherlv_4='}' | ||
733 | { | ||
734 | newLeafNode(otherlv_4, grammarAccess.getTransformationDefinitionAccess().getRightCurlyBracketKeyword_4()); | ||
735 | } | ||
736 | ) | ||
737 | ; | ||
738 | |||
739 | // Entry rule entryRuleMappingDefinition | ||
740 | entryRuleMappingDefinition returns [EObject current=null]: | ||
741 | { newCompositeNode(grammarAccess.getMappingDefinitionRule()); } | ||
742 | iv_ruleMappingDefinition=ruleMappingDefinition | ||
743 | { $current=$iv_ruleMappingDefinition.current; } | ||
744 | EOF; | ||
745 | |||
746 | // Rule MappingDefinition | ||
747 | ruleMappingDefinition returns [EObject current=null] | ||
748 | @init { | ||
749 | enterRule(); | ||
750 | } | ||
751 | @after { | ||
752 | leaveRule(); | ||
753 | }: | ||
754 | ( | ||
755 | ( | ||
756 | ( | ||
757 | lv_topLevel_0_0='toplevel' | ||
758 | { | ||
759 | newLeafNode(lv_topLevel_0_0, grammarAccess.getMappingDefinitionAccess().getTopLevelToplevelKeyword_0_0()); | ||
760 | } | ||
761 | { | ||
762 | if ($current==null) { | ||
763 | $current = createModelElement(grammarAccess.getMappingDefinitionRule()); | ||
764 | } | ||
765 | setWithLastConsumed($current, "topLevel", true, "toplevel"); | ||
766 | } | ||
767 | ) | ||
768 | )? | ||
769 | otherlv_1='mapping' | ||
770 | { | ||
771 | newLeafNode(otherlv_1, grammarAccess.getMappingDefinitionAccess().getMappingKeyword_1()); | ||
772 | } | ||
773 | ( | ||
774 | ( | ||
775 | { | ||
776 | if ($current==null) { | ||
777 | $current = createModelElement(grammarAccess.getMappingDefinitionRule()); | ||
778 | } | ||
779 | } | ||
780 | { | ||
781 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getPatternPatternCrossReference_2_0()); | ||
782 | } | ||
783 | ruleQualifiedName | ||
784 | { | ||
785 | afterParserOrEnumRuleCall(); | ||
786 | } | ||
787 | ) | ||
788 | ) | ||
789 | otherlv_3='(' | ||
790 | { | ||
791 | newLeafNode(otherlv_3, grammarAccess.getMappingDefinitionAccess().getLeftParenthesisKeyword_3()); | ||
792 | } | ||
793 | ( | ||
794 | ( | ||
795 | { | ||
796 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_4_0()); | ||
797 | } | ||
798 | lv_parameters_4_0=ruleMappingParameter | ||
799 | { | ||
800 | if ($current==null) { | ||
801 | $current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
802 | } | ||
803 | add( | ||
804 | $current, | ||
805 | "parameters", | ||
806 | lv_parameters_4_0, | ||
807 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingParameter"); | ||
808 | afterParserOrEnumRuleCall(); | ||
809 | } | ||
810 | ) | ||
811 | ) | ||
812 | ( | ||
813 | otherlv_5=',' | ||
814 | { | ||
815 | newLeafNode(otherlv_5, grammarAccess.getMappingDefinitionAccess().getCommaKeyword_5_0()); | ||
816 | } | ||
817 | ( | ||
818 | ( | ||
819 | { | ||
820 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_5_1_0()); | ||
821 | } | ||
822 | lv_parameters_6_0=ruleMappingParameter | ||
823 | { | ||
824 | if ($current==null) { | ||
825 | $current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
826 | } | ||
827 | add( | ||
828 | $current, | ||
829 | "parameters", | ||
830 | lv_parameters_6_0, | ||
831 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingParameter"); | ||
832 | afterParserOrEnumRuleCall(); | ||
833 | } | ||
834 | ) | ||
835 | ) | ||
836 | )* | ||
837 | otherlv_7=')' | ||
838 | { | ||
839 | newLeafNode(otherlv_7, grammarAccess.getMappingDefinitionAccess().getRightParenthesisKeyword_6()); | ||
840 | } | ||
841 | ( | ||
842 | ( | ||
843 | { | ||
844 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getComponentInstanceComponentInstanceParserRuleCall_7_0()); | ||
845 | } | ||
846 | lv_componentInstance_8_0=ruleComponentInstance | ||
847 | { | ||
848 | if ($current==null) { | ||
849 | $current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
850 | } | ||
851 | set( | ||
852 | $current, | ||
853 | "componentInstance", | ||
854 | lv_componentInstance_8_0, | ||
855 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentInstance"); | ||
856 | afterParserOrEnumRuleCall(); | ||
857 | } | ||
858 | ) | ||
859 | )? | ||
860 | ( | ||
861 | otherlv_9='{' | ||
862 | { | ||
863 | newLeafNode(otherlv_9, grammarAccess.getMappingDefinitionAccess().getLeftCurlyBracketKeyword_8_0()); | ||
864 | } | ||
865 | ( | ||
866 | ( | ||
867 | ( | ||
868 | ( | ||
869 | { | ||
870 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0()); | ||
871 | } | ||
872 | lv_lookupDefinitions_10_0=ruleLookupDefinition | ||
873 | { | ||
874 | if ($current==null) { | ||
875 | $current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
876 | } | ||
877 | add( | ||
878 | $current, | ||
879 | "lookupDefinitions", | ||
880 | lv_lookupDefinitions_10_0, | ||
881 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.LookupDefinition"); | ||
882 | afterParserOrEnumRuleCall(); | ||
883 | } | ||
884 | ) | ||
885 | ) | ||
886 | | | ||
887 | ( | ||
888 | ( | ||
889 | { | ||
890 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getAssignmentsAssignmentParserRuleCall_8_1_0_1_0()); | ||
891 | } | ||
892 | lv_assignments_11_0=ruleAssignment | ||
893 | { | ||
894 | if ($current==null) { | ||
895 | $current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
896 | } | ||
897 | add( | ||
898 | $current, | ||
899 | "assignments", | ||
900 | lv_assignments_11_0, | ||
901 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Assignment"); | ||
902 | afterParserOrEnumRuleCall(); | ||
903 | } | ||
904 | ) | ||
905 | ) | ||
906 | ) | ||
907 | otherlv_12=';' | ||
908 | { | ||
909 | newLeafNode(otherlv_12, grammarAccess.getMappingDefinitionAccess().getSemicolonKeyword_8_1_1()); | ||
910 | } | ||
911 | )* | ||
912 | otherlv_13='}' | ||
913 | { | ||
914 | newLeafNode(otherlv_13, grammarAccess.getMappingDefinitionAccess().getRightCurlyBracketKeyword_8_2()); | ||
915 | } | ||
916 | )? | ||
917 | ) | ||
918 | ; | ||
919 | |||
920 | // Entry rule entryRuleMappingParameter | ||
921 | entryRuleMappingParameter returns [EObject current=null]: | ||
922 | { newCompositeNode(grammarAccess.getMappingParameterRule()); } | ||
923 | iv_ruleMappingParameter=ruleMappingParameter | ||
924 | { $current=$iv_ruleMappingParameter.current; } | ||
925 | EOF; | ||
926 | |||
927 | // Rule MappingParameter | ||
928 | ruleMappingParameter returns [EObject current=null] | ||
929 | @init { | ||
930 | enterRule(); | ||
931 | } | ||
932 | @after { | ||
933 | leaveRule(); | ||
934 | }: | ||
935 | ( | ||
936 | ( | ||
937 | lv_name_0_0=RULE_ID | ||
938 | { | ||
939 | newLeafNode(lv_name_0_0, grammarAccess.getMappingParameterAccess().getNameIDTerminalRuleCall_0()); | ||
940 | } | ||
941 | { | ||
942 | if ($current==null) { | ||
943 | $current = createModelElement(grammarAccess.getMappingParameterRule()); | ||
944 | } | ||
945 | setWithLastConsumed( | ||
946 | $current, | ||
947 | "name", | ||
948 | lv_name_0_0, | ||
949 | "org.eclipse.xtext.common.Terminals.ID"); | ||
950 | } | ||
951 | ) | ||
952 | ) | ||
953 | ; | ||
954 | |||
955 | // Entry rule entryRuleLookupDefinition | ||
956 | entryRuleLookupDefinition returns [EObject current=null]: | ||
957 | { newCompositeNode(grammarAccess.getLookupDefinitionRule()); } | ||
958 | iv_ruleLookupDefinition=ruleLookupDefinition | ||
959 | { $current=$iv_ruleLookupDefinition.current; } | ||
960 | EOF; | ||
961 | |||
962 | // Rule LookupDefinition | ||
963 | ruleLookupDefinition returns [EObject current=null] | ||
964 | @init { | ||
965 | enterRule(); | ||
966 | } | ||
967 | @after { | ||
968 | leaveRule(); | ||
969 | }: | ||
970 | ( | ||
971 | otherlv_0='lookup' | ||
972 | { | ||
973 | newLeafNode(otherlv_0, grammarAccess.getLookupDefinitionAccess().getLookupKeyword_0()); | ||
974 | } | ||
975 | ( | ||
976 | ( | ||
977 | { | ||
978 | if ($current==null) { | ||
979 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
980 | } | ||
981 | } | ||
982 | otherlv_1=RULE_ID | ||
983 | { | ||
984 | newLeafNode(otherlv_1, grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionCrossReference_1_0()); | ||
985 | } | ||
986 | ) | ||
987 | ) | ||
988 | otherlv_2='(' | ||
989 | { | ||
990 | newLeafNode(otherlv_2, grammarAccess.getLookupDefinitionAccess().getLeftParenthesisKeyword_2()); | ||
991 | } | ||
992 | ( | ||
993 | ( | ||
994 | { | ||
995 | if ($current==null) { | ||
996 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
997 | } | ||
998 | } | ||
999 | otherlv_3=RULE_ID | ||
1000 | { | ||
1001 | newLeafNode(otherlv_3, grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_3_0()); | ||
1002 | } | ||
1003 | ) | ||
1004 | ) | ||
1005 | ( | ||
1006 | otherlv_4=',' | ||
1007 | { | ||
1008 | newLeafNode(otherlv_4, grammarAccess.getLookupDefinitionAccess().getCommaKeyword_4_0()); | ||
1009 | } | ||
1010 | ( | ||
1011 | ( | ||
1012 | { | ||
1013 | if ($current==null) { | ||
1014 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
1015 | } | ||
1016 | } | ||
1017 | otherlv_5=RULE_ID | ||
1018 | { | ||
1019 | newLeafNode(otherlv_5, grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_4_1_0()); | ||
1020 | } | ||
1021 | ) | ||
1022 | ) | ||
1023 | )* | ||
1024 | otherlv_6=')' | ||
1025 | { | ||
1026 | newLeafNode(otherlv_6, grammarAccess.getLookupDefinitionAccess().getRightParenthesisKeyword_5()); | ||
1027 | } | ||
1028 | otherlv_7='as' | ||
1029 | { | ||
1030 | newLeafNode(otherlv_7, grammarAccess.getLookupDefinitionAccess().getAsKeyword_6()); | ||
1031 | } | ||
1032 | ( | ||
1033 | ( | ||
1034 | lv_name_8_0=RULE_ID | ||
1035 | { | ||
1036 | newLeafNode(lv_name_8_0, grammarAccess.getLookupDefinitionAccess().getNameIDTerminalRuleCall_7_0()); | ||
1037 | } | ||
1038 | { | ||
1039 | if ($current==null) { | ||
1040 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
1041 | } | ||
1042 | setWithLastConsumed( | ||
1043 | $current, | ||
1044 | "name", | ||
1045 | lv_name_8_0, | ||
1046 | "org.eclipse.xtext.common.Terminals.ID"); | ||
1047 | } | ||
1048 | ) | ||
1049 | ) | ||
1050 | ) | ||
1051 | ; | ||
1052 | |||
1053 | // Entry rule entryRuleAssignment | ||
1054 | entryRuleAssignment returns [EObject current=null]: | ||
1055 | { newCompositeNode(grammarAccess.getAssignmentRule()); } | ||
1056 | iv_ruleAssignment=ruleAssignment | ||
1057 | { $current=$iv_ruleAssignment.current; } | ||
1058 | EOF; | ||
1059 | |||
1060 | // Rule Assignment | ||
1061 | ruleAssignment returns [EObject current=null] | ||
1062 | @init { | ||
1063 | enterRule(); | ||
1064 | } | ||
1065 | @after { | ||
1066 | leaveRule(); | ||
1067 | }: | ||
1068 | ( | ||
1069 | ( | ||
1070 | ( | ||
1071 | { | ||
1072 | newCompositeNode(grammarAccess.getAssignmentAccess().getInputEventReferenceParserRuleCall_0_0()); | ||
1073 | } | ||
1074 | lv_input_0_0=ruleEventReference | ||
1075 | { | ||
1076 | if ($current==null) { | ||
1077 | $current = createModelElementForParent(grammarAccess.getAssignmentRule()); | ||
1078 | } | ||
1079 | set( | ||
1080 | $current, | ||
1081 | "input", | ||
1082 | lv_input_0_0, | ||
1083 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventReference"); | ||
1084 | afterParserOrEnumRuleCall(); | ||
1085 | } | ||
1086 | ) | ||
1087 | ) | ||
1088 | ( | ||
1089 | ( | ||
1090 | ( | ||
1091 | lv_multiple_1_0='+=' | ||
1092 | { | ||
1093 | newLeafNode(lv_multiple_1_0, grammarAccess.getAssignmentAccess().getMultiplePlusSignEqualsSignKeyword_1_0_0()); | ||
1094 | } | ||
1095 | { | ||
1096 | if ($current==null) { | ||
1097 | $current = createModelElement(grammarAccess.getAssignmentRule()); | ||
1098 | } | ||
1099 | setWithLastConsumed($current, "multiple", true, "+="); | ||
1100 | } | ||
1101 | ) | ||
1102 | ) | ||
1103 | | | ||
1104 | otherlv_2=':=' | ||
1105 | { | ||
1106 | newLeafNode(otherlv_2, grammarAccess.getAssignmentAccess().getColonEqualsSignKeyword_1_1()); | ||
1107 | } | ||
1108 | ) | ||
1109 | ( | ||
1110 | ( | ||
1111 | { | ||
1112 | newCompositeNode(grammarAccess.getAssignmentAccess().getOutputEventReferenceParserRuleCall_2_0()); | ||
1113 | } | ||
1114 | lv_output_3_0=ruleEventReference | ||
1115 | { | ||
1116 | if ($current==null) { | ||
1117 | $current = createModelElementForParent(grammarAccess.getAssignmentRule()); | ||
1118 | } | ||
1119 | set( | ||
1120 | $current, | ||
1121 | "output", | ||
1122 | lv_output_3_0, | ||
1123 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventReference"); | ||
1124 | afterParserOrEnumRuleCall(); | ||
1125 | } | ||
1126 | ) | ||
1127 | ) | ||
1128 | ) | ||
1129 | ; | ||
1130 | |||
1131 | // Entry rule entryRuleEventReference | ||
1132 | entryRuleEventReference returns [EObject current=null]: | ||
1133 | { newCompositeNode(grammarAccess.getEventReferenceRule()); } | ||
1134 | iv_ruleEventReference=ruleEventReference | ||
1135 | { $current=$iv_ruleEventReference.current; } | ||
1136 | EOF; | ||
1137 | |||
1138 | // Rule EventReference | ||
1139 | ruleEventReference returns [EObject current=null] | ||
1140 | @init { | ||
1141 | enterRule(); | ||
1142 | } | ||
1143 | @after { | ||
1144 | leaveRule(); | ||
1145 | }: | ||
1146 | ( | ||
1147 | ( | ||
1148 | ( | ||
1149 | { | ||
1150 | if ($current==null) { | ||
1151 | $current = createModelElement(grammarAccess.getEventReferenceRule()); | ||
1152 | } | ||
1153 | } | ||
1154 | otherlv_0=RULE_ID | ||
1155 | { | ||
1156 | newLeafNode(otherlv_0, grammarAccess.getEventReferenceAccess().getComponentVariableCrossReference_0_0()); | ||
1157 | } | ||
1158 | ) | ||
1159 | ) | ||
1160 | otherlv_1='.' | ||
1161 | { | ||
1162 | newLeafNode(otherlv_1, grammarAccess.getEventReferenceAccess().getFullStopKeyword_1()); | ||
1163 | } | ||
1164 | ( | ||
1165 | ( | ||
1166 | { | ||
1167 | if ($current==null) { | ||
1168 | $current = createModelElement(grammarAccess.getEventReferenceRule()); | ||
1169 | } | ||
1170 | } | ||
1171 | otherlv_2=RULE_ID | ||
1172 | { | ||
1173 | newLeafNode(otherlv_2, grammarAccess.getEventReferenceAccess().getEventEventDeclarationCrossReference_2_0()); | ||
1174 | } | ||
1175 | ) | ||
1176 | ) | ||
1177 | ) | ||
1178 | ; | ||
1179 | |||
1180 | // Entry rule entryRuleComponentInstance | ||
1181 | entryRuleComponentInstance returns [EObject current=null]: | ||
1182 | { newCompositeNode(grammarAccess.getComponentInstanceRule()); } | ||
1183 | iv_ruleComponentInstance=ruleComponentInstance | ||
1184 | { $current=$iv_ruleComponentInstance.current; } | ||
1185 | EOF; | ||
1186 | |||
1187 | // Rule ComponentInstance | ||
1188 | ruleComponentInstance returns [EObject current=null] | ||
1189 | @init { | ||
1190 | enterRule(); | ||
1191 | } | ||
1192 | @after { | ||
1193 | leaveRule(); | ||
1194 | }: | ||
1195 | ( | ||
1196 | otherlv_0='=>' | ||
1197 | { | ||
1198 | newLeafNode(otherlv_0, grammarAccess.getComponentInstanceAccess().getEqualsSignGreaterThanSignKeyword_0()); | ||
1199 | } | ||
1200 | ( | ||
1201 | ( | ||
1202 | { | ||
1203 | if ($current==null) { | ||
1204 | $current = createModelElement(grammarAccess.getComponentInstanceRule()); | ||
1205 | } | ||
1206 | } | ||
1207 | { | ||
1208 | newCompositeNode(grammarAccess.getComponentInstanceAccess().getComponentTypeComponentDefinitionCrossReference_1_0()); | ||
1209 | } | ||
1210 | ruleQualifiedName | ||
1211 | { | ||
1212 | afterParserOrEnumRuleCall(); | ||
1213 | } | ||
1214 | ) | ||
1215 | ) | ||
1216 | ( | ||
1217 | ( | ||
1218 | lv_name_2_0=RULE_ID | ||
1219 | { | ||
1220 | newLeafNode(lv_name_2_0, grammarAccess.getComponentInstanceAccess().getNameIDTerminalRuleCall_2_0()); | ||
1221 | } | ||
1222 | { | ||
1223 | if ($current==null) { | ||
1224 | $current = createModelElement(grammarAccess.getComponentInstanceRule()); | ||
1225 | } | ||
1226 | setWithLastConsumed( | ||
1227 | $current, | ||
1228 | "name", | ||
1229 | lv_name_2_0, | ||
1230 | "org.eclipse.xtext.common.Terminals.ID"); | ||
1231 | } | ||
1232 | ) | ||
1233 | )? | ||
1234 | ) | ||
1235 | ; | ||
1236 | |||
1237 | // Entry rule entryRuleQualifiedName | ||
1238 | entryRuleQualifiedName returns [String current=null]: | ||
1239 | { newCompositeNode(grammarAccess.getQualifiedNameRule()); } | ||
1240 | iv_ruleQualifiedName=ruleQualifiedName | ||
1241 | { $current=$iv_ruleQualifiedName.current.getText(); } | ||
1242 | EOF; | ||
1243 | |||
1244 | // Rule QualifiedName | ||
1245 | ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] | ||
1246 | @init { | ||
1247 | enterRule(); | ||
1248 | } | ||
1249 | @after { | ||
1250 | leaveRule(); | ||
1251 | }: | ||
1252 | ( | ||
1253 | this_ID_0=RULE_ID | ||
1254 | { | ||
1255 | $current.merge(this_ID_0); | ||
1256 | } | ||
1257 | { | ||
1258 | newLeafNode(this_ID_0, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); | ||
1259 | } | ||
1260 | ( | ||
1261 | kw='.' | ||
1262 | { | ||
1263 | $current.merge(kw); | ||
1264 | newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); | ||
1265 | } | ||
1266 | this_ID_2=RULE_ID | ||
1267 | { | ||
1268 | $current.merge(this_ID_2); | ||
1269 | } | ||
1270 | { | ||
1271 | newLeafNode(this_ID_2, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); | ||
1272 | } | ||
1273 | )* | ||
1274 | ) | ||
1275 | ; | ||
1276 | |||
1277 | // Entry rule entryRuleQualifiedNameWithWildcard | ||
1278 | entryRuleQualifiedNameWithWildcard returns [String current=null]: | ||
1279 | { newCompositeNode(grammarAccess.getQualifiedNameWithWildcardRule()); } | ||
1280 | iv_ruleQualifiedNameWithWildcard=ruleQualifiedNameWithWildcard | ||
1281 | { $current=$iv_ruleQualifiedNameWithWildcard.current.getText(); } | ||
1282 | EOF; | ||
1283 | |||
1284 | // Rule QualifiedNameWithWildcard | ||
1285 | ruleQualifiedNameWithWildcard returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] | ||
1286 | @init { | ||
1287 | enterRule(); | ||
1288 | } | ||
1289 | @after { | ||
1290 | leaveRule(); | ||
1291 | }: | ||
1292 | ( | ||
1293 | { | ||
1294 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); | ||
1295 | } | ||
1296 | this_QualifiedName_0=ruleQualifiedName | ||
1297 | { | ||
1298 | $current.merge(this_QualifiedName_0); | ||
1299 | } | ||
1300 | { | ||
1301 | afterParserOrEnumRuleCall(); | ||
1302 | } | ||
1303 | ( | ||
1304 | kw='.' | ||
1305 | { | ||
1306 | $current.merge(kw); | ||
1307 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1_0()); | ||
1308 | } | ||
1309 | kw='*' | ||
1310 | { | ||
1311 | $current.merge(kw); | ||
1312 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_1_1()); | ||
1313 | } | ||
1314 | )? | ||
1315 | ) | ||
1316 | ; | ||
1317 | |||
1318 | RULE_DOULBE : ('0'..'9')+ ('.' ('0'..'9')+|('.' ('0'..'9')+)? ('e'|'E') ('+'|'-')? ('0'..'9')+); | ||
1319 | |||
1320 | RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; | ||
1321 | |||
1322 | RULE_INT : ('0'..'9')+; | ||
1323 | |||
1324 | RULE_STRING : ('"' ('\\' .|~(('\\'|'"')))* '"'|'\'' ('\\' .|~(('\\'|'\'')))* '\''); | ||
1325 | |||
1326 | RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/'; | ||
1327 | |||
1328 | RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?; | ||
1329 | |||
1330 | RULE_WS : (' '|'\t'|'\r'|'\n')+; | ||
1331 | |||
1332 | RULE_ANY_OTHER : .; | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.tokens b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.tokens new file mode 100644 index 00000000..1c8b296f --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.tokens | |||
@@ -0,0 +1,60 @@ | |||
1 | '('=28 | ||
2 | ')'=30 | ||
3 | '*'=37 | ||
4 | '+='=33 | ||
5 | ','=29 | ||
6 | '.'=35 | ||
7 | ':='=34 | ||
8 | ';'=13 | ||
9 | '='=22 | ||
10 | '=>'=36 | ||
11 | '[]'=20 | ||
12 | 'and'=23 | ||
13 | 'as'=32 | ||
14 | 'cft'=15 | ||
15 | 'import'=14 | ||
16 | 'in'=17 | ||
17 | 'lambda'=21 | ||
18 | 'lookup'=31 | ||
19 | 'mapping'=27 | ||
20 | 'or'=24 | ||
21 | 'out'=18 | ||
22 | 'package'=12 | ||
23 | 'toplevel'=26 | ||
24 | 'transformation'=25 | ||
25 | '{'=16 | ||
26 | '}'=19 | ||
27 | RULE_ANY_OTHER=11 | ||
28 | RULE_DOULBE=5 | ||
29 | RULE_ID=4 | ||
30 | RULE_INT=6 | ||
31 | RULE_ML_COMMENT=8 | ||
32 | RULE_SL_COMMENT=9 | ||
33 | RULE_STRING=7 | ||
34 | RULE_WS=10 | ||
35 | T__12=12 | ||
36 | T__13=13 | ||
37 | T__14=14 | ||
38 | T__15=15 | ||
39 | T__16=16 | ||
40 | T__17=17 | ||
41 | T__18=18 | ||
42 | T__19=19 | ||
43 | T__20=20 | ||
44 | T__21=21 | ||
45 | T__22=22 | ||
46 | T__23=23 | ||
47 | T__24=24 | ||
48 | T__25=25 | ||
49 | T__26=26 | ||
50 | T__27=27 | ||
51 | T__28=28 | ||
52 | T__29=29 | ||
53 | T__30=30 | ||
54 | T__31=31 | ||
55 | T__32=32 | ||
56 | T__33=33 | ||
57 | T__34=34 | ||
58 | T__35=35 | ||
59 | T__36=36 | ||
60 | T__37=37 | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageLexer.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageLexer.java new file mode 100644 index 00000000..22a96234 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageLexer.java | |||
@@ -0,0 +1,1876 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.faulttree.components.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 InternalCftLanguageLexer extends Lexer { | ||
15 | public static final int RULE_STRING=7; | ||
16 | public static final int RULE_SL_COMMENT=9; | ||
17 | public static final int T__19=19; | ||
18 | public static final int T__15=15; | ||
19 | public static final int T__37=37; | ||
20 | public static final int T__16=16; | ||
21 | public static final int T__17=17; | ||
22 | public static final int T__18=18; | ||
23 | public static final int T__33=33; | ||
24 | public static final int T__12=12; | ||
25 | public static final int T__34=34; | ||
26 | public static final int T__13=13; | ||
27 | public static final int T__35=35; | ||
28 | public static final int T__14=14; | ||
29 | public static final int T__36=36; | ||
30 | public static final int EOF=-1; | ||
31 | public static final int T__30=30; | ||
32 | public static final int T__31=31; | ||
33 | public static final int T__32=32; | ||
34 | public static final int RULE_ID=4; | ||
35 | public static final int RULE_WS=10; | ||
36 | public static final int RULE_DOULBE=5; | ||
37 | public static final int RULE_ANY_OTHER=11; | ||
38 | public static final int T__26=26; | ||
39 | public static final int T__27=27; | ||
40 | public static final int T__28=28; | ||
41 | public static final int RULE_INT=6; | ||
42 | public static final int T__29=29; | ||
43 | public static final int T__22=22; | ||
44 | public static final int RULE_ML_COMMENT=8; | ||
45 | public static final int T__23=23; | ||
46 | public static final int T__24=24; | ||
47 | public static final int T__25=25; | ||
48 | public static final int T__20=20; | ||
49 | public static final int T__21=21; | ||
50 | |||
51 | // delegates | ||
52 | // delegators | ||
53 | |||
54 | public InternalCftLanguageLexer() {;} | ||
55 | public InternalCftLanguageLexer(CharStream input) { | ||
56 | this(input, new RecognizerSharedState()); | ||
57 | } | ||
58 | public InternalCftLanguageLexer(CharStream input, RecognizerSharedState state) { | ||
59 | super(input,state); | ||
60 | |||
61 | } | ||
62 | public String getGrammarFileName() { return "InternalCftLanguage.g"; } | ||
63 | |||
64 | // $ANTLR start "T__12" | ||
65 | public final void mT__12() throws RecognitionException { | ||
66 | try { | ||
67 | int _type = T__12; | ||
68 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
69 | // InternalCftLanguage.g:11:7: ( 'package' ) | ||
70 | // InternalCftLanguage.g:11:9: 'package' | ||
71 | { | ||
72 | match("package"); | ||
73 | |||
74 | |||
75 | } | ||
76 | |||
77 | state.type = _type; | ||
78 | state.channel = _channel; | ||
79 | } | ||
80 | finally { | ||
81 | } | ||
82 | } | ||
83 | // $ANTLR end "T__12" | ||
84 | |||
85 | // $ANTLR start "T__13" | ||
86 | public final void mT__13() throws RecognitionException { | ||
87 | try { | ||
88 | int _type = T__13; | ||
89 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
90 | // InternalCftLanguage.g:12:7: ( ';' ) | ||
91 | // InternalCftLanguage.g:12:9: ';' | ||
92 | { | ||
93 | match(';'); | ||
94 | |||
95 | } | ||
96 | |||
97 | state.type = _type; | ||
98 | state.channel = _channel; | ||
99 | } | ||
100 | finally { | ||
101 | } | ||
102 | } | ||
103 | // $ANTLR end "T__13" | ||
104 | |||
105 | // $ANTLR start "T__14" | ||
106 | public final void mT__14() throws RecognitionException { | ||
107 | try { | ||
108 | int _type = T__14; | ||
109 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
110 | // InternalCftLanguage.g:13:7: ( 'import' ) | ||
111 | // InternalCftLanguage.g:13:9: 'import' | ||
112 | { | ||
113 | match("import"); | ||
114 | |||
115 | |||
116 | } | ||
117 | |||
118 | state.type = _type; | ||
119 | state.channel = _channel; | ||
120 | } | ||
121 | finally { | ||
122 | } | ||
123 | } | ||
124 | // $ANTLR end "T__14" | ||
125 | |||
126 | // $ANTLR start "T__15" | ||
127 | public final void mT__15() throws RecognitionException { | ||
128 | try { | ||
129 | int _type = T__15; | ||
130 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
131 | // InternalCftLanguage.g:14:7: ( 'cft' ) | ||
132 | // InternalCftLanguage.g:14:9: 'cft' | ||
133 | { | ||
134 | match("cft"); | ||
135 | |||
136 | |||
137 | } | ||
138 | |||
139 | state.type = _type; | ||
140 | state.channel = _channel; | ||
141 | } | ||
142 | finally { | ||
143 | } | ||
144 | } | ||
145 | // $ANTLR end "T__15" | ||
146 | |||
147 | // $ANTLR start "T__16" | ||
148 | public final void mT__16() throws RecognitionException { | ||
149 | try { | ||
150 | int _type = T__16; | ||
151 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
152 | // InternalCftLanguage.g:15:7: ( '{' ) | ||
153 | // InternalCftLanguage.g:15:9: '{' | ||
154 | { | ||
155 | match('{'); | ||
156 | |||
157 | } | ||
158 | |||
159 | state.type = _type; | ||
160 | state.channel = _channel; | ||
161 | } | ||
162 | finally { | ||
163 | } | ||
164 | } | ||
165 | // $ANTLR end "T__16" | ||
166 | |||
167 | // $ANTLR start "T__17" | ||
168 | public final void mT__17() throws RecognitionException { | ||
169 | try { | ||
170 | int _type = T__17; | ||
171 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
172 | // InternalCftLanguage.g:16:7: ( 'in' ) | ||
173 | // InternalCftLanguage.g:16:9: 'in' | ||
174 | { | ||
175 | match("in"); | ||
176 | |||
177 | |||
178 | } | ||
179 | |||
180 | state.type = _type; | ||
181 | state.channel = _channel; | ||
182 | } | ||
183 | finally { | ||
184 | } | ||
185 | } | ||
186 | // $ANTLR end "T__17" | ||
187 | |||
188 | // $ANTLR start "T__18" | ||
189 | public final void mT__18() throws RecognitionException { | ||
190 | try { | ||
191 | int _type = T__18; | ||
192 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
193 | // InternalCftLanguage.g:17:7: ( 'out' ) | ||
194 | // InternalCftLanguage.g:17:9: 'out' | ||
195 | { | ||
196 | match("out"); | ||
197 | |||
198 | |||
199 | } | ||
200 | |||
201 | state.type = _type; | ||
202 | state.channel = _channel; | ||
203 | } | ||
204 | finally { | ||
205 | } | ||
206 | } | ||
207 | // $ANTLR end "T__18" | ||
208 | |||
209 | // $ANTLR start "T__19" | ||
210 | public final void mT__19() throws RecognitionException { | ||
211 | try { | ||
212 | int _type = T__19; | ||
213 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
214 | // InternalCftLanguage.g:18:7: ( '}' ) | ||
215 | // InternalCftLanguage.g:18:9: '}' | ||
216 | { | ||
217 | match('}'); | ||
218 | |||
219 | } | ||
220 | |||
221 | state.type = _type; | ||
222 | state.channel = _channel; | ||
223 | } | ||
224 | finally { | ||
225 | } | ||
226 | } | ||
227 | // $ANTLR end "T__19" | ||
228 | |||
229 | // $ANTLR start "T__20" | ||
230 | public final void mT__20() throws RecognitionException { | ||
231 | try { | ||
232 | int _type = T__20; | ||
233 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
234 | // InternalCftLanguage.g:19:7: ( '[]' ) | ||
235 | // InternalCftLanguage.g:19:9: '[]' | ||
236 | { | ||
237 | match("[]"); | ||
238 | |||
239 | |||
240 | } | ||
241 | |||
242 | state.type = _type; | ||
243 | state.channel = _channel; | ||
244 | } | ||
245 | finally { | ||
246 | } | ||
247 | } | ||
248 | // $ANTLR end "T__20" | ||
249 | |||
250 | // $ANTLR start "T__21" | ||
251 | public final void mT__21() throws RecognitionException { | ||
252 | try { | ||
253 | int _type = T__21; | ||
254 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
255 | // InternalCftLanguage.g:20:7: ( 'lambda' ) | ||
256 | // InternalCftLanguage.g:20:9: 'lambda' | ||
257 | { | ||
258 | match("lambda"); | ||
259 | |||
260 | |||
261 | } | ||
262 | |||
263 | state.type = _type; | ||
264 | state.channel = _channel; | ||
265 | } | ||
266 | finally { | ||
267 | } | ||
268 | } | ||
269 | // $ANTLR end "T__21" | ||
270 | |||
271 | // $ANTLR start "T__22" | ||
272 | public final void mT__22() throws RecognitionException { | ||
273 | try { | ||
274 | int _type = T__22; | ||
275 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
276 | // InternalCftLanguage.g:21:7: ( '=' ) | ||
277 | // InternalCftLanguage.g:21:9: '=' | ||
278 | { | ||
279 | match('='); | ||
280 | |||
281 | } | ||
282 | |||
283 | state.type = _type; | ||
284 | state.channel = _channel; | ||
285 | } | ||
286 | finally { | ||
287 | } | ||
288 | } | ||
289 | // $ANTLR end "T__22" | ||
290 | |||
291 | // $ANTLR start "T__23" | ||
292 | public final void mT__23() throws RecognitionException { | ||
293 | try { | ||
294 | int _type = T__23; | ||
295 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
296 | // InternalCftLanguage.g:22:7: ( 'and' ) | ||
297 | // InternalCftLanguage.g:22:9: 'and' | ||
298 | { | ||
299 | match("and"); | ||
300 | |||
301 | |||
302 | } | ||
303 | |||
304 | state.type = _type; | ||
305 | state.channel = _channel; | ||
306 | } | ||
307 | finally { | ||
308 | } | ||
309 | } | ||
310 | // $ANTLR end "T__23" | ||
311 | |||
312 | // $ANTLR start "T__24" | ||
313 | public final void mT__24() throws RecognitionException { | ||
314 | try { | ||
315 | int _type = T__24; | ||
316 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
317 | // InternalCftLanguage.g:23:7: ( 'or' ) | ||
318 | // InternalCftLanguage.g:23:9: 'or' | ||
319 | { | ||
320 | match("or"); | ||
321 | |||
322 | |||
323 | } | ||
324 | |||
325 | state.type = _type; | ||
326 | state.channel = _channel; | ||
327 | } | ||
328 | finally { | ||
329 | } | ||
330 | } | ||
331 | // $ANTLR end "T__24" | ||
332 | |||
333 | // $ANTLR start "T__25" | ||
334 | public final void mT__25() throws RecognitionException { | ||
335 | try { | ||
336 | int _type = T__25; | ||
337 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
338 | // InternalCftLanguage.g:24:7: ( 'transformation' ) | ||
339 | // InternalCftLanguage.g:24:9: 'transformation' | ||
340 | { | ||
341 | match("transformation"); | ||
342 | |||
343 | |||
344 | } | ||
345 | |||
346 | state.type = _type; | ||
347 | state.channel = _channel; | ||
348 | } | ||
349 | finally { | ||
350 | } | ||
351 | } | ||
352 | // $ANTLR end "T__25" | ||
353 | |||
354 | // $ANTLR start "T__26" | ||
355 | public final void mT__26() throws RecognitionException { | ||
356 | try { | ||
357 | int _type = T__26; | ||
358 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
359 | // InternalCftLanguage.g:25:7: ( 'toplevel' ) | ||
360 | // InternalCftLanguage.g:25:9: 'toplevel' | ||
361 | { | ||
362 | match("toplevel"); | ||
363 | |||
364 | |||
365 | } | ||
366 | |||
367 | state.type = _type; | ||
368 | state.channel = _channel; | ||
369 | } | ||
370 | finally { | ||
371 | } | ||
372 | } | ||
373 | // $ANTLR end "T__26" | ||
374 | |||
375 | // $ANTLR start "T__27" | ||
376 | public final void mT__27() throws RecognitionException { | ||
377 | try { | ||
378 | int _type = T__27; | ||
379 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
380 | // InternalCftLanguage.g:26:7: ( 'mapping' ) | ||
381 | // InternalCftLanguage.g:26:9: 'mapping' | ||
382 | { | ||
383 | match("mapping"); | ||
384 | |||
385 | |||
386 | } | ||
387 | |||
388 | state.type = _type; | ||
389 | state.channel = _channel; | ||
390 | } | ||
391 | finally { | ||
392 | } | ||
393 | } | ||
394 | // $ANTLR end "T__27" | ||
395 | |||
396 | // $ANTLR start "T__28" | ||
397 | public final void mT__28() throws RecognitionException { | ||
398 | try { | ||
399 | int _type = T__28; | ||
400 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
401 | // InternalCftLanguage.g:27:7: ( '(' ) | ||
402 | // InternalCftLanguage.g:27:9: '(' | ||
403 | { | ||
404 | match('('); | ||
405 | |||
406 | } | ||
407 | |||
408 | state.type = _type; | ||
409 | state.channel = _channel; | ||
410 | } | ||
411 | finally { | ||
412 | } | ||
413 | } | ||
414 | // $ANTLR end "T__28" | ||
415 | |||
416 | // $ANTLR start "T__29" | ||
417 | public final void mT__29() throws RecognitionException { | ||
418 | try { | ||
419 | int _type = T__29; | ||
420 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
421 | // InternalCftLanguage.g:28:7: ( ',' ) | ||
422 | // InternalCftLanguage.g:28:9: ',' | ||
423 | { | ||
424 | match(','); | ||
425 | |||
426 | } | ||
427 | |||
428 | state.type = _type; | ||
429 | state.channel = _channel; | ||
430 | } | ||
431 | finally { | ||
432 | } | ||
433 | } | ||
434 | // $ANTLR end "T__29" | ||
435 | |||
436 | // $ANTLR start "T__30" | ||
437 | public final void mT__30() throws RecognitionException { | ||
438 | try { | ||
439 | int _type = T__30; | ||
440 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
441 | // InternalCftLanguage.g:29:7: ( ')' ) | ||
442 | // InternalCftLanguage.g:29:9: ')' | ||
443 | { | ||
444 | match(')'); | ||
445 | |||
446 | } | ||
447 | |||
448 | state.type = _type; | ||
449 | state.channel = _channel; | ||
450 | } | ||
451 | finally { | ||
452 | } | ||
453 | } | ||
454 | // $ANTLR end "T__30" | ||
455 | |||
456 | // $ANTLR start "T__31" | ||
457 | public final void mT__31() throws RecognitionException { | ||
458 | try { | ||
459 | int _type = T__31; | ||
460 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
461 | // InternalCftLanguage.g:30:7: ( 'lookup' ) | ||
462 | // InternalCftLanguage.g:30:9: 'lookup' | ||
463 | { | ||
464 | match("lookup"); | ||
465 | |||
466 | |||
467 | } | ||
468 | |||
469 | state.type = _type; | ||
470 | state.channel = _channel; | ||
471 | } | ||
472 | finally { | ||
473 | } | ||
474 | } | ||
475 | // $ANTLR end "T__31" | ||
476 | |||
477 | // $ANTLR start "T__32" | ||
478 | public final void mT__32() throws RecognitionException { | ||
479 | try { | ||
480 | int _type = T__32; | ||
481 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
482 | // InternalCftLanguage.g:31:7: ( 'as' ) | ||
483 | // InternalCftLanguage.g:31:9: 'as' | ||
484 | { | ||
485 | match("as"); | ||
486 | |||
487 | |||
488 | } | ||
489 | |||
490 | state.type = _type; | ||
491 | state.channel = _channel; | ||
492 | } | ||
493 | finally { | ||
494 | } | ||
495 | } | ||
496 | // $ANTLR end "T__32" | ||
497 | |||
498 | // $ANTLR start "T__33" | ||
499 | public final void mT__33() throws RecognitionException { | ||
500 | try { | ||
501 | int _type = T__33; | ||
502 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
503 | // InternalCftLanguage.g:32:7: ( '+=' ) | ||
504 | // InternalCftLanguage.g:32:9: '+=' | ||
505 | { | ||
506 | match("+="); | ||
507 | |||
508 | |||
509 | } | ||
510 | |||
511 | state.type = _type; | ||
512 | state.channel = _channel; | ||
513 | } | ||
514 | finally { | ||
515 | } | ||
516 | } | ||
517 | // $ANTLR end "T__33" | ||
518 | |||
519 | // $ANTLR start "T__34" | ||
520 | public final void mT__34() throws RecognitionException { | ||
521 | try { | ||
522 | int _type = T__34; | ||
523 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
524 | // InternalCftLanguage.g:33:7: ( ':=' ) | ||
525 | // InternalCftLanguage.g:33:9: ':=' | ||
526 | { | ||
527 | match(":="); | ||
528 | |||
529 | |||
530 | } | ||
531 | |||
532 | state.type = _type; | ||
533 | state.channel = _channel; | ||
534 | } | ||
535 | finally { | ||
536 | } | ||
537 | } | ||
538 | // $ANTLR end "T__34" | ||
539 | |||
540 | // $ANTLR start "T__35" | ||
541 | public final void mT__35() throws RecognitionException { | ||
542 | try { | ||
543 | int _type = T__35; | ||
544 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
545 | // InternalCftLanguage.g:34:7: ( '.' ) | ||
546 | // InternalCftLanguage.g:34:9: '.' | ||
547 | { | ||
548 | match('.'); | ||
549 | |||
550 | } | ||
551 | |||
552 | state.type = _type; | ||
553 | state.channel = _channel; | ||
554 | } | ||
555 | finally { | ||
556 | } | ||
557 | } | ||
558 | // $ANTLR end "T__35" | ||
559 | |||
560 | // $ANTLR start "T__36" | ||
561 | public final void mT__36() throws RecognitionException { | ||
562 | try { | ||
563 | int _type = T__36; | ||
564 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
565 | // InternalCftLanguage.g:35:7: ( '=>' ) | ||
566 | // InternalCftLanguage.g:35:9: '=>' | ||
567 | { | ||
568 | match("=>"); | ||
569 | |||
570 | |||
571 | } | ||
572 | |||
573 | state.type = _type; | ||
574 | state.channel = _channel; | ||
575 | } | ||
576 | finally { | ||
577 | } | ||
578 | } | ||
579 | // $ANTLR end "T__36" | ||
580 | |||
581 | // $ANTLR start "T__37" | ||
582 | public final void mT__37() throws RecognitionException { | ||
583 | try { | ||
584 | int _type = T__37; | ||
585 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
586 | // InternalCftLanguage.g:36:7: ( '*' ) | ||
587 | // InternalCftLanguage.g:36:9: '*' | ||
588 | { | ||
589 | match('*'); | ||
590 | |||
591 | } | ||
592 | |||
593 | state.type = _type; | ||
594 | state.channel = _channel; | ||
595 | } | ||
596 | finally { | ||
597 | } | ||
598 | } | ||
599 | // $ANTLR end "T__37" | ||
600 | |||
601 | // $ANTLR start "RULE_DOULBE" | ||
602 | public final void mRULE_DOULBE() throws RecognitionException { | ||
603 | try { | ||
604 | int _type = RULE_DOULBE; | ||
605 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
606 | // InternalCftLanguage.g:1318:13: ( ( '0' .. '9' )+ ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) ) | ||
607 | // InternalCftLanguage.g:1318:15: ( '0' .. '9' )+ ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) | ||
608 | { | ||
609 | // InternalCftLanguage.g:1318:15: ( '0' .. '9' )+ | ||
610 | int cnt1=0; | ||
611 | loop1: | ||
612 | do { | ||
613 | int alt1=2; | ||
614 | int LA1_0 = input.LA(1); | ||
615 | |||
616 | if ( ((LA1_0>='0' && LA1_0<='9')) ) { | ||
617 | alt1=1; | ||
618 | } | ||
619 | |||
620 | |||
621 | switch (alt1) { | ||
622 | case 1 : | ||
623 | // InternalCftLanguage.g:1318:16: '0' .. '9' | ||
624 | { | ||
625 | matchRange('0','9'); | ||
626 | |||
627 | } | ||
628 | break; | ||
629 | |||
630 | default : | ||
631 | if ( cnt1 >= 1 ) break loop1; | ||
632 | EarlyExitException eee = | ||
633 | new EarlyExitException(1, input); | ||
634 | throw eee; | ||
635 | } | ||
636 | cnt1++; | ||
637 | } while (true); | ||
638 | |||
639 | // InternalCftLanguage.g:1318:27: ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) | ||
640 | int alt7=2; | ||
641 | alt7 = dfa7.predict(input); | ||
642 | switch (alt7) { | ||
643 | case 1 : | ||
644 | // InternalCftLanguage.g:1318:28: '.' ( '0' .. '9' )+ | ||
645 | { | ||
646 | match('.'); | ||
647 | // InternalCftLanguage.g:1318:32: ( '0' .. '9' )+ | ||
648 | int cnt2=0; | ||
649 | loop2: | ||
650 | do { | ||
651 | int alt2=2; | ||
652 | int LA2_0 = input.LA(1); | ||
653 | |||
654 | if ( ((LA2_0>='0' && LA2_0<='9')) ) { | ||
655 | alt2=1; | ||
656 | } | ||
657 | |||
658 | |||
659 | switch (alt2) { | ||
660 | case 1 : | ||
661 | // InternalCftLanguage.g:1318:33: '0' .. '9' | ||
662 | { | ||
663 | matchRange('0','9'); | ||
664 | |||
665 | } | ||
666 | break; | ||
667 | |||
668 | default : | ||
669 | if ( cnt2 >= 1 ) break loop2; | ||
670 | EarlyExitException eee = | ||
671 | new EarlyExitException(2, input); | ||
672 | throw eee; | ||
673 | } | ||
674 | cnt2++; | ||
675 | } while (true); | ||
676 | |||
677 | |||
678 | } | ||
679 | break; | ||
680 | case 2 : | ||
681 | // InternalCftLanguage.g:1318:44: ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ | ||
682 | { | ||
683 | // InternalCftLanguage.g:1318:44: ( '.' ( '0' .. '9' )+ )? | ||
684 | int alt4=2; | ||
685 | int LA4_0 = input.LA(1); | ||
686 | |||
687 | if ( (LA4_0=='.') ) { | ||
688 | alt4=1; | ||
689 | } | ||
690 | switch (alt4) { | ||
691 | case 1 : | ||
692 | // InternalCftLanguage.g:1318:45: '.' ( '0' .. '9' )+ | ||
693 | { | ||
694 | match('.'); | ||
695 | // InternalCftLanguage.g:1318:49: ( '0' .. '9' )+ | ||
696 | int cnt3=0; | ||
697 | loop3: | ||
698 | do { | ||
699 | int alt3=2; | ||
700 | int LA3_0 = input.LA(1); | ||
701 | |||
702 | if ( ((LA3_0>='0' && LA3_0<='9')) ) { | ||
703 | alt3=1; | ||
704 | } | ||
705 | |||
706 | |||
707 | switch (alt3) { | ||
708 | case 1 : | ||
709 | // InternalCftLanguage.g:1318:50: '0' .. '9' | ||
710 | { | ||
711 | matchRange('0','9'); | ||
712 | |||
713 | } | ||
714 | break; | ||
715 | |||
716 | default : | ||
717 | if ( cnt3 >= 1 ) break loop3; | ||
718 | EarlyExitException eee = | ||
719 | new EarlyExitException(3, input); | ||
720 | throw eee; | ||
721 | } | ||
722 | cnt3++; | ||
723 | } while (true); | ||
724 | |||
725 | |||
726 | } | ||
727 | break; | ||
728 | |||
729 | } | ||
730 | |||
731 | if ( input.LA(1)=='E'||input.LA(1)=='e' ) { | ||
732 | input.consume(); | ||
733 | |||
734 | } | ||
735 | else { | ||
736 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
737 | recover(mse); | ||
738 | throw mse;} | ||
739 | |||
740 | // InternalCftLanguage.g:1318:73: ( '+' | '-' )? | ||
741 | int alt5=2; | ||
742 | int LA5_0 = input.LA(1); | ||
743 | |||
744 | if ( (LA5_0=='+'||LA5_0=='-') ) { | ||
745 | alt5=1; | ||
746 | } | ||
747 | switch (alt5) { | ||
748 | case 1 : | ||
749 | // InternalCftLanguage.g: | ||
750 | { | ||
751 | if ( input.LA(1)=='+'||input.LA(1)=='-' ) { | ||
752 | input.consume(); | ||
753 | |||
754 | } | ||
755 | else { | ||
756 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
757 | recover(mse); | ||
758 | throw mse;} | ||
759 | |||
760 | |||
761 | } | ||
762 | break; | ||
763 | |||
764 | } | ||
765 | |||
766 | // InternalCftLanguage.g:1318:84: ( '0' .. '9' )+ | ||
767 | int cnt6=0; | ||
768 | loop6: | ||
769 | do { | ||
770 | int alt6=2; | ||
771 | int LA6_0 = input.LA(1); | ||
772 | |||
773 | if ( ((LA6_0>='0' && LA6_0<='9')) ) { | ||
774 | alt6=1; | ||
775 | } | ||
776 | |||
777 | |||
778 | switch (alt6) { | ||
779 | case 1 : | ||
780 | // InternalCftLanguage.g:1318:85: '0' .. '9' | ||
781 | { | ||
782 | matchRange('0','9'); | ||
783 | |||
784 | } | ||
785 | break; | ||
786 | |||
787 | default : | ||
788 | if ( cnt6 >= 1 ) break loop6; | ||
789 | EarlyExitException eee = | ||
790 | new EarlyExitException(6, input); | ||
791 | throw eee; | ||
792 | } | ||
793 | cnt6++; | ||
794 | } while (true); | ||
795 | |||
796 | |||
797 | } | ||
798 | break; | ||
799 | |||
800 | } | ||
801 | |||
802 | |||
803 | } | ||
804 | |||
805 | state.type = _type; | ||
806 | state.channel = _channel; | ||
807 | } | ||
808 | finally { | ||
809 | } | ||
810 | } | ||
811 | // $ANTLR end "RULE_DOULBE" | ||
812 | |||
813 | // $ANTLR start "RULE_ID" | ||
814 | public final void mRULE_ID() throws RecognitionException { | ||
815 | try { | ||
816 | int _type = RULE_ID; | ||
817 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
818 | // InternalCftLanguage.g:1320:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) | ||
819 | // InternalCftLanguage.g:1320:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | ||
820 | { | ||
821 | // InternalCftLanguage.g:1320:11: ( '^' )? | ||
822 | int alt8=2; | ||
823 | int LA8_0 = input.LA(1); | ||
824 | |||
825 | if ( (LA8_0=='^') ) { | ||
826 | alt8=1; | ||
827 | } | ||
828 | switch (alt8) { | ||
829 | case 1 : | ||
830 | // InternalCftLanguage.g:1320:11: '^' | ||
831 | { | ||
832 | match('^'); | ||
833 | |||
834 | } | ||
835 | break; | ||
836 | |||
837 | } | ||
838 | |||
839 | if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { | ||
840 | input.consume(); | ||
841 | |||
842 | } | ||
843 | else { | ||
844 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
845 | recover(mse); | ||
846 | throw mse;} | ||
847 | |||
848 | // InternalCftLanguage.g:1320:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | ||
849 | loop9: | ||
850 | do { | ||
851 | int alt9=2; | ||
852 | int LA9_0 = input.LA(1); | ||
853 | |||
854 | if ( ((LA9_0>='0' && LA9_0<='9')||(LA9_0>='A' && LA9_0<='Z')||LA9_0=='_'||(LA9_0>='a' && LA9_0<='z')) ) { | ||
855 | alt9=1; | ||
856 | } | ||
857 | |||
858 | |||
859 | switch (alt9) { | ||
860 | case 1 : | ||
861 | // InternalCftLanguage.g: | ||
862 | { | ||
863 | 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') ) { | ||
864 | input.consume(); | ||
865 | |||
866 | } | ||
867 | else { | ||
868 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
869 | recover(mse); | ||
870 | throw mse;} | ||
871 | |||
872 | |||
873 | } | ||
874 | break; | ||
875 | |||
876 | default : | ||
877 | break loop9; | ||
878 | } | ||
879 | } while (true); | ||
880 | |||
881 | |||
882 | } | ||
883 | |||
884 | state.type = _type; | ||
885 | state.channel = _channel; | ||
886 | } | ||
887 | finally { | ||
888 | } | ||
889 | } | ||
890 | // $ANTLR end "RULE_ID" | ||
891 | |||
892 | // $ANTLR start "RULE_INT" | ||
893 | public final void mRULE_INT() throws RecognitionException { | ||
894 | try { | ||
895 | int _type = RULE_INT; | ||
896 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
897 | // InternalCftLanguage.g:1322:10: ( ( '0' .. '9' )+ ) | ||
898 | // InternalCftLanguage.g:1322:12: ( '0' .. '9' )+ | ||
899 | { | ||
900 | // InternalCftLanguage.g:1322:12: ( '0' .. '9' )+ | ||
901 | int cnt10=0; | ||
902 | loop10: | ||
903 | do { | ||
904 | int alt10=2; | ||
905 | int LA10_0 = input.LA(1); | ||
906 | |||
907 | if ( ((LA10_0>='0' && LA10_0<='9')) ) { | ||
908 | alt10=1; | ||
909 | } | ||
910 | |||
911 | |||
912 | switch (alt10) { | ||
913 | case 1 : | ||
914 | // InternalCftLanguage.g:1322:13: '0' .. '9' | ||
915 | { | ||
916 | matchRange('0','9'); | ||
917 | |||
918 | } | ||
919 | break; | ||
920 | |||
921 | default : | ||
922 | if ( cnt10 >= 1 ) break loop10; | ||
923 | EarlyExitException eee = | ||
924 | new EarlyExitException(10, input); | ||
925 | throw eee; | ||
926 | } | ||
927 | cnt10++; | ||
928 | } while (true); | ||
929 | |||
930 | |||
931 | } | ||
932 | |||
933 | state.type = _type; | ||
934 | state.channel = _channel; | ||
935 | } | ||
936 | finally { | ||
937 | } | ||
938 | } | ||
939 | // $ANTLR end "RULE_INT" | ||
940 | |||
941 | // $ANTLR start "RULE_STRING" | ||
942 | public final void mRULE_STRING() throws RecognitionException { | ||
943 | try { | ||
944 | int _type = RULE_STRING; | ||
945 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
946 | // InternalCftLanguage.g:1324:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) ) | ||
947 | // InternalCftLanguage.g:1324:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) | ||
948 | { | ||
949 | // InternalCftLanguage.g:1324:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) | ||
950 | int alt13=2; | ||
951 | int LA13_0 = input.LA(1); | ||
952 | |||
953 | if ( (LA13_0=='\"') ) { | ||
954 | alt13=1; | ||
955 | } | ||
956 | else if ( (LA13_0=='\'') ) { | ||
957 | alt13=2; | ||
958 | } | ||
959 | else { | ||
960 | NoViableAltException nvae = | ||
961 | new NoViableAltException("", 13, 0, input); | ||
962 | |||
963 | throw nvae; | ||
964 | } | ||
965 | switch (alt13) { | ||
966 | case 1 : | ||
967 | // InternalCftLanguage.g:1324:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | ||
968 | { | ||
969 | match('\"'); | ||
970 | // InternalCftLanguage.g:1324:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* | ||
971 | loop11: | ||
972 | do { | ||
973 | int alt11=3; | ||
974 | int LA11_0 = input.LA(1); | ||
975 | |||
976 | if ( (LA11_0=='\\') ) { | ||
977 | alt11=1; | ||
978 | } | ||
979 | else if ( ((LA11_0>='\u0000' && LA11_0<='!')||(LA11_0>='#' && LA11_0<='[')||(LA11_0>=']' && LA11_0<='\uFFFF')) ) { | ||
980 | alt11=2; | ||
981 | } | ||
982 | |||
983 | |||
984 | switch (alt11) { | ||
985 | case 1 : | ||
986 | // InternalCftLanguage.g:1324:21: '\\\\' . | ||
987 | { | ||
988 | match('\\'); | ||
989 | matchAny(); | ||
990 | |||
991 | } | ||
992 | break; | ||
993 | case 2 : | ||
994 | // InternalCftLanguage.g:1324:28: ~ ( ( '\\\\' | '\"' ) ) | ||
995 | { | ||
996 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { | ||
997 | input.consume(); | ||
998 | |||
999 | } | ||
1000 | else { | ||
1001 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1002 | recover(mse); | ||
1003 | throw mse;} | ||
1004 | |||
1005 | |||
1006 | } | ||
1007 | break; | ||
1008 | |||
1009 | default : | ||
1010 | break loop11; | ||
1011 | } | ||
1012 | } while (true); | ||
1013 | |||
1014 | match('\"'); | ||
1015 | |||
1016 | } | ||
1017 | break; | ||
1018 | case 2 : | ||
1019 | // InternalCftLanguage.g:1324:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' | ||
1020 | { | ||
1021 | match('\''); | ||
1022 | // InternalCftLanguage.g:1324:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* | ||
1023 | loop12: | ||
1024 | do { | ||
1025 | int alt12=3; | ||
1026 | int LA12_0 = input.LA(1); | ||
1027 | |||
1028 | if ( (LA12_0=='\\') ) { | ||
1029 | alt12=1; | ||
1030 | } | ||
1031 | else if ( ((LA12_0>='\u0000' && LA12_0<='&')||(LA12_0>='(' && LA12_0<='[')||(LA12_0>=']' && LA12_0<='\uFFFF')) ) { | ||
1032 | alt12=2; | ||
1033 | } | ||
1034 | |||
1035 | |||
1036 | switch (alt12) { | ||
1037 | case 1 : | ||
1038 | // InternalCftLanguage.g:1324:54: '\\\\' . | ||
1039 | { | ||
1040 | match('\\'); | ||
1041 | matchAny(); | ||
1042 | |||
1043 | } | ||
1044 | break; | ||
1045 | case 2 : | ||
1046 | // InternalCftLanguage.g:1324:61: ~ ( ( '\\\\' | '\\'' ) ) | ||
1047 | { | ||
1048 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { | ||
1049 | input.consume(); | ||
1050 | |||
1051 | } | ||
1052 | else { | ||
1053 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1054 | recover(mse); | ||
1055 | throw mse;} | ||
1056 | |||
1057 | |||
1058 | } | ||
1059 | break; | ||
1060 | |||
1061 | default : | ||
1062 | break loop12; | ||
1063 | } | ||
1064 | } while (true); | ||
1065 | |||
1066 | match('\''); | ||
1067 | |||
1068 | } | ||
1069 | break; | ||
1070 | |||
1071 | } | ||
1072 | |||
1073 | |||
1074 | } | ||
1075 | |||
1076 | state.type = _type; | ||
1077 | state.channel = _channel; | ||
1078 | } | ||
1079 | finally { | ||
1080 | } | ||
1081 | } | ||
1082 | // $ANTLR end "RULE_STRING" | ||
1083 | |||
1084 | // $ANTLR start "RULE_ML_COMMENT" | ||
1085 | public final void mRULE_ML_COMMENT() throws RecognitionException { | ||
1086 | try { | ||
1087 | int _type = RULE_ML_COMMENT; | ||
1088 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1089 | // InternalCftLanguage.g:1326:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) | ||
1090 | // InternalCftLanguage.g:1326:19: '/*' ( options {greedy=false; } : . )* '*/' | ||
1091 | { | ||
1092 | match("/*"); | ||
1093 | |||
1094 | // InternalCftLanguage.g:1326:24: ( options {greedy=false; } : . )* | ||
1095 | loop14: | ||
1096 | do { | ||
1097 | int alt14=2; | ||
1098 | int LA14_0 = input.LA(1); | ||
1099 | |||
1100 | if ( (LA14_0=='*') ) { | ||
1101 | int LA14_1 = input.LA(2); | ||
1102 | |||
1103 | if ( (LA14_1=='/') ) { | ||
1104 | alt14=2; | ||
1105 | } | ||
1106 | else if ( ((LA14_1>='\u0000' && LA14_1<='.')||(LA14_1>='0' && LA14_1<='\uFFFF')) ) { | ||
1107 | alt14=1; | ||
1108 | } | ||
1109 | |||
1110 | |||
1111 | } | ||
1112 | else if ( ((LA14_0>='\u0000' && LA14_0<=')')||(LA14_0>='+' && LA14_0<='\uFFFF')) ) { | ||
1113 | alt14=1; | ||
1114 | } | ||
1115 | |||
1116 | |||
1117 | switch (alt14) { | ||
1118 | case 1 : | ||
1119 | // InternalCftLanguage.g:1326:52: . | ||
1120 | { | ||
1121 | matchAny(); | ||
1122 | |||
1123 | } | ||
1124 | break; | ||
1125 | |||
1126 | default : | ||
1127 | break loop14; | ||
1128 | } | ||
1129 | } while (true); | ||
1130 | |||
1131 | match("*/"); | ||
1132 | |||
1133 | |||
1134 | } | ||
1135 | |||
1136 | state.type = _type; | ||
1137 | state.channel = _channel; | ||
1138 | } | ||
1139 | finally { | ||
1140 | } | ||
1141 | } | ||
1142 | // $ANTLR end "RULE_ML_COMMENT" | ||
1143 | |||
1144 | // $ANTLR start "RULE_SL_COMMENT" | ||
1145 | public final void mRULE_SL_COMMENT() throws RecognitionException { | ||
1146 | try { | ||
1147 | int _type = RULE_SL_COMMENT; | ||
1148 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1149 | // InternalCftLanguage.g:1328:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) | ||
1150 | // InternalCftLanguage.g:1328:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? | ||
1151 | { | ||
1152 | match("//"); | ||
1153 | |||
1154 | // InternalCftLanguage.g:1328:24: (~ ( ( '\\n' | '\\r' ) ) )* | ||
1155 | loop15: | ||
1156 | do { | ||
1157 | int alt15=2; | ||
1158 | int LA15_0 = input.LA(1); | ||
1159 | |||
1160 | if ( ((LA15_0>='\u0000' && LA15_0<='\t')||(LA15_0>='\u000B' && LA15_0<='\f')||(LA15_0>='\u000E' && LA15_0<='\uFFFF')) ) { | ||
1161 | alt15=1; | ||
1162 | } | ||
1163 | |||
1164 | |||
1165 | switch (alt15) { | ||
1166 | case 1 : | ||
1167 | // InternalCftLanguage.g:1328:24: ~ ( ( '\\n' | '\\r' ) ) | ||
1168 | { | ||
1169 | 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') ) { | ||
1170 | input.consume(); | ||
1171 | |||
1172 | } | ||
1173 | else { | ||
1174 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1175 | recover(mse); | ||
1176 | throw mse;} | ||
1177 | |||
1178 | |||
1179 | } | ||
1180 | break; | ||
1181 | |||
1182 | default : | ||
1183 | break loop15; | ||
1184 | } | ||
1185 | } while (true); | ||
1186 | |||
1187 | // InternalCftLanguage.g:1328:40: ( ( '\\r' )? '\\n' )? | ||
1188 | int alt17=2; | ||
1189 | int LA17_0 = input.LA(1); | ||
1190 | |||
1191 | if ( (LA17_0=='\n'||LA17_0=='\r') ) { | ||
1192 | alt17=1; | ||
1193 | } | ||
1194 | switch (alt17) { | ||
1195 | case 1 : | ||
1196 | // InternalCftLanguage.g:1328:41: ( '\\r' )? '\\n' | ||
1197 | { | ||
1198 | // InternalCftLanguage.g:1328:41: ( '\\r' )? | ||
1199 | int alt16=2; | ||
1200 | int LA16_0 = input.LA(1); | ||
1201 | |||
1202 | if ( (LA16_0=='\r') ) { | ||
1203 | alt16=1; | ||
1204 | } | ||
1205 | switch (alt16) { | ||
1206 | case 1 : | ||
1207 | // InternalCftLanguage.g:1328:41: '\\r' | ||
1208 | { | ||
1209 | match('\r'); | ||
1210 | |||
1211 | } | ||
1212 | break; | ||
1213 | |||
1214 | } | ||
1215 | |||
1216 | match('\n'); | ||
1217 | |||
1218 | } | ||
1219 | break; | ||
1220 | |||
1221 | } | ||
1222 | |||
1223 | |||
1224 | } | ||
1225 | |||
1226 | state.type = _type; | ||
1227 | state.channel = _channel; | ||
1228 | } | ||
1229 | finally { | ||
1230 | } | ||
1231 | } | ||
1232 | // $ANTLR end "RULE_SL_COMMENT" | ||
1233 | |||
1234 | // $ANTLR start "RULE_WS" | ||
1235 | public final void mRULE_WS() throws RecognitionException { | ||
1236 | try { | ||
1237 | int _type = RULE_WS; | ||
1238 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1239 | // InternalCftLanguage.g:1330:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) | ||
1240 | // InternalCftLanguage.g:1330:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ | ||
1241 | { | ||
1242 | // InternalCftLanguage.g:1330:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ | ||
1243 | int cnt18=0; | ||
1244 | loop18: | ||
1245 | do { | ||
1246 | int alt18=2; | ||
1247 | int LA18_0 = input.LA(1); | ||
1248 | |||
1249 | if ( ((LA18_0>='\t' && LA18_0<='\n')||LA18_0=='\r'||LA18_0==' ') ) { | ||
1250 | alt18=1; | ||
1251 | } | ||
1252 | |||
1253 | |||
1254 | switch (alt18) { | ||
1255 | case 1 : | ||
1256 | // InternalCftLanguage.g: | ||
1257 | { | ||
1258 | if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) { | ||
1259 | input.consume(); | ||
1260 | |||
1261 | } | ||
1262 | else { | ||
1263 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1264 | recover(mse); | ||
1265 | throw mse;} | ||
1266 | |||
1267 | |||
1268 | } | ||
1269 | break; | ||
1270 | |||
1271 | default : | ||
1272 | if ( cnt18 >= 1 ) break loop18; | ||
1273 | EarlyExitException eee = | ||
1274 | new EarlyExitException(18, input); | ||
1275 | throw eee; | ||
1276 | } | ||
1277 | cnt18++; | ||
1278 | } while (true); | ||
1279 | |||
1280 | |||
1281 | } | ||
1282 | |||
1283 | state.type = _type; | ||
1284 | state.channel = _channel; | ||
1285 | } | ||
1286 | finally { | ||
1287 | } | ||
1288 | } | ||
1289 | // $ANTLR end "RULE_WS" | ||
1290 | |||
1291 | // $ANTLR start "RULE_ANY_OTHER" | ||
1292 | public final void mRULE_ANY_OTHER() throws RecognitionException { | ||
1293 | try { | ||
1294 | int _type = RULE_ANY_OTHER; | ||
1295 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1296 | // InternalCftLanguage.g:1332:16: ( . ) | ||
1297 | // InternalCftLanguage.g:1332:18: . | ||
1298 | { | ||
1299 | matchAny(); | ||
1300 | |||
1301 | } | ||
1302 | |||
1303 | state.type = _type; | ||
1304 | state.channel = _channel; | ||
1305 | } | ||
1306 | finally { | ||
1307 | } | ||
1308 | } | ||
1309 | // $ANTLR end "RULE_ANY_OTHER" | ||
1310 | |||
1311 | public void mTokens() throws RecognitionException { | ||
1312 | // InternalCftLanguage.g:1:8: ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | RULE_DOULBE | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER ) | ||
1313 | int alt19=34; | ||
1314 | alt19 = dfa19.predict(input); | ||
1315 | switch (alt19) { | ||
1316 | case 1 : | ||
1317 | // InternalCftLanguage.g:1:10: T__12 | ||
1318 | { | ||
1319 | mT__12(); | ||
1320 | |||
1321 | } | ||
1322 | break; | ||
1323 | case 2 : | ||
1324 | // InternalCftLanguage.g:1:16: T__13 | ||
1325 | { | ||
1326 | mT__13(); | ||
1327 | |||
1328 | } | ||
1329 | break; | ||
1330 | case 3 : | ||
1331 | // InternalCftLanguage.g:1:22: T__14 | ||
1332 | { | ||
1333 | mT__14(); | ||
1334 | |||
1335 | } | ||
1336 | break; | ||
1337 | case 4 : | ||
1338 | // InternalCftLanguage.g:1:28: T__15 | ||
1339 | { | ||
1340 | mT__15(); | ||
1341 | |||
1342 | } | ||
1343 | break; | ||
1344 | case 5 : | ||
1345 | // InternalCftLanguage.g:1:34: T__16 | ||
1346 | { | ||
1347 | mT__16(); | ||
1348 | |||
1349 | } | ||
1350 | break; | ||
1351 | case 6 : | ||
1352 | // InternalCftLanguage.g:1:40: T__17 | ||
1353 | { | ||
1354 | mT__17(); | ||
1355 | |||
1356 | } | ||
1357 | break; | ||
1358 | case 7 : | ||
1359 | // InternalCftLanguage.g:1:46: T__18 | ||
1360 | { | ||
1361 | mT__18(); | ||
1362 | |||
1363 | } | ||
1364 | break; | ||
1365 | case 8 : | ||
1366 | // InternalCftLanguage.g:1:52: T__19 | ||
1367 | { | ||
1368 | mT__19(); | ||
1369 | |||
1370 | } | ||
1371 | break; | ||
1372 | case 9 : | ||
1373 | // InternalCftLanguage.g:1:58: T__20 | ||
1374 | { | ||
1375 | mT__20(); | ||
1376 | |||
1377 | } | ||
1378 | break; | ||
1379 | case 10 : | ||
1380 | // InternalCftLanguage.g:1:64: T__21 | ||
1381 | { | ||
1382 | mT__21(); | ||
1383 | |||
1384 | } | ||
1385 | break; | ||
1386 | case 11 : | ||
1387 | // InternalCftLanguage.g:1:70: T__22 | ||
1388 | { | ||
1389 | mT__22(); | ||
1390 | |||
1391 | } | ||
1392 | break; | ||
1393 | case 12 : | ||
1394 | // InternalCftLanguage.g:1:76: T__23 | ||
1395 | { | ||
1396 | mT__23(); | ||
1397 | |||
1398 | } | ||
1399 | break; | ||
1400 | case 13 : | ||
1401 | // InternalCftLanguage.g:1:82: T__24 | ||
1402 | { | ||
1403 | mT__24(); | ||
1404 | |||
1405 | } | ||
1406 | break; | ||
1407 | case 14 : | ||
1408 | // InternalCftLanguage.g:1:88: T__25 | ||
1409 | { | ||
1410 | mT__25(); | ||
1411 | |||
1412 | } | ||
1413 | break; | ||
1414 | case 15 : | ||
1415 | // InternalCftLanguage.g:1:94: T__26 | ||
1416 | { | ||
1417 | mT__26(); | ||
1418 | |||
1419 | } | ||
1420 | break; | ||
1421 | case 16 : | ||
1422 | // InternalCftLanguage.g:1:100: T__27 | ||
1423 | { | ||
1424 | mT__27(); | ||
1425 | |||
1426 | } | ||
1427 | break; | ||
1428 | case 17 : | ||
1429 | // InternalCftLanguage.g:1:106: T__28 | ||
1430 | { | ||
1431 | mT__28(); | ||
1432 | |||
1433 | } | ||
1434 | break; | ||
1435 | case 18 : | ||
1436 | // InternalCftLanguage.g:1:112: T__29 | ||
1437 | { | ||
1438 | mT__29(); | ||
1439 | |||
1440 | } | ||
1441 | break; | ||
1442 | case 19 : | ||
1443 | // InternalCftLanguage.g:1:118: T__30 | ||
1444 | { | ||
1445 | mT__30(); | ||
1446 | |||
1447 | } | ||
1448 | break; | ||
1449 | case 20 : | ||
1450 | // InternalCftLanguage.g:1:124: T__31 | ||
1451 | { | ||
1452 | mT__31(); | ||
1453 | |||
1454 | } | ||
1455 | break; | ||
1456 | case 21 : | ||
1457 | // InternalCftLanguage.g:1:130: T__32 | ||
1458 | { | ||
1459 | mT__32(); | ||
1460 | |||
1461 | } | ||
1462 | break; | ||
1463 | case 22 : | ||
1464 | // InternalCftLanguage.g:1:136: T__33 | ||
1465 | { | ||
1466 | mT__33(); | ||
1467 | |||
1468 | } | ||
1469 | break; | ||
1470 | case 23 : | ||
1471 | // InternalCftLanguage.g:1:142: T__34 | ||
1472 | { | ||
1473 | mT__34(); | ||
1474 | |||
1475 | } | ||
1476 | break; | ||
1477 | case 24 : | ||
1478 | // InternalCftLanguage.g:1:148: T__35 | ||
1479 | { | ||
1480 | mT__35(); | ||
1481 | |||
1482 | } | ||
1483 | break; | ||
1484 | case 25 : | ||
1485 | // InternalCftLanguage.g:1:154: T__36 | ||
1486 | { | ||
1487 | mT__36(); | ||
1488 | |||
1489 | } | ||
1490 | break; | ||
1491 | case 26 : | ||
1492 | // InternalCftLanguage.g:1:160: T__37 | ||
1493 | { | ||
1494 | mT__37(); | ||
1495 | |||
1496 | } | ||
1497 | break; | ||
1498 | case 27 : | ||
1499 | // InternalCftLanguage.g:1:166: RULE_DOULBE | ||
1500 | { | ||
1501 | mRULE_DOULBE(); | ||
1502 | |||
1503 | } | ||
1504 | break; | ||
1505 | case 28 : | ||
1506 | // InternalCftLanguage.g:1:178: RULE_ID | ||
1507 | { | ||
1508 | mRULE_ID(); | ||
1509 | |||
1510 | } | ||
1511 | break; | ||
1512 | case 29 : | ||
1513 | // InternalCftLanguage.g:1:186: RULE_INT | ||
1514 | { | ||
1515 | mRULE_INT(); | ||
1516 | |||
1517 | } | ||
1518 | break; | ||
1519 | case 30 : | ||
1520 | // InternalCftLanguage.g:1:195: RULE_STRING | ||
1521 | { | ||
1522 | mRULE_STRING(); | ||
1523 | |||
1524 | } | ||
1525 | break; | ||
1526 | case 31 : | ||
1527 | // InternalCftLanguage.g:1:207: RULE_ML_COMMENT | ||
1528 | { | ||
1529 | mRULE_ML_COMMENT(); | ||
1530 | |||
1531 | } | ||
1532 | break; | ||
1533 | case 32 : | ||
1534 | // InternalCftLanguage.g:1:223: RULE_SL_COMMENT | ||
1535 | { | ||
1536 | mRULE_SL_COMMENT(); | ||
1537 | |||
1538 | } | ||
1539 | break; | ||
1540 | case 33 : | ||
1541 | // InternalCftLanguage.g:1:239: RULE_WS | ||
1542 | { | ||
1543 | mRULE_WS(); | ||
1544 | |||
1545 | } | ||
1546 | break; | ||
1547 | case 34 : | ||
1548 | // InternalCftLanguage.g:1:247: RULE_ANY_OTHER | ||
1549 | { | ||
1550 | mRULE_ANY_OTHER(); | ||
1551 | |||
1552 | } | ||
1553 | break; | ||
1554 | |||
1555 | } | ||
1556 | |||
1557 | } | ||
1558 | |||
1559 | |||
1560 | protected DFA7 dfa7 = new DFA7(this); | ||
1561 | protected DFA19 dfa19 = new DFA19(this); | ||
1562 | static final String DFA7_eotS = | ||
1563 | "\3\uffff\1\4\1\uffff"; | ||
1564 | static final String DFA7_eofS = | ||
1565 | "\5\uffff"; | ||
1566 | static final String DFA7_minS = | ||
1567 | "\1\56\1\60\1\uffff\1\60\1\uffff"; | ||
1568 | static final String DFA7_maxS = | ||
1569 | "\1\145\1\71\1\uffff\1\145\1\uffff"; | ||
1570 | static final String DFA7_acceptS = | ||
1571 | "\2\uffff\1\2\1\uffff\1\1"; | ||
1572 | static final String DFA7_specialS = | ||
1573 | "\5\uffff}>"; | ||
1574 | static final String[] DFA7_transitionS = { | ||
1575 | "\1\1\26\uffff\1\2\37\uffff\1\2", | ||
1576 | "\12\3", | ||
1577 | "", | ||
1578 | "\12\3\13\uffff\1\2\37\uffff\1\2", | ||
1579 | "" | ||
1580 | }; | ||
1581 | |||
1582 | static final short[] DFA7_eot = DFA.unpackEncodedString(DFA7_eotS); | ||
1583 | static final short[] DFA7_eof = DFA.unpackEncodedString(DFA7_eofS); | ||
1584 | static final char[] DFA7_min = DFA.unpackEncodedStringToUnsignedChars(DFA7_minS); | ||
1585 | static final char[] DFA7_max = DFA.unpackEncodedStringToUnsignedChars(DFA7_maxS); | ||
1586 | static final short[] DFA7_accept = DFA.unpackEncodedString(DFA7_acceptS); | ||
1587 | static final short[] DFA7_special = DFA.unpackEncodedString(DFA7_specialS); | ||
1588 | static final short[][] DFA7_transition; | ||
1589 | |||
1590 | static { | ||
1591 | int numStates = DFA7_transitionS.length; | ||
1592 | DFA7_transition = new short[numStates][]; | ||
1593 | for (int i=0; i<numStates; i++) { | ||
1594 | DFA7_transition[i] = DFA.unpackEncodedString(DFA7_transitionS[i]); | ||
1595 | } | ||
1596 | } | ||
1597 | |||
1598 | class DFA7 extends DFA { | ||
1599 | |||
1600 | public DFA7(BaseRecognizer recognizer) { | ||
1601 | this.recognizer = recognizer; | ||
1602 | this.decisionNumber = 7; | ||
1603 | this.eot = DFA7_eot; | ||
1604 | this.eof = DFA7_eof; | ||
1605 | this.min = DFA7_min; | ||
1606 | this.max = DFA7_max; | ||
1607 | this.accept = DFA7_accept; | ||
1608 | this.special = DFA7_special; | ||
1609 | this.transition = DFA7_transition; | ||
1610 | } | ||
1611 | public String getDescription() { | ||
1612 | return "1318:27: ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ )"; | ||
1613 | } | ||
1614 | } | ||
1615 | static final String DFA19_eotS = | ||
1616 | "\1\uffff\1\36\1\uffff\2\36\1\uffff\1\36\1\uffff\1\34\1\36\1\53\3\36\3\uffff\2\34\2\uffff\1\72\1\34\1\uffff\3\34\2\uffff\1\36\2\uffff\1\36\1\101\1\36\1\uffff\1\36\1\104\2\uffff\2\36\2\uffff\1\36\1\110\3\36\10\uffff\1\72\5\uffff\2\36\1\uffff\1\116\1\117\1\uffff\2\36\1\122\1\uffff\5\36\2\uffff\2\36\1\uffff\13\36\1\145\1\146\1\147\3\36\1\153\3\uffff\2\36\1\156\1\uffff\1\36\1\160\1\uffff\1\36\1\uffff\4\36\1\166\1\uffff"; | ||
1617 | static final String DFA19_eofS = | ||
1618 | "\167\uffff"; | ||
1619 | static final String DFA19_minS = | ||
1620 | "\1\0\1\141\1\uffff\1\155\1\146\1\uffff\1\162\1\uffff\1\135\1\141\1\76\1\156\1\157\1\141\3\uffff\2\75\2\uffff\1\56\1\101\1\uffff\2\0\1\52\2\uffff\1\143\2\uffff\1\160\1\60\1\164\1\uffff\1\164\1\60\2\uffff\1\155\1\157\2\uffff\1\144\1\60\1\141\2\160\10\uffff\1\56\5\uffff\1\153\1\157\1\uffff\2\60\1\uffff\1\142\1\153\1\60\1\uffff\1\156\1\154\1\160\1\141\1\162\2\uffff\1\144\1\165\1\uffff\1\163\1\145\1\151\1\147\1\164\1\141\1\160\1\146\1\166\1\156\1\145\3\60\1\157\1\145\1\147\1\60\3\uffff\1\162\1\154\1\60\1\uffff\1\155\1\60\1\uffff\1\141\1\uffff\1\164\1\151\1\157\1\156\1\60\1\uffff"; | ||
1621 | static final String DFA19_maxS = | ||
1622 | "\1\uffff\1\141\1\uffff\1\156\1\146\1\uffff\1\165\1\uffff\1\135\1\157\1\76\1\163\1\162\1\141\3\uffff\2\75\2\uffff\1\145\1\172\1\uffff\2\uffff\1\57\2\uffff\1\143\2\uffff\1\160\1\172\1\164\1\uffff\1\164\1\172\2\uffff\1\155\1\157\2\uffff\1\144\1\172\1\141\2\160\10\uffff\1\145\5\uffff\1\153\1\157\1\uffff\2\172\1\uffff\1\142\1\153\1\172\1\uffff\1\156\1\154\1\160\1\141\1\162\2\uffff\1\144\1\165\1\uffff\1\163\1\145\1\151\1\147\1\164\1\141\1\160\1\146\1\166\1\156\1\145\3\172\1\157\1\145\1\147\1\172\3\uffff\1\162\1\154\1\172\1\uffff\1\155\1\172\1\uffff\1\141\1\uffff\1\164\1\151\1\157\1\156\1\172\1\uffff"; | ||
1623 | static final String DFA19_acceptS = | ||
1624 | "\2\uffff\1\2\2\uffff\1\5\1\uffff\1\10\6\uffff\1\21\1\22\1\23\2\uffff\1\30\1\32\2\uffff\1\34\3\uffff\1\41\1\42\1\uffff\1\34\1\2\3\uffff\1\5\2\uffff\1\10\1\11\2\uffff\1\31\1\13\5\uffff\1\21\1\22\1\23\1\26\1\27\1\30\1\32\1\33\1\uffff\1\35\1\36\1\37\1\40\1\41\2\uffff\1\6\2\uffff\1\15\3\uffff\1\25\5\uffff\1\4\1\7\2\uffff\1\14\22\uffff\1\3\1\12\1\24\3\uffff\1\1\2\uffff\1\20\1\uffff\1\17\5\uffff\1\16"; | ||
1625 | static final String DFA19_specialS = | ||
1626 | "\1\0\27\uffff\1\2\1\1\135\uffff}>"; | ||
1627 | static final String[] DFA19_transitionS = { | ||
1628 | "\11\34\2\33\2\34\1\33\22\34\1\33\1\34\1\30\4\34\1\31\1\16\1\20\1\24\1\21\1\17\1\34\1\23\1\32\12\25\1\22\1\2\1\34\1\12\3\34\32\27\1\10\2\34\1\26\1\27\1\34\1\13\1\27\1\4\5\27\1\3\2\27\1\11\1\15\1\27\1\6\1\1\3\27\1\14\6\27\1\5\1\34\1\7\uff82\34", | ||
1629 | "\1\35", | ||
1630 | "", | ||
1631 | "\1\40\1\41", | ||
1632 | "\1\42", | ||
1633 | "", | ||
1634 | "\1\45\2\uffff\1\44", | ||
1635 | "", | ||
1636 | "\1\47", | ||
1637 | "\1\50\15\uffff\1\51", | ||
1638 | "\1\52", | ||
1639 | "\1\54\4\uffff\1\55", | ||
1640 | "\1\57\2\uffff\1\56", | ||
1641 | "\1\60", | ||
1642 | "", | ||
1643 | "", | ||
1644 | "", | ||
1645 | "\1\64", | ||
1646 | "\1\65", | ||
1647 | "", | ||
1648 | "", | ||
1649 | "\1\70\1\uffff\12\71\13\uffff\1\70\37\uffff\1\70", | ||
1650 | "\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1651 | "", | ||
1652 | "\0\73", | ||
1653 | "\0\73", | ||
1654 | "\1\74\4\uffff\1\75", | ||
1655 | "", | ||
1656 | "", | ||
1657 | "\1\77", | ||
1658 | "", | ||
1659 | "", | ||
1660 | "\1\100", | ||
1661 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1662 | "\1\102", | ||
1663 | "", | ||
1664 | "\1\103", | ||
1665 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1666 | "", | ||
1667 | "", | ||
1668 | "\1\105", | ||
1669 | "\1\106", | ||
1670 | "", | ||
1671 | "", | ||
1672 | "\1\107", | ||
1673 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1674 | "\1\111", | ||
1675 | "\1\112", | ||
1676 | "\1\113", | ||
1677 | "", | ||
1678 | "", | ||
1679 | "", | ||
1680 | "", | ||
1681 | "", | ||
1682 | "", | ||
1683 | "", | ||
1684 | "", | ||
1685 | "\1\70\1\uffff\12\71\13\uffff\1\70\37\uffff\1\70", | ||
1686 | "", | ||
1687 | "", | ||
1688 | "", | ||
1689 | "", | ||
1690 | "", | ||
1691 | "\1\114", | ||
1692 | "\1\115", | ||
1693 | "", | ||
1694 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1695 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1696 | "", | ||
1697 | "\1\120", | ||
1698 | "\1\121", | ||
1699 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1700 | "", | ||
1701 | "\1\123", | ||
1702 | "\1\124", | ||
1703 | "\1\125", | ||
1704 | "\1\126", | ||
1705 | "\1\127", | ||
1706 | "", | ||
1707 | "", | ||
1708 | "\1\130", | ||
1709 | "\1\131", | ||
1710 | "", | ||
1711 | "\1\132", | ||
1712 | "\1\133", | ||
1713 | "\1\134", | ||
1714 | "\1\135", | ||
1715 | "\1\136", | ||
1716 | "\1\137", | ||
1717 | "\1\140", | ||
1718 | "\1\141", | ||
1719 | "\1\142", | ||
1720 | "\1\143", | ||
1721 | "\1\144", | ||
1722 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1723 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1724 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1725 | "\1\150", | ||
1726 | "\1\151", | ||
1727 | "\1\152", | ||
1728 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1729 | "", | ||
1730 | "", | ||
1731 | "", | ||
1732 | "\1\154", | ||
1733 | "\1\155", | ||
1734 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1735 | "", | ||
1736 | "\1\157", | ||
1737 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1738 | "", | ||
1739 | "\1\161", | ||
1740 | "", | ||
1741 | "\1\162", | ||
1742 | "\1\163", | ||
1743 | "\1\164", | ||
1744 | "\1\165", | ||
1745 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1746 | "" | ||
1747 | }; | ||
1748 | |||
1749 | static final short[] DFA19_eot = DFA.unpackEncodedString(DFA19_eotS); | ||
1750 | static final short[] DFA19_eof = DFA.unpackEncodedString(DFA19_eofS); | ||
1751 | static final char[] DFA19_min = DFA.unpackEncodedStringToUnsignedChars(DFA19_minS); | ||
1752 | static final char[] DFA19_max = DFA.unpackEncodedStringToUnsignedChars(DFA19_maxS); | ||
1753 | static final short[] DFA19_accept = DFA.unpackEncodedString(DFA19_acceptS); | ||
1754 | static final short[] DFA19_special = DFA.unpackEncodedString(DFA19_specialS); | ||
1755 | static final short[][] DFA19_transition; | ||
1756 | |||
1757 | static { | ||
1758 | int numStates = DFA19_transitionS.length; | ||
1759 | DFA19_transition = new short[numStates][]; | ||
1760 | for (int i=0; i<numStates; i++) { | ||
1761 | DFA19_transition[i] = DFA.unpackEncodedString(DFA19_transitionS[i]); | ||
1762 | } | ||
1763 | } | ||
1764 | |||
1765 | class DFA19 extends DFA { | ||
1766 | |||
1767 | public DFA19(BaseRecognizer recognizer) { | ||
1768 | this.recognizer = recognizer; | ||
1769 | this.decisionNumber = 19; | ||
1770 | this.eot = DFA19_eot; | ||
1771 | this.eof = DFA19_eof; | ||
1772 | this.min = DFA19_min; | ||
1773 | this.max = DFA19_max; | ||
1774 | this.accept = DFA19_accept; | ||
1775 | this.special = DFA19_special; | ||
1776 | this.transition = DFA19_transition; | ||
1777 | } | ||
1778 | public String getDescription() { | ||
1779 | return "1:1: Tokens : ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | RULE_DOULBE | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER );"; | ||
1780 | } | ||
1781 | public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { | ||
1782 | IntStream input = _input; | ||
1783 | int _s = s; | ||
1784 | switch ( s ) { | ||
1785 | case 0 : | ||
1786 | int LA19_0 = input.LA(1); | ||
1787 | |||
1788 | s = -1; | ||
1789 | if ( (LA19_0=='p') ) {s = 1;} | ||
1790 | |||
1791 | else if ( (LA19_0==';') ) {s = 2;} | ||
1792 | |||
1793 | else if ( (LA19_0=='i') ) {s = 3;} | ||
1794 | |||
1795 | else if ( (LA19_0=='c') ) {s = 4;} | ||
1796 | |||
1797 | else if ( (LA19_0=='{') ) {s = 5;} | ||
1798 | |||
1799 | else if ( (LA19_0=='o') ) {s = 6;} | ||
1800 | |||
1801 | else if ( (LA19_0=='}') ) {s = 7;} | ||
1802 | |||
1803 | else if ( (LA19_0=='[') ) {s = 8;} | ||
1804 | |||
1805 | else if ( (LA19_0=='l') ) {s = 9;} | ||
1806 | |||
1807 | else if ( (LA19_0=='=') ) {s = 10;} | ||
1808 | |||
1809 | else if ( (LA19_0=='a') ) {s = 11;} | ||
1810 | |||
1811 | else if ( (LA19_0=='t') ) {s = 12;} | ||
1812 | |||
1813 | else if ( (LA19_0=='m') ) {s = 13;} | ||
1814 | |||
1815 | else if ( (LA19_0=='(') ) {s = 14;} | ||
1816 | |||
1817 | else if ( (LA19_0==',') ) {s = 15;} | ||
1818 | |||
1819 | else if ( (LA19_0==')') ) {s = 16;} | ||
1820 | |||
1821 | else if ( (LA19_0=='+') ) {s = 17;} | ||
1822 | |||
1823 | else if ( (LA19_0==':') ) {s = 18;} | ||
1824 | |||
1825 | else if ( (LA19_0=='.') ) {s = 19;} | ||
1826 | |||
1827 | else if ( (LA19_0=='*') ) {s = 20;} | ||
1828 | |||
1829 | else if ( ((LA19_0>='0' && LA19_0<='9')) ) {s = 21;} | ||
1830 | |||
1831 | else if ( (LA19_0=='^') ) {s = 22;} | ||
1832 | |||
1833 | else if ( ((LA19_0>='A' && LA19_0<='Z')||LA19_0=='_'||LA19_0=='b'||(LA19_0>='d' && LA19_0<='h')||(LA19_0>='j' && LA19_0<='k')||LA19_0=='n'||(LA19_0>='q' && LA19_0<='s')||(LA19_0>='u' && LA19_0<='z')) ) {s = 23;} | ||
1834 | |||
1835 | else if ( (LA19_0=='\"') ) {s = 24;} | ||
1836 | |||
1837 | else if ( (LA19_0=='\'') ) {s = 25;} | ||
1838 | |||
1839 | else if ( (LA19_0=='/') ) {s = 26;} | ||
1840 | |||
1841 | else if ( ((LA19_0>='\t' && LA19_0<='\n')||LA19_0=='\r'||LA19_0==' ') ) {s = 27;} | ||
1842 | |||
1843 | else if ( ((LA19_0>='\u0000' && LA19_0<='\b')||(LA19_0>='\u000B' && LA19_0<='\f')||(LA19_0>='\u000E' && LA19_0<='\u001F')||LA19_0=='!'||(LA19_0>='#' && LA19_0<='&')||LA19_0=='-'||LA19_0=='<'||(LA19_0>='>' && LA19_0<='@')||(LA19_0>='\\' && LA19_0<=']')||LA19_0=='`'||LA19_0=='|'||(LA19_0>='~' && LA19_0<='\uFFFF')) ) {s = 28;} | ||
1844 | |||
1845 | if ( s>=0 ) return s; | ||
1846 | break; | ||
1847 | case 1 : | ||
1848 | int LA19_25 = input.LA(1); | ||
1849 | |||
1850 | s = -1; | ||
1851 | if ( ((LA19_25>='\u0000' && LA19_25<='\uFFFF')) ) {s = 59;} | ||
1852 | |||
1853 | else s = 28; | ||
1854 | |||
1855 | if ( s>=0 ) return s; | ||
1856 | break; | ||
1857 | case 2 : | ||
1858 | int LA19_24 = input.LA(1); | ||
1859 | |||
1860 | s = -1; | ||
1861 | if ( ((LA19_24>='\u0000' && LA19_24<='\uFFFF')) ) {s = 59;} | ||
1862 | |||
1863 | else s = 28; | ||
1864 | |||
1865 | if ( s>=0 ) return s; | ||
1866 | break; | ||
1867 | } | ||
1868 | NoViableAltException nvae = | ||
1869 | new NoViableAltException(getDescription(), 19, _s, input); | ||
1870 | error(nvae); | ||
1871 | throw nvae; | ||
1872 | } | ||
1873 | } | ||
1874 | |||
1875 | |||
1876 | } \ No newline at end of file | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java new file mode 100644 index 00000000..29c15563 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java | |||
@@ -0,0 +1,3449 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.faulttree.components.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.faulttree.components.services.CftLanguageGrammarAccess; | ||
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 InternalCftLanguageParser extends AbstractInternalAntlrParser { | ||
23 | public static final String[] tokenNames = new String[] { | ||
24 | "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_DOULBE", "RULE_INT", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'package'", "';'", "'import'", "'cft'", "'{'", "'in'", "'out'", "'}'", "'[]'", "'lambda'", "'='", "'and'", "'or'", "'transformation'", "'toplevel'", "'mapping'", "'('", "','", "')'", "'lookup'", "'as'", "'+='", "':='", "'.'", "'=>'", "'*'" | ||
25 | }; | ||
26 | public static final int RULE_STRING=7; | ||
27 | public static final int RULE_SL_COMMENT=9; | ||
28 | public static final int T__19=19; | ||
29 | public static final int T__15=15; | ||
30 | public static final int T__37=37; | ||
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__33=33; | ||
35 | public static final int T__12=12; | ||
36 | public static final int T__34=34; | ||
37 | public static final int T__13=13; | ||
38 | public static final int T__35=35; | ||
39 | public static final int T__14=14; | ||
40 | public static final int T__36=36; | ||
41 | public static final int EOF=-1; | ||
42 | public static final int T__30=30; | ||
43 | public static final int T__31=31; | ||
44 | public static final int T__32=32; | ||
45 | public static final int RULE_ID=4; | ||
46 | public static final int RULE_WS=10; | ||
47 | public static final int RULE_DOULBE=5; | ||
48 | public static final int RULE_ANY_OTHER=11; | ||
49 | public static final int T__26=26; | ||
50 | public static final int T__27=27; | ||
51 | public static final int T__28=28; | ||
52 | public static final int RULE_INT=6; | ||
53 | public static final int T__29=29; | ||
54 | public static final int T__22=22; | ||
55 | public static final int RULE_ML_COMMENT=8; | ||
56 | public static final int T__23=23; | ||
57 | public static final int T__24=24; | ||
58 | public static final int T__25=25; | ||
59 | public static final int T__20=20; | ||
60 | public static final int T__21=21; | ||
61 | |||
62 | // delegates | ||
63 | // delegators | ||
64 | |||
65 | |||
66 | public InternalCftLanguageParser(TokenStream input) { | ||
67 | this(input, new RecognizerSharedState()); | ||
68 | } | ||
69 | public InternalCftLanguageParser(TokenStream input, RecognizerSharedState state) { | ||
70 | super(input, state); | ||
71 | |||
72 | } | ||
73 | |||
74 | |||
75 | public String[] getTokenNames() { return InternalCftLanguageParser.tokenNames; } | ||
76 | public String getGrammarFileName() { return "InternalCftLanguage.g"; } | ||
77 | |||
78 | |||
79 | |||
80 | private CftLanguageGrammarAccess grammarAccess; | ||
81 | |||
82 | public InternalCftLanguageParser(TokenStream input, CftLanguageGrammarAccess grammarAccess) { | ||
83 | this(input); | ||
84 | this.grammarAccess = grammarAccess; | ||
85 | registerRules(grammarAccess.getGrammar()); | ||
86 | } | ||
87 | |||
88 | @Override | ||
89 | protected String getFirstRuleName() { | ||
90 | return "CftModel"; | ||
91 | } | ||
92 | |||
93 | @Override | ||
94 | protected CftLanguageGrammarAccess getGrammarAccess() { | ||
95 | return grammarAccess; | ||
96 | } | ||
97 | |||
98 | |||
99 | |||
100 | |||
101 | // $ANTLR start "entryRuleCftModel" | ||
102 | // InternalCftLanguage.g:64:1: entryRuleCftModel returns [EObject current=null] : iv_ruleCftModel= ruleCftModel EOF ; | ||
103 | public final EObject entryRuleCftModel() throws RecognitionException { | ||
104 | EObject current = null; | ||
105 | |||
106 | EObject iv_ruleCftModel = null; | ||
107 | |||
108 | |||
109 | try { | ||
110 | // InternalCftLanguage.g:64:49: (iv_ruleCftModel= ruleCftModel EOF ) | ||
111 | // InternalCftLanguage.g:65:2: iv_ruleCftModel= ruleCftModel EOF | ||
112 | { | ||
113 | newCompositeNode(grammarAccess.getCftModelRule()); | ||
114 | pushFollow(FOLLOW_1); | ||
115 | iv_ruleCftModel=ruleCftModel(); | ||
116 | |||
117 | state._fsp--; | ||
118 | |||
119 | current =iv_ruleCftModel; | ||
120 | match(input,EOF,FOLLOW_2); | ||
121 | |||
122 | } | ||
123 | |||
124 | } | ||
125 | |||
126 | catch (RecognitionException re) { | ||
127 | recover(input,re); | ||
128 | appendSkippedTokens(); | ||
129 | } | ||
130 | finally { | ||
131 | } | ||
132 | return current; | ||
133 | } | ||
134 | // $ANTLR end "entryRuleCftModel" | ||
135 | |||
136 | |||
137 | // $ANTLR start "ruleCftModel" | ||
138 | // InternalCftLanguage.g:71:1: ruleCftModel returns [EObject current=null] : (otherlv_0= 'package' ( (lv_packageName_1_0= ruleQualifiedName ) ) (otherlv_2= ';' )? ( (lv_imports_3_0= ruleImportDeclaration ) )* ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* ) ; | ||
139 | public final EObject ruleCftModel() throws RecognitionException { | ||
140 | EObject current = null; | ||
141 | |||
142 | Token otherlv_0=null; | ||
143 | Token otherlv_2=null; | ||
144 | AntlrDatatypeRuleToken lv_packageName_1_0 = null; | ||
145 | |||
146 | EObject lv_imports_3_0 = null; | ||
147 | |||
148 | EObject lv_componentDefinitions_4_0 = null; | ||
149 | |||
150 | EObject lv_transformationDefinitions_5_0 = null; | ||
151 | |||
152 | |||
153 | |||
154 | enterRule(); | ||
155 | |||
156 | try { | ||
157 | // InternalCftLanguage.g:77:2: ( (otherlv_0= 'package' ( (lv_packageName_1_0= ruleQualifiedName ) ) (otherlv_2= ';' )? ( (lv_imports_3_0= ruleImportDeclaration ) )* ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* ) ) | ||
158 | // InternalCftLanguage.g:78:2: (otherlv_0= 'package' ( (lv_packageName_1_0= ruleQualifiedName ) ) (otherlv_2= ';' )? ( (lv_imports_3_0= ruleImportDeclaration ) )* ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* ) | ||
159 | { | ||
160 | // InternalCftLanguage.g:78:2: (otherlv_0= 'package' ( (lv_packageName_1_0= ruleQualifiedName ) ) (otherlv_2= ';' )? ( (lv_imports_3_0= ruleImportDeclaration ) )* ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* ) | ||
161 | // InternalCftLanguage.g:79:3: otherlv_0= 'package' ( (lv_packageName_1_0= ruleQualifiedName ) ) (otherlv_2= ';' )? ( (lv_imports_3_0= ruleImportDeclaration ) )* ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* | ||
162 | { | ||
163 | otherlv_0=(Token)match(input,12,FOLLOW_3); | ||
164 | |||
165 | newLeafNode(otherlv_0, grammarAccess.getCftModelAccess().getPackageKeyword_0()); | ||
166 | |||
167 | // InternalCftLanguage.g:83:3: ( (lv_packageName_1_0= ruleQualifiedName ) ) | ||
168 | // InternalCftLanguage.g:84:4: (lv_packageName_1_0= ruleQualifiedName ) | ||
169 | { | ||
170 | // InternalCftLanguage.g:84:4: (lv_packageName_1_0= ruleQualifiedName ) | ||
171 | // InternalCftLanguage.g:85:5: lv_packageName_1_0= ruleQualifiedName | ||
172 | { | ||
173 | |||
174 | newCompositeNode(grammarAccess.getCftModelAccess().getPackageNameQualifiedNameParserRuleCall_1_0()); | ||
175 | |||
176 | pushFollow(FOLLOW_4); | ||
177 | lv_packageName_1_0=ruleQualifiedName(); | ||
178 | |||
179 | state._fsp--; | ||
180 | |||
181 | |||
182 | if (current==null) { | ||
183 | current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
184 | } | ||
185 | set( | ||
186 | current, | ||
187 | "packageName", | ||
188 | lv_packageName_1_0, | ||
189 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedName"); | ||
190 | afterParserOrEnumRuleCall(); | ||
191 | |||
192 | |||
193 | } | ||
194 | |||
195 | |||
196 | } | ||
197 | |||
198 | // InternalCftLanguage.g:102:3: (otherlv_2= ';' )? | ||
199 | int alt1=2; | ||
200 | int LA1_0 = input.LA(1); | ||
201 | |||
202 | if ( (LA1_0==13) ) { | ||
203 | alt1=1; | ||
204 | } | ||
205 | switch (alt1) { | ||
206 | case 1 : | ||
207 | // InternalCftLanguage.g:103:4: otherlv_2= ';' | ||
208 | { | ||
209 | otherlv_2=(Token)match(input,13,FOLLOW_5); | ||
210 | |||
211 | newLeafNode(otherlv_2, grammarAccess.getCftModelAccess().getSemicolonKeyword_2()); | ||
212 | |||
213 | |||
214 | } | ||
215 | break; | ||
216 | |||
217 | } | ||
218 | |||
219 | // InternalCftLanguage.g:108:3: ( (lv_imports_3_0= ruleImportDeclaration ) )* | ||
220 | loop2: | ||
221 | do { | ||
222 | int alt2=2; | ||
223 | int LA2_0 = input.LA(1); | ||
224 | |||
225 | if ( (LA2_0==14) ) { | ||
226 | alt2=1; | ||
227 | } | ||
228 | |||
229 | |||
230 | switch (alt2) { | ||
231 | case 1 : | ||
232 | // InternalCftLanguage.g:109:4: (lv_imports_3_0= ruleImportDeclaration ) | ||
233 | { | ||
234 | // InternalCftLanguage.g:109:4: (lv_imports_3_0= ruleImportDeclaration ) | ||
235 | // InternalCftLanguage.g:110:5: lv_imports_3_0= ruleImportDeclaration | ||
236 | { | ||
237 | |||
238 | newCompositeNode(grammarAccess.getCftModelAccess().getImportsImportDeclarationParserRuleCall_3_0()); | ||
239 | |||
240 | pushFollow(FOLLOW_5); | ||
241 | lv_imports_3_0=ruleImportDeclaration(); | ||
242 | |||
243 | state._fsp--; | ||
244 | |||
245 | |||
246 | if (current==null) { | ||
247 | current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
248 | } | ||
249 | add( | ||
250 | current, | ||
251 | "imports", | ||
252 | lv_imports_3_0, | ||
253 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ImportDeclaration"); | ||
254 | afterParserOrEnumRuleCall(); | ||
255 | |||
256 | |||
257 | } | ||
258 | |||
259 | |||
260 | } | ||
261 | break; | ||
262 | |||
263 | default : | ||
264 | break loop2; | ||
265 | } | ||
266 | } while (true); | ||
267 | |||
268 | // InternalCftLanguage.g:127:3: ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* | ||
269 | loop3: | ||
270 | do { | ||
271 | int alt3=3; | ||
272 | int LA3_0 = input.LA(1); | ||
273 | |||
274 | if ( (LA3_0==15) ) { | ||
275 | alt3=1; | ||
276 | } | ||
277 | else if ( (LA3_0==25) ) { | ||
278 | alt3=2; | ||
279 | } | ||
280 | |||
281 | |||
282 | switch (alt3) { | ||
283 | case 1 : | ||
284 | // InternalCftLanguage.g:128:4: ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ||
285 | { | ||
286 | // InternalCftLanguage.g:128:4: ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ||
287 | // InternalCftLanguage.g:129:5: (lv_componentDefinitions_4_0= ruleComponentDefinition ) | ||
288 | { | ||
289 | // InternalCftLanguage.g:129:5: (lv_componentDefinitions_4_0= ruleComponentDefinition ) | ||
290 | // InternalCftLanguage.g:130:6: lv_componentDefinitions_4_0= ruleComponentDefinition | ||
291 | { | ||
292 | |||
293 | newCompositeNode(grammarAccess.getCftModelAccess().getComponentDefinitionsComponentDefinitionParserRuleCall_4_0_0()); | ||
294 | |||
295 | pushFollow(FOLLOW_6); | ||
296 | lv_componentDefinitions_4_0=ruleComponentDefinition(); | ||
297 | |||
298 | state._fsp--; | ||
299 | |||
300 | |||
301 | if (current==null) { | ||
302 | current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
303 | } | ||
304 | add( | ||
305 | current, | ||
306 | "componentDefinitions", | ||
307 | lv_componentDefinitions_4_0, | ||
308 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentDefinition"); | ||
309 | afterParserOrEnumRuleCall(); | ||
310 | |||
311 | |||
312 | } | ||
313 | |||
314 | |||
315 | } | ||
316 | |||
317 | |||
318 | } | ||
319 | break; | ||
320 | case 2 : | ||
321 | // InternalCftLanguage.g:148:4: ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) | ||
322 | { | ||
323 | // InternalCftLanguage.g:148:4: ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) | ||
324 | // InternalCftLanguage.g:149:5: (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) | ||
325 | { | ||
326 | // InternalCftLanguage.g:149:5: (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) | ||
327 | // InternalCftLanguage.g:150:6: lv_transformationDefinitions_5_0= ruleTransformationDefinition | ||
328 | { | ||
329 | |||
330 | newCompositeNode(grammarAccess.getCftModelAccess().getTransformationDefinitionsTransformationDefinitionParserRuleCall_4_1_0()); | ||
331 | |||
332 | pushFollow(FOLLOW_6); | ||
333 | lv_transformationDefinitions_5_0=ruleTransformationDefinition(); | ||
334 | |||
335 | state._fsp--; | ||
336 | |||
337 | |||
338 | if (current==null) { | ||
339 | current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
340 | } | ||
341 | add( | ||
342 | current, | ||
343 | "transformationDefinitions", | ||
344 | lv_transformationDefinitions_5_0, | ||
345 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.TransformationDefinition"); | ||
346 | afterParserOrEnumRuleCall(); | ||
347 | |||
348 | |||
349 | } | ||
350 | |||
351 | |||
352 | } | ||
353 | |||
354 | |||
355 | } | ||
356 | break; | ||
357 | |||
358 | default : | ||
359 | break loop3; | ||
360 | } | ||
361 | } while (true); | ||
362 | |||
363 | |||
364 | } | ||
365 | |||
366 | |||
367 | } | ||
368 | |||
369 | |||
370 | leaveRule(); | ||
371 | |||
372 | } | ||
373 | |||
374 | catch (RecognitionException re) { | ||
375 | recover(input,re); | ||
376 | appendSkippedTokens(); | ||
377 | } | ||
378 | finally { | ||
379 | } | ||
380 | return current; | ||
381 | } | ||
382 | // $ANTLR end "ruleCftModel" | ||
383 | |||
384 | |||
385 | // $ANTLR start "entryRuleImportDeclaration" | ||
386 | // InternalCftLanguage.g:172:1: entryRuleImportDeclaration returns [EObject current=null] : iv_ruleImportDeclaration= ruleImportDeclaration EOF ; | ||
387 | public final EObject entryRuleImportDeclaration() throws RecognitionException { | ||
388 | EObject current = null; | ||
389 | |||
390 | EObject iv_ruleImportDeclaration = null; | ||
391 | |||
392 | |||
393 | try { | ||
394 | // InternalCftLanguage.g:172:58: (iv_ruleImportDeclaration= ruleImportDeclaration EOF ) | ||
395 | // InternalCftLanguage.g:173:2: iv_ruleImportDeclaration= ruleImportDeclaration EOF | ||
396 | { | ||
397 | newCompositeNode(grammarAccess.getImportDeclarationRule()); | ||
398 | pushFollow(FOLLOW_1); | ||
399 | iv_ruleImportDeclaration=ruleImportDeclaration(); | ||
400 | |||
401 | state._fsp--; | ||
402 | |||
403 | current =iv_ruleImportDeclaration; | ||
404 | match(input,EOF,FOLLOW_2); | ||
405 | |||
406 | } | ||
407 | |||
408 | } | ||
409 | |||
410 | catch (RecognitionException re) { | ||
411 | recover(input,re); | ||
412 | appendSkippedTokens(); | ||
413 | } | ||
414 | finally { | ||
415 | } | ||
416 | return current; | ||
417 | } | ||
418 | // $ANTLR end "entryRuleImportDeclaration" | ||
419 | |||
420 | |||
421 | // $ANTLR start "ruleImportDeclaration" | ||
422 | // InternalCftLanguage.g:179:1: ruleImportDeclaration returns [EObject current=null] : (otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? ) ; | ||
423 | public final EObject ruleImportDeclaration() throws RecognitionException { | ||
424 | EObject current = null; | ||
425 | |||
426 | Token otherlv_0=null; | ||
427 | Token otherlv_2=null; | ||
428 | AntlrDatatypeRuleToken lv_importedNamespace_1_0 = null; | ||
429 | |||
430 | |||
431 | |||
432 | enterRule(); | ||
433 | |||
434 | try { | ||
435 | // InternalCftLanguage.g:185:2: ( (otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? ) ) | ||
436 | // InternalCftLanguage.g:186:2: (otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? ) | ||
437 | { | ||
438 | // InternalCftLanguage.g:186:2: (otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? ) | ||
439 | // InternalCftLanguage.g:187:3: otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? | ||
440 | { | ||
441 | otherlv_0=(Token)match(input,14,FOLLOW_3); | ||
442 | |||
443 | newLeafNode(otherlv_0, grammarAccess.getImportDeclarationAccess().getImportKeyword_0()); | ||
444 | |||
445 | // InternalCftLanguage.g:191:3: ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) | ||
446 | // InternalCftLanguage.g:192:4: (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) | ||
447 | { | ||
448 | // InternalCftLanguage.g:192:4: (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) | ||
449 | // InternalCftLanguage.g:193:5: lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard | ||
450 | { | ||
451 | |||
452 | newCompositeNode(grammarAccess.getImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_0()); | ||
453 | |||
454 | pushFollow(FOLLOW_7); | ||
455 | lv_importedNamespace_1_0=ruleQualifiedNameWithWildcard(); | ||
456 | |||
457 | state._fsp--; | ||
458 | |||
459 | |||
460 | if (current==null) { | ||
461 | current = createModelElementForParent(grammarAccess.getImportDeclarationRule()); | ||
462 | } | ||
463 | set( | ||
464 | current, | ||
465 | "importedNamespace", | ||
466 | lv_importedNamespace_1_0, | ||
467 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedNameWithWildcard"); | ||
468 | afterParserOrEnumRuleCall(); | ||
469 | |||
470 | |||
471 | } | ||
472 | |||
473 | |||
474 | } | ||
475 | |||
476 | // InternalCftLanguage.g:210:3: (otherlv_2= ';' )? | ||
477 | int alt4=2; | ||
478 | int LA4_0 = input.LA(1); | ||
479 | |||
480 | if ( (LA4_0==13) ) { | ||
481 | alt4=1; | ||
482 | } | ||
483 | switch (alt4) { | ||
484 | case 1 : | ||
485 | // InternalCftLanguage.g:211:4: otherlv_2= ';' | ||
486 | { | ||
487 | otherlv_2=(Token)match(input,13,FOLLOW_2); | ||
488 | |||
489 | newLeafNode(otherlv_2, grammarAccess.getImportDeclarationAccess().getSemicolonKeyword_2()); | ||
490 | |||
491 | |||
492 | } | ||
493 | break; | ||
494 | |||
495 | } | ||
496 | |||
497 | |||
498 | } | ||
499 | |||
500 | |||
501 | } | ||
502 | |||
503 | |||
504 | leaveRule(); | ||
505 | |||
506 | } | ||
507 | |||
508 | catch (RecognitionException re) { | ||
509 | recover(input,re); | ||
510 | appendSkippedTokens(); | ||
511 | } | ||
512 | finally { | ||
513 | } | ||
514 | return current; | ||
515 | } | ||
516 | // $ANTLR end "ruleImportDeclaration" | ||
517 | |||
518 | |||
519 | // $ANTLR start "entryRuleComponentDefinition" | ||
520 | // InternalCftLanguage.g:220:1: entryRuleComponentDefinition returns [EObject current=null] : iv_ruleComponentDefinition= ruleComponentDefinition EOF ; | ||
521 | public final EObject entryRuleComponentDefinition() throws RecognitionException { | ||
522 | EObject current = null; | ||
523 | |||
524 | EObject iv_ruleComponentDefinition = null; | ||
525 | |||
526 | |||
527 | try { | ||
528 | // InternalCftLanguage.g:220:60: (iv_ruleComponentDefinition= ruleComponentDefinition EOF ) | ||
529 | // InternalCftLanguage.g:221:2: iv_ruleComponentDefinition= ruleComponentDefinition EOF | ||
530 | { | ||
531 | newCompositeNode(grammarAccess.getComponentDefinitionRule()); | ||
532 | pushFollow(FOLLOW_1); | ||
533 | iv_ruleComponentDefinition=ruleComponentDefinition(); | ||
534 | |||
535 | state._fsp--; | ||
536 | |||
537 | current =iv_ruleComponentDefinition; | ||
538 | match(input,EOF,FOLLOW_2); | ||
539 | |||
540 | } | ||
541 | |||
542 | } | ||
543 | |||
544 | catch (RecognitionException re) { | ||
545 | recover(input,re); | ||
546 | appendSkippedTokens(); | ||
547 | } | ||
548 | finally { | ||
549 | } | ||
550 | return current; | ||
551 | } | ||
552 | // $ANTLR end "entryRuleComponentDefinition" | ||
553 | |||
554 | |||
555 | // $ANTLR start "ruleComponentDefinition" | ||
556 | // InternalCftLanguage.g:227:1: ruleComponentDefinition returns [EObject current=null] : (otherlv_0= 'cft' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) ; | ||
557 | public final EObject ruleComponentDefinition() throws RecognitionException { | ||
558 | EObject current = null; | ||
559 | |||
560 | Token otherlv_0=null; | ||
561 | Token lv_name_1_0=null; | ||
562 | Token otherlv_2=null; | ||
563 | Token otherlv_4=null; | ||
564 | Token otherlv_6=null; | ||
565 | Token otherlv_7=null; | ||
566 | Token otherlv_8=null; | ||
567 | Token otherlv_9=null; | ||
568 | Token otherlv_11=null; | ||
569 | Token otherlv_12=null; | ||
570 | EObject lv_inputEvents_5_0 = null; | ||
571 | |||
572 | EObject lv_eventDefinitions_10_0 = null; | ||
573 | |||
574 | |||
575 | |||
576 | enterRule(); | ||
577 | |||
578 | try { | ||
579 | // InternalCftLanguage.g:233:2: ( (otherlv_0= 'cft' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) ) | ||
580 | // InternalCftLanguage.g:234:2: (otherlv_0= 'cft' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) | ||
581 | { | ||
582 | // InternalCftLanguage.g:234:2: (otherlv_0= 'cft' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) | ||
583 | // InternalCftLanguage.g:235:3: otherlv_0= 'cft' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' | ||
584 | { | ||
585 | otherlv_0=(Token)match(input,15,FOLLOW_3); | ||
586 | |||
587 | newLeafNode(otherlv_0, grammarAccess.getComponentDefinitionAccess().getCftKeyword_0()); | ||
588 | |||
589 | // InternalCftLanguage.g:239:3: ( (lv_name_1_0= RULE_ID ) ) | ||
590 | // InternalCftLanguage.g:240:4: (lv_name_1_0= RULE_ID ) | ||
591 | { | ||
592 | // InternalCftLanguage.g:240:4: (lv_name_1_0= RULE_ID ) | ||
593 | // InternalCftLanguage.g:241:5: lv_name_1_0= RULE_ID | ||
594 | { | ||
595 | lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_8); | ||
596 | |||
597 | newLeafNode(lv_name_1_0, grammarAccess.getComponentDefinitionAccess().getNameIDTerminalRuleCall_1_0()); | ||
598 | |||
599 | |||
600 | if (current==null) { | ||
601 | current = createModelElement(grammarAccess.getComponentDefinitionRule()); | ||
602 | } | ||
603 | setWithLastConsumed( | ||
604 | current, | ||
605 | "name", | ||
606 | lv_name_1_0, | ||
607 | "org.eclipse.xtext.common.Terminals.ID"); | ||
608 | |||
609 | |||
610 | } | ||
611 | |||
612 | |||
613 | } | ||
614 | |||
615 | otherlv_2=(Token)match(input,16,FOLLOW_9); | ||
616 | |||
617 | newLeafNode(otherlv_2, grammarAccess.getComponentDefinitionAccess().getLeftCurlyBracketKeyword_2()); | ||
618 | |||
619 | // InternalCftLanguage.g:261:3: ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) | ||
620 | // InternalCftLanguage.g:262:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) | ||
621 | { | ||
622 | // InternalCftLanguage.g:262:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) | ||
623 | // InternalCftLanguage.g:263:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) | ||
624 | { | ||
625 | |||
626 | getUnorderedGroupHelper().enter(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
627 | |||
628 | // InternalCftLanguage.g:266:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) | ||
629 | // InternalCftLanguage.g:267:6: ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* | ||
630 | { | ||
631 | // InternalCftLanguage.g:267:6: ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* | ||
632 | loop7: | ||
633 | do { | ||
634 | int alt7=3; | ||
635 | int LA7_0 = input.LA(1); | ||
636 | |||
637 | if ( LA7_0 == 17 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0) ) { | ||
638 | alt7=1; | ||
639 | } | ||
640 | else if ( LA7_0 == 18 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1) ) { | ||
641 | alt7=2; | ||
642 | } | ||
643 | |||
644 | |||
645 | switch (alt7) { | ||
646 | case 1 : | ||
647 | // InternalCftLanguage.g:268:4: ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ||
648 | { | ||
649 | // InternalCftLanguage.g:268:4: ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ||
650 | // InternalCftLanguage.g:269:5: {...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) | ||
651 | { | ||
652 | if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0) ) { | ||
653 | throw new FailedPredicateException(input, "ruleComponentDefinition", "getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0)"); | ||
654 | } | ||
655 | // InternalCftLanguage.g:269:116: ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) | ||
656 | // InternalCftLanguage.g:270:6: ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) | ||
657 | { | ||
658 | |||
659 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0); | ||
660 | |||
661 | // InternalCftLanguage.g:273:9: ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) | ||
662 | // InternalCftLanguage.g:273:10: {...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) | ||
663 | { | ||
664 | if ( !((true)) ) { | ||
665 | throw new FailedPredicateException(input, "ruleComponentDefinition", "true"); | ||
666 | } | ||
667 | // InternalCftLanguage.g:273:19: (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) | ||
668 | // InternalCftLanguage.g:273:20: otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' | ||
669 | { | ||
670 | otherlv_4=(Token)match(input,17,FOLLOW_10); | ||
671 | |||
672 | newLeafNode(otherlv_4, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()); | ||
673 | |||
674 | // InternalCftLanguage.g:277:9: ( (lv_inputEvents_5_0= ruleInputEvent ) )* | ||
675 | loop5: | ||
676 | do { | ||
677 | int alt5=2; | ||
678 | int LA5_0 = input.LA(1); | ||
679 | |||
680 | if ( (LA5_0==RULE_ID) ) { | ||
681 | alt5=1; | ||
682 | } | ||
683 | |||
684 | |||
685 | switch (alt5) { | ||
686 | case 1 : | ||
687 | // InternalCftLanguage.g:278:10: (lv_inputEvents_5_0= ruleInputEvent ) | ||
688 | { | ||
689 | // InternalCftLanguage.g:278:10: (lv_inputEvents_5_0= ruleInputEvent ) | ||
690 | // InternalCftLanguage.g:279:11: lv_inputEvents_5_0= ruleInputEvent | ||
691 | { | ||
692 | |||
693 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getInputEventsInputEventParserRuleCall_3_0_1_0()); | ||
694 | |||
695 | pushFollow(FOLLOW_10); | ||
696 | lv_inputEvents_5_0=ruleInputEvent(); | ||
697 | |||
698 | state._fsp--; | ||
699 | |||
700 | |||
701 | if (current==null) { | ||
702 | current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); | ||
703 | } | ||
704 | add( | ||
705 | current, | ||
706 | "inputEvents", | ||
707 | lv_inputEvents_5_0, | ||
708 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.InputEvent"); | ||
709 | afterParserOrEnumRuleCall(); | ||
710 | |||
711 | |||
712 | } | ||
713 | |||
714 | |||
715 | } | ||
716 | break; | ||
717 | |||
718 | default : | ||
719 | break loop5; | ||
720 | } | ||
721 | } while (true); | ||
722 | |||
723 | otherlv_6=(Token)match(input,13,FOLLOW_9); | ||
724 | |||
725 | newLeafNode(otherlv_6, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()); | ||
726 | |||
727 | |||
728 | } | ||
729 | |||
730 | |||
731 | } | ||
732 | |||
733 | |||
734 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
735 | |||
736 | |||
737 | } | ||
738 | |||
739 | |||
740 | } | ||
741 | |||
742 | |||
743 | } | ||
744 | break; | ||
745 | case 2 : | ||
746 | // InternalCftLanguage.g:306:4: ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) | ||
747 | { | ||
748 | // InternalCftLanguage.g:306:4: ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) | ||
749 | // InternalCftLanguage.g:307:5: {...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) | ||
750 | { | ||
751 | if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1) ) { | ||
752 | throw new FailedPredicateException(input, "ruleComponentDefinition", "getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1)"); | ||
753 | } | ||
754 | // InternalCftLanguage.g:307:116: ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) | ||
755 | // InternalCftLanguage.g:308:6: ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) | ||
756 | { | ||
757 | |||
758 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1); | ||
759 | |||
760 | // InternalCftLanguage.g:311:9: ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) | ||
761 | // InternalCftLanguage.g:311:10: {...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) | ||
762 | { | ||
763 | if ( !((true)) ) { | ||
764 | throw new FailedPredicateException(input, "ruleComponentDefinition", "true"); | ||
765 | } | ||
766 | // InternalCftLanguage.g:311:19: (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) | ||
767 | // InternalCftLanguage.g:311:20: otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' | ||
768 | { | ||
769 | otherlv_7=(Token)match(input,18,FOLLOW_10); | ||
770 | |||
771 | newLeafNode(otherlv_7, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()); | ||
772 | |||
773 | // InternalCftLanguage.g:315:9: ( (otherlv_8= RULE_ID ) )* | ||
774 | loop6: | ||
775 | do { | ||
776 | int alt6=2; | ||
777 | int LA6_0 = input.LA(1); | ||
778 | |||
779 | if ( (LA6_0==RULE_ID) ) { | ||
780 | alt6=1; | ||
781 | } | ||
782 | |||
783 | |||
784 | switch (alt6) { | ||
785 | case 1 : | ||
786 | // InternalCftLanguage.g:316:10: (otherlv_8= RULE_ID ) | ||
787 | { | ||
788 | // InternalCftLanguage.g:316:10: (otherlv_8= RULE_ID ) | ||
789 | // InternalCftLanguage.g:317:11: otherlv_8= RULE_ID | ||
790 | { | ||
791 | |||
792 | if (current==null) { | ||
793 | current = createModelElement(grammarAccess.getComponentDefinitionRule()); | ||
794 | } | ||
795 | |||
796 | otherlv_8=(Token)match(input,RULE_ID,FOLLOW_10); | ||
797 | |||
798 | newLeafNode(otherlv_8, grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationCrossReference_3_1_1_0()); | ||
799 | |||
800 | |||
801 | } | ||
802 | |||
803 | |||
804 | } | ||
805 | break; | ||
806 | |||
807 | default : | ||
808 | break loop6; | ||
809 | } | ||
810 | } while (true); | ||
811 | |||
812 | otherlv_9=(Token)match(input,13,FOLLOW_9); | ||
813 | |||
814 | newLeafNode(otherlv_9, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()); | ||
815 | |||
816 | |||
817 | } | ||
818 | |||
819 | |||
820 | } | ||
821 | |||
822 | |||
823 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
824 | |||
825 | |||
826 | } | ||
827 | |||
828 | |||
829 | } | ||
830 | |||
831 | |||
832 | } | ||
833 | break; | ||
834 | |||
835 | default : | ||
836 | break loop7; | ||
837 | } | ||
838 | } while (true); | ||
839 | |||
840 | |||
841 | } | ||
842 | |||
843 | |||
844 | } | ||
845 | |||
846 | |||
847 | getUnorderedGroupHelper().leave(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
848 | |||
849 | |||
850 | } | ||
851 | |||
852 | // InternalCftLanguage.g:345:3: ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* | ||
853 | loop8: | ||
854 | do { | ||
855 | int alt8=2; | ||
856 | int LA8_0 = input.LA(1); | ||
857 | |||
858 | if ( (LA8_0==RULE_ID) ) { | ||
859 | alt8=1; | ||
860 | } | ||
861 | |||
862 | |||
863 | switch (alt8) { | ||
864 | case 1 : | ||
865 | // InternalCftLanguage.g:346:4: ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' | ||
866 | { | ||
867 | // InternalCftLanguage.g:346:4: ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) | ||
868 | // InternalCftLanguage.g:347:5: (lv_eventDefinitions_10_0= ruleEventDefinition ) | ||
869 | { | ||
870 | // InternalCftLanguage.g:347:5: (lv_eventDefinitions_10_0= ruleEventDefinition ) | ||
871 | // InternalCftLanguage.g:348:6: lv_eventDefinitions_10_0= ruleEventDefinition | ||
872 | { | ||
873 | |||
874 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getEventDefinitionsEventDefinitionParserRuleCall_4_0_0()); | ||
875 | |||
876 | pushFollow(FOLLOW_11); | ||
877 | lv_eventDefinitions_10_0=ruleEventDefinition(); | ||
878 | |||
879 | state._fsp--; | ||
880 | |||
881 | |||
882 | if (current==null) { | ||
883 | current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); | ||
884 | } | ||
885 | add( | ||
886 | current, | ||
887 | "eventDefinitions", | ||
888 | lv_eventDefinitions_10_0, | ||
889 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventDefinition"); | ||
890 | afterParserOrEnumRuleCall(); | ||
891 | |||
892 | |||
893 | } | ||
894 | |||
895 | |||
896 | } | ||
897 | |||
898 | otherlv_11=(Token)match(input,13,FOLLOW_12); | ||
899 | |||
900 | newLeafNode(otherlv_11, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_4_1()); | ||
901 | |||
902 | |||
903 | } | ||
904 | break; | ||
905 | |||
906 | default : | ||
907 | break loop8; | ||
908 | } | ||
909 | } while (true); | ||
910 | |||
911 | otherlv_12=(Token)match(input,19,FOLLOW_2); | ||
912 | |||
913 | newLeafNode(otherlv_12, grammarAccess.getComponentDefinitionAccess().getRightCurlyBracketKeyword_5()); | ||
914 | |||
915 | |||
916 | } | ||
917 | |||
918 | |||
919 | } | ||
920 | |||
921 | |||
922 | leaveRule(); | ||
923 | |||
924 | } | ||
925 | |||
926 | catch (RecognitionException re) { | ||
927 | recover(input,re); | ||
928 | appendSkippedTokens(); | ||
929 | } | ||
930 | finally { | ||
931 | } | ||
932 | return current; | ||
933 | } | ||
934 | // $ANTLR end "ruleComponentDefinition" | ||
935 | |||
936 | |||
937 | // $ANTLR start "entryRuleInputEvent" | ||
938 | // InternalCftLanguage.g:378:1: entryRuleInputEvent returns [EObject current=null] : iv_ruleInputEvent= ruleInputEvent EOF ; | ||
939 | public final EObject entryRuleInputEvent() throws RecognitionException { | ||
940 | EObject current = null; | ||
941 | |||
942 | EObject iv_ruleInputEvent = null; | ||
943 | |||
944 | |||
945 | try { | ||
946 | // InternalCftLanguage.g:378:51: (iv_ruleInputEvent= ruleInputEvent EOF ) | ||
947 | // InternalCftLanguage.g:379:2: iv_ruleInputEvent= ruleInputEvent EOF | ||
948 | { | ||
949 | newCompositeNode(grammarAccess.getInputEventRule()); | ||
950 | pushFollow(FOLLOW_1); | ||
951 | iv_ruleInputEvent=ruleInputEvent(); | ||
952 | |||
953 | state._fsp--; | ||
954 | |||
955 | current =iv_ruleInputEvent; | ||
956 | match(input,EOF,FOLLOW_2); | ||
957 | |||
958 | } | ||
959 | |||
960 | } | ||
961 | |||
962 | catch (RecognitionException re) { | ||
963 | recover(input,re); | ||
964 | appendSkippedTokens(); | ||
965 | } | ||
966 | finally { | ||
967 | } | ||
968 | return current; | ||
969 | } | ||
970 | // $ANTLR end "entryRuleInputEvent" | ||
971 | |||
972 | |||
973 | // $ANTLR start "ruleInputEvent" | ||
974 | // InternalCftLanguage.g:385:1: ruleInputEvent returns [EObject current=null] : ( ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? ) ; | ||
975 | public final EObject ruleInputEvent() throws RecognitionException { | ||
976 | EObject current = null; | ||
977 | |||
978 | Token lv_name_0_0=null; | ||
979 | Token lv_multiple_1_0=null; | ||
980 | |||
981 | |||
982 | enterRule(); | ||
983 | |||
984 | try { | ||
985 | // InternalCftLanguage.g:391:2: ( ( ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? ) ) | ||
986 | // InternalCftLanguage.g:392:2: ( ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? ) | ||
987 | { | ||
988 | // InternalCftLanguage.g:392:2: ( ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? ) | ||
989 | // InternalCftLanguage.g:393:3: ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? | ||
990 | { | ||
991 | // InternalCftLanguage.g:393:3: ( (lv_name_0_0= RULE_ID ) ) | ||
992 | // InternalCftLanguage.g:394:4: (lv_name_0_0= RULE_ID ) | ||
993 | { | ||
994 | // InternalCftLanguage.g:394:4: (lv_name_0_0= RULE_ID ) | ||
995 | // InternalCftLanguage.g:395:5: lv_name_0_0= RULE_ID | ||
996 | { | ||
997 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_13); | ||
998 | |||
999 | newLeafNode(lv_name_0_0, grammarAccess.getInputEventAccess().getNameIDTerminalRuleCall_0_0()); | ||
1000 | |||
1001 | |||
1002 | if (current==null) { | ||
1003 | current = createModelElement(grammarAccess.getInputEventRule()); | ||
1004 | } | ||
1005 | setWithLastConsumed( | ||
1006 | current, | ||
1007 | "name", | ||
1008 | lv_name_0_0, | ||
1009 | "org.eclipse.xtext.common.Terminals.ID"); | ||
1010 | |||
1011 | |||
1012 | } | ||
1013 | |||
1014 | |||
1015 | } | ||
1016 | |||
1017 | // InternalCftLanguage.g:411:3: ( (lv_multiple_1_0= '[]' ) )? | ||
1018 | int alt9=2; | ||
1019 | int LA9_0 = input.LA(1); | ||
1020 | |||
1021 | if ( (LA9_0==20) ) { | ||
1022 | alt9=1; | ||
1023 | } | ||
1024 | switch (alt9) { | ||
1025 | case 1 : | ||
1026 | // InternalCftLanguage.g:412:4: (lv_multiple_1_0= '[]' ) | ||
1027 | { | ||
1028 | // InternalCftLanguage.g:412:4: (lv_multiple_1_0= '[]' ) | ||
1029 | // InternalCftLanguage.g:413:5: lv_multiple_1_0= '[]' | ||
1030 | { | ||
1031 | lv_multiple_1_0=(Token)match(input,20,FOLLOW_2); | ||
1032 | |||
1033 | newLeafNode(lv_multiple_1_0, grammarAccess.getInputEventAccess().getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0()); | ||
1034 | |||
1035 | |||
1036 | if (current==null) { | ||
1037 | current = createModelElement(grammarAccess.getInputEventRule()); | ||
1038 | } | ||
1039 | setWithLastConsumed(current, "multiple", true, "[]"); | ||
1040 | |||
1041 | |||
1042 | } | ||
1043 | |||
1044 | |||
1045 | } | ||
1046 | break; | ||
1047 | |||
1048 | } | ||
1049 | |||
1050 | |||
1051 | } | ||
1052 | |||
1053 | |||
1054 | } | ||
1055 | |||
1056 | |||
1057 | leaveRule(); | ||
1058 | |||
1059 | } | ||
1060 | |||
1061 | catch (RecognitionException re) { | ||
1062 | recover(input,re); | ||
1063 | appendSkippedTokens(); | ||
1064 | } | ||
1065 | finally { | ||
1066 | } | ||
1067 | return current; | ||
1068 | } | ||
1069 | // $ANTLR end "ruleInputEvent" | ||
1070 | |||
1071 | |||
1072 | // $ANTLR start "entryRuleEventDefinition" | ||
1073 | // InternalCftLanguage.g:429:1: entryRuleEventDefinition returns [EObject current=null] : iv_ruleEventDefinition= ruleEventDefinition EOF ; | ||
1074 | public final EObject entryRuleEventDefinition() throws RecognitionException { | ||
1075 | EObject current = null; | ||
1076 | |||
1077 | EObject iv_ruleEventDefinition = null; | ||
1078 | |||
1079 | |||
1080 | try { | ||
1081 | // InternalCftLanguage.g:429:56: (iv_ruleEventDefinition= ruleEventDefinition EOF ) | ||
1082 | // InternalCftLanguage.g:430:2: iv_ruleEventDefinition= ruleEventDefinition EOF | ||
1083 | { | ||
1084 | newCompositeNode(grammarAccess.getEventDefinitionRule()); | ||
1085 | pushFollow(FOLLOW_1); | ||
1086 | iv_ruleEventDefinition=ruleEventDefinition(); | ||
1087 | |||
1088 | state._fsp--; | ||
1089 | |||
1090 | current =iv_ruleEventDefinition; | ||
1091 | match(input,EOF,FOLLOW_2); | ||
1092 | |||
1093 | } | ||
1094 | |||
1095 | } | ||
1096 | |||
1097 | catch (RecognitionException re) { | ||
1098 | recover(input,re); | ||
1099 | appendSkippedTokens(); | ||
1100 | } | ||
1101 | finally { | ||
1102 | } | ||
1103 | return current; | ||
1104 | } | ||
1105 | // $ANTLR end "entryRuleEventDefinition" | ||
1106 | |||
1107 | |||
1108 | // $ANTLR start "ruleEventDefinition" | ||
1109 | // InternalCftLanguage.g:436:1: ruleEventDefinition returns [EObject current=null] : (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) ; | ||
1110 | public final EObject ruleEventDefinition() throws RecognitionException { | ||
1111 | EObject current = null; | ||
1112 | |||
1113 | EObject this_BasicEventDefinition_0 = null; | ||
1114 | |||
1115 | EObject this_GateDefinition_1 = null; | ||
1116 | |||
1117 | |||
1118 | |||
1119 | enterRule(); | ||
1120 | |||
1121 | try { | ||
1122 | // InternalCftLanguage.g:442:2: ( (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) ) | ||
1123 | // InternalCftLanguage.g:443:2: (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) | ||
1124 | { | ||
1125 | // InternalCftLanguage.g:443:2: (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) | ||
1126 | int alt10=2; | ||
1127 | int LA10_0 = input.LA(1); | ||
1128 | |||
1129 | if ( (LA10_0==RULE_ID) ) { | ||
1130 | int LA10_1 = input.LA(2); | ||
1131 | |||
1132 | if ( ((LA10_1>=23 && LA10_1<=24)) ) { | ||
1133 | alt10=2; | ||
1134 | } | ||
1135 | else if ( (LA10_1==21) ) { | ||
1136 | alt10=1; | ||
1137 | } | ||
1138 | else { | ||
1139 | NoViableAltException nvae = | ||
1140 | new NoViableAltException("", 10, 1, input); | ||
1141 | |||
1142 | throw nvae; | ||
1143 | } | ||
1144 | } | ||
1145 | else { | ||
1146 | NoViableAltException nvae = | ||
1147 | new NoViableAltException("", 10, 0, input); | ||
1148 | |||
1149 | throw nvae; | ||
1150 | } | ||
1151 | switch (alt10) { | ||
1152 | case 1 : | ||
1153 | // InternalCftLanguage.g:444:3: this_BasicEventDefinition_0= ruleBasicEventDefinition | ||
1154 | { | ||
1155 | |||
1156 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getBasicEventDefinitionParserRuleCall_0()); | ||
1157 | |||
1158 | pushFollow(FOLLOW_2); | ||
1159 | this_BasicEventDefinition_0=ruleBasicEventDefinition(); | ||
1160 | |||
1161 | state._fsp--; | ||
1162 | |||
1163 | |||
1164 | current = this_BasicEventDefinition_0; | ||
1165 | afterParserOrEnumRuleCall(); | ||
1166 | |||
1167 | |||
1168 | } | ||
1169 | break; | ||
1170 | case 2 : | ||
1171 | // InternalCftLanguage.g:453:3: this_GateDefinition_1= ruleGateDefinition | ||
1172 | { | ||
1173 | |||
1174 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getGateDefinitionParserRuleCall_1()); | ||
1175 | |||
1176 | pushFollow(FOLLOW_2); | ||
1177 | this_GateDefinition_1=ruleGateDefinition(); | ||
1178 | |||
1179 | state._fsp--; | ||
1180 | |||
1181 | |||
1182 | current = this_GateDefinition_1; | ||
1183 | afterParserOrEnumRuleCall(); | ||
1184 | |||
1185 | |||
1186 | } | ||
1187 | break; | ||
1188 | |||
1189 | } | ||
1190 | |||
1191 | |||
1192 | } | ||
1193 | |||
1194 | |||
1195 | leaveRule(); | ||
1196 | |||
1197 | } | ||
1198 | |||
1199 | catch (RecognitionException re) { | ||
1200 | recover(input,re); | ||
1201 | appendSkippedTokens(); | ||
1202 | } | ||
1203 | finally { | ||
1204 | } | ||
1205 | return current; | ||
1206 | } | ||
1207 | // $ANTLR end "ruleEventDefinition" | ||
1208 | |||
1209 | |||
1210 | // $ANTLR start "entryRuleBasicEventDefinition" | ||
1211 | // InternalCftLanguage.g:465:1: entryRuleBasicEventDefinition returns [EObject current=null] : iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF ; | ||
1212 | public final EObject entryRuleBasicEventDefinition() throws RecognitionException { | ||
1213 | EObject current = null; | ||
1214 | |||
1215 | EObject iv_ruleBasicEventDefinition = null; | ||
1216 | |||
1217 | |||
1218 | try { | ||
1219 | // InternalCftLanguage.g:465:61: (iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF ) | ||
1220 | // InternalCftLanguage.g:466:2: iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF | ||
1221 | { | ||
1222 | newCompositeNode(grammarAccess.getBasicEventDefinitionRule()); | ||
1223 | pushFollow(FOLLOW_1); | ||
1224 | iv_ruleBasicEventDefinition=ruleBasicEventDefinition(); | ||
1225 | |||
1226 | state._fsp--; | ||
1227 | |||
1228 | current =iv_ruleBasicEventDefinition; | ||
1229 | match(input,EOF,FOLLOW_2); | ||
1230 | |||
1231 | } | ||
1232 | |||
1233 | } | ||
1234 | |||
1235 | catch (RecognitionException re) { | ||
1236 | recover(input,re); | ||
1237 | appendSkippedTokens(); | ||
1238 | } | ||
1239 | finally { | ||
1240 | } | ||
1241 | return current; | ||
1242 | } | ||
1243 | // $ANTLR end "entryRuleBasicEventDefinition" | ||
1244 | |||
1245 | |||
1246 | // $ANTLR start "ruleBasicEventDefinition" | ||
1247 | // InternalCftLanguage.g:472:1: ruleBasicEventDefinition returns [EObject current=null] : ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) ) ; | ||
1248 | public final EObject ruleBasicEventDefinition() throws RecognitionException { | ||
1249 | EObject current = null; | ||
1250 | |||
1251 | Token lv_name_0_0=null; | ||
1252 | Token otherlv_1=null; | ||
1253 | Token otherlv_2=null; | ||
1254 | Token lv_rate_3_0=null; | ||
1255 | |||
1256 | |||
1257 | enterRule(); | ||
1258 | |||
1259 | try { | ||
1260 | // InternalCftLanguage.g:478:2: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) ) ) | ||
1261 | // InternalCftLanguage.g:479:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) ) | ||
1262 | { | ||
1263 | // InternalCftLanguage.g:479:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) ) | ||
1264 | // InternalCftLanguage.g:480:3: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) | ||
1265 | { | ||
1266 | // InternalCftLanguage.g:480:3: ( (lv_name_0_0= RULE_ID ) ) | ||
1267 | // InternalCftLanguage.g:481:4: (lv_name_0_0= RULE_ID ) | ||
1268 | { | ||
1269 | // InternalCftLanguage.g:481:4: (lv_name_0_0= RULE_ID ) | ||
1270 | // InternalCftLanguage.g:482:5: lv_name_0_0= RULE_ID | ||
1271 | { | ||
1272 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_14); | ||
1273 | |||
1274 | newLeafNode(lv_name_0_0, grammarAccess.getBasicEventDefinitionAccess().getNameIDTerminalRuleCall_0_0()); | ||
1275 | |||
1276 | |||
1277 | if (current==null) { | ||
1278 | current = createModelElement(grammarAccess.getBasicEventDefinitionRule()); | ||
1279 | } | ||
1280 | setWithLastConsumed( | ||
1281 | current, | ||
1282 | "name", | ||
1283 | lv_name_0_0, | ||
1284 | "org.eclipse.xtext.common.Terminals.ID"); | ||
1285 | |||
1286 | |||
1287 | } | ||
1288 | |||
1289 | |||
1290 | } | ||
1291 | |||
1292 | otherlv_1=(Token)match(input,21,FOLLOW_15); | ||
1293 | |||
1294 | newLeafNode(otherlv_1, grammarAccess.getBasicEventDefinitionAccess().getLambdaKeyword_1()); | ||
1295 | |||
1296 | otherlv_2=(Token)match(input,22,FOLLOW_16); | ||
1297 | |||
1298 | newLeafNode(otherlv_2, grammarAccess.getBasicEventDefinitionAccess().getEqualsSignKeyword_2()); | ||
1299 | |||
1300 | // InternalCftLanguage.g:506:3: ( (lv_rate_3_0= RULE_DOULBE ) ) | ||
1301 | // InternalCftLanguage.g:507:4: (lv_rate_3_0= RULE_DOULBE ) | ||
1302 | { | ||
1303 | // InternalCftLanguage.g:507:4: (lv_rate_3_0= RULE_DOULBE ) | ||
1304 | // InternalCftLanguage.g:508:5: lv_rate_3_0= RULE_DOULBE | ||
1305 | { | ||
1306 | lv_rate_3_0=(Token)match(input,RULE_DOULBE,FOLLOW_2); | ||
1307 | |||
1308 | newLeafNode(lv_rate_3_0, grammarAccess.getBasicEventDefinitionAccess().getRateDOULBETerminalRuleCall_3_0()); | ||
1309 | |||
1310 | |||
1311 | if (current==null) { | ||
1312 | current = createModelElement(grammarAccess.getBasicEventDefinitionRule()); | ||
1313 | } | ||
1314 | setWithLastConsumed( | ||
1315 | current, | ||
1316 | "rate", | ||
1317 | lv_rate_3_0, | ||
1318 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.DOULBE"); | ||
1319 | |||
1320 | |||
1321 | } | ||
1322 | |||
1323 | |||
1324 | } | ||
1325 | |||
1326 | |||
1327 | } | ||
1328 | |||
1329 | |||
1330 | } | ||
1331 | |||
1332 | |||
1333 | leaveRule(); | ||
1334 | |||
1335 | } | ||
1336 | |||
1337 | catch (RecognitionException re) { | ||
1338 | recover(input,re); | ||
1339 | appendSkippedTokens(); | ||
1340 | } | ||
1341 | finally { | ||
1342 | } | ||
1343 | return current; | ||
1344 | } | ||
1345 | // $ANTLR end "ruleBasicEventDefinition" | ||
1346 | |||
1347 | |||
1348 | // $ANTLR start "entryRuleGateDefinition" | ||
1349 | // InternalCftLanguage.g:528:1: entryRuleGateDefinition returns [EObject current=null] : iv_ruleGateDefinition= ruleGateDefinition EOF ; | ||
1350 | public final EObject entryRuleGateDefinition() throws RecognitionException { | ||
1351 | EObject current = null; | ||
1352 | |||
1353 | EObject iv_ruleGateDefinition = null; | ||
1354 | |||
1355 | |||
1356 | try { | ||
1357 | // InternalCftLanguage.g:528:55: (iv_ruleGateDefinition= ruleGateDefinition EOF ) | ||
1358 | // InternalCftLanguage.g:529:2: iv_ruleGateDefinition= ruleGateDefinition EOF | ||
1359 | { | ||
1360 | newCompositeNode(grammarAccess.getGateDefinitionRule()); | ||
1361 | pushFollow(FOLLOW_1); | ||
1362 | iv_ruleGateDefinition=ruleGateDefinition(); | ||
1363 | |||
1364 | state._fsp--; | ||
1365 | |||
1366 | current =iv_ruleGateDefinition; | ||
1367 | match(input,EOF,FOLLOW_2); | ||
1368 | |||
1369 | } | ||
1370 | |||
1371 | } | ||
1372 | |||
1373 | catch (RecognitionException re) { | ||
1374 | recover(input,re); | ||
1375 | appendSkippedTokens(); | ||
1376 | } | ||
1377 | finally { | ||
1378 | } | ||
1379 | return current; | ||
1380 | } | ||
1381 | // $ANTLR end "entryRuleGateDefinition" | ||
1382 | |||
1383 | |||
1384 | // $ANTLR start "ruleGateDefinition" | ||
1385 | // InternalCftLanguage.g:535:1: ruleGateDefinition returns [EObject current=null] : (this_AndGate_0= ruleAndGate | this_OrGate_1= ruleOrGate ) ; | ||
1386 | public final EObject ruleGateDefinition() throws RecognitionException { | ||
1387 | EObject current = null; | ||
1388 | |||
1389 | EObject this_AndGate_0 = null; | ||
1390 | |||
1391 | EObject this_OrGate_1 = null; | ||
1392 | |||
1393 | |||
1394 | |||
1395 | enterRule(); | ||
1396 | |||
1397 | try { | ||
1398 | // InternalCftLanguage.g:541:2: ( (this_AndGate_0= ruleAndGate | this_OrGate_1= ruleOrGate ) ) | ||
1399 | // InternalCftLanguage.g:542:2: (this_AndGate_0= ruleAndGate | this_OrGate_1= ruleOrGate ) | ||
1400 | { | ||
1401 | // InternalCftLanguage.g:542:2: (this_AndGate_0= ruleAndGate | this_OrGate_1= ruleOrGate ) | ||
1402 | int alt11=2; | ||
1403 | int LA11_0 = input.LA(1); | ||
1404 | |||
1405 | if ( (LA11_0==RULE_ID) ) { | ||
1406 | int LA11_1 = input.LA(2); | ||
1407 | |||
1408 | if ( (LA11_1==24) ) { | ||
1409 | alt11=2; | ||
1410 | } | ||
1411 | else if ( (LA11_1==23) ) { | ||
1412 | alt11=1; | ||
1413 | } | ||
1414 | else { | ||
1415 | NoViableAltException nvae = | ||
1416 | new NoViableAltException("", 11, 1, input); | ||
1417 | |||
1418 | throw nvae; | ||
1419 | } | ||
1420 | } | ||
1421 | else { | ||
1422 | NoViableAltException nvae = | ||
1423 | new NoViableAltException("", 11, 0, input); | ||
1424 | |||
1425 | throw nvae; | ||
1426 | } | ||
1427 | switch (alt11) { | ||
1428 | case 1 : | ||
1429 | // InternalCftLanguage.g:543:3: this_AndGate_0= ruleAndGate | ||
1430 | { | ||
1431 | |||
1432 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getAndGateParserRuleCall_0()); | ||
1433 | |||
1434 | pushFollow(FOLLOW_2); | ||
1435 | this_AndGate_0=ruleAndGate(); | ||
1436 | |||
1437 | state._fsp--; | ||
1438 | |||
1439 | |||
1440 | current = this_AndGate_0; | ||
1441 | afterParserOrEnumRuleCall(); | ||
1442 | |||
1443 | |||
1444 | } | ||
1445 | break; | ||
1446 | case 2 : | ||
1447 | // InternalCftLanguage.g:552:3: this_OrGate_1= ruleOrGate | ||
1448 | { | ||
1449 | |||
1450 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getOrGateParserRuleCall_1()); | ||
1451 | |||
1452 | pushFollow(FOLLOW_2); | ||
1453 | this_OrGate_1=ruleOrGate(); | ||
1454 | |||
1455 | state._fsp--; | ||
1456 | |||
1457 | |||
1458 | current = this_OrGate_1; | ||
1459 | afterParserOrEnumRuleCall(); | ||
1460 | |||
1461 | |||
1462 | } | ||
1463 | break; | ||
1464 | |||
1465 | } | ||
1466 | |||
1467 | |||
1468 | } | ||
1469 | |||
1470 | |||
1471 | leaveRule(); | ||
1472 | |||
1473 | } | ||
1474 | |||
1475 | catch (RecognitionException re) { | ||
1476 | recover(input,re); | ||
1477 | appendSkippedTokens(); | ||
1478 | } | ||
1479 | finally { | ||
1480 | } | ||
1481 | return current; | ||
1482 | } | ||
1483 | // $ANTLR end "ruleGateDefinition" | ||
1484 | |||
1485 | |||
1486 | // $ANTLR start "entryRuleAndGate" | ||
1487 | // InternalCftLanguage.g:564:1: entryRuleAndGate returns [EObject current=null] : iv_ruleAndGate= ruleAndGate EOF ; | ||
1488 | public final EObject entryRuleAndGate() throws RecognitionException { | ||
1489 | EObject current = null; | ||
1490 | |||
1491 | EObject iv_ruleAndGate = null; | ||
1492 | |||
1493 | |||
1494 | try { | ||
1495 | // InternalCftLanguage.g:564:48: (iv_ruleAndGate= ruleAndGate EOF ) | ||
1496 | // InternalCftLanguage.g:565:2: iv_ruleAndGate= ruleAndGate EOF | ||
1497 | { | ||
1498 | newCompositeNode(grammarAccess.getAndGateRule()); | ||
1499 | pushFollow(FOLLOW_1); | ||
1500 | iv_ruleAndGate=ruleAndGate(); | ||
1501 | |||
1502 | state._fsp--; | ||
1503 | |||
1504 | current =iv_ruleAndGate; | ||
1505 | match(input,EOF,FOLLOW_2); | ||
1506 | |||
1507 | } | ||
1508 | |||
1509 | } | ||
1510 | |||
1511 | catch (RecognitionException re) { | ||
1512 | recover(input,re); | ||
1513 | appendSkippedTokens(); | ||
1514 | } | ||
1515 | finally { | ||
1516 | } | ||
1517 | return current; | ||
1518 | } | ||
1519 | // $ANTLR end "entryRuleAndGate" | ||
1520 | |||
1521 | |||
1522 | // $ANTLR start "ruleAndGate" | ||
1523 | // InternalCftLanguage.g:571:1: ruleAndGate returns [EObject current=null] : ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* ) ; | ||
1524 | public final EObject ruleAndGate() throws RecognitionException { | ||
1525 | EObject current = null; | ||
1526 | |||
1527 | Token lv_name_0_0=null; | ||
1528 | Token otherlv_1=null; | ||
1529 | Token otherlv_2=null; | ||
1530 | |||
1531 | |||
1532 | enterRule(); | ||
1533 | |||
1534 | try { | ||
1535 | // InternalCftLanguage.g:577:2: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* ) ) | ||
1536 | // InternalCftLanguage.g:578:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* ) | ||
1537 | { | ||
1538 | // InternalCftLanguage.g:578:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* ) | ||
1539 | // InternalCftLanguage.g:579:3: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* | ||
1540 | { | ||
1541 | // InternalCftLanguage.g:579:3: ( (lv_name_0_0= RULE_ID ) ) | ||
1542 | // InternalCftLanguage.g:580:4: (lv_name_0_0= RULE_ID ) | ||
1543 | { | ||
1544 | // InternalCftLanguage.g:580:4: (lv_name_0_0= RULE_ID ) | ||
1545 | // InternalCftLanguage.g:581:5: lv_name_0_0= RULE_ID | ||
1546 | { | ||
1547 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_17); | ||
1548 | |||
1549 | newLeafNode(lv_name_0_0, grammarAccess.getAndGateAccess().getNameIDTerminalRuleCall_0_0()); | ||
1550 | |||
1551 | |||
1552 | if (current==null) { | ||
1553 | current = createModelElement(grammarAccess.getAndGateRule()); | ||
1554 | } | ||
1555 | setWithLastConsumed( | ||
1556 | current, | ||
1557 | "name", | ||
1558 | lv_name_0_0, | ||
1559 | "org.eclipse.xtext.common.Terminals.ID"); | ||
1560 | |||
1561 | |||
1562 | } | ||
1563 | |||
1564 | |||
1565 | } | ||
1566 | |||
1567 | otherlv_1=(Token)match(input,23,FOLLOW_18); | ||
1568 | |||
1569 | newLeafNode(otherlv_1, grammarAccess.getAndGateAccess().getAndKeyword_1()); | ||
1570 | |||
1571 | // InternalCftLanguage.g:601:3: ( (otherlv_2= RULE_ID ) )* | ||
1572 | loop12: | ||
1573 | do { | ||
1574 | int alt12=2; | ||
1575 | int LA12_0 = input.LA(1); | ||
1576 | |||
1577 | if ( (LA12_0==RULE_ID) ) { | ||
1578 | alt12=1; | ||
1579 | } | ||
1580 | |||
1581 | |||
1582 | switch (alt12) { | ||
1583 | case 1 : | ||
1584 | // InternalCftLanguage.g:602:4: (otherlv_2= RULE_ID ) | ||
1585 | { | ||
1586 | // InternalCftLanguage.g:602:4: (otherlv_2= RULE_ID ) | ||
1587 | // InternalCftLanguage.g:603:5: otherlv_2= RULE_ID | ||
1588 | { | ||
1589 | |||
1590 | if (current==null) { | ||
1591 | current = createModelElement(grammarAccess.getAndGateRule()); | ||
1592 | } | ||
1593 | |||
1594 | otherlv_2=(Token)match(input,RULE_ID,FOLLOW_18); | ||
1595 | |||
1596 | newLeafNode(otherlv_2, grammarAccess.getAndGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); | ||
1597 | |||
1598 | |||
1599 | } | ||
1600 | |||
1601 | |||
1602 | } | ||
1603 | break; | ||
1604 | |||
1605 | default : | ||
1606 | break loop12; | ||
1607 | } | ||
1608 | } while (true); | ||
1609 | |||
1610 | |||
1611 | } | ||
1612 | |||
1613 | |||
1614 | } | ||
1615 | |||
1616 | |||
1617 | leaveRule(); | ||
1618 | |||
1619 | } | ||
1620 | |||
1621 | catch (RecognitionException re) { | ||
1622 | recover(input,re); | ||
1623 | appendSkippedTokens(); | ||
1624 | } | ||
1625 | finally { | ||
1626 | } | ||
1627 | return current; | ||
1628 | } | ||
1629 | // $ANTLR end "ruleAndGate" | ||
1630 | |||
1631 | |||
1632 | // $ANTLR start "entryRuleOrGate" | ||
1633 | // InternalCftLanguage.g:618:1: entryRuleOrGate returns [EObject current=null] : iv_ruleOrGate= ruleOrGate EOF ; | ||
1634 | public final EObject entryRuleOrGate() throws RecognitionException { | ||
1635 | EObject current = null; | ||
1636 | |||
1637 | EObject iv_ruleOrGate = null; | ||
1638 | |||
1639 | |||
1640 | try { | ||
1641 | // InternalCftLanguage.g:618:47: (iv_ruleOrGate= ruleOrGate EOF ) | ||
1642 | // InternalCftLanguage.g:619:2: iv_ruleOrGate= ruleOrGate EOF | ||
1643 | { | ||
1644 | newCompositeNode(grammarAccess.getOrGateRule()); | ||
1645 | pushFollow(FOLLOW_1); | ||
1646 | iv_ruleOrGate=ruleOrGate(); | ||
1647 | |||
1648 | state._fsp--; | ||
1649 | |||
1650 | current =iv_ruleOrGate; | ||
1651 | match(input,EOF,FOLLOW_2); | ||
1652 | |||
1653 | } | ||
1654 | |||
1655 | } | ||
1656 | |||
1657 | catch (RecognitionException re) { | ||
1658 | recover(input,re); | ||
1659 | appendSkippedTokens(); | ||
1660 | } | ||
1661 | finally { | ||
1662 | } | ||
1663 | return current; | ||
1664 | } | ||
1665 | // $ANTLR end "entryRuleOrGate" | ||
1666 | |||
1667 | |||
1668 | // $ANTLR start "ruleOrGate" | ||
1669 | // InternalCftLanguage.g:625:1: ruleOrGate returns [EObject current=null] : ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* ) ; | ||
1670 | public final EObject ruleOrGate() throws RecognitionException { | ||
1671 | EObject current = null; | ||
1672 | |||
1673 | Token lv_name_0_0=null; | ||
1674 | Token otherlv_1=null; | ||
1675 | Token otherlv_2=null; | ||
1676 | |||
1677 | |||
1678 | enterRule(); | ||
1679 | |||
1680 | try { | ||
1681 | // InternalCftLanguage.g:631:2: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* ) ) | ||
1682 | // InternalCftLanguage.g:632:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* ) | ||
1683 | { | ||
1684 | // InternalCftLanguage.g:632:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* ) | ||
1685 | // InternalCftLanguage.g:633:3: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* | ||
1686 | { | ||
1687 | // InternalCftLanguage.g:633:3: ( (lv_name_0_0= RULE_ID ) ) | ||
1688 | // InternalCftLanguage.g:634:4: (lv_name_0_0= RULE_ID ) | ||
1689 | { | ||
1690 | // InternalCftLanguage.g:634:4: (lv_name_0_0= RULE_ID ) | ||
1691 | // InternalCftLanguage.g:635:5: lv_name_0_0= RULE_ID | ||
1692 | { | ||
1693 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_19); | ||
1694 | |||
1695 | newLeafNode(lv_name_0_0, grammarAccess.getOrGateAccess().getNameIDTerminalRuleCall_0_0()); | ||
1696 | |||
1697 | |||
1698 | if (current==null) { | ||
1699 | current = createModelElement(grammarAccess.getOrGateRule()); | ||
1700 | } | ||
1701 | setWithLastConsumed( | ||
1702 | current, | ||
1703 | "name", | ||
1704 | lv_name_0_0, | ||
1705 | "org.eclipse.xtext.common.Terminals.ID"); | ||
1706 | |||
1707 | |||
1708 | } | ||
1709 | |||
1710 | |||
1711 | } | ||
1712 | |||
1713 | otherlv_1=(Token)match(input,24,FOLLOW_18); | ||
1714 | |||
1715 | newLeafNode(otherlv_1, grammarAccess.getOrGateAccess().getOrKeyword_1()); | ||
1716 | |||
1717 | // InternalCftLanguage.g:655:3: ( (otherlv_2= RULE_ID ) )* | ||
1718 | loop13: | ||
1719 | do { | ||
1720 | int alt13=2; | ||
1721 | int LA13_0 = input.LA(1); | ||
1722 | |||
1723 | if ( (LA13_0==RULE_ID) ) { | ||
1724 | alt13=1; | ||
1725 | } | ||
1726 | |||
1727 | |||
1728 | switch (alt13) { | ||
1729 | case 1 : | ||
1730 | // InternalCftLanguage.g:656:4: (otherlv_2= RULE_ID ) | ||
1731 | { | ||
1732 | // InternalCftLanguage.g:656:4: (otherlv_2= RULE_ID ) | ||
1733 | // InternalCftLanguage.g:657:5: otherlv_2= RULE_ID | ||
1734 | { | ||
1735 | |||
1736 | if (current==null) { | ||
1737 | current = createModelElement(grammarAccess.getOrGateRule()); | ||
1738 | } | ||
1739 | |||
1740 | otherlv_2=(Token)match(input,RULE_ID,FOLLOW_18); | ||
1741 | |||
1742 | newLeafNode(otherlv_2, grammarAccess.getOrGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); | ||
1743 | |||
1744 | |||
1745 | } | ||
1746 | |||
1747 | |||
1748 | } | ||
1749 | break; | ||
1750 | |||
1751 | default : | ||
1752 | break loop13; | ||
1753 | } | ||
1754 | } while (true); | ||
1755 | |||
1756 | |||
1757 | } | ||
1758 | |||
1759 | |||
1760 | } | ||
1761 | |||
1762 | |||
1763 | leaveRule(); | ||
1764 | |||
1765 | } | ||
1766 | |||
1767 | catch (RecognitionException re) { | ||
1768 | recover(input,re); | ||
1769 | appendSkippedTokens(); | ||
1770 | } | ||
1771 | finally { | ||
1772 | } | ||
1773 | return current; | ||
1774 | } | ||
1775 | // $ANTLR end "ruleOrGate" | ||
1776 | |||
1777 | |||
1778 | // $ANTLR start "entryRuleTransformationDefinition" | ||
1779 | // InternalCftLanguage.g:672:1: entryRuleTransformationDefinition returns [EObject current=null] : iv_ruleTransformationDefinition= ruleTransformationDefinition EOF ; | ||
1780 | public final EObject entryRuleTransformationDefinition() throws RecognitionException { | ||
1781 | EObject current = null; | ||
1782 | |||
1783 | EObject iv_ruleTransformationDefinition = null; | ||
1784 | |||
1785 | |||
1786 | try { | ||
1787 | // InternalCftLanguage.g:672:65: (iv_ruleTransformationDefinition= ruleTransformationDefinition EOF ) | ||
1788 | // InternalCftLanguage.g:673:2: iv_ruleTransformationDefinition= ruleTransformationDefinition EOF | ||
1789 | { | ||
1790 | newCompositeNode(grammarAccess.getTransformationDefinitionRule()); | ||
1791 | pushFollow(FOLLOW_1); | ||
1792 | iv_ruleTransformationDefinition=ruleTransformationDefinition(); | ||
1793 | |||
1794 | state._fsp--; | ||
1795 | |||
1796 | current =iv_ruleTransformationDefinition; | ||
1797 | match(input,EOF,FOLLOW_2); | ||
1798 | |||
1799 | } | ||
1800 | |||
1801 | } | ||
1802 | |||
1803 | catch (RecognitionException re) { | ||
1804 | recover(input,re); | ||
1805 | appendSkippedTokens(); | ||
1806 | } | ||
1807 | finally { | ||
1808 | } | ||
1809 | return current; | ||
1810 | } | ||
1811 | // $ANTLR end "entryRuleTransformationDefinition" | ||
1812 | |||
1813 | |||
1814 | // $ANTLR start "ruleTransformationDefinition" | ||
1815 | // InternalCftLanguage.g:679:1: ruleTransformationDefinition returns [EObject current=null] : (otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) ; | ||
1816 | public final EObject ruleTransformationDefinition() throws RecognitionException { | ||
1817 | EObject current = null; | ||
1818 | |||
1819 | Token otherlv_0=null; | ||
1820 | Token lv_name_1_0=null; | ||
1821 | Token otherlv_2=null; | ||
1822 | Token otherlv_4=null; | ||
1823 | EObject lv_mappingDefinitions_3_0 = null; | ||
1824 | |||
1825 | |||
1826 | |||
1827 | enterRule(); | ||
1828 | |||
1829 | try { | ||
1830 | // InternalCftLanguage.g:685:2: ( (otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) ) | ||
1831 | // InternalCftLanguage.g:686:2: (otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) | ||
1832 | { | ||
1833 | // InternalCftLanguage.g:686:2: (otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) | ||
1834 | // InternalCftLanguage.g:687:3: otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' | ||
1835 | { | ||
1836 | otherlv_0=(Token)match(input,25,FOLLOW_3); | ||
1837 | |||
1838 | newLeafNode(otherlv_0, grammarAccess.getTransformationDefinitionAccess().getTransformationKeyword_0()); | ||
1839 | |||
1840 | // InternalCftLanguage.g:691:3: ( (lv_name_1_0= RULE_ID ) ) | ||
1841 | // InternalCftLanguage.g:692:4: (lv_name_1_0= RULE_ID ) | ||
1842 | { | ||
1843 | // InternalCftLanguage.g:692:4: (lv_name_1_0= RULE_ID ) | ||
1844 | // InternalCftLanguage.g:693:5: lv_name_1_0= RULE_ID | ||
1845 | { | ||
1846 | lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_8); | ||
1847 | |||
1848 | newLeafNode(lv_name_1_0, grammarAccess.getTransformationDefinitionAccess().getNameIDTerminalRuleCall_1_0()); | ||
1849 | |||
1850 | |||
1851 | if (current==null) { | ||
1852 | current = createModelElement(grammarAccess.getTransformationDefinitionRule()); | ||
1853 | } | ||
1854 | setWithLastConsumed( | ||
1855 | current, | ||
1856 | "name", | ||
1857 | lv_name_1_0, | ||
1858 | "org.eclipse.xtext.common.Terminals.ID"); | ||
1859 | |||
1860 | |||
1861 | } | ||
1862 | |||
1863 | |||
1864 | } | ||
1865 | |||
1866 | otherlv_2=(Token)match(input,16,FOLLOW_20); | ||
1867 | |||
1868 | newLeafNode(otherlv_2, grammarAccess.getTransformationDefinitionAccess().getLeftCurlyBracketKeyword_2()); | ||
1869 | |||
1870 | // InternalCftLanguage.g:713:3: ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* | ||
1871 | loop14: | ||
1872 | do { | ||
1873 | int alt14=2; | ||
1874 | int LA14_0 = input.LA(1); | ||
1875 | |||
1876 | if ( ((LA14_0>=26 && LA14_0<=27)) ) { | ||
1877 | alt14=1; | ||
1878 | } | ||
1879 | |||
1880 | |||
1881 | switch (alt14) { | ||
1882 | case 1 : | ||
1883 | // InternalCftLanguage.g:714:4: (lv_mappingDefinitions_3_0= ruleMappingDefinition ) | ||
1884 | { | ||
1885 | // InternalCftLanguage.g:714:4: (lv_mappingDefinitions_3_0= ruleMappingDefinition ) | ||
1886 | // InternalCftLanguage.g:715:5: lv_mappingDefinitions_3_0= ruleMappingDefinition | ||
1887 | { | ||
1888 | |||
1889 | newCompositeNode(grammarAccess.getTransformationDefinitionAccess().getMappingDefinitionsMappingDefinitionParserRuleCall_3_0()); | ||
1890 | |||
1891 | pushFollow(FOLLOW_20); | ||
1892 | lv_mappingDefinitions_3_0=ruleMappingDefinition(); | ||
1893 | |||
1894 | state._fsp--; | ||
1895 | |||
1896 | |||
1897 | if (current==null) { | ||
1898 | current = createModelElementForParent(grammarAccess.getTransformationDefinitionRule()); | ||
1899 | } | ||
1900 | add( | ||
1901 | current, | ||
1902 | "mappingDefinitions", | ||
1903 | lv_mappingDefinitions_3_0, | ||
1904 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingDefinition"); | ||
1905 | afterParserOrEnumRuleCall(); | ||
1906 | |||
1907 | |||
1908 | } | ||
1909 | |||
1910 | |||
1911 | } | ||
1912 | break; | ||
1913 | |||
1914 | default : | ||
1915 | break loop14; | ||
1916 | } | ||
1917 | } while (true); | ||
1918 | |||
1919 | otherlv_4=(Token)match(input,19,FOLLOW_2); | ||
1920 | |||
1921 | newLeafNode(otherlv_4, grammarAccess.getTransformationDefinitionAccess().getRightCurlyBracketKeyword_4()); | ||
1922 | |||
1923 | |||
1924 | } | ||
1925 | |||
1926 | |||
1927 | } | ||
1928 | |||
1929 | |||
1930 | leaveRule(); | ||
1931 | |||
1932 | } | ||
1933 | |||
1934 | catch (RecognitionException re) { | ||
1935 | recover(input,re); | ||
1936 | appendSkippedTokens(); | ||
1937 | } | ||
1938 | finally { | ||
1939 | } | ||
1940 | return current; | ||
1941 | } | ||
1942 | // $ANTLR end "ruleTransformationDefinition" | ||
1943 | |||
1944 | |||
1945 | // $ANTLR start "entryRuleMappingDefinition" | ||
1946 | // InternalCftLanguage.g:740:1: entryRuleMappingDefinition returns [EObject current=null] : iv_ruleMappingDefinition= ruleMappingDefinition EOF ; | ||
1947 | public final EObject entryRuleMappingDefinition() throws RecognitionException { | ||
1948 | EObject current = null; | ||
1949 | |||
1950 | EObject iv_ruleMappingDefinition = null; | ||
1951 | |||
1952 | |||
1953 | try { | ||
1954 | // InternalCftLanguage.g:740:58: (iv_ruleMappingDefinition= ruleMappingDefinition EOF ) | ||
1955 | // InternalCftLanguage.g:741:2: iv_ruleMappingDefinition= ruleMappingDefinition EOF | ||
1956 | { | ||
1957 | newCompositeNode(grammarAccess.getMappingDefinitionRule()); | ||
1958 | pushFollow(FOLLOW_1); | ||
1959 | iv_ruleMappingDefinition=ruleMappingDefinition(); | ||
1960 | |||
1961 | state._fsp--; | ||
1962 | |||
1963 | current =iv_ruleMappingDefinition; | ||
1964 | match(input,EOF,FOLLOW_2); | ||
1965 | |||
1966 | } | ||
1967 | |||
1968 | } | ||
1969 | |||
1970 | catch (RecognitionException re) { | ||
1971 | recover(input,re); | ||
1972 | appendSkippedTokens(); | ||
1973 | } | ||
1974 | finally { | ||
1975 | } | ||
1976 | return current; | ||
1977 | } | ||
1978 | // $ANTLR end "entryRuleMappingDefinition" | ||
1979 | |||
1980 | |||
1981 | // $ANTLR start "ruleMappingDefinition" | ||
1982 | // InternalCftLanguage.g:747:1: ruleMappingDefinition returns [EObject current=null] : ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) ; | ||
1983 | public final EObject ruleMappingDefinition() throws RecognitionException { | ||
1984 | EObject current = null; | ||
1985 | |||
1986 | Token lv_topLevel_0_0=null; | ||
1987 | Token otherlv_1=null; | ||
1988 | Token otherlv_3=null; | ||
1989 | Token otherlv_5=null; | ||
1990 | Token otherlv_7=null; | ||
1991 | Token otherlv_9=null; | ||
1992 | Token otherlv_12=null; | ||
1993 | Token otherlv_13=null; | ||
1994 | EObject lv_parameters_4_0 = null; | ||
1995 | |||
1996 | EObject lv_parameters_6_0 = null; | ||
1997 | |||
1998 | EObject lv_componentInstance_8_0 = null; | ||
1999 | |||
2000 | EObject lv_lookupDefinitions_10_0 = null; | ||
2001 | |||
2002 | EObject lv_assignments_11_0 = null; | ||
2003 | |||
2004 | |||
2005 | |||
2006 | enterRule(); | ||
2007 | |||
2008 | try { | ||
2009 | // InternalCftLanguage.g:753:2: ( ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) ) | ||
2010 | // InternalCftLanguage.g:754:2: ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) | ||
2011 | { | ||
2012 | // InternalCftLanguage.g:754:2: ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) | ||
2013 | // InternalCftLanguage.g:755:3: ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? | ||
2014 | { | ||
2015 | // InternalCftLanguage.g:755:3: ( (lv_topLevel_0_0= 'toplevel' ) )? | ||
2016 | int alt15=2; | ||
2017 | int LA15_0 = input.LA(1); | ||
2018 | |||
2019 | if ( (LA15_0==26) ) { | ||
2020 | alt15=1; | ||
2021 | } | ||
2022 | switch (alt15) { | ||
2023 | case 1 : | ||
2024 | // InternalCftLanguage.g:756:4: (lv_topLevel_0_0= 'toplevel' ) | ||
2025 | { | ||
2026 | // InternalCftLanguage.g:756:4: (lv_topLevel_0_0= 'toplevel' ) | ||
2027 | // InternalCftLanguage.g:757:5: lv_topLevel_0_0= 'toplevel' | ||
2028 | { | ||
2029 | lv_topLevel_0_0=(Token)match(input,26,FOLLOW_21); | ||
2030 | |||
2031 | newLeafNode(lv_topLevel_0_0, grammarAccess.getMappingDefinitionAccess().getTopLevelToplevelKeyword_0_0()); | ||
2032 | |||
2033 | |||
2034 | if (current==null) { | ||
2035 | current = createModelElement(grammarAccess.getMappingDefinitionRule()); | ||
2036 | } | ||
2037 | setWithLastConsumed(current, "topLevel", true, "toplevel"); | ||
2038 | |||
2039 | |||
2040 | } | ||
2041 | |||
2042 | |||
2043 | } | ||
2044 | break; | ||
2045 | |||
2046 | } | ||
2047 | |||
2048 | otherlv_1=(Token)match(input,27,FOLLOW_3); | ||
2049 | |||
2050 | newLeafNode(otherlv_1, grammarAccess.getMappingDefinitionAccess().getMappingKeyword_1()); | ||
2051 | |||
2052 | // InternalCftLanguage.g:773:3: ( ( ruleQualifiedName ) ) | ||
2053 | // InternalCftLanguage.g:774:4: ( ruleQualifiedName ) | ||
2054 | { | ||
2055 | // InternalCftLanguage.g:774:4: ( ruleQualifiedName ) | ||
2056 | // InternalCftLanguage.g:775:5: ruleQualifiedName | ||
2057 | { | ||
2058 | |||
2059 | if (current==null) { | ||
2060 | current = createModelElement(grammarAccess.getMappingDefinitionRule()); | ||
2061 | } | ||
2062 | |||
2063 | |||
2064 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getPatternPatternCrossReference_2_0()); | ||
2065 | |||
2066 | pushFollow(FOLLOW_22); | ||
2067 | ruleQualifiedName(); | ||
2068 | |||
2069 | state._fsp--; | ||
2070 | |||
2071 | |||
2072 | afterParserOrEnumRuleCall(); | ||
2073 | |||
2074 | |||
2075 | } | ||
2076 | |||
2077 | |||
2078 | } | ||
2079 | |||
2080 | otherlv_3=(Token)match(input,28,FOLLOW_3); | ||
2081 | |||
2082 | newLeafNode(otherlv_3, grammarAccess.getMappingDefinitionAccess().getLeftParenthesisKeyword_3()); | ||
2083 | |||
2084 | // InternalCftLanguage.g:793:3: ( (lv_parameters_4_0= ruleMappingParameter ) ) | ||
2085 | // InternalCftLanguage.g:794:4: (lv_parameters_4_0= ruleMappingParameter ) | ||
2086 | { | ||
2087 | // InternalCftLanguage.g:794:4: (lv_parameters_4_0= ruleMappingParameter ) | ||
2088 | // InternalCftLanguage.g:795:5: lv_parameters_4_0= ruleMappingParameter | ||
2089 | { | ||
2090 | |||
2091 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_4_0()); | ||
2092 | |||
2093 | pushFollow(FOLLOW_23); | ||
2094 | lv_parameters_4_0=ruleMappingParameter(); | ||
2095 | |||
2096 | state._fsp--; | ||
2097 | |||
2098 | |||
2099 | if (current==null) { | ||
2100 | current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
2101 | } | ||
2102 | add( | ||
2103 | current, | ||
2104 | "parameters", | ||
2105 | lv_parameters_4_0, | ||
2106 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingParameter"); | ||
2107 | afterParserOrEnumRuleCall(); | ||
2108 | |||
2109 | |||
2110 | } | ||
2111 | |||
2112 | |||
2113 | } | ||
2114 | |||
2115 | // InternalCftLanguage.g:812:3: (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* | ||
2116 | loop16: | ||
2117 | do { | ||
2118 | int alt16=2; | ||
2119 | int LA16_0 = input.LA(1); | ||
2120 | |||
2121 | if ( (LA16_0==29) ) { | ||
2122 | alt16=1; | ||
2123 | } | ||
2124 | |||
2125 | |||
2126 | switch (alt16) { | ||
2127 | case 1 : | ||
2128 | // InternalCftLanguage.g:813:4: otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) | ||
2129 | { | ||
2130 | otherlv_5=(Token)match(input,29,FOLLOW_3); | ||
2131 | |||
2132 | newLeafNode(otherlv_5, grammarAccess.getMappingDefinitionAccess().getCommaKeyword_5_0()); | ||
2133 | |||
2134 | // InternalCftLanguage.g:817:4: ( (lv_parameters_6_0= ruleMappingParameter ) ) | ||
2135 | // InternalCftLanguage.g:818:5: (lv_parameters_6_0= ruleMappingParameter ) | ||
2136 | { | ||
2137 | // InternalCftLanguage.g:818:5: (lv_parameters_6_0= ruleMappingParameter ) | ||
2138 | // InternalCftLanguage.g:819:6: lv_parameters_6_0= ruleMappingParameter | ||
2139 | { | ||
2140 | |||
2141 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_5_1_0()); | ||
2142 | |||
2143 | pushFollow(FOLLOW_23); | ||
2144 | lv_parameters_6_0=ruleMappingParameter(); | ||
2145 | |||
2146 | state._fsp--; | ||
2147 | |||
2148 | |||
2149 | if (current==null) { | ||
2150 | current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
2151 | } | ||
2152 | add( | ||
2153 | current, | ||
2154 | "parameters", | ||
2155 | lv_parameters_6_0, | ||
2156 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingParameter"); | ||
2157 | afterParserOrEnumRuleCall(); | ||
2158 | |||
2159 | |||
2160 | } | ||
2161 | |||
2162 | |||
2163 | } | ||
2164 | |||
2165 | |||
2166 | } | ||
2167 | break; | ||
2168 | |||
2169 | default : | ||
2170 | break loop16; | ||
2171 | } | ||
2172 | } while (true); | ||
2173 | |||
2174 | otherlv_7=(Token)match(input,30,FOLLOW_24); | ||
2175 | |||
2176 | newLeafNode(otherlv_7, grammarAccess.getMappingDefinitionAccess().getRightParenthesisKeyword_6()); | ||
2177 | |||
2178 | // InternalCftLanguage.g:841:3: ( (lv_componentInstance_8_0= ruleComponentInstance ) )? | ||
2179 | int alt17=2; | ||
2180 | int LA17_0 = input.LA(1); | ||
2181 | |||
2182 | if ( (LA17_0==36) ) { | ||
2183 | alt17=1; | ||
2184 | } | ||
2185 | switch (alt17) { | ||
2186 | case 1 : | ||
2187 | // InternalCftLanguage.g:842:4: (lv_componentInstance_8_0= ruleComponentInstance ) | ||
2188 | { | ||
2189 | // InternalCftLanguage.g:842:4: (lv_componentInstance_8_0= ruleComponentInstance ) | ||
2190 | // InternalCftLanguage.g:843:5: lv_componentInstance_8_0= ruleComponentInstance | ||
2191 | { | ||
2192 | |||
2193 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getComponentInstanceComponentInstanceParserRuleCall_7_0()); | ||
2194 | |||
2195 | pushFollow(FOLLOW_25); | ||
2196 | lv_componentInstance_8_0=ruleComponentInstance(); | ||
2197 | |||
2198 | state._fsp--; | ||
2199 | |||
2200 | |||
2201 | if (current==null) { | ||
2202 | current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
2203 | } | ||
2204 | set( | ||
2205 | current, | ||
2206 | "componentInstance", | ||
2207 | lv_componentInstance_8_0, | ||
2208 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentInstance"); | ||
2209 | afterParserOrEnumRuleCall(); | ||
2210 | |||
2211 | |||
2212 | } | ||
2213 | |||
2214 | |||
2215 | } | ||
2216 | break; | ||
2217 | |||
2218 | } | ||
2219 | |||
2220 | // InternalCftLanguage.g:860:3: (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? | ||
2221 | int alt20=2; | ||
2222 | int LA20_0 = input.LA(1); | ||
2223 | |||
2224 | if ( (LA20_0==16) ) { | ||
2225 | alt20=1; | ||
2226 | } | ||
2227 | switch (alt20) { | ||
2228 | case 1 : | ||
2229 | // InternalCftLanguage.g:861:4: otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' | ||
2230 | { | ||
2231 | otherlv_9=(Token)match(input,16,FOLLOW_26); | ||
2232 | |||
2233 | newLeafNode(otherlv_9, grammarAccess.getMappingDefinitionAccess().getLeftCurlyBracketKeyword_8_0()); | ||
2234 | |||
2235 | // InternalCftLanguage.g:865:4: ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* | ||
2236 | loop19: | ||
2237 | do { | ||
2238 | int alt19=2; | ||
2239 | int LA19_0 = input.LA(1); | ||
2240 | |||
2241 | if ( (LA19_0==RULE_ID||LA19_0==31) ) { | ||
2242 | alt19=1; | ||
2243 | } | ||
2244 | |||
2245 | |||
2246 | switch (alt19) { | ||
2247 | case 1 : | ||
2248 | // InternalCftLanguage.g:866:5: ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' | ||
2249 | { | ||
2250 | // InternalCftLanguage.g:866:5: ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) | ||
2251 | int alt18=2; | ||
2252 | int LA18_0 = input.LA(1); | ||
2253 | |||
2254 | if ( (LA18_0==31) ) { | ||
2255 | alt18=1; | ||
2256 | } | ||
2257 | else if ( (LA18_0==RULE_ID) ) { | ||
2258 | alt18=2; | ||
2259 | } | ||
2260 | else { | ||
2261 | NoViableAltException nvae = | ||
2262 | new NoViableAltException("", 18, 0, input); | ||
2263 | |||
2264 | throw nvae; | ||
2265 | } | ||
2266 | switch (alt18) { | ||
2267 | case 1 : | ||
2268 | // InternalCftLanguage.g:867:6: ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ||
2269 | { | ||
2270 | // InternalCftLanguage.g:867:6: ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ||
2271 | // InternalCftLanguage.g:868:7: (lv_lookupDefinitions_10_0= ruleLookupDefinition ) | ||
2272 | { | ||
2273 | // InternalCftLanguage.g:868:7: (lv_lookupDefinitions_10_0= ruleLookupDefinition ) | ||
2274 | // InternalCftLanguage.g:869:8: lv_lookupDefinitions_10_0= ruleLookupDefinition | ||
2275 | { | ||
2276 | |||
2277 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0()); | ||
2278 | |||
2279 | pushFollow(FOLLOW_11); | ||
2280 | lv_lookupDefinitions_10_0=ruleLookupDefinition(); | ||
2281 | |||
2282 | state._fsp--; | ||
2283 | |||
2284 | |||
2285 | if (current==null) { | ||
2286 | current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
2287 | } | ||
2288 | add( | ||
2289 | current, | ||
2290 | "lookupDefinitions", | ||
2291 | lv_lookupDefinitions_10_0, | ||
2292 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.LookupDefinition"); | ||
2293 | afterParserOrEnumRuleCall(); | ||
2294 | |||
2295 | |||
2296 | } | ||
2297 | |||
2298 | |||
2299 | } | ||
2300 | |||
2301 | |||
2302 | } | ||
2303 | break; | ||
2304 | case 2 : | ||
2305 | // InternalCftLanguage.g:887:6: ( (lv_assignments_11_0= ruleAssignment ) ) | ||
2306 | { | ||
2307 | // InternalCftLanguage.g:887:6: ( (lv_assignments_11_0= ruleAssignment ) ) | ||
2308 | // InternalCftLanguage.g:888:7: (lv_assignments_11_0= ruleAssignment ) | ||
2309 | { | ||
2310 | // InternalCftLanguage.g:888:7: (lv_assignments_11_0= ruleAssignment ) | ||
2311 | // InternalCftLanguage.g:889:8: lv_assignments_11_0= ruleAssignment | ||
2312 | { | ||
2313 | |||
2314 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getAssignmentsAssignmentParserRuleCall_8_1_0_1_0()); | ||
2315 | |||
2316 | pushFollow(FOLLOW_11); | ||
2317 | lv_assignments_11_0=ruleAssignment(); | ||
2318 | |||
2319 | state._fsp--; | ||
2320 | |||
2321 | |||
2322 | if (current==null) { | ||
2323 | current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
2324 | } | ||
2325 | add( | ||
2326 | current, | ||
2327 | "assignments", | ||
2328 | lv_assignments_11_0, | ||
2329 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Assignment"); | ||
2330 | afterParserOrEnumRuleCall(); | ||
2331 | |||
2332 | |||
2333 | } | ||
2334 | |||
2335 | |||
2336 | } | ||
2337 | |||
2338 | |||
2339 | } | ||
2340 | break; | ||
2341 | |||
2342 | } | ||
2343 | |||
2344 | otherlv_12=(Token)match(input,13,FOLLOW_26); | ||
2345 | |||
2346 | newLeafNode(otherlv_12, grammarAccess.getMappingDefinitionAccess().getSemicolonKeyword_8_1_1()); | ||
2347 | |||
2348 | |||
2349 | } | ||
2350 | break; | ||
2351 | |||
2352 | default : | ||
2353 | break loop19; | ||
2354 | } | ||
2355 | } while (true); | ||
2356 | |||
2357 | otherlv_13=(Token)match(input,19,FOLLOW_2); | ||
2358 | |||
2359 | newLeafNode(otherlv_13, grammarAccess.getMappingDefinitionAccess().getRightCurlyBracketKeyword_8_2()); | ||
2360 | |||
2361 | |||
2362 | } | ||
2363 | break; | ||
2364 | |||
2365 | } | ||
2366 | |||
2367 | |||
2368 | } | ||
2369 | |||
2370 | |||
2371 | } | ||
2372 | |||
2373 | |||
2374 | leaveRule(); | ||
2375 | |||
2376 | } | ||
2377 | |||
2378 | catch (RecognitionException re) { | ||
2379 | recover(input,re); | ||
2380 | appendSkippedTokens(); | ||
2381 | } | ||
2382 | finally { | ||
2383 | } | ||
2384 | return current; | ||
2385 | } | ||
2386 | // $ANTLR end "ruleMappingDefinition" | ||
2387 | |||
2388 | |||
2389 | // $ANTLR start "entryRuleMappingParameter" | ||
2390 | // InternalCftLanguage.g:921:1: entryRuleMappingParameter returns [EObject current=null] : iv_ruleMappingParameter= ruleMappingParameter EOF ; | ||
2391 | public final EObject entryRuleMappingParameter() throws RecognitionException { | ||
2392 | EObject current = null; | ||
2393 | |||
2394 | EObject iv_ruleMappingParameter = null; | ||
2395 | |||
2396 | |||
2397 | try { | ||
2398 | // InternalCftLanguage.g:921:57: (iv_ruleMappingParameter= ruleMappingParameter EOF ) | ||
2399 | // InternalCftLanguage.g:922:2: iv_ruleMappingParameter= ruleMappingParameter EOF | ||
2400 | { | ||
2401 | newCompositeNode(grammarAccess.getMappingParameterRule()); | ||
2402 | pushFollow(FOLLOW_1); | ||
2403 | iv_ruleMappingParameter=ruleMappingParameter(); | ||
2404 | |||
2405 | state._fsp--; | ||
2406 | |||
2407 | current =iv_ruleMappingParameter; | ||
2408 | match(input,EOF,FOLLOW_2); | ||
2409 | |||
2410 | } | ||
2411 | |||
2412 | } | ||
2413 | |||
2414 | catch (RecognitionException re) { | ||
2415 | recover(input,re); | ||
2416 | appendSkippedTokens(); | ||
2417 | } | ||
2418 | finally { | ||
2419 | } | ||
2420 | return current; | ||
2421 | } | ||
2422 | // $ANTLR end "entryRuleMappingParameter" | ||
2423 | |||
2424 | |||
2425 | // $ANTLR start "ruleMappingParameter" | ||
2426 | // InternalCftLanguage.g:928:1: ruleMappingParameter returns [EObject current=null] : ( (lv_name_0_0= RULE_ID ) ) ; | ||
2427 | public final EObject ruleMappingParameter() throws RecognitionException { | ||
2428 | EObject current = null; | ||
2429 | |||
2430 | Token lv_name_0_0=null; | ||
2431 | |||
2432 | |||
2433 | enterRule(); | ||
2434 | |||
2435 | try { | ||
2436 | // InternalCftLanguage.g:934:2: ( ( (lv_name_0_0= RULE_ID ) ) ) | ||
2437 | // InternalCftLanguage.g:935:2: ( (lv_name_0_0= RULE_ID ) ) | ||
2438 | { | ||
2439 | // InternalCftLanguage.g:935:2: ( (lv_name_0_0= RULE_ID ) ) | ||
2440 | // InternalCftLanguage.g:936:3: (lv_name_0_0= RULE_ID ) | ||
2441 | { | ||
2442 | // InternalCftLanguage.g:936:3: (lv_name_0_0= RULE_ID ) | ||
2443 | // InternalCftLanguage.g:937:4: lv_name_0_0= RULE_ID | ||
2444 | { | ||
2445 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_2); | ||
2446 | |||
2447 | newLeafNode(lv_name_0_0, grammarAccess.getMappingParameterAccess().getNameIDTerminalRuleCall_0()); | ||
2448 | |||
2449 | |||
2450 | if (current==null) { | ||
2451 | current = createModelElement(grammarAccess.getMappingParameterRule()); | ||
2452 | } | ||
2453 | setWithLastConsumed( | ||
2454 | current, | ||
2455 | "name", | ||
2456 | lv_name_0_0, | ||
2457 | "org.eclipse.xtext.common.Terminals.ID"); | ||
2458 | |||
2459 | |||
2460 | } | ||
2461 | |||
2462 | |||
2463 | } | ||
2464 | |||
2465 | |||
2466 | } | ||
2467 | |||
2468 | |||
2469 | leaveRule(); | ||
2470 | |||
2471 | } | ||
2472 | |||
2473 | catch (RecognitionException re) { | ||
2474 | recover(input,re); | ||
2475 | appendSkippedTokens(); | ||
2476 | } | ||
2477 | finally { | ||
2478 | } | ||
2479 | return current; | ||
2480 | } | ||
2481 | // $ANTLR end "ruleMappingParameter" | ||
2482 | |||
2483 | |||
2484 | // $ANTLR start "entryRuleLookupDefinition" | ||
2485 | // InternalCftLanguage.g:956:1: entryRuleLookupDefinition returns [EObject current=null] : iv_ruleLookupDefinition= ruleLookupDefinition EOF ; | ||
2486 | public final EObject entryRuleLookupDefinition() throws RecognitionException { | ||
2487 | EObject current = null; | ||
2488 | |||
2489 | EObject iv_ruleLookupDefinition = null; | ||
2490 | |||
2491 | |||
2492 | try { | ||
2493 | // InternalCftLanguage.g:956:57: (iv_ruleLookupDefinition= ruleLookupDefinition EOF ) | ||
2494 | // InternalCftLanguage.g:957:2: iv_ruleLookupDefinition= ruleLookupDefinition EOF | ||
2495 | { | ||
2496 | newCompositeNode(grammarAccess.getLookupDefinitionRule()); | ||
2497 | pushFollow(FOLLOW_1); | ||
2498 | iv_ruleLookupDefinition=ruleLookupDefinition(); | ||
2499 | |||
2500 | state._fsp--; | ||
2501 | |||
2502 | current =iv_ruleLookupDefinition; | ||
2503 | match(input,EOF,FOLLOW_2); | ||
2504 | |||
2505 | } | ||
2506 | |||
2507 | } | ||
2508 | |||
2509 | catch (RecognitionException re) { | ||
2510 | recover(input,re); | ||
2511 | appendSkippedTokens(); | ||
2512 | } | ||
2513 | finally { | ||
2514 | } | ||
2515 | return current; | ||
2516 | } | ||
2517 | // $ANTLR end "entryRuleLookupDefinition" | ||
2518 | |||
2519 | |||
2520 | // $ANTLR start "ruleLookupDefinition" | ||
2521 | // InternalCftLanguage.g:963:1: ruleLookupDefinition returns [EObject current=null] : (otherlv_0= 'lookup' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( (otherlv_3= RULE_ID ) ) (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= RULE_ID ) ) ) ; | ||
2522 | public final EObject ruleLookupDefinition() throws RecognitionException { | ||
2523 | EObject current = null; | ||
2524 | |||
2525 | Token otherlv_0=null; | ||
2526 | Token otherlv_1=null; | ||
2527 | Token otherlv_2=null; | ||
2528 | Token otherlv_3=null; | ||
2529 | Token otherlv_4=null; | ||
2530 | Token otherlv_5=null; | ||
2531 | Token otherlv_6=null; | ||
2532 | Token otherlv_7=null; | ||
2533 | Token lv_name_8_0=null; | ||
2534 | |||
2535 | |||
2536 | enterRule(); | ||
2537 | |||
2538 | try { | ||
2539 | // InternalCftLanguage.g:969:2: ( (otherlv_0= 'lookup' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( (otherlv_3= RULE_ID ) ) (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= RULE_ID ) ) ) ) | ||
2540 | // InternalCftLanguage.g:970:2: (otherlv_0= 'lookup' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( (otherlv_3= RULE_ID ) ) (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= RULE_ID ) ) ) | ||
2541 | { | ||
2542 | // InternalCftLanguage.g:970:2: (otherlv_0= 'lookup' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( (otherlv_3= RULE_ID ) ) (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= RULE_ID ) ) ) | ||
2543 | // InternalCftLanguage.g:971:3: otherlv_0= 'lookup' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( (otherlv_3= RULE_ID ) ) (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= RULE_ID ) ) | ||
2544 | { | ||
2545 | otherlv_0=(Token)match(input,31,FOLLOW_3); | ||
2546 | |||
2547 | newLeafNode(otherlv_0, grammarAccess.getLookupDefinitionAccess().getLookupKeyword_0()); | ||
2548 | |||
2549 | // InternalCftLanguage.g:975:3: ( (otherlv_1= RULE_ID ) ) | ||
2550 | // InternalCftLanguage.g:976:4: (otherlv_1= RULE_ID ) | ||
2551 | { | ||
2552 | // InternalCftLanguage.g:976:4: (otherlv_1= RULE_ID ) | ||
2553 | // InternalCftLanguage.g:977:5: otherlv_1= RULE_ID | ||
2554 | { | ||
2555 | |||
2556 | if (current==null) { | ||
2557 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
2558 | } | ||
2559 | |||
2560 | otherlv_1=(Token)match(input,RULE_ID,FOLLOW_22); | ||
2561 | |||
2562 | newLeafNode(otherlv_1, grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionCrossReference_1_0()); | ||
2563 | |||
2564 | |||
2565 | } | ||
2566 | |||
2567 | |||
2568 | } | ||
2569 | |||
2570 | otherlv_2=(Token)match(input,28,FOLLOW_3); | ||
2571 | |||
2572 | newLeafNode(otherlv_2, grammarAccess.getLookupDefinitionAccess().getLeftParenthesisKeyword_2()); | ||
2573 | |||
2574 | // InternalCftLanguage.g:992:3: ( (otherlv_3= RULE_ID ) ) | ||
2575 | // InternalCftLanguage.g:993:4: (otherlv_3= RULE_ID ) | ||
2576 | { | ||
2577 | // InternalCftLanguage.g:993:4: (otherlv_3= RULE_ID ) | ||
2578 | // InternalCftLanguage.g:994:5: otherlv_3= RULE_ID | ||
2579 | { | ||
2580 | |||
2581 | if (current==null) { | ||
2582 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
2583 | } | ||
2584 | |||
2585 | otherlv_3=(Token)match(input,RULE_ID,FOLLOW_23); | ||
2586 | |||
2587 | newLeafNode(otherlv_3, grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_3_0()); | ||
2588 | |||
2589 | |||
2590 | } | ||
2591 | |||
2592 | |||
2593 | } | ||
2594 | |||
2595 | // InternalCftLanguage.g:1005:3: (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* | ||
2596 | loop21: | ||
2597 | do { | ||
2598 | int alt21=2; | ||
2599 | int LA21_0 = input.LA(1); | ||
2600 | |||
2601 | if ( (LA21_0==29) ) { | ||
2602 | alt21=1; | ||
2603 | } | ||
2604 | |||
2605 | |||
2606 | switch (alt21) { | ||
2607 | case 1 : | ||
2608 | // InternalCftLanguage.g:1006:4: otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) | ||
2609 | { | ||
2610 | otherlv_4=(Token)match(input,29,FOLLOW_3); | ||
2611 | |||
2612 | newLeafNode(otherlv_4, grammarAccess.getLookupDefinitionAccess().getCommaKeyword_4_0()); | ||
2613 | |||
2614 | // InternalCftLanguage.g:1010:4: ( (otherlv_5= RULE_ID ) ) | ||
2615 | // InternalCftLanguage.g:1011:5: (otherlv_5= RULE_ID ) | ||
2616 | { | ||
2617 | // InternalCftLanguage.g:1011:5: (otherlv_5= RULE_ID ) | ||
2618 | // InternalCftLanguage.g:1012:6: otherlv_5= RULE_ID | ||
2619 | { | ||
2620 | |||
2621 | if (current==null) { | ||
2622 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
2623 | } | ||
2624 | |||
2625 | otherlv_5=(Token)match(input,RULE_ID,FOLLOW_23); | ||
2626 | |||
2627 | newLeafNode(otherlv_5, grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_4_1_0()); | ||
2628 | |||
2629 | |||
2630 | } | ||
2631 | |||
2632 | |||
2633 | } | ||
2634 | |||
2635 | |||
2636 | } | ||
2637 | break; | ||
2638 | |||
2639 | default : | ||
2640 | break loop21; | ||
2641 | } | ||
2642 | } while (true); | ||
2643 | |||
2644 | otherlv_6=(Token)match(input,30,FOLLOW_27); | ||
2645 | |||
2646 | newLeafNode(otherlv_6, grammarAccess.getLookupDefinitionAccess().getRightParenthesisKeyword_5()); | ||
2647 | |||
2648 | otherlv_7=(Token)match(input,32,FOLLOW_3); | ||
2649 | |||
2650 | newLeafNode(otherlv_7, grammarAccess.getLookupDefinitionAccess().getAsKeyword_6()); | ||
2651 | |||
2652 | // InternalCftLanguage.g:1032:3: ( (lv_name_8_0= RULE_ID ) ) | ||
2653 | // InternalCftLanguage.g:1033:4: (lv_name_8_0= RULE_ID ) | ||
2654 | { | ||
2655 | // InternalCftLanguage.g:1033:4: (lv_name_8_0= RULE_ID ) | ||
2656 | // InternalCftLanguage.g:1034:5: lv_name_8_0= RULE_ID | ||
2657 | { | ||
2658 | lv_name_8_0=(Token)match(input,RULE_ID,FOLLOW_2); | ||
2659 | |||
2660 | newLeafNode(lv_name_8_0, grammarAccess.getLookupDefinitionAccess().getNameIDTerminalRuleCall_7_0()); | ||
2661 | |||
2662 | |||
2663 | if (current==null) { | ||
2664 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
2665 | } | ||
2666 | setWithLastConsumed( | ||
2667 | current, | ||
2668 | "name", | ||
2669 | lv_name_8_0, | ||
2670 | "org.eclipse.xtext.common.Terminals.ID"); | ||
2671 | |||
2672 | |||
2673 | } | ||
2674 | |||
2675 | |||
2676 | } | ||
2677 | |||
2678 | |||
2679 | } | ||
2680 | |||
2681 | |||
2682 | } | ||
2683 | |||
2684 | |||
2685 | leaveRule(); | ||
2686 | |||
2687 | } | ||
2688 | |||
2689 | catch (RecognitionException re) { | ||
2690 | recover(input,re); | ||
2691 | appendSkippedTokens(); | ||
2692 | } | ||
2693 | finally { | ||
2694 | } | ||
2695 | return current; | ||
2696 | } | ||
2697 | // $ANTLR end "ruleLookupDefinition" | ||
2698 | |||
2699 | |||
2700 | // $ANTLR start "entryRuleAssignment" | ||
2701 | // InternalCftLanguage.g:1054:1: entryRuleAssignment returns [EObject current=null] : iv_ruleAssignment= ruleAssignment EOF ; | ||
2702 | public final EObject entryRuleAssignment() throws RecognitionException { | ||
2703 | EObject current = null; | ||
2704 | |||
2705 | EObject iv_ruleAssignment = null; | ||
2706 | |||
2707 | |||
2708 | try { | ||
2709 | // InternalCftLanguage.g:1054:51: (iv_ruleAssignment= ruleAssignment EOF ) | ||
2710 | // InternalCftLanguage.g:1055:2: iv_ruleAssignment= ruleAssignment EOF | ||
2711 | { | ||
2712 | newCompositeNode(grammarAccess.getAssignmentRule()); | ||
2713 | pushFollow(FOLLOW_1); | ||
2714 | iv_ruleAssignment=ruleAssignment(); | ||
2715 | |||
2716 | state._fsp--; | ||
2717 | |||
2718 | current =iv_ruleAssignment; | ||
2719 | match(input,EOF,FOLLOW_2); | ||
2720 | |||
2721 | } | ||
2722 | |||
2723 | } | ||
2724 | |||
2725 | catch (RecognitionException re) { | ||
2726 | recover(input,re); | ||
2727 | appendSkippedTokens(); | ||
2728 | } | ||
2729 | finally { | ||
2730 | } | ||
2731 | return current; | ||
2732 | } | ||
2733 | // $ANTLR end "entryRuleAssignment" | ||
2734 | |||
2735 | |||
2736 | // $ANTLR start "ruleAssignment" | ||
2737 | // InternalCftLanguage.g:1061:1: ruleAssignment returns [EObject current=null] : ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) ; | ||
2738 | public final EObject ruleAssignment() throws RecognitionException { | ||
2739 | EObject current = null; | ||
2740 | |||
2741 | Token lv_multiple_1_0=null; | ||
2742 | Token otherlv_2=null; | ||
2743 | EObject lv_input_0_0 = null; | ||
2744 | |||
2745 | EObject lv_output_3_0 = null; | ||
2746 | |||
2747 | |||
2748 | |||
2749 | enterRule(); | ||
2750 | |||
2751 | try { | ||
2752 | // InternalCftLanguage.g:1067:2: ( ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) ) | ||
2753 | // InternalCftLanguage.g:1068:2: ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) | ||
2754 | { | ||
2755 | // InternalCftLanguage.g:1068:2: ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) | ||
2756 | // InternalCftLanguage.g:1069:3: ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) | ||
2757 | { | ||
2758 | // InternalCftLanguage.g:1069:3: ( (lv_input_0_0= ruleEventReference ) ) | ||
2759 | // InternalCftLanguage.g:1070:4: (lv_input_0_0= ruleEventReference ) | ||
2760 | { | ||
2761 | // InternalCftLanguage.g:1070:4: (lv_input_0_0= ruleEventReference ) | ||
2762 | // InternalCftLanguage.g:1071:5: lv_input_0_0= ruleEventReference | ||
2763 | { | ||
2764 | |||
2765 | newCompositeNode(grammarAccess.getAssignmentAccess().getInputEventReferenceParserRuleCall_0_0()); | ||
2766 | |||
2767 | pushFollow(FOLLOW_28); | ||
2768 | lv_input_0_0=ruleEventReference(); | ||
2769 | |||
2770 | state._fsp--; | ||
2771 | |||
2772 | |||
2773 | if (current==null) { | ||
2774 | current = createModelElementForParent(grammarAccess.getAssignmentRule()); | ||
2775 | } | ||
2776 | set( | ||
2777 | current, | ||
2778 | "input", | ||
2779 | lv_input_0_0, | ||
2780 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventReference"); | ||
2781 | afterParserOrEnumRuleCall(); | ||
2782 | |||
2783 | |||
2784 | } | ||
2785 | |||
2786 | |||
2787 | } | ||
2788 | |||
2789 | // InternalCftLanguage.g:1088:3: ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) | ||
2790 | int alt22=2; | ||
2791 | int LA22_0 = input.LA(1); | ||
2792 | |||
2793 | if ( (LA22_0==33) ) { | ||
2794 | alt22=1; | ||
2795 | } | ||
2796 | else if ( (LA22_0==34) ) { | ||
2797 | alt22=2; | ||
2798 | } | ||
2799 | else { | ||
2800 | NoViableAltException nvae = | ||
2801 | new NoViableAltException("", 22, 0, input); | ||
2802 | |||
2803 | throw nvae; | ||
2804 | } | ||
2805 | switch (alt22) { | ||
2806 | case 1 : | ||
2807 | // InternalCftLanguage.g:1089:4: ( (lv_multiple_1_0= '+=' ) ) | ||
2808 | { | ||
2809 | // InternalCftLanguage.g:1089:4: ( (lv_multiple_1_0= '+=' ) ) | ||
2810 | // InternalCftLanguage.g:1090:5: (lv_multiple_1_0= '+=' ) | ||
2811 | { | ||
2812 | // InternalCftLanguage.g:1090:5: (lv_multiple_1_0= '+=' ) | ||
2813 | // InternalCftLanguage.g:1091:6: lv_multiple_1_0= '+=' | ||
2814 | { | ||
2815 | lv_multiple_1_0=(Token)match(input,33,FOLLOW_29); | ||
2816 | |||
2817 | newLeafNode(lv_multiple_1_0, grammarAccess.getAssignmentAccess().getMultiplePlusSignEqualsSignKeyword_1_0_0()); | ||
2818 | |||
2819 | |||
2820 | if (current==null) { | ||
2821 | current = createModelElement(grammarAccess.getAssignmentRule()); | ||
2822 | } | ||
2823 | setWithLastConsumed(current, "multiple", true, "+="); | ||
2824 | |||
2825 | |||
2826 | } | ||
2827 | |||
2828 | |||
2829 | } | ||
2830 | |||
2831 | |||
2832 | } | ||
2833 | break; | ||
2834 | case 2 : | ||
2835 | // InternalCftLanguage.g:1104:4: otherlv_2= ':=' | ||
2836 | { | ||
2837 | otherlv_2=(Token)match(input,34,FOLLOW_29); | ||
2838 | |||
2839 | newLeafNode(otherlv_2, grammarAccess.getAssignmentAccess().getColonEqualsSignKeyword_1_1()); | ||
2840 | |||
2841 | |||
2842 | } | ||
2843 | break; | ||
2844 | |||
2845 | } | ||
2846 | |||
2847 | // InternalCftLanguage.g:1109:3: ( (lv_output_3_0= ruleEventReference ) ) | ||
2848 | // InternalCftLanguage.g:1110:4: (lv_output_3_0= ruleEventReference ) | ||
2849 | { | ||
2850 | // InternalCftLanguage.g:1110:4: (lv_output_3_0= ruleEventReference ) | ||
2851 | // InternalCftLanguage.g:1111:5: lv_output_3_0= ruleEventReference | ||
2852 | { | ||
2853 | |||
2854 | newCompositeNode(grammarAccess.getAssignmentAccess().getOutputEventReferenceParserRuleCall_2_0()); | ||
2855 | |||
2856 | pushFollow(FOLLOW_2); | ||
2857 | lv_output_3_0=ruleEventReference(); | ||
2858 | |||
2859 | state._fsp--; | ||
2860 | |||
2861 | |||
2862 | if (current==null) { | ||
2863 | current = createModelElementForParent(grammarAccess.getAssignmentRule()); | ||
2864 | } | ||
2865 | set( | ||
2866 | current, | ||
2867 | "output", | ||
2868 | lv_output_3_0, | ||
2869 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventReference"); | ||
2870 | afterParserOrEnumRuleCall(); | ||
2871 | |||
2872 | |||
2873 | } | ||
2874 | |||
2875 | |||
2876 | } | ||
2877 | |||
2878 | |||
2879 | } | ||
2880 | |||
2881 | |||
2882 | } | ||
2883 | |||
2884 | |||
2885 | leaveRule(); | ||
2886 | |||
2887 | } | ||
2888 | |||
2889 | catch (RecognitionException re) { | ||
2890 | recover(input,re); | ||
2891 | appendSkippedTokens(); | ||
2892 | } | ||
2893 | finally { | ||
2894 | } | ||
2895 | return current; | ||
2896 | } | ||
2897 | // $ANTLR end "ruleAssignment" | ||
2898 | |||
2899 | |||
2900 | // $ANTLR start "entryRuleEventReference" | ||
2901 | // InternalCftLanguage.g:1132:1: entryRuleEventReference returns [EObject current=null] : iv_ruleEventReference= ruleEventReference EOF ; | ||
2902 | public final EObject entryRuleEventReference() throws RecognitionException { | ||
2903 | EObject current = null; | ||
2904 | |||
2905 | EObject iv_ruleEventReference = null; | ||
2906 | |||
2907 | |||
2908 | try { | ||
2909 | // InternalCftLanguage.g:1132:55: (iv_ruleEventReference= ruleEventReference EOF ) | ||
2910 | // InternalCftLanguage.g:1133:2: iv_ruleEventReference= ruleEventReference EOF | ||
2911 | { | ||
2912 | newCompositeNode(grammarAccess.getEventReferenceRule()); | ||
2913 | pushFollow(FOLLOW_1); | ||
2914 | iv_ruleEventReference=ruleEventReference(); | ||
2915 | |||
2916 | state._fsp--; | ||
2917 | |||
2918 | current =iv_ruleEventReference; | ||
2919 | match(input,EOF,FOLLOW_2); | ||
2920 | |||
2921 | } | ||
2922 | |||
2923 | } | ||
2924 | |||
2925 | catch (RecognitionException re) { | ||
2926 | recover(input,re); | ||
2927 | appendSkippedTokens(); | ||
2928 | } | ||
2929 | finally { | ||
2930 | } | ||
2931 | return current; | ||
2932 | } | ||
2933 | // $ANTLR end "entryRuleEventReference" | ||
2934 | |||
2935 | |||
2936 | // $ANTLR start "ruleEventReference" | ||
2937 | // InternalCftLanguage.g:1139:1: ruleEventReference returns [EObject current=null] : ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) ; | ||
2938 | public final EObject ruleEventReference() throws RecognitionException { | ||
2939 | EObject current = null; | ||
2940 | |||
2941 | Token otherlv_0=null; | ||
2942 | Token otherlv_1=null; | ||
2943 | Token otherlv_2=null; | ||
2944 | |||
2945 | |||
2946 | enterRule(); | ||
2947 | |||
2948 | try { | ||
2949 | // InternalCftLanguage.g:1145:2: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) ) | ||
2950 | // InternalCftLanguage.g:1146:2: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) | ||
2951 | { | ||
2952 | // InternalCftLanguage.g:1146:2: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) | ||
2953 | // InternalCftLanguage.g:1147:3: ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) | ||
2954 | { | ||
2955 | // InternalCftLanguage.g:1147:3: ( (otherlv_0= RULE_ID ) ) | ||
2956 | // InternalCftLanguage.g:1148:4: (otherlv_0= RULE_ID ) | ||
2957 | { | ||
2958 | // InternalCftLanguage.g:1148:4: (otherlv_0= RULE_ID ) | ||
2959 | // InternalCftLanguage.g:1149:5: otherlv_0= RULE_ID | ||
2960 | { | ||
2961 | |||
2962 | if (current==null) { | ||
2963 | current = createModelElement(grammarAccess.getEventReferenceRule()); | ||
2964 | } | ||
2965 | |||
2966 | otherlv_0=(Token)match(input,RULE_ID,FOLLOW_30); | ||
2967 | |||
2968 | newLeafNode(otherlv_0, grammarAccess.getEventReferenceAccess().getComponentVariableCrossReference_0_0()); | ||
2969 | |||
2970 | |||
2971 | } | ||
2972 | |||
2973 | |||
2974 | } | ||
2975 | |||
2976 | otherlv_1=(Token)match(input,35,FOLLOW_3); | ||
2977 | |||
2978 | newLeafNode(otherlv_1, grammarAccess.getEventReferenceAccess().getFullStopKeyword_1()); | ||
2979 | |||
2980 | // InternalCftLanguage.g:1164:3: ( (otherlv_2= RULE_ID ) ) | ||
2981 | // InternalCftLanguage.g:1165:4: (otherlv_2= RULE_ID ) | ||
2982 | { | ||
2983 | // InternalCftLanguage.g:1165:4: (otherlv_2= RULE_ID ) | ||
2984 | // InternalCftLanguage.g:1166:5: otherlv_2= RULE_ID | ||
2985 | { | ||
2986 | |||
2987 | if (current==null) { | ||
2988 | current = createModelElement(grammarAccess.getEventReferenceRule()); | ||
2989 | } | ||
2990 | |||
2991 | otherlv_2=(Token)match(input,RULE_ID,FOLLOW_2); | ||
2992 | |||
2993 | newLeafNode(otherlv_2, grammarAccess.getEventReferenceAccess().getEventEventDeclarationCrossReference_2_0()); | ||
2994 | |||
2995 | |||
2996 | } | ||
2997 | |||
2998 | |||
2999 | } | ||
3000 | |||
3001 | |||
3002 | } | ||
3003 | |||
3004 | |||
3005 | } | ||
3006 | |||
3007 | |||
3008 | leaveRule(); | ||
3009 | |||
3010 | } | ||
3011 | |||
3012 | catch (RecognitionException re) { | ||
3013 | recover(input,re); | ||
3014 | appendSkippedTokens(); | ||
3015 | } | ||
3016 | finally { | ||
3017 | } | ||
3018 | return current; | ||
3019 | } | ||
3020 | // $ANTLR end "ruleEventReference" | ||
3021 | |||
3022 | |||
3023 | // $ANTLR start "entryRuleComponentInstance" | ||
3024 | // InternalCftLanguage.g:1181:1: entryRuleComponentInstance returns [EObject current=null] : iv_ruleComponentInstance= ruleComponentInstance EOF ; | ||
3025 | public final EObject entryRuleComponentInstance() throws RecognitionException { | ||
3026 | EObject current = null; | ||
3027 | |||
3028 | EObject iv_ruleComponentInstance = null; | ||
3029 | |||
3030 | |||
3031 | try { | ||
3032 | // InternalCftLanguage.g:1181:58: (iv_ruleComponentInstance= ruleComponentInstance EOF ) | ||
3033 | // InternalCftLanguage.g:1182:2: iv_ruleComponentInstance= ruleComponentInstance EOF | ||
3034 | { | ||
3035 | newCompositeNode(grammarAccess.getComponentInstanceRule()); | ||
3036 | pushFollow(FOLLOW_1); | ||
3037 | iv_ruleComponentInstance=ruleComponentInstance(); | ||
3038 | |||
3039 | state._fsp--; | ||
3040 | |||
3041 | current =iv_ruleComponentInstance; | ||
3042 | match(input,EOF,FOLLOW_2); | ||
3043 | |||
3044 | } | ||
3045 | |||
3046 | } | ||
3047 | |||
3048 | catch (RecognitionException re) { | ||
3049 | recover(input,re); | ||
3050 | appendSkippedTokens(); | ||
3051 | } | ||
3052 | finally { | ||
3053 | } | ||
3054 | return current; | ||
3055 | } | ||
3056 | // $ANTLR end "entryRuleComponentInstance" | ||
3057 | |||
3058 | |||
3059 | // $ANTLR start "ruleComponentInstance" | ||
3060 | // InternalCftLanguage.g:1188:1: ruleComponentInstance returns [EObject current=null] : (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) ; | ||
3061 | public final EObject ruleComponentInstance() throws RecognitionException { | ||
3062 | EObject current = null; | ||
3063 | |||
3064 | Token otherlv_0=null; | ||
3065 | Token lv_name_2_0=null; | ||
3066 | |||
3067 | |||
3068 | enterRule(); | ||
3069 | |||
3070 | try { | ||
3071 | // InternalCftLanguage.g:1194:2: ( (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) ) | ||
3072 | // InternalCftLanguage.g:1195:2: (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) | ||
3073 | { | ||
3074 | // InternalCftLanguage.g:1195:2: (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) | ||
3075 | // InternalCftLanguage.g:1196:3: otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? | ||
3076 | { | ||
3077 | otherlv_0=(Token)match(input,36,FOLLOW_3); | ||
3078 | |||
3079 | newLeafNode(otherlv_0, grammarAccess.getComponentInstanceAccess().getEqualsSignGreaterThanSignKeyword_0()); | ||
3080 | |||
3081 | // InternalCftLanguage.g:1200:3: ( ( ruleQualifiedName ) ) | ||
3082 | // InternalCftLanguage.g:1201:4: ( ruleQualifiedName ) | ||
3083 | { | ||
3084 | // InternalCftLanguage.g:1201:4: ( ruleQualifiedName ) | ||
3085 | // InternalCftLanguage.g:1202:5: ruleQualifiedName | ||
3086 | { | ||
3087 | |||
3088 | if (current==null) { | ||
3089 | current = createModelElement(grammarAccess.getComponentInstanceRule()); | ||
3090 | } | ||
3091 | |||
3092 | |||
3093 | newCompositeNode(grammarAccess.getComponentInstanceAccess().getComponentTypeComponentDefinitionCrossReference_1_0()); | ||
3094 | |||
3095 | pushFollow(FOLLOW_18); | ||
3096 | ruleQualifiedName(); | ||
3097 | |||
3098 | state._fsp--; | ||
3099 | |||
3100 | |||
3101 | afterParserOrEnumRuleCall(); | ||
3102 | |||
3103 | |||
3104 | } | ||
3105 | |||
3106 | |||
3107 | } | ||
3108 | |||
3109 | // InternalCftLanguage.g:1216:3: ( (lv_name_2_0= RULE_ID ) )? | ||
3110 | int alt23=2; | ||
3111 | int LA23_0 = input.LA(1); | ||
3112 | |||
3113 | if ( (LA23_0==RULE_ID) ) { | ||
3114 | alt23=1; | ||
3115 | } | ||
3116 | switch (alt23) { | ||
3117 | case 1 : | ||
3118 | // InternalCftLanguage.g:1217:4: (lv_name_2_0= RULE_ID ) | ||
3119 | { | ||
3120 | // InternalCftLanguage.g:1217:4: (lv_name_2_0= RULE_ID ) | ||
3121 | // InternalCftLanguage.g:1218:5: lv_name_2_0= RULE_ID | ||
3122 | { | ||
3123 | lv_name_2_0=(Token)match(input,RULE_ID,FOLLOW_2); | ||
3124 | |||
3125 | newLeafNode(lv_name_2_0, grammarAccess.getComponentInstanceAccess().getNameIDTerminalRuleCall_2_0()); | ||
3126 | |||
3127 | |||
3128 | if (current==null) { | ||
3129 | current = createModelElement(grammarAccess.getComponentInstanceRule()); | ||
3130 | } | ||
3131 | setWithLastConsumed( | ||
3132 | current, | ||
3133 | "name", | ||
3134 | lv_name_2_0, | ||
3135 | "org.eclipse.xtext.common.Terminals.ID"); | ||
3136 | |||
3137 | |||
3138 | } | ||
3139 | |||
3140 | |||
3141 | } | ||
3142 | break; | ||
3143 | |||
3144 | } | ||
3145 | |||
3146 | |||
3147 | } | ||
3148 | |||
3149 | |||
3150 | } | ||
3151 | |||
3152 | |||
3153 | leaveRule(); | ||
3154 | |||
3155 | } | ||
3156 | |||
3157 | catch (RecognitionException re) { | ||
3158 | recover(input,re); | ||
3159 | appendSkippedTokens(); | ||
3160 | } | ||
3161 | finally { | ||
3162 | } | ||
3163 | return current; | ||
3164 | } | ||
3165 | // $ANTLR end "ruleComponentInstance" | ||
3166 | |||
3167 | |||
3168 | // $ANTLR start "entryRuleQualifiedName" | ||
3169 | // InternalCftLanguage.g:1238:1: entryRuleQualifiedName returns [String current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ; | ||
3170 | public final String entryRuleQualifiedName() throws RecognitionException { | ||
3171 | String current = null; | ||
3172 | |||
3173 | AntlrDatatypeRuleToken iv_ruleQualifiedName = null; | ||
3174 | |||
3175 | |||
3176 | try { | ||
3177 | // InternalCftLanguage.g:1238:53: (iv_ruleQualifiedName= ruleQualifiedName EOF ) | ||
3178 | // InternalCftLanguage.g:1239:2: iv_ruleQualifiedName= ruleQualifiedName EOF | ||
3179 | { | ||
3180 | newCompositeNode(grammarAccess.getQualifiedNameRule()); | ||
3181 | pushFollow(FOLLOW_1); | ||
3182 | iv_ruleQualifiedName=ruleQualifiedName(); | ||
3183 | |||
3184 | state._fsp--; | ||
3185 | |||
3186 | current =iv_ruleQualifiedName.getText(); | ||
3187 | match(input,EOF,FOLLOW_2); | ||
3188 | |||
3189 | } | ||
3190 | |||
3191 | } | ||
3192 | |||
3193 | catch (RecognitionException re) { | ||
3194 | recover(input,re); | ||
3195 | appendSkippedTokens(); | ||
3196 | } | ||
3197 | finally { | ||
3198 | } | ||
3199 | return current; | ||
3200 | } | ||
3201 | // $ANTLR end "entryRuleQualifiedName" | ||
3202 | |||
3203 | |||
3204 | // $ANTLR start "ruleQualifiedName" | ||
3205 | // InternalCftLanguage.g:1245:1: ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) ; | ||
3206 | public final AntlrDatatypeRuleToken ruleQualifiedName() throws RecognitionException { | ||
3207 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); | ||
3208 | |||
3209 | Token this_ID_0=null; | ||
3210 | Token kw=null; | ||
3211 | Token this_ID_2=null; | ||
3212 | |||
3213 | |||
3214 | enterRule(); | ||
3215 | |||
3216 | try { | ||
3217 | // InternalCftLanguage.g:1251:2: ( (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) ) | ||
3218 | // InternalCftLanguage.g:1252:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) | ||
3219 | { | ||
3220 | // InternalCftLanguage.g:1252:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) | ||
3221 | // InternalCftLanguage.g:1253:3: this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* | ||
3222 | { | ||
3223 | this_ID_0=(Token)match(input,RULE_ID,FOLLOW_31); | ||
3224 | |||
3225 | current.merge(this_ID_0); | ||
3226 | |||
3227 | |||
3228 | newLeafNode(this_ID_0, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); | ||
3229 | |||
3230 | // InternalCftLanguage.g:1260:3: (kw= '.' this_ID_2= RULE_ID )* | ||
3231 | loop24: | ||
3232 | do { | ||
3233 | int alt24=2; | ||
3234 | int LA24_0 = input.LA(1); | ||
3235 | |||
3236 | if ( (LA24_0==35) ) { | ||
3237 | int LA24_2 = input.LA(2); | ||
3238 | |||
3239 | if ( (LA24_2==RULE_ID) ) { | ||
3240 | alt24=1; | ||
3241 | } | ||
3242 | |||
3243 | |||
3244 | } | ||
3245 | |||
3246 | |||
3247 | switch (alt24) { | ||
3248 | case 1 : | ||
3249 | // InternalCftLanguage.g:1261:4: kw= '.' this_ID_2= RULE_ID | ||
3250 | { | ||
3251 | kw=(Token)match(input,35,FOLLOW_3); | ||
3252 | |||
3253 | current.merge(kw); | ||
3254 | newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); | ||
3255 | |||
3256 | this_ID_2=(Token)match(input,RULE_ID,FOLLOW_31); | ||
3257 | |||
3258 | current.merge(this_ID_2); | ||
3259 | |||
3260 | |||
3261 | newLeafNode(this_ID_2, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); | ||
3262 | |||
3263 | |||
3264 | } | ||
3265 | break; | ||
3266 | |||
3267 | default : | ||
3268 | break loop24; | ||
3269 | } | ||
3270 | } while (true); | ||
3271 | |||
3272 | |||
3273 | } | ||
3274 | |||
3275 | |||
3276 | } | ||
3277 | |||
3278 | |||
3279 | leaveRule(); | ||
3280 | |||
3281 | } | ||
3282 | |||
3283 | catch (RecognitionException re) { | ||
3284 | recover(input,re); | ||
3285 | appendSkippedTokens(); | ||
3286 | } | ||
3287 | finally { | ||
3288 | } | ||
3289 | return current; | ||
3290 | } | ||
3291 | // $ANTLR end "ruleQualifiedName" | ||
3292 | |||
3293 | |||
3294 | // $ANTLR start "entryRuleQualifiedNameWithWildcard" | ||
3295 | // InternalCftLanguage.g:1278:1: entryRuleQualifiedNameWithWildcard returns [String current=null] : iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ; | ||
3296 | public final String entryRuleQualifiedNameWithWildcard() throws RecognitionException { | ||
3297 | String current = null; | ||
3298 | |||
3299 | AntlrDatatypeRuleToken iv_ruleQualifiedNameWithWildcard = null; | ||
3300 | |||
3301 | |||
3302 | try { | ||
3303 | // InternalCftLanguage.g:1278:65: (iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ) | ||
3304 | // InternalCftLanguage.g:1279:2: iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF | ||
3305 | { | ||
3306 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardRule()); | ||
3307 | pushFollow(FOLLOW_1); | ||
3308 | iv_ruleQualifiedNameWithWildcard=ruleQualifiedNameWithWildcard(); | ||
3309 | |||
3310 | state._fsp--; | ||
3311 | |||
3312 | current =iv_ruleQualifiedNameWithWildcard.getText(); | ||
3313 | match(input,EOF,FOLLOW_2); | ||
3314 | |||
3315 | } | ||
3316 | |||
3317 | } | ||
3318 | |||
3319 | catch (RecognitionException re) { | ||
3320 | recover(input,re); | ||
3321 | appendSkippedTokens(); | ||
3322 | } | ||
3323 | finally { | ||
3324 | } | ||
3325 | return current; | ||
3326 | } | ||
3327 | // $ANTLR end "entryRuleQualifiedNameWithWildcard" | ||
3328 | |||
3329 | |||
3330 | // $ANTLR start "ruleQualifiedNameWithWildcard" | ||
3331 | // InternalCftLanguage.g:1285:1: ruleQualifiedNameWithWildcard returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) ; | ||
3332 | public final AntlrDatatypeRuleToken ruleQualifiedNameWithWildcard() throws RecognitionException { | ||
3333 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); | ||
3334 | |||
3335 | Token kw=null; | ||
3336 | AntlrDatatypeRuleToken this_QualifiedName_0 = null; | ||
3337 | |||
3338 | |||
3339 | |||
3340 | enterRule(); | ||
3341 | |||
3342 | try { | ||
3343 | // InternalCftLanguage.g:1291:2: ( (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) ) | ||
3344 | // InternalCftLanguage.g:1292:2: (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) | ||
3345 | { | ||
3346 | // InternalCftLanguage.g:1292:2: (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) | ||
3347 | // InternalCftLanguage.g:1293:3: this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? | ||
3348 | { | ||
3349 | |||
3350 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); | ||
3351 | |||
3352 | pushFollow(FOLLOW_31); | ||
3353 | this_QualifiedName_0=ruleQualifiedName(); | ||
3354 | |||
3355 | state._fsp--; | ||
3356 | |||
3357 | |||
3358 | current.merge(this_QualifiedName_0); | ||
3359 | |||
3360 | |||
3361 | afterParserOrEnumRuleCall(); | ||
3362 | |||
3363 | // InternalCftLanguage.g:1303:3: (kw= '.' kw= '*' )? | ||
3364 | int alt25=2; | ||
3365 | int LA25_0 = input.LA(1); | ||
3366 | |||
3367 | if ( (LA25_0==35) ) { | ||
3368 | alt25=1; | ||
3369 | } | ||
3370 | switch (alt25) { | ||
3371 | case 1 : | ||
3372 | // InternalCftLanguage.g:1304:4: kw= '.' kw= '*' | ||
3373 | { | ||
3374 | kw=(Token)match(input,35,FOLLOW_32); | ||
3375 | |||
3376 | current.merge(kw); | ||
3377 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1_0()); | ||
3378 | |||
3379 | kw=(Token)match(input,37,FOLLOW_2); | ||
3380 | |||
3381 | current.merge(kw); | ||
3382 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_1_1()); | ||
3383 | |||
3384 | |||
3385 | } | ||
3386 | break; | ||
3387 | |||
3388 | } | ||
3389 | |||
3390 | |||
3391 | } | ||
3392 | |||
3393 | |||
3394 | } | ||
3395 | |||
3396 | |||
3397 | leaveRule(); | ||
3398 | |||
3399 | } | ||
3400 | |||
3401 | catch (RecognitionException re) { | ||
3402 | recover(input,re); | ||
3403 | appendSkippedTokens(); | ||
3404 | } | ||
3405 | finally { | ||
3406 | } | ||
3407 | return current; | ||
3408 | } | ||
3409 | // $ANTLR end "ruleQualifiedNameWithWildcard" | ||
3410 | |||
3411 | // Delegated rules | ||
3412 | |||
3413 | |||
3414 | |||
3415 | |||
3416 | public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L}); | ||
3417 | public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L}); | ||
3418 | public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x0000000000000010L}); | ||
3419 | public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x000000000200E002L}); | ||
3420 | public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x000000000200C002L}); | ||
3421 | public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000002008002L}); | ||
3422 | public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000002002L}); | ||
3423 | public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000010000L}); | ||
3424 | public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x00000000000E0010L}); | ||
3425 | public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000002010L}); | ||
3426 | public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000002000L}); | ||
3427 | public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000080010L}); | ||
3428 | public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000000100002L}); | ||
3429 | public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000000200000L}); | ||
3430 | public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000000400000L}); | ||
3431 | public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000000000020L}); | ||
3432 | public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000000800000L}); | ||
3433 | public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000000000012L}); | ||
3434 | public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000000001000000L}); | ||
3435 | public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x000000000C080000L}); | ||
3436 | public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000008000000L}); | ||
3437 | public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000000010000000L}); | ||
3438 | public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000000060000000L}); | ||
3439 | public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000001000010002L}); | ||
3440 | public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000000000010002L}); | ||
3441 | public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000000080080010L}); | ||
3442 | public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0000000100000000L}); | ||
3443 | public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000000600000000L}); | ||
3444 | public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000000080000010L}); | ||
3445 | public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x0000000800000000L}); | ||
3446 | public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000000800000002L}); | ||
3447 | public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0000002000000000L}); | ||
3448 | |||
3449 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/AbstractCftLanguageScopeProvider.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/AbstractCftLanguageScopeProvider.java new file mode 100644 index 00000000..def0ebe9 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/AbstractCftLanguageScopeProvider.java | |||
@@ -0,0 +1,9 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.scoping; | ||
5 | |||
6 | import org.eclipse.xtext.scoping.impl.DelegatingScopeProvider; | ||
7 | |||
8 | public abstract class AbstractCftLanguageScopeProvider extends DelegatingScopeProvider { | ||
9 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSemanticSequencer.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSemanticSequencer.java new file mode 100644 index 00000000..18682f69 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSemanticSequencer.java | |||
@@ -0,0 +1,315 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.serializer; | ||
5 | |||
6 | import com.google.inject.Inject; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.AndGate; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
11 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel; | ||
12 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition; | ||
13 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance; | ||
14 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference; | ||
15 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration; | ||
16 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent; | ||
17 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition; | ||
18 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition; | ||
19 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter; | ||
20 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.OrGate; | ||
21 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition; | ||
22 | import hu.bme.mit.inf.dslreasoner.faulttree.components.services.CftLanguageGrammarAccess; | ||
23 | import java.util.Set; | ||
24 | import org.eclipse.emf.ecore.EObject; | ||
25 | import org.eclipse.emf.ecore.EPackage; | ||
26 | import org.eclipse.xtext.Action; | ||
27 | import org.eclipse.xtext.Parameter; | ||
28 | import org.eclipse.xtext.ParserRule; | ||
29 | import org.eclipse.xtext.serializer.ISerializationContext; | ||
30 | import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; | ||
31 | import org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer; | ||
32 | import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient; | ||
33 | |||
34 | @SuppressWarnings("all") | ||
35 | public class CftLanguageSemanticSequencer extends AbstractDelegatingSemanticSequencer { | ||
36 | |||
37 | @Inject | ||
38 | private CftLanguageGrammarAccess grammarAccess; | ||
39 | |||
40 | @Override | ||
41 | public void sequence(ISerializationContext context, EObject semanticObject) { | ||
42 | EPackage epackage = semanticObject.eClass().getEPackage(); | ||
43 | ParserRule rule = context.getParserRule(); | ||
44 | Action action = context.getAssignedAction(); | ||
45 | Set<Parameter> parameters = context.getEnabledBooleanParameters(); | ||
46 | if (epackage == CftLanguagePackage.eINSTANCE) | ||
47 | switch (semanticObject.eClass().getClassifierID()) { | ||
48 | case CftLanguagePackage.AND_GATE: | ||
49 | sequence_AndGate(context, (AndGate) semanticObject); | ||
50 | return; | ||
51 | case CftLanguagePackage.ASSIGNMENT: | ||
52 | sequence_Assignment(context, (Assignment) semanticObject); | ||
53 | return; | ||
54 | case CftLanguagePackage.BASIC_EVENT_DEFINITION: | ||
55 | sequence_BasicEventDefinition(context, (BasicEventDefinition) semanticObject); | ||
56 | return; | ||
57 | case CftLanguagePackage.CFT_MODEL: | ||
58 | sequence_CftModel(context, (CftModel) semanticObject); | ||
59 | return; | ||
60 | case CftLanguagePackage.COMPONENT_DEFINITION: | ||
61 | sequence_ComponentDefinition(context, (ComponentDefinition) semanticObject); | ||
62 | return; | ||
63 | case CftLanguagePackage.COMPONENT_INSTANCE: | ||
64 | sequence_ComponentInstance(context, (ComponentInstance) semanticObject); | ||
65 | return; | ||
66 | case CftLanguagePackage.EVENT_REFERENCE: | ||
67 | sequence_EventReference(context, (EventReference) semanticObject); | ||
68 | return; | ||
69 | case CftLanguagePackage.IMPORT_DECLARATION: | ||
70 | sequence_ImportDeclaration(context, (ImportDeclaration) semanticObject); | ||
71 | return; | ||
72 | case CftLanguagePackage.INPUT_EVENT: | ||
73 | sequence_InputEvent(context, (InputEvent) semanticObject); | ||
74 | return; | ||
75 | case CftLanguagePackage.LOOKUP_DEFINITION: | ||
76 | sequence_LookupDefinition(context, (LookupDefinition) semanticObject); | ||
77 | return; | ||
78 | case CftLanguagePackage.MAPPING_DEFINITION: | ||
79 | sequence_MappingDefinition(context, (MappingDefinition) semanticObject); | ||
80 | return; | ||
81 | case CftLanguagePackage.MAPPING_PARAMETER: | ||
82 | sequence_MappingParameter(context, (MappingParameter) semanticObject); | ||
83 | return; | ||
84 | case CftLanguagePackage.OR_GATE: | ||
85 | sequence_OrGate(context, (OrGate) semanticObject); | ||
86 | return; | ||
87 | case CftLanguagePackage.TRANSFORMATION_DEFINITION: | ||
88 | sequence_TransformationDefinition(context, (TransformationDefinition) semanticObject); | ||
89 | return; | ||
90 | } | ||
91 | if (errorAcceptor != null) | ||
92 | errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * Contexts: | ||
97 | * EventDeclaration returns AndGate | ||
98 | * EventDefinition returns AndGate | ||
99 | * GateDefinition returns AndGate | ||
100 | * AndGate returns AndGate | ||
101 | * | ||
102 | * Constraint: | ||
103 | * (name=ID inputEvents+=[EventDeclaration|ID]*) | ||
104 | */ | ||
105 | protected void sequence_AndGate(ISerializationContext context, AndGate semanticObject) { | ||
106 | genericSequencer.createSequence(context, semanticObject); | ||
107 | } | ||
108 | |||
109 | |||
110 | /** | ||
111 | * Contexts: | ||
112 | * Assignment returns Assignment | ||
113 | * | ||
114 | * Constraint: | ||
115 | * (input=EventReference multiple?='+='? output=EventReference) | ||
116 | */ | ||
117 | protected void sequence_Assignment(ISerializationContext context, Assignment semanticObject) { | ||
118 | genericSequencer.createSequence(context, semanticObject); | ||
119 | } | ||
120 | |||
121 | |||
122 | /** | ||
123 | * Contexts: | ||
124 | * EventDeclaration returns BasicEventDefinition | ||
125 | * EventDefinition returns BasicEventDefinition | ||
126 | * BasicEventDefinition returns BasicEventDefinition | ||
127 | * | ||
128 | * Constraint: | ||
129 | * (name=ID rate=DOULBE) | ||
130 | */ | ||
131 | protected void sequence_BasicEventDefinition(ISerializationContext context, BasicEventDefinition semanticObject) { | ||
132 | if (errorAcceptor != null) { | ||
133 | if (transientValues.isValueTransient(semanticObject, CftLanguagePackage.Literals.EVENT_DECLARATION__NAME) == ValueTransient.YES) | ||
134 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.EVENT_DECLARATION__NAME)); | ||
135 | if (transientValues.isValueTransient(semanticObject, CftLanguagePackage.Literals.BASIC_EVENT_DEFINITION__RATE) == ValueTransient.YES) | ||
136 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.BASIC_EVENT_DEFINITION__RATE)); | ||
137 | } | ||
138 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | ||
139 | feeder.accept(grammarAccess.getBasicEventDefinitionAccess().getNameIDTerminalRuleCall_0_0(), semanticObject.getName()); | ||
140 | feeder.accept(grammarAccess.getBasicEventDefinitionAccess().getRateDOULBETerminalRuleCall_3_0(), semanticObject.getRate()); | ||
141 | feeder.finish(); | ||
142 | } | ||
143 | |||
144 | |||
145 | /** | ||
146 | * Contexts: | ||
147 | * CftModel returns CftModel | ||
148 | * | ||
149 | * Constraint: | ||
150 | * ( | ||
151 | * packageName=QualifiedName | ||
152 | * imports+=ImportDeclaration* | ||
153 | * (componentDefinitions+=ComponentDefinition | transformationDefinitions+=TransformationDefinition)* | ||
154 | * ) | ||
155 | */ | ||
156 | protected void sequence_CftModel(ISerializationContext context, CftModel semanticObject) { | ||
157 | genericSequencer.createSequence(context, semanticObject); | ||
158 | } | ||
159 | |||
160 | |||
161 | /** | ||
162 | * Contexts: | ||
163 | * ComponentDefinition returns ComponentDefinition | ||
164 | * | ||
165 | * Constraint: | ||
166 | * (name=ID (inputEvents+=InputEvent | outputEvents+=[EventDeclaration|ID])* eventDefinitions+=EventDefinition*) | ||
167 | */ | ||
168 | protected void sequence_ComponentDefinition(ISerializationContext context, ComponentDefinition semanticObject) { | ||
169 | genericSequencer.createSequence(context, semanticObject); | ||
170 | } | ||
171 | |||
172 | |||
173 | /** | ||
174 | * Contexts: | ||
175 | * Variable returns ComponentInstance | ||
176 | * ComponentInstance returns ComponentInstance | ||
177 | * | ||
178 | * Constraint: | ||
179 | * (componentType=[ComponentDefinition|QualifiedName] name=ID?) | ||
180 | */ | ||
181 | protected void sequence_ComponentInstance(ISerializationContext context, ComponentInstance semanticObject) { | ||
182 | genericSequencer.createSequence(context, semanticObject); | ||
183 | } | ||
184 | |||
185 | |||
186 | /** | ||
187 | * Contexts: | ||
188 | * EventReference returns EventReference | ||
189 | * | ||
190 | * Constraint: | ||
191 | * (component=[Variable|ID] event=[EventDeclaration|ID]) | ||
192 | */ | ||
193 | protected void sequence_EventReference(ISerializationContext context, EventReference semanticObject) { | ||
194 | if (errorAcceptor != null) { | ||
195 | if (transientValues.isValueTransient(semanticObject, CftLanguagePackage.Literals.EVENT_REFERENCE__COMPONENT) == ValueTransient.YES) | ||
196 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.EVENT_REFERENCE__COMPONENT)); | ||
197 | if (transientValues.isValueTransient(semanticObject, CftLanguagePackage.Literals.EVENT_REFERENCE__EVENT) == ValueTransient.YES) | ||
198 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.EVENT_REFERENCE__EVENT)); | ||
199 | } | ||
200 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | ||
201 | feeder.accept(grammarAccess.getEventReferenceAccess().getComponentVariableIDTerminalRuleCall_0_0_1(), semanticObject.eGet(CftLanguagePackage.Literals.EVENT_REFERENCE__COMPONENT, false)); | ||
202 | feeder.accept(grammarAccess.getEventReferenceAccess().getEventEventDeclarationIDTerminalRuleCall_2_0_1(), semanticObject.eGet(CftLanguagePackage.Literals.EVENT_REFERENCE__EVENT, false)); | ||
203 | feeder.finish(); | ||
204 | } | ||
205 | |||
206 | |||
207 | /** | ||
208 | * Contexts: | ||
209 | * ImportDeclaration returns ImportDeclaration | ||
210 | * | ||
211 | * Constraint: | ||
212 | * importedNamespace=QualifiedNameWithWildcard | ||
213 | */ | ||
214 | protected void sequence_ImportDeclaration(ISerializationContext context, ImportDeclaration semanticObject) { | ||
215 | if (errorAcceptor != null) { | ||
216 | if (transientValues.isValueTransient(semanticObject, CftLanguagePackage.Literals.IMPORT_DECLARATION__IMPORTED_NAMESPACE) == ValueTransient.YES) | ||
217 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.IMPORT_DECLARATION__IMPORTED_NAMESPACE)); | ||
218 | } | ||
219 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | ||
220 | feeder.accept(grammarAccess.getImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_0(), semanticObject.getImportedNamespace()); | ||
221 | feeder.finish(); | ||
222 | } | ||
223 | |||
224 | |||
225 | /** | ||
226 | * Contexts: | ||
227 | * EventDeclaration returns InputEvent | ||
228 | * InputEvent returns InputEvent | ||
229 | * | ||
230 | * Constraint: | ||
231 | * (name=ID multiple?='[]'?) | ||
232 | */ | ||
233 | protected void sequence_InputEvent(ISerializationContext context, InputEvent semanticObject) { | ||
234 | genericSequencer.createSequence(context, semanticObject); | ||
235 | } | ||
236 | |||
237 | |||
238 | /** | ||
239 | * Contexts: | ||
240 | * LookupDefinition returns LookupDefinition | ||
241 | * Variable returns LookupDefinition | ||
242 | * | ||
243 | * Constraint: | ||
244 | * (mapping=[MappingDefinition|ID] arguments+=[MappingParameter|ID] arguments+=[MappingParameter|ID]* name=ID) | ||
245 | */ | ||
246 | protected void sequence_LookupDefinition(ISerializationContext context, LookupDefinition semanticObject) { | ||
247 | genericSequencer.createSequence(context, semanticObject); | ||
248 | } | ||
249 | |||
250 | |||
251 | /** | ||
252 | * Contexts: | ||
253 | * MappingDefinition returns MappingDefinition | ||
254 | * | ||
255 | * Constraint: | ||
256 | * ( | ||
257 | * topLevel?='toplevel'? | ||
258 | * pattern=[Pattern|QualifiedName] | ||
259 | * parameters+=MappingParameter | ||
260 | * parameters+=MappingParameter* | ||
261 | * componentInstance=ComponentInstance? | ||
262 | * (lookupDefinitions+=LookupDefinition | assignments+=Assignment)* | ||
263 | * ) | ||
264 | */ | ||
265 | protected void sequence_MappingDefinition(ISerializationContext context, MappingDefinition semanticObject) { | ||
266 | genericSequencer.createSequence(context, semanticObject); | ||
267 | } | ||
268 | |||
269 | |||
270 | /** | ||
271 | * Contexts: | ||
272 | * MappingParameter returns MappingParameter | ||
273 | * | ||
274 | * Constraint: | ||
275 | * name=ID | ||
276 | */ | ||
277 | protected void sequence_MappingParameter(ISerializationContext context, MappingParameter semanticObject) { | ||
278 | if (errorAcceptor != null) { | ||
279 | if (transientValues.isValueTransient(semanticObject, CftLanguagePackage.Literals.MAPPING_PARAMETER__NAME) == ValueTransient.YES) | ||
280 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.MAPPING_PARAMETER__NAME)); | ||
281 | } | ||
282 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | ||
283 | feeder.accept(grammarAccess.getMappingParameterAccess().getNameIDTerminalRuleCall_0(), semanticObject.getName()); | ||
284 | feeder.finish(); | ||
285 | } | ||
286 | |||
287 | |||
288 | /** | ||
289 | * Contexts: | ||
290 | * EventDeclaration returns OrGate | ||
291 | * EventDefinition returns OrGate | ||
292 | * GateDefinition returns OrGate | ||
293 | * OrGate returns OrGate | ||
294 | * | ||
295 | * Constraint: | ||
296 | * (name=ID inputEvents+=[EventDeclaration|ID]*) | ||
297 | */ | ||
298 | protected void sequence_OrGate(ISerializationContext context, OrGate semanticObject) { | ||
299 | genericSequencer.createSequence(context, semanticObject); | ||
300 | } | ||
301 | |||
302 | |||
303 | /** | ||
304 | * Contexts: | ||
305 | * TransformationDefinition returns TransformationDefinition | ||
306 | * | ||
307 | * Constraint: | ||
308 | * (name=ID mappingDefinitions+=MappingDefinition*) | ||
309 | */ | ||
310 | protected void sequence_TransformationDefinition(ISerializationContext context, TransformationDefinition semanticObject) { | ||
311 | genericSequencer.createSequence(context, semanticObject); | ||
312 | } | ||
313 | |||
314 | |||
315 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSyntacticSequencer.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSyntacticSequencer.java new file mode 100644 index 00000000..65b39fb2 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSyntacticSequencer.java | |||
@@ -0,0 +1,242 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.serializer; | ||
5 | |||
6 | import com.google.inject.Inject; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.services.CftLanguageGrammarAccess; | ||
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.GrammarAlias.AlternativeAlias; | ||
15 | import org.eclipse.xtext.serializer.analysis.GrammarAlias.GroupAlias; | ||
16 | import org.eclipse.xtext.serializer.analysis.GrammarAlias.TokenAlias; | ||
17 | import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable; | ||
18 | import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; | ||
19 | import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer; | ||
20 | |||
21 | @SuppressWarnings("all") | ||
22 | public class CftLanguageSyntacticSequencer extends AbstractSyntacticSequencer { | ||
23 | |||
24 | protected CftLanguageGrammarAccess grammarAccess; | ||
25 | protected AbstractElementAlias match_CftModel_SemicolonKeyword_2_q; | ||
26 | protected AbstractElementAlias match_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a__a; | ||
27 | protected AbstractElementAlias match_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a; | ||
28 | protected AbstractElementAlias match_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a__a; | ||
29 | protected AbstractElementAlias match_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a; | ||
30 | protected AbstractElementAlias match_ComponentDefinition___SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a_InKeyword_3_0_0__a; | ||
31 | protected AbstractElementAlias match_ComponentDefinition___SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a_OutKeyword_3_1_0__a; | ||
32 | protected AbstractElementAlias match_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2___or___OutKeyword_3_1_0_SemicolonKeyword_3_1_2____a; | ||
33 | protected AbstractElementAlias match_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2__q___InKeyword_3_0_0_SemicolonKeyword_3_0_2_OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q__p; | ||
34 | protected AbstractElementAlias match_ComponentDefinition_____OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q___OutKeyword_3_1_0_SemicolonKeyword_3_1_2_InKeyword_3_0_0_SemicolonKeyword_3_0_2__q__p; | ||
35 | protected AbstractElementAlias match_ImportDeclaration_SemicolonKeyword_2_q; | ||
36 | protected AbstractElementAlias match_MappingDefinition___LeftCurlyBracketKeyword_8_0_RightCurlyBracketKeyword_8_2__q; | ||
37 | |||
38 | @Inject | ||
39 | protected void init(IGrammarAccess access) { | ||
40 | grammarAccess = (CftLanguageGrammarAccess) access; | ||
41 | match_CftModel_SemicolonKeyword_2_q = new TokenAlias(false, true, grammarAccess.getCftModelAccess().getSemicolonKeyword_2()); | ||
42 | match_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a__a = new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()), new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()))); | ||
43 | match_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a = new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2())); | ||
44 | match_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a__a = new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()), new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()))); | ||
45 | match_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a = new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2())); | ||
46 | match_ComponentDefinition___SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a_InKeyword_3_0_0__a = new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()), new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2())), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0())); | ||
47 | match_ComponentDefinition___SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a_OutKeyword_3_1_0__a = new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()), new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2())), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0())); | ||
48 | match_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2___or___OutKeyword_3_1_0_SemicolonKeyword_3_1_2____a = new AlternativeAlias(true, true, new GroupAlias(false, false, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2())), new GroupAlias(false, false, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()))); | ||
49 | match_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2__q___InKeyword_3_0_0_SemicolonKeyword_3_0_2_OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q__p = new GroupAlias(true, false, new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2())), new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()))); | ||
50 | match_ComponentDefinition_____OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q___OutKeyword_3_1_0_SemicolonKeyword_3_1_2_InKeyword_3_0_0_SemicolonKeyword_3_0_2__q__p = new GroupAlias(true, false, new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2())), new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()))); | ||
51 | match_ImportDeclaration_SemicolonKeyword_2_q = new TokenAlias(false, true, grammarAccess.getImportDeclarationAccess().getSemicolonKeyword_2()); | ||
52 | match_MappingDefinition___LeftCurlyBracketKeyword_8_0_RightCurlyBracketKeyword_8_2__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getMappingDefinitionAccess().getLeftCurlyBracketKeyword_8_0()), new TokenAlias(false, false, grammarAccess.getMappingDefinitionAccess().getRightCurlyBracketKeyword_8_2())); | ||
53 | } | ||
54 | |||
55 | @Override | ||
56 | protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) { | ||
57 | return ""; | ||
58 | } | ||
59 | |||
60 | |||
61 | @Override | ||
62 | protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) { | ||
63 | if (transition.getAmbiguousSyntaxes().isEmpty()) return; | ||
64 | List<INode> transitionNodes = collectNodes(fromNode, toNode); | ||
65 | for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) { | ||
66 | List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax); | ||
67 | if (match_CftModel_SemicolonKeyword_2_q.equals(syntax)) | ||
68 | emit_CftModel_SemicolonKeyword_2_q(semanticObject, getLastNavigableState(), syntaxNodes); | ||
69 | else if (match_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a__a.equals(syntax)) | ||
70 | emit_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a__a(semanticObject, getLastNavigableState(), syntaxNodes); | ||
71 | else if (match_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a.equals(syntax)) | ||
72 | emit_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a(semanticObject, getLastNavigableState(), syntaxNodes); | ||
73 | else if (match_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a__a.equals(syntax)) | ||
74 | emit_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a__a(semanticObject, getLastNavigableState(), syntaxNodes); | ||
75 | else if (match_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a.equals(syntax)) | ||
76 | emit_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a(semanticObject, getLastNavigableState(), syntaxNodes); | ||
77 | else if (match_ComponentDefinition___SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a_InKeyword_3_0_0__a.equals(syntax)) | ||
78 | emit_ComponentDefinition___SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a_InKeyword_3_0_0__a(semanticObject, getLastNavigableState(), syntaxNodes); | ||
79 | else if (match_ComponentDefinition___SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a_OutKeyword_3_1_0__a.equals(syntax)) | ||
80 | emit_ComponentDefinition___SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a_OutKeyword_3_1_0__a(semanticObject, getLastNavigableState(), syntaxNodes); | ||
81 | else if (match_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2___or___OutKeyword_3_1_0_SemicolonKeyword_3_1_2____a.equals(syntax)) | ||
82 | emit_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2___or___OutKeyword_3_1_0_SemicolonKeyword_3_1_2____a(semanticObject, getLastNavigableState(), syntaxNodes); | ||
83 | else if (match_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2__q___InKeyword_3_0_0_SemicolonKeyword_3_0_2_OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q__p.equals(syntax)) | ||
84 | emit_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2__q___InKeyword_3_0_0_SemicolonKeyword_3_0_2_OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q__p(semanticObject, getLastNavigableState(), syntaxNodes); | ||
85 | else if (match_ComponentDefinition_____OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q___OutKeyword_3_1_0_SemicolonKeyword_3_1_2_InKeyword_3_0_0_SemicolonKeyword_3_0_2__q__p.equals(syntax)) | ||
86 | emit_ComponentDefinition_____OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q___OutKeyword_3_1_0_SemicolonKeyword_3_1_2_InKeyword_3_0_0_SemicolonKeyword_3_0_2__q__p(semanticObject, getLastNavigableState(), syntaxNodes); | ||
87 | else if (match_ImportDeclaration_SemicolonKeyword_2_q.equals(syntax)) | ||
88 | emit_ImportDeclaration_SemicolonKeyword_2_q(semanticObject, getLastNavigableState(), syntaxNodes); | ||
89 | else if (match_MappingDefinition___LeftCurlyBracketKeyword_8_0_RightCurlyBracketKeyword_8_2__q.equals(syntax)) | ||
90 | emit_MappingDefinition___LeftCurlyBracketKeyword_8_0_RightCurlyBracketKeyword_8_2__q(semanticObject, getLastNavigableState(), syntaxNodes); | ||
91 | else acceptNodes(getLastNavigableState(), syntaxNodes); | ||
92 | } | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * Ambiguous syntax: | ||
97 | * ';'? | ||
98 | * | ||
99 | * This ambiguous syntax occurs at: | ||
100 | * packageName=QualifiedName (ambiguity) (rule end) | ||
101 | * packageName=QualifiedName (ambiguity) componentDefinitions+=ComponentDefinition | ||
102 | * packageName=QualifiedName (ambiguity) imports+=ImportDeclaration | ||
103 | * packageName=QualifiedName (ambiguity) transformationDefinitions+=TransformationDefinition | ||
104 | */ | ||
105 | protected void emit_CftModel_SemicolonKeyword_2_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
106 | acceptNodes(transition, nodes); | ||
107 | } | ||
108 | |||
109 | /** | ||
110 | * Ambiguous syntax: | ||
111 | * ('in' ';' ('out' ';')*)* | ||
112 | * | ||
113 | * This ambiguous syntax occurs at: | ||
114 | * inputEvents+=InputEvent ';' ('out' ';')* (ambiguity) '}' (rule end) | ||
115 | * inputEvents+=InputEvent ';' ('out' ';')* (ambiguity) eventDefinitions+=EventDefinition | ||
116 | */ | ||
117 | protected void emit_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
118 | acceptNodes(transition, nodes); | ||
119 | } | ||
120 | |||
121 | /** | ||
122 | * Ambiguous syntax: | ||
123 | * ('in' ';')* | ||
124 | * | ||
125 | * This ambiguous syntax occurs at: | ||
126 | * inputEvents+=InputEvent ';' (ambiguity) (('out' ';')? ('out' ';' 'in' ';')?)+ 'out' outputEvents+=[EventDeclaration|ID] | ||
127 | * name=ID '{' (ambiguity) 'out' (';' (ambiguity) 'out')* outputEvents+=[EventDeclaration|ID] | ||
128 | * outputEvents+=[EventDeclaration|ID] ';' (ambiguity) ('out' ';' (ambiguity))* '}' (rule end) | ||
129 | * outputEvents+=[EventDeclaration|ID] ';' (ambiguity) ('out' ';' (ambiguity))* eventDefinitions+=EventDefinition | ||
130 | */ | ||
131 | protected void emit_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
132 | acceptNodes(transition, nodes); | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * Ambiguous syntax: | ||
137 | * ('out' ';' ('in' ';')*)* | ||
138 | * | ||
139 | * This ambiguous syntax occurs at: | ||
140 | * outputEvents+=[EventDeclaration|ID] ';' ('in' ';')* (ambiguity) '}' (rule end) | ||
141 | * outputEvents+=[EventDeclaration|ID] ';' ('in' ';')* (ambiguity) eventDefinitions+=EventDefinition | ||
142 | */ | ||
143 | protected void emit_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
144 | acceptNodes(transition, nodes); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * Ambiguous syntax: | ||
149 | * ('out' ';')* | ||
150 | * | ||
151 | * This ambiguous syntax occurs at: | ||
152 | * inputEvents+=InputEvent ';' (ambiguity) ('in' ';' (ambiguity))* '}' (rule end) | ||
153 | * inputEvents+=InputEvent ';' (ambiguity) ('in' ';' (ambiguity))* eventDefinitions+=EventDefinition | ||
154 | * name=ID '{' (ambiguity) 'in' (';' (ambiguity) 'in')* inputEvents+=InputEvent | ||
155 | * outputEvents+=[EventDeclaration|ID] ';' (ambiguity) (('in' ';')? ('in' ';' 'out' ';')?)+ 'in' inputEvents+=InputEvent | ||
156 | */ | ||
157 | protected void emit_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
158 | acceptNodes(transition, nodes); | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * Ambiguous syntax: | ||
163 | * (';' ('out' ';')* 'in')* | ||
164 | * | ||
165 | * This ambiguous syntax occurs at: | ||
166 | * inputEvents+=InputEvent (ambiguity) inputEvents+=InputEvent | ||
167 | * name=ID '{' ('out' ';')* 'in' (ambiguity) inputEvents+=InputEvent | ||
168 | */ | ||
169 | protected void emit_ComponentDefinition___SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a_InKeyword_3_0_0__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
170 | acceptNodes(transition, nodes); | ||
171 | } | ||
172 | |||
173 | /** | ||
174 | * Ambiguous syntax: | ||
175 | * (';' ('in' ';')* 'out')* | ||
176 | * | ||
177 | * This ambiguous syntax occurs at: | ||
178 | * name=ID '{' ('in' ';')* 'out' (ambiguity) outputEvents+=[EventDeclaration|ID] | ||
179 | * outputEvents+=[EventDeclaration|ID] (ambiguity) outputEvents+=[EventDeclaration|ID] | ||
180 | */ | ||
181 | protected void emit_ComponentDefinition___SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a_OutKeyword_3_1_0__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
182 | acceptNodes(transition, nodes); | ||
183 | } | ||
184 | |||
185 | /** | ||
186 | * Ambiguous syntax: | ||
187 | * (('in' ';') | ('out' ';'))* | ||
188 | * | ||
189 | * This ambiguous syntax occurs at: | ||
190 | * name=ID '{' (ambiguity) '}' (rule end) | ||
191 | * name=ID '{' (ambiguity) eventDefinitions+=EventDefinition | ||
192 | */ | ||
193 | protected void emit_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2___or___OutKeyword_3_1_0_SemicolonKeyword_3_1_2____a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
194 | acceptNodes(transition, nodes); | ||
195 | } | ||
196 | |||
197 | /** | ||
198 | * Ambiguous syntax: | ||
199 | * (('in' ';')? ('in' ';' 'out' ';')?)+ | ||
200 | * | ||
201 | * This ambiguous syntax occurs at: | ||
202 | * outputEvents+=[EventDeclaration|ID] ';' ('out' ';')* (ambiguity) 'in' inputEvents+=InputEvent | ||
203 | */ | ||
204 | protected void emit_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2__q___InKeyword_3_0_0_SemicolonKeyword_3_0_2_OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q__p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
205 | acceptNodes(transition, nodes); | ||
206 | } | ||
207 | |||
208 | /** | ||
209 | * Ambiguous syntax: | ||
210 | * (('out' ';')? ('out' ';' 'in' ';')?)+ | ||
211 | * | ||
212 | * This ambiguous syntax occurs at: | ||
213 | * inputEvents+=InputEvent ';' ('in' ';')* (ambiguity) 'out' outputEvents+=[EventDeclaration|ID] | ||
214 | */ | ||
215 | protected void emit_ComponentDefinition_____OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q___OutKeyword_3_1_0_SemicolonKeyword_3_1_2_InKeyword_3_0_0_SemicolonKeyword_3_0_2__q__p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
216 | acceptNodes(transition, nodes); | ||
217 | } | ||
218 | |||
219 | /** | ||
220 | * Ambiguous syntax: | ||
221 | * ';'? | ||
222 | * | ||
223 | * This ambiguous syntax occurs at: | ||
224 | * importedNamespace=QualifiedNameWithWildcard (ambiguity) (rule end) | ||
225 | */ | ||
226 | protected void emit_ImportDeclaration_SemicolonKeyword_2_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
227 | acceptNodes(transition, nodes); | ||
228 | } | ||
229 | |||
230 | /** | ||
231 | * Ambiguous syntax: | ||
232 | * ('{' '}')? | ||
233 | * | ||
234 | * This ambiguous syntax occurs at: | ||
235 | * componentInstance=ComponentInstance (ambiguity) (rule end) | ||
236 | * parameters+=MappingParameter ')' (ambiguity) (rule end) | ||
237 | */ | ||
238 | protected void emit_MappingDefinition___LeftCurlyBracketKeyword_8_0_RightCurlyBracketKeyword_8_2__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
239 | acceptNodes(transition, nodes); | ||
240 | } | ||
241 | |||
242 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/services/CftLanguageGrammarAccess.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/services/CftLanguageGrammarAccess.java new file mode 100644 index 00000000..1ca0cf8e --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/services/CftLanguageGrammarAccess.java | |||
@@ -0,0 +1,1189 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.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.UnorderedGroup; | ||
20 | import org.eclipse.xtext.common.services.TerminalsGrammarAccess; | ||
21 | import org.eclipse.xtext.service.AbstractElementFinder.AbstractGrammarElementFinder; | ||
22 | import org.eclipse.xtext.service.GrammarProvider; | ||
23 | |||
24 | @Singleton | ||
25 | public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | ||
26 | |||
27 | public class CftModelElements extends AbstractParserRuleElementFinder { | ||
28 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.CftModel"); | ||
29 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
30 | private final Keyword cPackageKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
31 | private final Assignment cPackageNameAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
32 | private final RuleCall cPackageNameQualifiedNameParserRuleCall_1_0 = (RuleCall)cPackageNameAssignment_1.eContents().get(0); | ||
33 | private final Keyword cSemicolonKeyword_2 = (Keyword)cGroup.eContents().get(2); | ||
34 | private final Assignment cImportsAssignment_3 = (Assignment)cGroup.eContents().get(3); | ||
35 | private final RuleCall cImportsImportDeclarationParserRuleCall_3_0 = (RuleCall)cImportsAssignment_3.eContents().get(0); | ||
36 | private final Alternatives cAlternatives_4 = (Alternatives)cGroup.eContents().get(4); | ||
37 | private final Assignment cComponentDefinitionsAssignment_4_0 = (Assignment)cAlternatives_4.eContents().get(0); | ||
38 | private final RuleCall cComponentDefinitionsComponentDefinitionParserRuleCall_4_0_0 = (RuleCall)cComponentDefinitionsAssignment_4_0.eContents().get(0); | ||
39 | private final Assignment cTransformationDefinitionsAssignment_4_1 = (Assignment)cAlternatives_4.eContents().get(1); | ||
40 | private final RuleCall cTransformationDefinitionsTransformationDefinitionParserRuleCall_4_1_0 = (RuleCall)cTransformationDefinitionsAssignment_4_1.eContents().get(0); | ||
41 | |||
42 | //CftModel: | ||
43 | // "package" packageName=QualifiedName ";"? | ||
44 | // imports+=ImportDeclaration* (componentDefinitions+=ComponentDefinition | | ||
45 | // transformationDefinitions+=TransformationDefinition)*; | ||
46 | @Override public ParserRule getRule() { return rule; } | ||
47 | |||
48 | //"package" packageName=QualifiedName ";"? imports+=ImportDeclaration* (componentDefinitions+=ComponentDefinition | | ||
49 | //transformationDefinitions+=TransformationDefinition)* | ||
50 | public Group getGroup() { return cGroup; } | ||
51 | |||
52 | //"package" | ||
53 | public Keyword getPackageKeyword_0() { return cPackageKeyword_0; } | ||
54 | |||
55 | //packageName=QualifiedName | ||
56 | public Assignment getPackageNameAssignment_1() { return cPackageNameAssignment_1; } | ||
57 | |||
58 | //QualifiedName | ||
59 | public RuleCall getPackageNameQualifiedNameParserRuleCall_1_0() { return cPackageNameQualifiedNameParserRuleCall_1_0; } | ||
60 | |||
61 | //";"? | ||
62 | public Keyword getSemicolonKeyword_2() { return cSemicolonKeyword_2; } | ||
63 | |||
64 | //imports+=ImportDeclaration* | ||
65 | public Assignment getImportsAssignment_3() { return cImportsAssignment_3; } | ||
66 | |||
67 | //ImportDeclaration | ||
68 | public RuleCall getImportsImportDeclarationParserRuleCall_3_0() { return cImportsImportDeclarationParserRuleCall_3_0; } | ||
69 | |||
70 | //(componentDefinitions+=ComponentDefinition | transformationDefinitions+=TransformationDefinition)* | ||
71 | public Alternatives getAlternatives_4() { return cAlternatives_4; } | ||
72 | |||
73 | //componentDefinitions+=ComponentDefinition | ||
74 | public Assignment getComponentDefinitionsAssignment_4_0() { return cComponentDefinitionsAssignment_4_0; } | ||
75 | |||
76 | //ComponentDefinition | ||
77 | public RuleCall getComponentDefinitionsComponentDefinitionParserRuleCall_4_0_0() { return cComponentDefinitionsComponentDefinitionParserRuleCall_4_0_0; } | ||
78 | |||
79 | //transformationDefinitions+=TransformationDefinition | ||
80 | public Assignment getTransformationDefinitionsAssignment_4_1() { return cTransformationDefinitionsAssignment_4_1; } | ||
81 | |||
82 | //TransformationDefinition | ||
83 | public RuleCall getTransformationDefinitionsTransformationDefinitionParserRuleCall_4_1_0() { return cTransformationDefinitionsTransformationDefinitionParserRuleCall_4_1_0; } | ||
84 | } | ||
85 | public class ImportDeclarationElements extends AbstractParserRuleElementFinder { | ||
86 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ImportDeclaration"); | ||
87 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
88 | private final Keyword cImportKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
89 | private final Assignment cImportedNamespaceAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
90 | private final RuleCall cImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_0 = (RuleCall)cImportedNamespaceAssignment_1.eContents().get(0); | ||
91 | private final Keyword cSemicolonKeyword_2 = (Keyword)cGroup.eContents().get(2); | ||
92 | |||
93 | //ImportDeclaration: | ||
94 | // "import" importedNamespace=QualifiedNameWithWildcard ";"?; | ||
95 | @Override public ParserRule getRule() { return rule; } | ||
96 | |||
97 | //"import" importedNamespace=QualifiedNameWithWildcard ";"? | ||
98 | public Group getGroup() { return cGroup; } | ||
99 | |||
100 | //"import" | ||
101 | public Keyword getImportKeyword_0() { return cImportKeyword_0; } | ||
102 | |||
103 | //importedNamespace=QualifiedNameWithWildcard | ||
104 | public Assignment getImportedNamespaceAssignment_1() { return cImportedNamespaceAssignment_1; } | ||
105 | |||
106 | //QualifiedNameWithWildcard | ||
107 | public RuleCall getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_0() { return cImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_0; } | ||
108 | |||
109 | //";"? | ||
110 | public Keyword getSemicolonKeyword_2() { return cSemicolonKeyword_2; } | ||
111 | } | ||
112 | public class ComponentDefinitionElements extends AbstractParserRuleElementFinder { | ||
113 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentDefinition"); | ||
114 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
115 | private final Keyword cCftKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
116 | private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
117 | private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0); | ||
118 | private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2); | ||
119 | private final UnorderedGroup cUnorderedGroup_3 = (UnorderedGroup)cGroup.eContents().get(3); | ||
120 | private final Group cGroup_3_0 = (Group)cUnorderedGroup_3.eContents().get(0); | ||
121 | private final Keyword cInKeyword_3_0_0 = (Keyword)cGroup_3_0.eContents().get(0); | ||
122 | private final Assignment cInputEventsAssignment_3_0_1 = (Assignment)cGroup_3_0.eContents().get(1); | ||
123 | private final RuleCall cInputEventsInputEventParserRuleCall_3_0_1_0 = (RuleCall)cInputEventsAssignment_3_0_1.eContents().get(0); | ||
124 | private final Keyword cSemicolonKeyword_3_0_2 = (Keyword)cGroup_3_0.eContents().get(2); | ||
125 | private final Group cGroup_3_1 = (Group)cUnorderedGroup_3.eContents().get(1); | ||
126 | private final Keyword cOutKeyword_3_1_0 = (Keyword)cGroup_3_1.eContents().get(0); | ||
127 | private final Assignment cOutputEventsAssignment_3_1_1 = (Assignment)cGroup_3_1.eContents().get(1); | ||
128 | private final CrossReference cOutputEventsEventDeclarationCrossReference_3_1_1_0 = (CrossReference)cOutputEventsAssignment_3_1_1.eContents().get(0); | ||
129 | private final RuleCall cOutputEventsEventDeclarationIDTerminalRuleCall_3_1_1_0_1 = (RuleCall)cOutputEventsEventDeclarationCrossReference_3_1_1_0.eContents().get(1); | ||
130 | private final Keyword cSemicolonKeyword_3_1_2 = (Keyword)cGroup_3_1.eContents().get(2); | ||
131 | private final Group cGroup_4 = (Group)cGroup.eContents().get(4); | ||
132 | private final Assignment cEventDefinitionsAssignment_4_0 = (Assignment)cGroup_4.eContents().get(0); | ||
133 | private final RuleCall cEventDefinitionsEventDefinitionParserRuleCall_4_0_0 = (RuleCall)cEventDefinitionsAssignment_4_0.eContents().get(0); | ||
134 | private final Keyword cSemicolonKeyword_4_1 = (Keyword)cGroup_4.eContents().get(1); | ||
135 | private final Keyword cRightCurlyBracketKeyword_5 = (Keyword)cGroup.eContents().get(5); | ||
136 | |||
137 | //ComponentDefinition: | ||
138 | // "cft" name=ID "{" (("in" inputEvents+=InputEvent* ";")? & ("out" outputEvents+=[EventDeclaration]* ";")?) | ||
139 | // (eventDefinitions+=EventDefinition ";")* | ||
140 | // "}"; | ||
141 | @Override public ParserRule getRule() { return rule; } | ||
142 | |||
143 | //"cft" name=ID "{" (("in" inputEvents+=InputEvent* ";")? & ("out" outputEvents+=[EventDeclaration]* ";")?) | ||
144 | //(eventDefinitions+=EventDefinition ";")* "}" | ||
145 | public Group getGroup() { return cGroup; } | ||
146 | |||
147 | //"cft" | ||
148 | public Keyword getCftKeyword_0() { return cCftKeyword_0; } | ||
149 | |||
150 | //name=ID | ||
151 | public Assignment getNameAssignment_1() { return cNameAssignment_1; } | ||
152 | |||
153 | //ID | ||
154 | public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; } | ||
155 | |||
156 | //"{" | ||
157 | public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; } | ||
158 | |||
159 | //("in" inputEvents+=InputEvent* ";")? & ("out" outputEvents+=[EventDeclaration]* ";")? | ||
160 | public UnorderedGroup getUnorderedGroup_3() { return cUnorderedGroup_3; } | ||
161 | |||
162 | //("in" inputEvents+=InputEvent* ";")? | ||
163 | public Group getGroup_3_0() { return cGroup_3_0; } | ||
164 | |||
165 | //"in" | ||
166 | public Keyword getInKeyword_3_0_0() { return cInKeyword_3_0_0; } | ||
167 | |||
168 | //inputEvents+=InputEvent* | ||
169 | public Assignment getInputEventsAssignment_3_0_1() { return cInputEventsAssignment_3_0_1; } | ||
170 | |||
171 | //InputEvent | ||
172 | public RuleCall getInputEventsInputEventParserRuleCall_3_0_1_0() { return cInputEventsInputEventParserRuleCall_3_0_1_0; } | ||
173 | |||
174 | //";" | ||
175 | public Keyword getSemicolonKeyword_3_0_2() { return cSemicolonKeyword_3_0_2; } | ||
176 | |||
177 | //("out" outputEvents+=[EventDeclaration]* ";")? | ||
178 | public Group getGroup_3_1() { return cGroup_3_1; } | ||
179 | |||
180 | //"out" | ||
181 | public Keyword getOutKeyword_3_1_0() { return cOutKeyword_3_1_0; } | ||
182 | |||
183 | //outputEvents+=[EventDeclaration]* | ||
184 | public Assignment getOutputEventsAssignment_3_1_1() { return cOutputEventsAssignment_3_1_1; } | ||
185 | |||
186 | //[EventDeclaration] | ||
187 | public CrossReference getOutputEventsEventDeclarationCrossReference_3_1_1_0() { return cOutputEventsEventDeclarationCrossReference_3_1_1_0; } | ||
188 | |||
189 | //ID | ||
190 | public RuleCall getOutputEventsEventDeclarationIDTerminalRuleCall_3_1_1_0_1() { return cOutputEventsEventDeclarationIDTerminalRuleCall_3_1_1_0_1; } | ||
191 | |||
192 | //";" | ||
193 | public Keyword getSemicolonKeyword_3_1_2() { return cSemicolonKeyword_3_1_2; } | ||
194 | |||
195 | //(eventDefinitions+=EventDefinition ";")* | ||
196 | public Group getGroup_4() { return cGroup_4; } | ||
197 | |||
198 | //eventDefinitions+=EventDefinition | ||
199 | public Assignment getEventDefinitionsAssignment_4_0() { return cEventDefinitionsAssignment_4_0; } | ||
200 | |||
201 | //EventDefinition | ||
202 | public RuleCall getEventDefinitionsEventDefinitionParserRuleCall_4_0_0() { return cEventDefinitionsEventDefinitionParserRuleCall_4_0_0; } | ||
203 | |||
204 | //";" | ||
205 | public Keyword getSemicolonKeyword_4_1() { return cSemicolonKeyword_4_1; } | ||
206 | |||
207 | //"}" | ||
208 | public Keyword getRightCurlyBracketKeyword_5() { return cRightCurlyBracketKeyword_5; } | ||
209 | } | ||
210 | public class EventDeclarationElements extends AbstractParserRuleElementFinder { | ||
211 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventDeclaration"); | ||
212 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
213 | private final RuleCall cInputEventParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
214 | private final RuleCall cEventDefinitionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
215 | |||
216 | //EventDeclaration: | ||
217 | // InputEvent | EventDefinition; | ||
218 | @Override public ParserRule getRule() { return rule; } | ||
219 | |||
220 | //InputEvent | EventDefinition | ||
221 | public Alternatives getAlternatives() { return cAlternatives; } | ||
222 | |||
223 | //InputEvent | ||
224 | public RuleCall getInputEventParserRuleCall_0() { return cInputEventParserRuleCall_0; } | ||
225 | |||
226 | //EventDefinition | ||
227 | public RuleCall getEventDefinitionParserRuleCall_1() { return cEventDefinitionParserRuleCall_1; } | ||
228 | } | ||
229 | public class InputEventElements extends AbstractParserRuleElementFinder { | ||
230 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.InputEvent"); | ||
231 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
232 | private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
233 | private final RuleCall cNameIDTerminalRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); | ||
234 | private final Assignment cMultipleAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
235 | private final Keyword cMultipleLeftSquareBracketRightSquareBracketKeyword_1_0 = (Keyword)cMultipleAssignment_1.eContents().get(0); | ||
236 | |||
237 | //InputEvent: | ||
238 | // name=ID multiple?="[]"?; | ||
239 | @Override public ParserRule getRule() { return rule; } | ||
240 | |||
241 | //name=ID multiple?="[]"? | ||
242 | public Group getGroup() { return cGroup; } | ||
243 | |||
244 | //name=ID | ||
245 | public Assignment getNameAssignment_0() { return cNameAssignment_0; } | ||
246 | |||
247 | //ID | ||
248 | public RuleCall getNameIDTerminalRuleCall_0_0() { return cNameIDTerminalRuleCall_0_0; } | ||
249 | |||
250 | //multiple?="[]"? | ||
251 | public Assignment getMultipleAssignment_1() { return cMultipleAssignment_1; } | ||
252 | |||
253 | //"[]" | ||
254 | public Keyword getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0() { return cMultipleLeftSquareBracketRightSquareBracketKeyword_1_0; } | ||
255 | } | ||
256 | public class EventDefinitionElements extends AbstractParserRuleElementFinder { | ||
257 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventDefinition"); | ||
258 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
259 | private final RuleCall cBasicEventDefinitionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
260 | private final RuleCall cGateDefinitionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
261 | |||
262 | //EventDefinition: | ||
263 | // BasicEventDefinition | GateDefinition; | ||
264 | @Override public ParserRule getRule() { return rule; } | ||
265 | |||
266 | //BasicEventDefinition | GateDefinition | ||
267 | public Alternatives getAlternatives() { return cAlternatives; } | ||
268 | |||
269 | //BasicEventDefinition | ||
270 | public RuleCall getBasicEventDefinitionParserRuleCall_0() { return cBasicEventDefinitionParserRuleCall_0; } | ||
271 | |||
272 | //GateDefinition | ||
273 | public RuleCall getGateDefinitionParserRuleCall_1() { return cGateDefinitionParserRuleCall_1; } | ||
274 | } | ||
275 | public class BasicEventDefinitionElements extends AbstractParserRuleElementFinder { | ||
276 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.BasicEventDefinition"); | ||
277 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
278 | private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
279 | private final RuleCall cNameIDTerminalRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); | ||
280 | private final Keyword cLambdaKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
281 | private final Keyword cEqualsSignKeyword_2 = (Keyword)cGroup.eContents().get(2); | ||
282 | private final Assignment cRateAssignment_3 = (Assignment)cGroup.eContents().get(3); | ||
283 | private final RuleCall cRateDOULBETerminalRuleCall_3_0 = (RuleCall)cRateAssignment_3.eContents().get(0); | ||
284 | |||
285 | //BasicEventDefinition: | ||
286 | // name=ID "lambda" "=" rate=DOULBE; | ||
287 | @Override public ParserRule getRule() { return rule; } | ||
288 | |||
289 | //name=ID "lambda" "=" rate=DOULBE | ||
290 | public Group getGroup() { return cGroup; } | ||
291 | |||
292 | //name=ID | ||
293 | public Assignment getNameAssignment_0() { return cNameAssignment_0; } | ||
294 | |||
295 | //ID | ||
296 | public RuleCall getNameIDTerminalRuleCall_0_0() { return cNameIDTerminalRuleCall_0_0; } | ||
297 | |||
298 | //"lambda" | ||
299 | public Keyword getLambdaKeyword_1() { return cLambdaKeyword_1; } | ||
300 | |||
301 | //"=" | ||
302 | public Keyword getEqualsSignKeyword_2() { return cEqualsSignKeyword_2; } | ||
303 | |||
304 | //rate=DOULBE | ||
305 | public Assignment getRateAssignment_3() { return cRateAssignment_3; } | ||
306 | |||
307 | //DOULBE | ||
308 | public RuleCall getRateDOULBETerminalRuleCall_3_0() { return cRateDOULBETerminalRuleCall_3_0; } | ||
309 | } | ||
310 | public class GateDefinitionElements extends AbstractParserRuleElementFinder { | ||
311 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.GateDefinition"); | ||
312 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
313 | private final RuleCall cAndGateParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
314 | private final RuleCall cOrGateParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
315 | |||
316 | //GateDefinition: | ||
317 | // AndGate | OrGate; | ||
318 | @Override public ParserRule getRule() { return rule; } | ||
319 | |||
320 | //AndGate | OrGate | ||
321 | public Alternatives getAlternatives() { return cAlternatives; } | ||
322 | |||
323 | //AndGate | ||
324 | public RuleCall getAndGateParserRuleCall_0() { return cAndGateParserRuleCall_0; } | ||
325 | |||
326 | //OrGate | ||
327 | public RuleCall getOrGateParserRuleCall_1() { return cOrGateParserRuleCall_1; } | ||
328 | } | ||
329 | public class AndGateElements extends AbstractParserRuleElementFinder { | ||
330 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.AndGate"); | ||
331 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
332 | private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
333 | private final RuleCall cNameIDTerminalRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); | ||
334 | private final Keyword cAndKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
335 | private final Assignment cInputEventsAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
336 | private final CrossReference cInputEventsEventDeclarationCrossReference_2_0 = (CrossReference)cInputEventsAssignment_2.eContents().get(0); | ||
337 | private final RuleCall cInputEventsEventDeclarationIDTerminalRuleCall_2_0_1 = (RuleCall)cInputEventsEventDeclarationCrossReference_2_0.eContents().get(1); | ||
338 | |||
339 | //AndGate: | ||
340 | // name=ID "and" inputEvents+=[EventDeclaration]*; | ||
341 | @Override public ParserRule getRule() { return rule; } | ||
342 | |||
343 | //name=ID "and" inputEvents+=[EventDeclaration]* | ||
344 | public Group getGroup() { return cGroup; } | ||
345 | |||
346 | //name=ID | ||
347 | public Assignment getNameAssignment_0() { return cNameAssignment_0; } | ||
348 | |||
349 | //ID | ||
350 | public RuleCall getNameIDTerminalRuleCall_0_0() { return cNameIDTerminalRuleCall_0_0; } | ||
351 | |||
352 | //"and" | ||
353 | public Keyword getAndKeyword_1() { return cAndKeyword_1; } | ||
354 | |||
355 | //inputEvents+=[EventDeclaration]* | ||
356 | public Assignment getInputEventsAssignment_2() { return cInputEventsAssignment_2; } | ||
357 | |||
358 | //[EventDeclaration] | ||
359 | public CrossReference getInputEventsEventDeclarationCrossReference_2_0() { return cInputEventsEventDeclarationCrossReference_2_0; } | ||
360 | |||
361 | //ID | ||
362 | public RuleCall getInputEventsEventDeclarationIDTerminalRuleCall_2_0_1() { return cInputEventsEventDeclarationIDTerminalRuleCall_2_0_1; } | ||
363 | } | ||
364 | public class OrGateElements extends AbstractParserRuleElementFinder { | ||
365 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.OrGate"); | ||
366 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
367 | private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
368 | private final RuleCall cNameIDTerminalRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); | ||
369 | private final Keyword cOrKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
370 | private final Assignment cInputEventsAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
371 | private final CrossReference cInputEventsEventDeclarationCrossReference_2_0 = (CrossReference)cInputEventsAssignment_2.eContents().get(0); | ||
372 | private final RuleCall cInputEventsEventDeclarationIDTerminalRuleCall_2_0_1 = (RuleCall)cInputEventsEventDeclarationCrossReference_2_0.eContents().get(1); | ||
373 | |||
374 | //OrGate: | ||
375 | // name=ID "or" inputEvents+=[EventDeclaration]*; | ||
376 | @Override public ParserRule getRule() { return rule; } | ||
377 | |||
378 | //name=ID "or" inputEvents+=[EventDeclaration]* | ||
379 | public Group getGroup() { return cGroup; } | ||
380 | |||
381 | //name=ID | ||
382 | public Assignment getNameAssignment_0() { return cNameAssignment_0; } | ||
383 | |||
384 | //ID | ||
385 | public RuleCall getNameIDTerminalRuleCall_0_0() { return cNameIDTerminalRuleCall_0_0; } | ||
386 | |||
387 | //"or" | ||
388 | public Keyword getOrKeyword_1() { return cOrKeyword_1; } | ||
389 | |||
390 | //inputEvents+=[EventDeclaration]* | ||
391 | public Assignment getInputEventsAssignment_2() { return cInputEventsAssignment_2; } | ||
392 | |||
393 | //[EventDeclaration] | ||
394 | public CrossReference getInputEventsEventDeclarationCrossReference_2_0() { return cInputEventsEventDeclarationCrossReference_2_0; } | ||
395 | |||
396 | //ID | ||
397 | public RuleCall getInputEventsEventDeclarationIDTerminalRuleCall_2_0_1() { return cInputEventsEventDeclarationIDTerminalRuleCall_2_0_1; } | ||
398 | } | ||
399 | public class TransformationDefinitionElements extends AbstractParserRuleElementFinder { | ||
400 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.TransformationDefinition"); | ||
401 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
402 | private final Keyword cTransformationKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
403 | private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
404 | private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0); | ||
405 | private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2); | ||
406 | private final Assignment cMappingDefinitionsAssignment_3 = (Assignment)cGroup.eContents().get(3); | ||
407 | private final RuleCall cMappingDefinitionsMappingDefinitionParserRuleCall_3_0 = (RuleCall)cMappingDefinitionsAssignment_3.eContents().get(0); | ||
408 | private final Keyword cRightCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4); | ||
409 | |||
410 | //TransformationDefinition: | ||
411 | // "transformation" name=ID "{" | ||
412 | // mappingDefinitions+=MappingDefinition* | ||
413 | // "}"; | ||
414 | @Override public ParserRule getRule() { return rule; } | ||
415 | |||
416 | //"transformation" name=ID "{" mappingDefinitions+=MappingDefinition* "}" | ||
417 | public Group getGroup() { return cGroup; } | ||
418 | |||
419 | //"transformation" | ||
420 | public Keyword getTransformationKeyword_0() { return cTransformationKeyword_0; } | ||
421 | |||
422 | //name=ID | ||
423 | public Assignment getNameAssignment_1() { return cNameAssignment_1; } | ||
424 | |||
425 | //ID | ||
426 | public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; } | ||
427 | |||
428 | //"{" | ||
429 | public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; } | ||
430 | |||
431 | //mappingDefinitions+=MappingDefinition* | ||
432 | public Assignment getMappingDefinitionsAssignment_3() { return cMappingDefinitionsAssignment_3; } | ||
433 | |||
434 | //MappingDefinition | ||
435 | public RuleCall getMappingDefinitionsMappingDefinitionParserRuleCall_3_0() { return cMappingDefinitionsMappingDefinitionParserRuleCall_3_0; } | ||
436 | |||
437 | //"}" | ||
438 | public Keyword getRightCurlyBracketKeyword_4() { return cRightCurlyBracketKeyword_4; } | ||
439 | } | ||
440 | public class MappingDefinitionElements extends AbstractParserRuleElementFinder { | ||
441 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingDefinition"); | ||
442 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
443 | private final Assignment cTopLevelAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
444 | private final Keyword cTopLevelToplevelKeyword_0_0 = (Keyword)cTopLevelAssignment_0.eContents().get(0); | ||
445 | private final Keyword cMappingKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
446 | private final Assignment cPatternAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
447 | private final CrossReference cPatternPatternCrossReference_2_0 = (CrossReference)cPatternAssignment_2.eContents().get(0); | ||
448 | private final RuleCall cPatternPatternQualifiedNameParserRuleCall_2_0_1 = (RuleCall)cPatternPatternCrossReference_2_0.eContents().get(1); | ||
449 | private final Keyword cLeftParenthesisKeyword_3 = (Keyword)cGroup.eContents().get(3); | ||
450 | private final Assignment cParametersAssignment_4 = (Assignment)cGroup.eContents().get(4); | ||
451 | private final RuleCall cParametersMappingParameterParserRuleCall_4_0 = (RuleCall)cParametersAssignment_4.eContents().get(0); | ||
452 | private final Group cGroup_5 = (Group)cGroup.eContents().get(5); | ||
453 | private final Keyword cCommaKeyword_5_0 = (Keyword)cGroup_5.eContents().get(0); | ||
454 | private final Assignment cParametersAssignment_5_1 = (Assignment)cGroup_5.eContents().get(1); | ||
455 | private final RuleCall cParametersMappingParameterParserRuleCall_5_1_0 = (RuleCall)cParametersAssignment_5_1.eContents().get(0); | ||
456 | private final Keyword cRightParenthesisKeyword_6 = (Keyword)cGroup.eContents().get(6); | ||
457 | private final Assignment cComponentInstanceAssignment_7 = (Assignment)cGroup.eContents().get(7); | ||
458 | private final RuleCall cComponentInstanceComponentInstanceParserRuleCall_7_0 = (RuleCall)cComponentInstanceAssignment_7.eContents().get(0); | ||
459 | private final Group cGroup_8 = (Group)cGroup.eContents().get(8); | ||
460 | private final Keyword cLeftCurlyBracketKeyword_8_0 = (Keyword)cGroup_8.eContents().get(0); | ||
461 | private final Group cGroup_8_1 = (Group)cGroup_8.eContents().get(1); | ||
462 | private final Alternatives cAlternatives_8_1_0 = (Alternatives)cGroup_8_1.eContents().get(0); | ||
463 | private final Assignment cLookupDefinitionsAssignment_8_1_0_0 = (Assignment)cAlternatives_8_1_0.eContents().get(0); | ||
464 | private final RuleCall cLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0 = (RuleCall)cLookupDefinitionsAssignment_8_1_0_0.eContents().get(0); | ||
465 | private final Assignment cAssignmentsAssignment_8_1_0_1 = (Assignment)cAlternatives_8_1_0.eContents().get(1); | ||
466 | private final RuleCall cAssignmentsAssignmentParserRuleCall_8_1_0_1_0 = (RuleCall)cAssignmentsAssignment_8_1_0_1.eContents().get(0); | ||
467 | private final Keyword cSemicolonKeyword_8_1_1 = (Keyword)cGroup_8_1.eContents().get(1); | ||
468 | private final Keyword cRightCurlyBracketKeyword_8_2 = (Keyword)cGroup_8.eContents().get(2); | ||
469 | |||
470 | //MappingDefinition: | ||
471 | // topLevel?="toplevel"? "mapping" pattern=[vql::Pattern|QualifiedName] | ||
472 | // "(" parameters+=MappingParameter ("," parameters+=MappingParameter)* ")" | ||
473 | // componentInstance=ComponentInstance? ("{" ((lookupDefinitions+=LookupDefinition | assignments+=Assignment) ";")* | ||
474 | // "}")?; | ||
475 | @Override public ParserRule getRule() { return rule; } | ||
476 | |||
477 | //topLevel?="toplevel"? "mapping" pattern=[vql::Pattern|QualifiedName] "(" parameters+=MappingParameter ("," | ||
478 | //parameters+=MappingParameter)* ")" componentInstance=ComponentInstance? ("{" ((lookupDefinitions+=LookupDefinition | | ||
479 | //assignments+=Assignment) ";")* "}")? | ||
480 | public Group getGroup() { return cGroup; } | ||
481 | |||
482 | //topLevel?="toplevel"? | ||
483 | public Assignment getTopLevelAssignment_0() { return cTopLevelAssignment_0; } | ||
484 | |||
485 | //"toplevel" | ||
486 | public Keyword getTopLevelToplevelKeyword_0_0() { return cTopLevelToplevelKeyword_0_0; } | ||
487 | |||
488 | //"mapping" | ||
489 | public Keyword getMappingKeyword_1() { return cMappingKeyword_1; } | ||
490 | |||
491 | //pattern=[vql::Pattern|QualifiedName] | ||
492 | public Assignment getPatternAssignment_2() { return cPatternAssignment_2; } | ||
493 | |||
494 | //[vql::Pattern|QualifiedName] | ||
495 | public CrossReference getPatternPatternCrossReference_2_0() { return cPatternPatternCrossReference_2_0; } | ||
496 | |||
497 | //QualifiedName | ||
498 | public RuleCall getPatternPatternQualifiedNameParserRuleCall_2_0_1() { return cPatternPatternQualifiedNameParserRuleCall_2_0_1; } | ||
499 | |||
500 | //"(" | ||
501 | public Keyword getLeftParenthesisKeyword_3() { return cLeftParenthesisKeyword_3; } | ||
502 | |||
503 | //parameters+=MappingParameter | ||
504 | public Assignment getParametersAssignment_4() { return cParametersAssignment_4; } | ||
505 | |||
506 | //MappingParameter | ||
507 | public RuleCall getParametersMappingParameterParserRuleCall_4_0() { return cParametersMappingParameterParserRuleCall_4_0; } | ||
508 | |||
509 | //("," parameters+=MappingParameter)* | ||
510 | public Group getGroup_5() { return cGroup_5; } | ||
511 | |||
512 | //"," | ||
513 | public Keyword getCommaKeyword_5_0() { return cCommaKeyword_5_0; } | ||
514 | |||
515 | //parameters+=MappingParameter | ||
516 | public Assignment getParametersAssignment_5_1() { return cParametersAssignment_5_1; } | ||
517 | |||
518 | //MappingParameter | ||
519 | public RuleCall getParametersMappingParameterParserRuleCall_5_1_0() { return cParametersMappingParameterParserRuleCall_5_1_0; } | ||
520 | |||
521 | //")" | ||
522 | public Keyword getRightParenthesisKeyword_6() { return cRightParenthesisKeyword_6; } | ||
523 | |||
524 | //componentInstance=ComponentInstance? | ||
525 | public Assignment getComponentInstanceAssignment_7() { return cComponentInstanceAssignment_7; } | ||
526 | |||
527 | //ComponentInstance | ||
528 | public RuleCall getComponentInstanceComponentInstanceParserRuleCall_7_0() { return cComponentInstanceComponentInstanceParserRuleCall_7_0; } | ||
529 | |||
530 | //("{" ((lookupDefinitions+=LookupDefinition | assignments+=Assignment) ";")* "}")? | ||
531 | public Group getGroup_8() { return cGroup_8; } | ||
532 | |||
533 | //"{" | ||
534 | public Keyword getLeftCurlyBracketKeyword_8_0() { return cLeftCurlyBracketKeyword_8_0; } | ||
535 | |||
536 | //((lookupDefinitions+=LookupDefinition | assignments+=Assignment) ";")* | ||
537 | public Group getGroup_8_1() { return cGroup_8_1; } | ||
538 | |||
539 | //lookupDefinitions+=LookupDefinition | assignments+=Assignment | ||
540 | public Alternatives getAlternatives_8_1_0() { return cAlternatives_8_1_0; } | ||
541 | |||
542 | //lookupDefinitions+=LookupDefinition | ||
543 | public Assignment getLookupDefinitionsAssignment_8_1_0_0() { return cLookupDefinitionsAssignment_8_1_0_0; } | ||
544 | |||
545 | //LookupDefinition | ||
546 | public RuleCall getLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0() { return cLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0; } | ||
547 | |||
548 | //assignments+=Assignment | ||
549 | public Assignment getAssignmentsAssignment_8_1_0_1() { return cAssignmentsAssignment_8_1_0_1; } | ||
550 | |||
551 | //Assignment | ||
552 | public RuleCall getAssignmentsAssignmentParserRuleCall_8_1_0_1_0() { return cAssignmentsAssignmentParserRuleCall_8_1_0_1_0; } | ||
553 | |||
554 | //";" | ||
555 | public Keyword getSemicolonKeyword_8_1_1() { return cSemicolonKeyword_8_1_1; } | ||
556 | |||
557 | //"}" | ||
558 | public Keyword getRightCurlyBracketKeyword_8_2() { return cRightCurlyBracketKeyword_8_2; } | ||
559 | } | ||
560 | public class MappingParameterElements extends AbstractParserRuleElementFinder { | ||
561 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingParameter"); | ||
562 | private final Assignment cNameAssignment = (Assignment)rule.eContents().get(1); | ||
563 | private final RuleCall cNameIDTerminalRuleCall_0 = (RuleCall)cNameAssignment.eContents().get(0); | ||
564 | |||
565 | //MappingParameter: | ||
566 | // name=ID; | ||
567 | @Override public ParserRule getRule() { return rule; } | ||
568 | |||
569 | //name=ID | ||
570 | public Assignment getNameAssignment() { return cNameAssignment; } | ||
571 | |||
572 | //ID | ||
573 | public RuleCall getNameIDTerminalRuleCall_0() { return cNameIDTerminalRuleCall_0; } | ||
574 | } | ||
575 | public class LookupDefinitionElements extends AbstractParserRuleElementFinder { | ||
576 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.LookupDefinition"); | ||
577 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
578 | private final Keyword cLookupKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
579 | private final Assignment cMappingAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
580 | private final CrossReference cMappingMappingDefinitionCrossReference_1_0 = (CrossReference)cMappingAssignment_1.eContents().get(0); | ||
581 | private final RuleCall cMappingMappingDefinitionIDTerminalRuleCall_1_0_1 = (RuleCall)cMappingMappingDefinitionCrossReference_1_0.eContents().get(1); | ||
582 | private final Keyword cLeftParenthesisKeyword_2 = (Keyword)cGroup.eContents().get(2); | ||
583 | private final Assignment cArgumentsAssignment_3 = (Assignment)cGroup.eContents().get(3); | ||
584 | private final CrossReference cArgumentsMappingParameterCrossReference_3_0 = (CrossReference)cArgumentsAssignment_3.eContents().get(0); | ||
585 | private final RuleCall cArgumentsMappingParameterIDTerminalRuleCall_3_0_1 = (RuleCall)cArgumentsMappingParameterCrossReference_3_0.eContents().get(1); | ||
586 | private final Group cGroup_4 = (Group)cGroup.eContents().get(4); | ||
587 | private final Keyword cCommaKeyword_4_0 = (Keyword)cGroup_4.eContents().get(0); | ||
588 | private final Assignment cArgumentsAssignment_4_1 = (Assignment)cGroup_4.eContents().get(1); | ||
589 | private final CrossReference cArgumentsMappingParameterCrossReference_4_1_0 = (CrossReference)cArgumentsAssignment_4_1.eContents().get(0); | ||
590 | private final RuleCall cArgumentsMappingParameterIDTerminalRuleCall_4_1_0_1 = (RuleCall)cArgumentsMappingParameterCrossReference_4_1_0.eContents().get(1); | ||
591 | private final Keyword cRightParenthesisKeyword_5 = (Keyword)cGroup.eContents().get(5); | ||
592 | private final Keyword cAsKeyword_6 = (Keyword)cGroup.eContents().get(6); | ||
593 | private final Assignment cNameAssignment_7 = (Assignment)cGroup.eContents().get(7); | ||
594 | private final RuleCall cNameIDTerminalRuleCall_7_0 = (RuleCall)cNameAssignment_7.eContents().get(0); | ||
595 | |||
596 | //LookupDefinition: | ||
597 | // "lookup" mapping=[MappingDefinition] | ||
598 | // "(" arguments+=[MappingParameter] ("," arguments+=[MappingParameter])* ")" | ||
599 | // "as" name=ID; | ||
600 | @Override public ParserRule getRule() { return rule; } | ||
601 | |||
602 | //"lookup" mapping=[MappingDefinition] "(" arguments+=[MappingParameter] ("," arguments+=[MappingParameter])* ")" "as" | ||
603 | //name=ID | ||
604 | public Group getGroup() { return cGroup; } | ||
605 | |||
606 | //"lookup" | ||
607 | public Keyword getLookupKeyword_0() { return cLookupKeyword_0; } | ||
608 | |||
609 | //mapping=[MappingDefinition] | ||
610 | public Assignment getMappingAssignment_1() { return cMappingAssignment_1; } | ||
611 | |||
612 | //[MappingDefinition] | ||
613 | public CrossReference getMappingMappingDefinitionCrossReference_1_0() { return cMappingMappingDefinitionCrossReference_1_0; } | ||
614 | |||
615 | //ID | ||
616 | public RuleCall getMappingMappingDefinitionIDTerminalRuleCall_1_0_1() { return cMappingMappingDefinitionIDTerminalRuleCall_1_0_1; } | ||
617 | |||
618 | //"(" | ||
619 | public Keyword getLeftParenthesisKeyword_2() { return cLeftParenthesisKeyword_2; } | ||
620 | |||
621 | //arguments+=[MappingParameter] | ||
622 | public Assignment getArgumentsAssignment_3() { return cArgumentsAssignment_3; } | ||
623 | |||
624 | //[MappingParameter] | ||
625 | public CrossReference getArgumentsMappingParameterCrossReference_3_0() { return cArgumentsMappingParameterCrossReference_3_0; } | ||
626 | |||
627 | //ID | ||
628 | public RuleCall getArgumentsMappingParameterIDTerminalRuleCall_3_0_1() { return cArgumentsMappingParameterIDTerminalRuleCall_3_0_1; } | ||
629 | |||
630 | //("," arguments+=[MappingParameter])* | ||
631 | public Group getGroup_4() { return cGroup_4; } | ||
632 | |||
633 | //"," | ||
634 | public Keyword getCommaKeyword_4_0() { return cCommaKeyword_4_0; } | ||
635 | |||
636 | //arguments+=[MappingParameter] | ||
637 | public Assignment getArgumentsAssignment_4_1() { return cArgumentsAssignment_4_1; } | ||
638 | |||
639 | //[MappingParameter] | ||
640 | public CrossReference getArgumentsMappingParameterCrossReference_4_1_0() { return cArgumentsMappingParameterCrossReference_4_1_0; } | ||
641 | |||
642 | //ID | ||
643 | public RuleCall getArgumentsMappingParameterIDTerminalRuleCall_4_1_0_1() { return cArgumentsMappingParameterIDTerminalRuleCall_4_1_0_1; } | ||
644 | |||
645 | //")" | ||
646 | public Keyword getRightParenthesisKeyword_5() { return cRightParenthesisKeyword_5; } | ||
647 | |||
648 | //"as" | ||
649 | public Keyword getAsKeyword_6() { return cAsKeyword_6; } | ||
650 | |||
651 | //name=ID | ||
652 | public Assignment getNameAssignment_7() { return cNameAssignment_7; } | ||
653 | |||
654 | //ID | ||
655 | public RuleCall getNameIDTerminalRuleCall_7_0() { return cNameIDTerminalRuleCall_7_0; } | ||
656 | } | ||
657 | public class VariableElements extends AbstractParserRuleElementFinder { | ||
658 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Variable"); | ||
659 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
660 | private final RuleCall cComponentInstanceParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
661 | private final RuleCall cLookupDefinitionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
662 | |||
663 | //Variable: | ||
664 | // ComponentInstance | LookupDefinition; | ||
665 | @Override public ParserRule getRule() { return rule; } | ||
666 | |||
667 | //ComponentInstance | LookupDefinition | ||
668 | public Alternatives getAlternatives() { return cAlternatives; } | ||
669 | |||
670 | //ComponentInstance | ||
671 | public RuleCall getComponentInstanceParserRuleCall_0() { return cComponentInstanceParserRuleCall_0; } | ||
672 | |||
673 | //LookupDefinition | ||
674 | public RuleCall getLookupDefinitionParserRuleCall_1() { return cLookupDefinitionParserRuleCall_1; } | ||
675 | } | ||
676 | public class AssignmentElements extends AbstractParserRuleElementFinder { | ||
677 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Assignment"); | ||
678 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
679 | private final Assignment cInputAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
680 | private final RuleCall cInputEventReferenceParserRuleCall_0_0 = (RuleCall)cInputAssignment_0.eContents().get(0); | ||
681 | private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1); | ||
682 | private final Assignment cMultipleAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0); | ||
683 | private final Keyword cMultiplePlusSignEqualsSignKeyword_1_0_0 = (Keyword)cMultipleAssignment_1_0.eContents().get(0); | ||
684 | private final Keyword cColonEqualsSignKeyword_1_1 = (Keyword)cAlternatives_1.eContents().get(1); | ||
685 | private final Assignment cOutputAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
686 | private final RuleCall cOutputEventReferenceParserRuleCall_2_0 = (RuleCall)cOutputAssignment_2.eContents().get(0); | ||
687 | |||
688 | //Assignment: | ||
689 | // input=EventReference (multiple?="+=" | ":=") output=EventReference; | ||
690 | @Override public ParserRule getRule() { return rule; } | ||
691 | |||
692 | //input=EventReference (multiple?="+=" | ":=") output=EventReference | ||
693 | public Group getGroup() { return cGroup; } | ||
694 | |||
695 | //input=EventReference | ||
696 | public Assignment getInputAssignment_0() { return cInputAssignment_0; } | ||
697 | |||
698 | //EventReference | ||
699 | public RuleCall getInputEventReferenceParserRuleCall_0_0() { return cInputEventReferenceParserRuleCall_0_0; } | ||
700 | |||
701 | //multiple?="+=" | ":=" | ||
702 | public Alternatives getAlternatives_1() { return cAlternatives_1; } | ||
703 | |||
704 | //multiple?="+=" | ||
705 | public Assignment getMultipleAssignment_1_0() { return cMultipleAssignment_1_0; } | ||
706 | |||
707 | //"+=" | ||
708 | public Keyword getMultiplePlusSignEqualsSignKeyword_1_0_0() { return cMultiplePlusSignEqualsSignKeyword_1_0_0; } | ||
709 | |||
710 | //":=" | ||
711 | public Keyword getColonEqualsSignKeyword_1_1() { return cColonEqualsSignKeyword_1_1; } | ||
712 | |||
713 | //output=EventReference | ||
714 | public Assignment getOutputAssignment_2() { return cOutputAssignment_2; } | ||
715 | |||
716 | //EventReference | ||
717 | public RuleCall getOutputEventReferenceParserRuleCall_2_0() { return cOutputEventReferenceParserRuleCall_2_0; } | ||
718 | } | ||
719 | public class EventReferenceElements extends AbstractParserRuleElementFinder { | ||
720 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventReference"); | ||
721 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
722 | private final Assignment cComponentAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
723 | private final CrossReference cComponentVariableCrossReference_0_0 = (CrossReference)cComponentAssignment_0.eContents().get(0); | ||
724 | private final RuleCall cComponentVariableIDTerminalRuleCall_0_0_1 = (RuleCall)cComponentVariableCrossReference_0_0.eContents().get(1); | ||
725 | private final Keyword cFullStopKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
726 | private final Assignment cEventAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
727 | private final CrossReference cEventEventDeclarationCrossReference_2_0 = (CrossReference)cEventAssignment_2.eContents().get(0); | ||
728 | private final RuleCall cEventEventDeclarationIDTerminalRuleCall_2_0_1 = (RuleCall)cEventEventDeclarationCrossReference_2_0.eContents().get(1); | ||
729 | |||
730 | //EventReference: | ||
731 | // component=[Variable] "." event=[EventDeclaration]; | ||
732 | @Override public ParserRule getRule() { return rule; } | ||
733 | |||
734 | //component=[Variable] "." event=[EventDeclaration] | ||
735 | public Group getGroup() { return cGroup; } | ||
736 | |||
737 | //component=[Variable] | ||
738 | public Assignment getComponentAssignment_0() { return cComponentAssignment_0; } | ||
739 | |||
740 | //[Variable] | ||
741 | public CrossReference getComponentVariableCrossReference_0_0() { return cComponentVariableCrossReference_0_0; } | ||
742 | |||
743 | //ID | ||
744 | public RuleCall getComponentVariableIDTerminalRuleCall_0_0_1() { return cComponentVariableIDTerminalRuleCall_0_0_1; } | ||
745 | |||
746 | //"." | ||
747 | public Keyword getFullStopKeyword_1() { return cFullStopKeyword_1; } | ||
748 | |||
749 | //event=[EventDeclaration] | ||
750 | public Assignment getEventAssignment_2() { return cEventAssignment_2; } | ||
751 | |||
752 | //[EventDeclaration] | ||
753 | public CrossReference getEventEventDeclarationCrossReference_2_0() { return cEventEventDeclarationCrossReference_2_0; } | ||
754 | |||
755 | //ID | ||
756 | public RuleCall getEventEventDeclarationIDTerminalRuleCall_2_0_1() { return cEventEventDeclarationIDTerminalRuleCall_2_0_1; } | ||
757 | } | ||
758 | public class ComponentInstanceElements extends AbstractParserRuleElementFinder { | ||
759 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentInstance"); | ||
760 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
761 | private final Keyword cEqualsSignGreaterThanSignKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
762 | private final Assignment cComponentTypeAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
763 | private final CrossReference cComponentTypeComponentDefinitionCrossReference_1_0 = (CrossReference)cComponentTypeAssignment_1.eContents().get(0); | ||
764 | private final RuleCall cComponentTypeComponentDefinitionQualifiedNameParserRuleCall_1_0_1 = (RuleCall)cComponentTypeComponentDefinitionCrossReference_1_0.eContents().get(1); | ||
765 | private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
766 | private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0); | ||
767 | |||
768 | //ComponentInstance: | ||
769 | // "=>" componentType=[ComponentDefinition|QualifiedName] name=ID?; | ||
770 | @Override public ParserRule getRule() { return rule; } | ||
771 | |||
772 | //"=>" componentType=[ComponentDefinition|QualifiedName] name=ID? | ||
773 | public Group getGroup() { return cGroup; } | ||
774 | |||
775 | //"=>" | ||
776 | public Keyword getEqualsSignGreaterThanSignKeyword_0() { return cEqualsSignGreaterThanSignKeyword_0; } | ||
777 | |||
778 | //componentType=[ComponentDefinition|QualifiedName] | ||
779 | public Assignment getComponentTypeAssignment_1() { return cComponentTypeAssignment_1; } | ||
780 | |||
781 | //[ComponentDefinition|QualifiedName] | ||
782 | public CrossReference getComponentTypeComponentDefinitionCrossReference_1_0() { return cComponentTypeComponentDefinitionCrossReference_1_0; } | ||
783 | |||
784 | //QualifiedName | ||
785 | public RuleCall getComponentTypeComponentDefinitionQualifiedNameParserRuleCall_1_0_1() { return cComponentTypeComponentDefinitionQualifiedNameParserRuleCall_1_0_1; } | ||
786 | |||
787 | //name=ID? | ||
788 | public Assignment getNameAssignment_2() { return cNameAssignment_2; } | ||
789 | |||
790 | //ID | ||
791 | public RuleCall getNameIDTerminalRuleCall_2_0() { return cNameIDTerminalRuleCall_2_0; } | ||
792 | } | ||
793 | public class QualifiedNameElements extends AbstractParserRuleElementFinder { | ||
794 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedName"); | ||
795 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
796 | private final RuleCall cIDTerminalRuleCall_0 = (RuleCall)cGroup.eContents().get(0); | ||
797 | private final Group cGroup_1 = (Group)cGroup.eContents().get(1); | ||
798 | private final Keyword cFullStopKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0); | ||
799 | private final RuleCall cIDTerminalRuleCall_1_1 = (RuleCall)cGroup_1.eContents().get(1); | ||
800 | |||
801 | //QualifiedName: | ||
802 | // ID ("." ID)*; | ||
803 | @Override public ParserRule getRule() { return rule; } | ||
804 | |||
805 | //ID ("." ID)* | ||
806 | public Group getGroup() { return cGroup; } | ||
807 | |||
808 | //ID | ||
809 | public RuleCall getIDTerminalRuleCall_0() { return cIDTerminalRuleCall_0; } | ||
810 | |||
811 | //("." ID)* | ||
812 | public Group getGroup_1() { return cGroup_1; } | ||
813 | |||
814 | //"." | ||
815 | public Keyword getFullStopKeyword_1_0() { return cFullStopKeyword_1_0; } | ||
816 | |||
817 | //ID | ||
818 | public RuleCall getIDTerminalRuleCall_1_1() { return cIDTerminalRuleCall_1_1; } | ||
819 | } | ||
820 | public class QualifiedNameWithWildcardElements extends AbstractParserRuleElementFinder { | ||
821 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedNameWithWildcard"); | ||
822 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
823 | private final RuleCall cQualifiedNameParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0); | ||
824 | private final Group cGroup_1 = (Group)cGroup.eContents().get(1); | ||
825 | private final Keyword cFullStopKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0); | ||
826 | private final Keyword cAsteriskKeyword_1_1 = (Keyword)cGroup_1.eContents().get(1); | ||
827 | |||
828 | //QualifiedNameWithWildcard: | ||
829 | // QualifiedName ("." "*")?; | ||
830 | @Override public ParserRule getRule() { return rule; } | ||
831 | |||
832 | //QualifiedName ("." "*")? | ||
833 | public Group getGroup() { return cGroup; } | ||
834 | |||
835 | //QualifiedName | ||
836 | public RuleCall getQualifiedNameParserRuleCall_0() { return cQualifiedNameParserRuleCall_0; } | ||
837 | |||
838 | //("." "*")? | ||
839 | public Group getGroup_1() { return cGroup_1; } | ||
840 | |||
841 | //"." | ||
842 | public Keyword getFullStopKeyword_1_0() { return cFullStopKeyword_1_0; } | ||
843 | |||
844 | //"*" | ||
845 | public Keyword getAsteriskKeyword_1_1() { return cAsteriskKeyword_1_1; } | ||
846 | } | ||
847 | |||
848 | |||
849 | private final CftModelElements pCftModel; | ||
850 | private final ImportDeclarationElements pImportDeclaration; | ||
851 | private final ComponentDefinitionElements pComponentDefinition; | ||
852 | private final EventDeclarationElements pEventDeclaration; | ||
853 | private final InputEventElements pInputEvent; | ||
854 | private final EventDefinitionElements pEventDefinition; | ||
855 | private final BasicEventDefinitionElements pBasicEventDefinition; | ||
856 | private final GateDefinitionElements pGateDefinition; | ||
857 | private final AndGateElements pAndGate; | ||
858 | private final OrGateElements pOrGate; | ||
859 | private final TransformationDefinitionElements pTransformationDefinition; | ||
860 | private final MappingDefinitionElements pMappingDefinition; | ||
861 | private final MappingParameterElements pMappingParameter; | ||
862 | private final LookupDefinitionElements pLookupDefinition; | ||
863 | private final VariableElements pVariable; | ||
864 | private final AssignmentElements pAssignment; | ||
865 | private final EventReferenceElements pEventReference; | ||
866 | private final ComponentInstanceElements pComponentInstance; | ||
867 | private final QualifiedNameElements pQualifiedName; | ||
868 | private final QualifiedNameWithWildcardElements pQualifiedNameWithWildcard; | ||
869 | private final TerminalRule tDOULBE; | ||
870 | |||
871 | private final Grammar grammar; | ||
872 | |||
873 | private final TerminalsGrammarAccess gaTerminals; | ||
874 | |||
875 | @Inject | ||
876 | public CftLanguageGrammarAccess(GrammarProvider grammarProvider, | ||
877 | TerminalsGrammarAccess gaTerminals) { | ||
878 | this.grammar = internalFindGrammar(grammarProvider); | ||
879 | this.gaTerminals = gaTerminals; | ||
880 | this.pCftModel = new CftModelElements(); | ||
881 | this.pImportDeclaration = new ImportDeclarationElements(); | ||
882 | this.pComponentDefinition = new ComponentDefinitionElements(); | ||
883 | this.pEventDeclaration = new EventDeclarationElements(); | ||
884 | this.pInputEvent = new InputEventElements(); | ||
885 | this.pEventDefinition = new EventDefinitionElements(); | ||
886 | this.pBasicEventDefinition = new BasicEventDefinitionElements(); | ||
887 | this.pGateDefinition = new GateDefinitionElements(); | ||
888 | this.pAndGate = new AndGateElements(); | ||
889 | this.pOrGate = new OrGateElements(); | ||
890 | this.pTransformationDefinition = new TransformationDefinitionElements(); | ||
891 | this.pMappingDefinition = new MappingDefinitionElements(); | ||
892 | this.pMappingParameter = new MappingParameterElements(); | ||
893 | this.pLookupDefinition = new LookupDefinitionElements(); | ||
894 | this.pVariable = new VariableElements(); | ||
895 | this.pAssignment = new AssignmentElements(); | ||
896 | this.pEventReference = new EventReferenceElements(); | ||
897 | this.pComponentInstance = new ComponentInstanceElements(); | ||
898 | this.pQualifiedName = new QualifiedNameElements(); | ||
899 | this.pQualifiedNameWithWildcard = new QualifiedNameWithWildcardElements(); | ||
900 | this.tDOULBE = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.DOULBE"); | ||
901 | } | ||
902 | |||
903 | protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { | ||
904 | Grammar grammar = grammarProvider.getGrammar(this); | ||
905 | while (grammar != null) { | ||
906 | if ("hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage".equals(grammar.getName())) { | ||
907 | return grammar; | ||
908 | } | ||
909 | List<Grammar> grammars = grammar.getUsedGrammars(); | ||
910 | if (!grammars.isEmpty()) { | ||
911 | grammar = grammars.iterator().next(); | ||
912 | } else { | ||
913 | return null; | ||
914 | } | ||
915 | } | ||
916 | return grammar; | ||
917 | } | ||
918 | |||
919 | @Override | ||
920 | public Grammar getGrammar() { | ||
921 | return grammar; | ||
922 | } | ||
923 | |||
924 | |||
925 | public TerminalsGrammarAccess getTerminalsGrammarAccess() { | ||
926 | return gaTerminals; | ||
927 | } | ||
928 | |||
929 | |||
930 | //CftModel: | ||
931 | // "package" packageName=QualifiedName ";"? | ||
932 | // imports+=ImportDeclaration* (componentDefinitions+=ComponentDefinition | | ||
933 | // transformationDefinitions+=TransformationDefinition)*; | ||
934 | public CftModelElements getCftModelAccess() { | ||
935 | return pCftModel; | ||
936 | } | ||
937 | |||
938 | public ParserRule getCftModelRule() { | ||
939 | return getCftModelAccess().getRule(); | ||
940 | } | ||
941 | |||
942 | //ImportDeclaration: | ||
943 | // "import" importedNamespace=QualifiedNameWithWildcard ";"?; | ||
944 | public ImportDeclarationElements getImportDeclarationAccess() { | ||
945 | return pImportDeclaration; | ||
946 | } | ||
947 | |||
948 | public ParserRule getImportDeclarationRule() { | ||
949 | return getImportDeclarationAccess().getRule(); | ||
950 | } | ||
951 | |||
952 | //ComponentDefinition: | ||
953 | // "cft" name=ID "{" (("in" inputEvents+=InputEvent* ";")? & ("out" outputEvents+=[EventDeclaration]* ";")?) | ||
954 | // (eventDefinitions+=EventDefinition ";")* | ||
955 | // "}"; | ||
956 | public ComponentDefinitionElements getComponentDefinitionAccess() { | ||
957 | return pComponentDefinition; | ||
958 | } | ||
959 | |||
960 | public ParserRule getComponentDefinitionRule() { | ||
961 | return getComponentDefinitionAccess().getRule(); | ||
962 | } | ||
963 | |||
964 | //EventDeclaration: | ||
965 | // InputEvent | EventDefinition; | ||
966 | public EventDeclarationElements getEventDeclarationAccess() { | ||
967 | return pEventDeclaration; | ||
968 | } | ||
969 | |||
970 | public ParserRule getEventDeclarationRule() { | ||
971 | return getEventDeclarationAccess().getRule(); | ||
972 | } | ||
973 | |||
974 | //InputEvent: | ||
975 | // name=ID multiple?="[]"?; | ||
976 | public InputEventElements getInputEventAccess() { | ||
977 | return pInputEvent; | ||
978 | } | ||
979 | |||
980 | public ParserRule getInputEventRule() { | ||
981 | return getInputEventAccess().getRule(); | ||
982 | } | ||
983 | |||
984 | //EventDefinition: | ||
985 | // BasicEventDefinition | GateDefinition; | ||
986 | public EventDefinitionElements getEventDefinitionAccess() { | ||
987 | return pEventDefinition; | ||
988 | } | ||
989 | |||
990 | public ParserRule getEventDefinitionRule() { | ||
991 | return getEventDefinitionAccess().getRule(); | ||
992 | } | ||
993 | |||
994 | //BasicEventDefinition: | ||
995 | // name=ID "lambda" "=" rate=DOULBE; | ||
996 | public BasicEventDefinitionElements getBasicEventDefinitionAccess() { | ||
997 | return pBasicEventDefinition; | ||
998 | } | ||
999 | |||
1000 | public ParserRule getBasicEventDefinitionRule() { | ||
1001 | return getBasicEventDefinitionAccess().getRule(); | ||
1002 | } | ||
1003 | |||
1004 | //GateDefinition: | ||
1005 | // AndGate | OrGate; | ||
1006 | public GateDefinitionElements getGateDefinitionAccess() { | ||
1007 | return pGateDefinition; | ||
1008 | } | ||
1009 | |||
1010 | public ParserRule getGateDefinitionRule() { | ||
1011 | return getGateDefinitionAccess().getRule(); | ||
1012 | } | ||
1013 | |||
1014 | //AndGate: | ||
1015 | // name=ID "and" inputEvents+=[EventDeclaration]*; | ||
1016 | public AndGateElements getAndGateAccess() { | ||
1017 | return pAndGate; | ||
1018 | } | ||
1019 | |||
1020 | public ParserRule getAndGateRule() { | ||
1021 | return getAndGateAccess().getRule(); | ||
1022 | } | ||
1023 | |||
1024 | //OrGate: | ||
1025 | // name=ID "or" inputEvents+=[EventDeclaration]*; | ||
1026 | public OrGateElements getOrGateAccess() { | ||
1027 | return pOrGate; | ||
1028 | } | ||
1029 | |||
1030 | public ParserRule getOrGateRule() { | ||
1031 | return getOrGateAccess().getRule(); | ||
1032 | } | ||
1033 | |||
1034 | //TransformationDefinition: | ||
1035 | // "transformation" name=ID "{" | ||
1036 | // mappingDefinitions+=MappingDefinition* | ||
1037 | // "}"; | ||
1038 | public TransformationDefinitionElements getTransformationDefinitionAccess() { | ||
1039 | return pTransformationDefinition; | ||
1040 | } | ||
1041 | |||
1042 | public ParserRule getTransformationDefinitionRule() { | ||
1043 | return getTransformationDefinitionAccess().getRule(); | ||
1044 | } | ||
1045 | |||
1046 | //MappingDefinition: | ||
1047 | // topLevel?="toplevel"? "mapping" pattern=[vql::Pattern|QualifiedName] | ||
1048 | // "(" parameters+=MappingParameter ("," parameters+=MappingParameter)* ")" | ||
1049 | // componentInstance=ComponentInstance? ("{" ((lookupDefinitions+=LookupDefinition | assignments+=Assignment) ";")* | ||
1050 | // "}")?; | ||
1051 | public MappingDefinitionElements getMappingDefinitionAccess() { | ||
1052 | return pMappingDefinition; | ||
1053 | } | ||
1054 | |||
1055 | public ParserRule getMappingDefinitionRule() { | ||
1056 | return getMappingDefinitionAccess().getRule(); | ||
1057 | } | ||
1058 | |||
1059 | //MappingParameter: | ||
1060 | // name=ID; | ||
1061 | public MappingParameterElements getMappingParameterAccess() { | ||
1062 | return pMappingParameter; | ||
1063 | } | ||
1064 | |||
1065 | public ParserRule getMappingParameterRule() { | ||
1066 | return getMappingParameterAccess().getRule(); | ||
1067 | } | ||
1068 | |||
1069 | //LookupDefinition: | ||
1070 | // "lookup" mapping=[MappingDefinition] | ||
1071 | // "(" arguments+=[MappingParameter] ("," arguments+=[MappingParameter])* ")" | ||
1072 | // "as" name=ID; | ||
1073 | public LookupDefinitionElements getLookupDefinitionAccess() { | ||
1074 | return pLookupDefinition; | ||
1075 | } | ||
1076 | |||
1077 | public ParserRule getLookupDefinitionRule() { | ||
1078 | return getLookupDefinitionAccess().getRule(); | ||
1079 | } | ||
1080 | |||
1081 | //Variable: | ||
1082 | // ComponentInstance | LookupDefinition; | ||
1083 | public VariableElements getVariableAccess() { | ||
1084 | return pVariable; | ||
1085 | } | ||
1086 | |||
1087 | public ParserRule getVariableRule() { | ||
1088 | return getVariableAccess().getRule(); | ||
1089 | } | ||
1090 | |||
1091 | //Assignment: | ||
1092 | // input=EventReference (multiple?="+=" | ":=") output=EventReference; | ||
1093 | public AssignmentElements getAssignmentAccess() { | ||
1094 | return pAssignment; | ||
1095 | } | ||
1096 | |||
1097 | public ParserRule getAssignmentRule() { | ||
1098 | return getAssignmentAccess().getRule(); | ||
1099 | } | ||
1100 | |||
1101 | //EventReference: | ||
1102 | // component=[Variable] "." event=[EventDeclaration]; | ||
1103 | public EventReferenceElements getEventReferenceAccess() { | ||
1104 | return pEventReference; | ||
1105 | } | ||
1106 | |||
1107 | public ParserRule getEventReferenceRule() { | ||
1108 | return getEventReferenceAccess().getRule(); | ||
1109 | } | ||
1110 | |||
1111 | //ComponentInstance: | ||
1112 | // "=>" componentType=[ComponentDefinition|QualifiedName] name=ID?; | ||
1113 | public ComponentInstanceElements getComponentInstanceAccess() { | ||
1114 | return pComponentInstance; | ||
1115 | } | ||
1116 | |||
1117 | public ParserRule getComponentInstanceRule() { | ||
1118 | return getComponentInstanceAccess().getRule(); | ||
1119 | } | ||
1120 | |||
1121 | //QualifiedName: | ||
1122 | // ID ("." ID)*; | ||
1123 | public QualifiedNameElements getQualifiedNameAccess() { | ||
1124 | return pQualifiedName; | ||
1125 | } | ||
1126 | |||
1127 | public ParserRule getQualifiedNameRule() { | ||
1128 | return getQualifiedNameAccess().getRule(); | ||
1129 | } | ||
1130 | |||
1131 | //QualifiedNameWithWildcard: | ||
1132 | // QualifiedName ("." "*")?; | ||
1133 | public QualifiedNameWithWildcardElements getQualifiedNameWithWildcardAccess() { | ||
1134 | return pQualifiedNameWithWildcard; | ||
1135 | } | ||
1136 | |||
1137 | public ParserRule getQualifiedNameWithWildcardRule() { | ||
1138 | return getQualifiedNameWithWildcardAccess().getRule(); | ||
1139 | } | ||
1140 | |||
1141 | //terminal DOULBE returns ecore::EDouble: | ||
1142 | // '0'..'9'+ ("." '0'..'9'+ | ("." '0'..'9'+)? ("e" | "E") ("+" | "-")? '0'..'9'+); | ||
1143 | public TerminalRule getDOULBERule() { | ||
1144 | return tDOULBE; | ||
1145 | } | ||
1146 | |||
1147 | //terminal ID: | ||
1148 | // '^'? ('a'..'z' | 'A'..'Z' | '_') ('a'..'z' | 'A'..'Z' | '_' | '0'..'9')*; | ||
1149 | public TerminalRule getIDRule() { | ||
1150 | return gaTerminals.getIDRule(); | ||
1151 | } | ||
1152 | |||
1153 | //terminal INT returns ecore::EInt: | ||
1154 | // '0'..'9'+; | ||
1155 | public TerminalRule getINTRule() { | ||
1156 | return gaTerminals.getINTRule(); | ||
1157 | } | ||
1158 | |||
1159 | //terminal STRING: | ||
1160 | // '"' ('\\' . | !('\\' | '"'))* '"' | | ||
1161 | // "'" ('\\' . | !('\\' | "'"))* "'"; | ||
1162 | public TerminalRule getSTRINGRule() { | ||
1163 | return gaTerminals.getSTRINGRule(); | ||
1164 | } | ||
1165 | |||
1166 | //terminal ML_COMMENT: | ||
1167 | // '/*'->'*/'; | ||
1168 | public TerminalRule getML_COMMENTRule() { | ||
1169 | return gaTerminals.getML_COMMENTRule(); | ||
1170 | } | ||
1171 | |||
1172 | //terminal SL_COMMENT: | ||
1173 | // '//' !('\n' | '\r')* ('\r'? '\n')?; | ||
1174 | public TerminalRule getSL_COMMENTRule() { | ||
1175 | return gaTerminals.getSL_COMMENTRule(); | ||
1176 | } | ||
1177 | |||
1178 | //terminal WS: | ||
1179 | // ' ' | '\t' | '\r' | '\n'+; | ||
1180 | public TerminalRule getWSRule() { | ||
1181 | return gaTerminals.getWSRule(); | ||
1182 | } | ||
1183 | |||
1184 | //terminal ANY_OTHER: | ||
1185 | // .; | ||
1186 | public TerminalRule getANY_OTHERRule() { | ||
1187 | return gaTerminals.getANY_OTHERRule(); | ||
1188 | } | ||
1189 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/AbstractCftLanguageValidator.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/AbstractCftLanguageValidator.java new file mode 100644 index 00000000..a0c1efe7 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/AbstractCftLanguageValidator.java | |||
@@ -0,0 +1,19 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.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 AbstractCftLanguageValidator 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.faulttree.components.cftLanguage.CftLanguagePackage.eINSTANCE); | ||
17 | return result; | ||
18 | } | ||
19 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/CftLanguageConfigurableIssueCodesProvider.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/CftLanguageConfigurableIssueCodesProvider.java new file mode 100644 index 00000000..642dcb1d --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/CftLanguageConfigurableIssueCodesProvider.java | |||
@@ -0,0 +1,22 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.validation; | ||
5 | |||
6 | import org.eclipse.xtext.preferences.PreferenceKey; | ||
7 | import org.eclipse.xtext.util.IAcceptor; | ||
8 | import org.eclipse.xtext.validation.ConfigurableIssueCodesProvider; | ||
9 | import org.eclipse.xtext.validation.SeverityConverter; | ||
10 | |||
11 | @SuppressWarnings("restriction") | ||
12 | public class CftLanguageConfigurableIssueCodesProvider extends ConfigurableIssueCodesProvider { | ||
13 | protected static final String ISSUE_CODE_PREFIX = "hu.bme.mit.inf.dslreasoner.faulttree.components."; | ||
14 | |||
15 | public static final String DEPRECATED_MODEL_PART = ISSUE_CODE_PREFIX + "deprecatedModelPart"; | ||
16 | |||
17 | @Override | ||
18 | protected void initialize(IAcceptor<PreferenceKey> acceptor) { | ||
19 | super.initialize(acceptor); | ||
20 | acceptor.accept(create(DEPRECATED_MODEL_PART, SeverityConverter.SEVERITY_WARNING)); | ||
21 | } | ||
22 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguage.xtext b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguage.xtext new file mode 100644 index 00000000..3d82413f --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguage.xtext | |||
@@ -0,0 +1,82 @@ | |||
1 | grammar hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage 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/emf/PatternLanguage" as vql | ||
5 | |||
6 | generate cftLanguage "http://www.bme.hu/mit/inf/dslreasoner/faulttree/components/CftLanguage" | ||
7 | |||
8 | CftModel: | ||
9 | "package" packageName=QualifiedName ";"? | ||
10 | imports+=ImportDeclaration* | ||
11 | (componentDefinitions+=ComponentDefinition | transformationDefinitions+=TransformationDefinition)*; | ||
12 | |||
13 | ImportDeclaration: | ||
14 | "import" importedNamespace=QualifiedNameWithWildcard ";"?; | ||
15 | |||
16 | ComponentDefinition: | ||
17 | "cft" name=ID "{" | ||
18 | (("in" inputEvents+=InputEvent* ";")? & ("out" outputEvents+=[EventDeclaration]* ";")?) | ||
19 | (eventDefinitions+=EventDefinition ";")* | ||
20 | "}"; | ||
21 | |||
22 | EventDeclaration: | ||
23 | InputEvent | EventDefinition; | ||
24 | |||
25 | InputEvent: | ||
26 | name=ID multiple?="[]"?; | ||
27 | |||
28 | EventDefinition: | ||
29 | BasicEventDefinition | GateDefinition; | ||
30 | |||
31 | BasicEventDefinition: | ||
32 | name=ID "lambda" "=" rate=DOULBE; | ||
33 | |||
34 | GateDefinition: | ||
35 | AndGate | OrGate; | ||
36 | |||
37 | AndGate: | ||
38 | name=ID "and" inputEvents+=[EventDeclaration]*; | ||
39 | |||
40 | OrGate: | ||
41 | name=ID "or" inputEvents+=[EventDeclaration]*; | ||
42 | |||
43 | TransformationDefinition: | ||
44 | "transformation" name=ID "{" | ||
45 | mappingDefinitions+=MappingDefinition* | ||
46 | "}"; | ||
47 | |||
48 | MappingDefinition: | ||
49 | topLevel?="toplevel"? "mapping" pattern=[vql::Pattern|QualifiedName] | ||
50 | "(" parameters+=MappingParameter ("," parameters+=MappingParameter)* ")" | ||
51 | (componentInstance=ComponentInstance)? ("{" | ||
52 | ((lookupDefinitions+=LookupDefinition | assignments+=Assignment) ";")* | ||
53 | "}")?; | ||
54 | |||
55 | MappingParameter: | ||
56 | name=ID; | ||
57 | |||
58 | LookupDefinition: | ||
59 | "lookup" mapping=[MappingDefinition] | ||
60 | "(" arguments+=[MappingParameter] ("," arguments+=[MappingParameter])* ")" | ||
61 | "as" name=ID; | ||
62 | |||
63 | Variable: | ||
64 | ComponentInstance | LookupDefinition; | ||
65 | |||
66 | Assignment: | ||
67 | input=EventReference (multiple?="+=" | ":=") output=EventReference; | ||
68 | |||
69 | EventReference: | ||
70 | component=[Variable] "." event=[EventDeclaration]; | ||
71 | |||
72 | ComponentInstance: | ||
73 | "=>" componentType=[ComponentDefinition|QualifiedName] name=ID?; | ||
74 | |||
75 | QualifiedName returns ecore::EString: | ||
76 | ID ("." ID)*; | ||
77 | |||
78 | QualifiedNameWithWildcard returns ecore::EString: | ||
79 | QualifiedName ("." "*")?; | ||
80 | |||
81 | terminal DOULBE returns ecore::EDouble: | ||
82 | ('0'..'9')+ ("." ('0'..'9')+ | ("." ('0'..'9')+)? ("e" | "E") ("+" | "-")? ('0'..'9')+); | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguageRuntimeModule.xtend b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguageRuntimeModule.xtend new file mode 100644 index 00000000..f780591d --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguageRuntimeModule.xtend | |||
@@ -0,0 +1,33 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components | ||
5 | |||
6 | import com.google.inject.Binder | ||
7 | import com.google.inject.name.Names | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.naming.CftLanguageQualifiedNameProvider | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.scoping.CftLanguageImportedNamespaceAwareLocalScopeProvider | ||
10 | import org.eclipse.xtext.scoping.IScopeProvider | ||
11 | import org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider | ||
12 | import org.eclipse.xtext.scoping.impl.DefaultGlobalScopeProvider | ||
13 | |||
14 | /** | ||
15 | * Use this class to register components to be used at runtime / without the Equinox extension registry. | ||
16 | */ | ||
17 | class CftLanguageRuntimeModule extends AbstractCftLanguageRuntimeModule { | ||
18 | |||
19 | override bindIGlobalScopeProvider() { | ||
20 | DefaultGlobalScopeProvider | ||
21 | } | ||
22 | |||
23 | override configureIScopeProviderDelegate(Binder binder) { | ||
24 | binder.bind(IScopeProvider).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to( | ||
25 | CftLanguageImportedNamespaceAwareLocalScopeProvider) | ||
26 | } | ||
27 | |||
28 | |||
29 | override bindIQualifiedNameProvider() { | ||
30 | CftLanguageQualifiedNameProvider | ||
31 | } | ||
32 | |||
33 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguageStandaloneSetup.xtend b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguageStandaloneSetup.xtend new file mode 100644 index 00000000..7ec57980 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguageStandaloneSetup.xtend | |||
@@ -0,0 +1,15 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components | ||
5 | |||
6 | |||
7 | /** | ||
8 | * Initialization support for running Xtext languages without Equinox extension registry. | ||
9 | */ | ||
10 | class CftLanguageStandaloneSetup extends CftLanguageStandaloneSetupGenerated { | ||
11 | |||
12 | def static void doSetup() { | ||
13 | new CftLanguageStandaloneSetup().createInjectorAndDoEMFRegistration() | ||
14 | } | ||
15 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/GenerateCftLanguage.mwe2 b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/GenerateCftLanguage.mwe2 new file mode 100644 index 00000000..fa383404 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/GenerateCftLanguage.mwe2 | |||
@@ -0,0 +1,46 @@ | |||
1 | module hu.bme.mit.inf.dslreasoner.faulttree.components.GenerateCftLanguage | ||
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 | configuration = { | ||
12 | project = StandardProjectConfig { | ||
13 | baseName = "hu.bme.mit.inf.dslreasoner.faulttree.components" | ||
14 | rootPath = rootPath | ||
15 | eclipsePlugin = { | ||
16 | enabled = true | ||
17 | } | ||
18 | createEclipseMetaData = true | ||
19 | } | ||
20 | code = { | ||
21 | encoding = "UTF-8" | ||
22 | lineDelimiter = "\n" | ||
23 | fileHeader = "/*\n * generated by Xtext \${version}\n */" | ||
24 | } | ||
25 | } | ||
26 | language = StandardLanguage { | ||
27 | name = "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage" | ||
28 | fileExtensions = "cft" | ||
29 | |||
30 | referencedResource = "platform:/resource/org.eclipse.emf.ecore/model/Ecore.genmodel" | ||
31 | referencedResource = "platform:/resource/org.eclipse.viatra.query.patternlanguage.emf/model/PatternLanguage.genmodel" | ||
32 | |||
33 | serializer = { | ||
34 | generateStub = false | ||
35 | } | ||
36 | validator = { | ||
37 | // composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator" | ||
38 | // Generates checks for @Deprecated grammar annotations, an IssueProvider and a corresponding PropertyPage | ||
39 | generateDeprecationValidation = true | ||
40 | } | ||
41 | junitSupport = { | ||
42 | junitVersion = "5" | ||
43 | } | ||
44 | } | ||
45 | } | ||
46 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/generator/CftLanguageGenerator.xtend b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/generator/CftLanguageGenerator.xtend new file mode 100644 index 00000000..d7ebace4 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/generator/CftLanguageGenerator.xtend | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.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 CftLanguageGenerator 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(Greeting) | ||
22 | // .map[name] | ||
23 | // .join(', ')) | ||
24 | } | ||
25 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/CftLanguageQualifiedNameProvider.xtend b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/CftLanguageQualifiedNameProvider.xtend new file mode 100644 index 00000000..eb96901c --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/CftLanguageQualifiedNameProvider.xtend | |||
@@ -0,0 +1,27 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.faulttree.components.naming | ||
2 | |||
3 | import com.google.inject.Inject | ||
4 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition | ||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition | ||
6 | import org.eclipse.emf.ecore.EObject | ||
7 | import org.eclipse.xtext.naming.DefaultDeclarativeQualifiedNameProvider | ||
8 | |||
9 | class CftLanguageQualifiedNameProvider extends DefaultDeclarativeQualifiedNameProvider { | ||
10 | @Inject PackageNameProvider packageNameProvider | ||
11 | |||
12 | def qualifiedName(ComponentDefinition componentDefinition) { | ||
13 | computePackageQualifiedName(componentDefinition, componentDefinition.name) | ||
14 | } | ||
15 | |||
16 | def qualifiedName(TransformationDefinition transformationDefinition) { | ||
17 | computePackageQualifiedName(transformationDefinition, transformationDefinition.name) | ||
18 | } | ||
19 | |||
20 | private def computePackageQualifiedName(EObject eObj, String name) { | ||
21 | if (name === null) { | ||
22 | return null | ||
23 | } | ||
24 | val packageQualifier = packageNameProvider.getPackageName(eObj) | ||
25 | packageQualifier.append(name) | ||
26 | } | ||
27 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/PackageNameProvider.xtend b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/PackageNameProvider.xtend new file mode 100644 index 00000000..a05c8138 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/PackageNameProvider.xtend | |||
@@ -0,0 +1,30 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.faulttree.components.naming | ||
2 | |||
3 | import com.google.inject.Inject | ||
4 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel | ||
5 | import org.eclipse.emf.ecore.EObject | ||
6 | import org.eclipse.xtend.lib.annotations.FinalFieldsConstructor | ||
7 | import org.eclipse.xtext.EcoreUtil2 | ||
8 | import org.eclipse.xtext.naming.IQualifiedNameConverter | ||
9 | import org.eclipse.xtext.naming.QualifiedName | ||
10 | |||
11 | class PackageNameProvider { | ||
12 | val IQualifiedNameConverter qualifiedNameConverter | ||
13 | |||
14 | @FinalFieldsConstructor | ||
15 | @Inject | ||
16 | new() { | ||
17 | } | ||
18 | |||
19 | def getPackageName(EObject eObj) { | ||
20 | if (eObj === null) { | ||
21 | return QualifiedName.EMPTY | ||
22 | } | ||
23 | val pacakgeName = EcoreUtil2.getContainerOfType(eObj, CftModel)?.packageName | ||
24 | if (pacakgeName.isNullOrEmpty) { | ||
25 | QualifiedName.EMPTY | ||
26 | } else { | ||
27 | qualifiedNameConverter.toQualifiedName(pacakgeName) | ||
28 | } | ||
29 | } | ||
30 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/CftLanguageImportedNamespaceAwareLocalScopeProvider.xtend b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/CftLanguageImportedNamespaceAwareLocalScopeProvider.xtend new file mode 100644 index 00000000..39a6e5a5 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/CftLanguageImportedNamespaceAwareLocalScopeProvider.xtend | |||
@@ -0,0 +1,45 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.faulttree.components.scoping | ||
2 | |||
3 | import com.google.inject.Inject | ||
4 | import com.google.inject.Singleton | ||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.components.naming.PackageNameProvider | ||
6 | import org.eclipse.emf.ecore.EObject | ||
7 | import org.eclipse.emf.ecore.EReference | ||
8 | import org.eclipse.xtext.naming.IQualifiedNameConverter | ||
9 | import org.eclipse.xtext.naming.IQualifiedNameProvider | ||
10 | import org.eclipse.xtext.scoping.ICaseInsensitivityHelper | ||
11 | import org.eclipse.xtext.scoping.IGlobalScopeProvider | ||
12 | import org.eclipse.xtext.scoping.IScope | ||
13 | import org.eclipse.xtext.scoping.impl.ImportedNamespaceAwareLocalScopeProvider | ||
14 | |||
15 | @Singleton | ||
16 | class CftLanguageImportedNamespaceAwareLocalScopeProvider extends ImportedNamespaceAwareLocalScopeProvider { | ||
17 | @Inject PackageNameProvider packageNameProvider | ||
18 | |||
19 | @Inject | ||
20 | new() { | ||
21 | } | ||
22 | |||
23 | new(IGlobalScopeProvider globalScopeProvider, IQualifiedNameProvider qualifiedNameProvider, | ||
24 | IQualifiedNameConverter qualifiedNameConverter, ICaseInsensitivityHelper caseInsensitivityHelper) { | ||
25 | super(globalScopeProvider, qualifiedNameProvider, qualifiedNameConverter, caseInsensitivityHelper) | ||
26 | packageNameProvider = new PackageNameProvider(qualifiedNameConverter) | ||
27 | } | ||
28 | |||
29 | override protected internalGetImportedNamespaceResolvers(EObject context, boolean ignoreCase) { | ||
30 | val resolvers = super.internalGetImportedNamespaceResolvers(context, ignoreCase) | ||
31 | val packageName = packageNameProvider.getPackageName(context) | ||
32 | if (!packageName.empty) { | ||
33 | val packageNormalizer = doCreateImportNormalizer(packageName, true, ignoreCase) | ||
34 | resolvers.add(0, packageNormalizer) | ||
35 | } | ||
36 | resolvers | ||
37 | } | ||
38 | |||
39 | def createImportNormalizedScope(IScope elements, EObject context, EReference reference) { | ||
40 | val ignoreCase = isIgnoreCase(reference) | ||
41 | val type = reference.EReferenceType | ||
42 | val namespaceResolvers = getImportedNamespaceResolvers(context, ignoreCase) | ||
43 | createImportScope(elements, namespaceResolvers, null, type, ignoreCase) | ||
44 | } | ||
45 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/CftLanguageScopeProvider.xtend b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/CftLanguageScopeProvider.xtend new file mode 100644 index 00000000..ab708087 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/CftLanguageScopeProvider.xtend | |||
@@ -0,0 +1,138 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.scoping | ||
5 | |||
6 | import com.google.common.collect.Lists | ||
7 | import com.google.inject.Inject | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference | ||
11 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition | ||
12 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition | ||
13 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition | ||
14 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable | ||
15 | import org.eclipse.emf.common.notify.Notifier | ||
16 | import org.eclipse.emf.ecore.EObject | ||
17 | import org.eclipse.emf.ecore.EReference | ||
18 | import org.eclipse.xtext.EcoreUtil2 | ||
19 | import org.eclipse.xtext.resource.EObjectDescription | ||
20 | import org.eclipse.xtext.resource.IResourceDescriptions | ||
21 | import org.eclipse.xtext.resource.IResourceDescriptionsProvider | ||
22 | import org.eclipse.xtext.scoping.IScope | ||
23 | import org.eclipse.xtext.scoping.Scopes | ||
24 | import org.eclipse.xtext.scoping.impl.SimpleScope | ||
25 | |||
26 | import static hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage.Literals.* | ||
27 | |||
28 | /** | ||
29 | * This class contains custom scoping description. | ||
30 | * | ||
31 | * See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#scoping | ||
32 | * on how and when to use it. | ||
33 | */ | ||
34 | class CftLanguageScopeProvider extends AbstractCftLanguageScopeProvider { | ||
35 | public static val SINGLETON_VARIABLE_PREFIX = "_" | ||
36 | |||
37 | @Inject IResourceDescriptionsProvider resourceDescriptionsProvider | ||
38 | @Inject CftLanguageImportedNamespaceAwareLocalScopeProvider importedNamespaceProvider | ||
39 | |||
40 | override getScope(EObject context, EReference reference) { | ||
41 | switch (reference) { | ||
42 | case LOOKUP_DEFINITION__MAPPING: | ||
43 | getRuleDefinitionsScope(context, reference) | ||
44 | case LOOKUP_DEFINITION__ARGUMENTS: | ||
45 | getMappingParametersScope(context) | ||
46 | case EVENT_REFERENCE__COMPONENT: | ||
47 | getComponentInstancesScope(context) | ||
48 | case EVENT_REFERENCE__EVENT: | ||
49 | getEventDeclarationsScope(context) | ||
50 | default: | ||
51 | super.getScope(context, reference) | ||
52 | } | ||
53 | } | ||
54 | |||
55 | protected def getRuleDefinitionsScope(EObject context, EReference referece) { | ||
56 | val transformationDefinition = EcoreUtil2.getContainerOfType(context, TransformationDefinition) | ||
57 | if (transformationDefinition === null) { | ||
58 | return IScope.NULLSCOPE | ||
59 | } | ||
60 | val resourceDescriptions = getResourceDescriptions(transformationDefinition) | ||
61 | val mappingDefinitionDescriptions = toMappingDefinitionDescriptions(resourceDescriptions, | ||
62 | transformationDefinition.mappingDefinitions) | ||
63 | val ruleDefinitionsScope = new SimpleScope(IScope.NULLSCOPE, mappingDefinitionDescriptions) | ||
64 | importedNamespaceProvider.createImportNormalizedScope(ruleDefinitionsScope, context, referece) | ||
65 | } | ||
66 | |||
67 | protected def toMappingDefinitionDescriptions(IResourceDescriptions resourceDescriptions, | ||
68 | Iterable<? extends MappingDefinition> ruleDefinitions) { | ||
69 | val mappingDefinitionDescriptions = Lists.newArrayListWithExpectedSize(ruleDefinitions.size) | ||
70 | for (ruleDefinition : ruleDefinitions) { | ||
71 | val pattern = ruleDefinition?.pattern | ||
72 | if (pattern !== null) { | ||
73 | val patternName = resourceDescriptions.getExportedObjectsByObject(pattern).head?.qualifiedName | ||
74 | if (patternName !== null) { | ||
75 | mappingDefinitionDescriptions += EObjectDescription.create(patternName, ruleDefinition) | ||
76 | } | ||
77 | } | ||
78 | |||
79 | } | ||
80 | mappingDefinitionDescriptions | ||
81 | } | ||
82 | |||
83 | private def getResourceDescriptions(Notifier notifier) { | ||
84 | val resourceSet = EcoreUtil2.getResourceSet(notifier) | ||
85 | if (resourceSet === null) { | ||
86 | new IResourceDescriptions.NullImpl | ||
87 | } else { | ||
88 | resourceDescriptionsProvider.getResourceDescriptions(resourceSet) | ||
89 | } | ||
90 | } | ||
91 | |||
92 | protected def getMappingParametersScope(EObject context) { | ||
93 | val mappingDefinition = EcoreUtil2.getContainerOfType(context, MappingDefinition) | ||
94 | if (mappingDefinition === null) { | ||
95 | return IScope.NULLSCOPE | ||
96 | } | ||
97 | val variables = mappingDefinition.parameters.filter [ | ||
98 | !name.startsWith(SINGLETON_VARIABLE_PREFIX) | ||
99 | ] | ||
100 | Scopes.scopeFor(variables) | ||
101 | } | ||
102 | |||
103 | protected def getComponentInstancesScope(EObject context) { | ||
104 | val mappingDefinition = EcoreUtil2.getContainerOfType(context, MappingDefinition) | ||
105 | if (mappingDefinition === null) { | ||
106 | return IScope.NULLSCOPE | ||
107 | } | ||
108 | val componentInstances = <Variable>newArrayList | ||
109 | componentInstances.addAll(mappingDefinition.lookupDefinitions) | ||
110 | if (mappingDefinition.componentInstance !== null) { | ||
111 | componentInstances += mappingDefinition.componentInstance | ||
112 | } | ||
113 | Scopes.scopeFor(componentInstances) | ||
114 | } | ||
115 | |||
116 | protected def getEventDeclarationsScope(EObject context) { | ||
117 | val variable = EcoreUtil2.getContainerOfType(context, EventReference)?.component | ||
118 | val events = switch (variable) { | ||
119 | ComponentInstance: | ||
120 | variable.componentType?.allEventDeclarations | ||
121 | LookupDefinition: | ||
122 | variable.mapping?.componentInstance?.componentType?.allEventDeclarations | ||
123 | default: | ||
124 | null | ||
125 | } | ||
126 | if (events === null) { | ||
127 | return IScope.NULLSCOPE | ||
128 | } | ||
129 | Scopes.scopeFor(events) | ||
130 | } | ||
131 | |||
132 | private def getAllEventDeclarations(ComponentDefinition componentDefinition) { | ||
133 | val eventDeclarations = newArrayList | ||
134 | eventDeclarations.addAll(componentDefinition.inputEvents) | ||
135 | eventDeclarations.addAll(componentDefinition.eventDefinitions) | ||
136 | eventDeclarations | ||
137 | } | ||
138 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/CftLanguageValidator.xtend b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/CftLanguageValidator.xtend new file mode 100644 index 00000000..f1da10bb --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/CftLanguageValidator.xtend | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.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 CftLanguageValidator extends AbstractCftLanguageValidator { | ||
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 | // CftLanguagePackage.Literals.GREETING__NAME, | ||
21 | // INVALID_NAME) | ||
22 | // } | ||
23 | // } | ||
24 | |||
25 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/.CftLanguageRuntimeModule.xtendbin b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/.CftLanguageRuntimeModule.xtendbin new file mode 100644 index 00000000..5f61bd34 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/.CftLanguageRuntimeModule.xtendbin | |||
Binary files differ | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/.CftLanguageStandaloneSetup.xtendbin b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/.CftLanguageStandaloneSetup.xtendbin new file mode 100644 index 00000000..deb1eee6 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/.CftLanguageStandaloneSetup.xtendbin | |||
Binary files differ | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/.gitignore b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/.gitignore new file mode 100644 index 00000000..b3125e3f --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/.gitignore | |||
@@ -0,0 +1,2 @@ | |||
1 | /.CftLanguageRuntimeModule.java._trace | ||
2 | /.CftLanguageStandaloneSetup.java._trace | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguageRuntimeModule.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguageRuntimeModule.java new file mode 100644 index 00000000..c63cd33c --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguageRuntimeModule.java | |||
@@ -0,0 +1,37 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components; | ||
5 | |||
6 | import com.google.inject.Binder; | ||
7 | import com.google.inject.name.Names; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.AbstractCftLanguageRuntimeModule; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.naming.CftLanguageQualifiedNameProvider; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.scoping.CftLanguageImportedNamespaceAwareLocalScopeProvider; | ||
11 | import org.eclipse.xtext.naming.IQualifiedNameProvider; | ||
12 | import org.eclipse.xtext.scoping.IGlobalScopeProvider; | ||
13 | import org.eclipse.xtext.scoping.IScopeProvider; | ||
14 | import org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider; | ||
15 | import org.eclipse.xtext.scoping.impl.DefaultGlobalScopeProvider; | ||
16 | |||
17 | /** | ||
18 | * Use this class to register components to be used at runtime / without the Equinox extension registry. | ||
19 | */ | ||
20 | @SuppressWarnings("all") | ||
21 | public class CftLanguageRuntimeModule extends AbstractCftLanguageRuntimeModule { | ||
22 | @Override | ||
23 | public Class<? extends IGlobalScopeProvider> bindIGlobalScopeProvider() { | ||
24 | return DefaultGlobalScopeProvider.class; | ||
25 | } | ||
26 | |||
27 | @Override | ||
28 | public void configureIScopeProviderDelegate(final Binder binder) { | ||
29 | binder.<IScopeProvider>bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to( | ||
30 | CftLanguageImportedNamespaceAwareLocalScopeProvider.class); | ||
31 | } | ||
32 | |||
33 | @Override | ||
34 | public Class<? extends IQualifiedNameProvider> bindIQualifiedNameProvider() { | ||
35 | return CftLanguageQualifiedNameProvider.class; | ||
36 | } | ||
37 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguageStandaloneSetup.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguageStandaloneSetup.java new file mode 100644 index 00000000..3eed418e --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguageStandaloneSetup.java | |||
@@ -0,0 +1,16 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguageStandaloneSetupGenerated; | ||
7 | |||
8 | /** | ||
9 | * Initialization support for running Xtext languages without Equinox extension registry. | ||
10 | */ | ||
11 | @SuppressWarnings("all") | ||
12 | public class CftLanguageStandaloneSetup extends CftLanguageStandaloneSetupGenerated { | ||
13 | public static void doSetup() { | ||
14 | new CftLanguageStandaloneSetup().createInjectorAndDoEMFRegistration(); | ||
15 | } | ||
16 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/generator/.CftLanguageGenerator.xtendbin b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/generator/.CftLanguageGenerator.xtendbin new file mode 100644 index 00000000..a974921d --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/generator/.CftLanguageGenerator.xtendbin | |||
Binary files differ | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/generator/.gitignore b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/generator/.gitignore new file mode 100644 index 00000000..c1d8820b --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/generator/.gitignore | |||
@@ -0,0 +1 @@ | |||
/.CftLanguageGenerator.java._trace | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/generator/CftLanguageGenerator.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/generator/CftLanguageGenerator.java new file mode 100644 index 00000000..8dddfb2e --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/generator/CftLanguageGenerator.java | |||
@@ -0,0 +1,21 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.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 | @SuppressWarnings("all") | ||
17 | public class CftLanguageGenerator extends AbstractGenerator { | ||
18 | @Override | ||
19 | public void doGenerate(final Resource resource, final IFileSystemAccess2 fsa, final IGeneratorContext context) { | ||
20 | } | ||
21 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/.CftLanguageQualifiedNameProvider.xtendbin b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/.CftLanguageQualifiedNameProvider.xtendbin new file mode 100644 index 00000000..73ada4f1 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/.CftLanguageQualifiedNameProvider.xtendbin | |||
Binary files differ | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/.PackageNameProvider.xtendbin b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/.PackageNameProvider.xtendbin new file mode 100644 index 00000000..6f4eaae7 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/.PackageNameProvider.xtendbin | |||
Binary files differ | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/.gitignore b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/.gitignore new file mode 100644 index 00000000..b982f16c --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/.gitignore | |||
@@ -0,0 +1,2 @@ | |||
1 | /.CftLanguageQualifiedNameProvider.java._trace | ||
2 | /.PackageNameProvider.java._trace | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/CftLanguageQualifiedNameProvider.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/CftLanguageQualifiedNameProvider.java new file mode 100644 index 00000000..4e0607dd --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/CftLanguageQualifiedNameProvider.java | |||
@@ -0,0 +1,35 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.faulttree.components.naming; | ||
2 | |||
3 | import com.google.inject.Inject; | ||
4 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition; | ||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition; | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.naming.PackageNameProvider; | ||
7 | import org.eclipse.emf.ecore.EObject; | ||
8 | import org.eclipse.xtext.naming.DefaultDeclarativeQualifiedNameProvider; | ||
9 | import org.eclipse.xtext.naming.QualifiedName; | ||
10 | |||
11 | @SuppressWarnings("all") | ||
12 | public class CftLanguageQualifiedNameProvider extends DefaultDeclarativeQualifiedNameProvider { | ||
13 | @Inject | ||
14 | private PackageNameProvider packageNameProvider; | ||
15 | |||
16 | public QualifiedName qualifiedName(final ComponentDefinition componentDefinition) { | ||
17 | return this.computePackageQualifiedName(componentDefinition, componentDefinition.getName()); | ||
18 | } | ||
19 | |||
20 | public QualifiedName qualifiedName(final TransformationDefinition transformationDefinition) { | ||
21 | return this.computePackageQualifiedName(transformationDefinition, transformationDefinition.getName()); | ||
22 | } | ||
23 | |||
24 | private QualifiedName computePackageQualifiedName(final EObject eObj, final String name) { | ||
25 | QualifiedName _xblockexpression = null; | ||
26 | { | ||
27 | if ((name == null)) { | ||
28 | return null; | ||
29 | } | ||
30 | final QualifiedName packageQualifier = this.packageNameProvider.getPackageName(eObj); | ||
31 | _xblockexpression = packageQualifier.append(name); | ||
32 | } | ||
33 | return _xblockexpression; | ||
34 | } | ||
35 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/PackageNameProvider.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/PackageNameProvider.java new file mode 100644 index 00000000..5841dc75 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/naming/PackageNameProvider.java | |||
@@ -0,0 +1,46 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.faulttree.components.naming; | ||
2 | |||
3 | import com.google.inject.Inject; | ||
4 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel; | ||
5 | import org.eclipse.emf.ecore.EObject; | ||
6 | import org.eclipse.xtend.lib.annotations.FinalFieldsConstructor; | ||
7 | import org.eclipse.xtext.EcoreUtil2; | ||
8 | import org.eclipse.xtext.naming.IQualifiedNameConverter; | ||
9 | import org.eclipse.xtext.naming.QualifiedName; | ||
10 | import org.eclipse.xtext.xbase.lib.StringExtensions; | ||
11 | |||
12 | @SuppressWarnings("all") | ||
13 | public class PackageNameProvider { | ||
14 | private final IQualifiedNameConverter qualifiedNameConverter; | ||
15 | |||
16 | @FinalFieldsConstructor | ||
17 | @Inject | ||
18 | public PackageNameProvider(final IQualifiedNameConverter qualifiedNameConverter) { | ||
19 | super(); | ||
20 | this.qualifiedNameConverter = qualifiedNameConverter; | ||
21 | } | ||
22 | |||
23 | public QualifiedName getPackageName(final EObject eObj) { | ||
24 | QualifiedName _xblockexpression = null; | ||
25 | { | ||
26 | if ((eObj == null)) { | ||
27 | return QualifiedName.EMPTY; | ||
28 | } | ||
29 | CftModel _containerOfType = EcoreUtil2.<CftModel>getContainerOfType(eObj, CftModel.class); | ||
30 | String _packageName = null; | ||
31 | if (_containerOfType!=null) { | ||
32 | _packageName=_containerOfType.getPackageName(); | ||
33 | } | ||
34 | final String pacakgeName = _packageName; | ||
35 | QualifiedName _xifexpression = null; | ||
36 | boolean _isNullOrEmpty = StringExtensions.isNullOrEmpty(pacakgeName); | ||
37 | if (_isNullOrEmpty) { | ||
38 | _xifexpression = QualifiedName.EMPTY; | ||
39 | } else { | ||
40 | _xifexpression = this.qualifiedNameConverter.toQualifiedName(pacakgeName); | ||
41 | } | ||
42 | _xblockexpression = _xifexpression; | ||
43 | } | ||
44 | return _xblockexpression; | ||
45 | } | ||
46 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/.CftLanguageImportedNamespaceAwareLocalScopeProvider.xtendbin b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/.CftLanguageImportedNamespaceAwareLocalScopeProvider.xtendbin new file mode 100644 index 00000000..4a0036bd --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/.CftLanguageImportedNamespaceAwareLocalScopeProvider.xtendbin | |||
Binary files differ | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/.CftLanguageScopeProvider.xtendbin b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/.CftLanguageScopeProvider.xtendbin new file mode 100644 index 00000000..722c0e58 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/.CftLanguageScopeProvider.xtendbin | |||
Binary files differ | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/.gitignore b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/.gitignore new file mode 100644 index 00000000..75285868 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/.gitignore | |||
@@ -0,0 +1,4 @@ | |||
1 | /.CftLanguageScopeProvider.java._trace | ||
2 | /.CftLanguageImportedNamespaceAwareScopeProvider.java._trace | ||
3 | /.CftLanguageImportedNamespaceAwareScopeLocalProvider.java._trace | ||
4 | /.CftLanguageImportedNamespaceAwareLocalScopeProvider.java._trace | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/CftLanguageImportedNamespaceAwareLocalScopeProvider.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/CftLanguageImportedNamespaceAwareLocalScopeProvider.java new file mode 100644 index 00000000..d90fe787 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/CftLanguageImportedNamespaceAwareLocalScopeProvider.java | |||
@@ -0,0 +1,63 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.faulttree.components.scoping; | ||
2 | |||
3 | import com.google.inject.Inject; | ||
4 | import com.google.inject.Singleton; | ||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.components.naming.PackageNameProvider; | ||
6 | import java.util.List; | ||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | import org.eclipse.emf.ecore.EObject; | ||
9 | import org.eclipse.emf.ecore.EReference; | ||
10 | import org.eclipse.xtext.naming.IQualifiedNameConverter; | ||
11 | import org.eclipse.xtext.naming.IQualifiedNameProvider; | ||
12 | import org.eclipse.xtext.naming.QualifiedName; | ||
13 | import org.eclipse.xtext.scoping.ICaseInsensitivityHelper; | ||
14 | import org.eclipse.xtext.scoping.IGlobalScopeProvider; | ||
15 | import org.eclipse.xtext.scoping.IScope; | ||
16 | import org.eclipse.xtext.scoping.impl.ImportNormalizer; | ||
17 | import org.eclipse.xtext.scoping.impl.ImportScope; | ||
18 | import org.eclipse.xtext.scoping.impl.ImportedNamespaceAwareLocalScopeProvider; | ||
19 | |||
20 | @Singleton | ||
21 | @SuppressWarnings("all") | ||
22 | public class CftLanguageImportedNamespaceAwareLocalScopeProvider extends ImportedNamespaceAwareLocalScopeProvider { | ||
23 | @Inject | ||
24 | private PackageNameProvider packageNameProvider; | ||
25 | |||
26 | @Inject | ||
27 | public CftLanguageImportedNamespaceAwareLocalScopeProvider() { | ||
28 | } | ||
29 | |||
30 | public CftLanguageImportedNamespaceAwareLocalScopeProvider(final IGlobalScopeProvider globalScopeProvider, final IQualifiedNameProvider qualifiedNameProvider, final IQualifiedNameConverter qualifiedNameConverter, final ICaseInsensitivityHelper caseInsensitivityHelper) { | ||
31 | super(globalScopeProvider, qualifiedNameProvider, qualifiedNameConverter, caseInsensitivityHelper); | ||
32 | PackageNameProvider _packageNameProvider = new PackageNameProvider(qualifiedNameConverter); | ||
33 | this.packageNameProvider = _packageNameProvider; | ||
34 | } | ||
35 | |||
36 | @Override | ||
37 | protected List<ImportNormalizer> internalGetImportedNamespaceResolvers(final EObject context, final boolean ignoreCase) { | ||
38 | List<ImportNormalizer> _xblockexpression = null; | ||
39 | { | ||
40 | final List<ImportNormalizer> resolvers = super.internalGetImportedNamespaceResolvers(context, ignoreCase); | ||
41 | final QualifiedName packageName = this.packageNameProvider.getPackageName(context); | ||
42 | boolean _isEmpty = packageName.isEmpty(); | ||
43 | boolean _not = (!_isEmpty); | ||
44 | if (_not) { | ||
45 | final ImportNormalizer packageNormalizer = this.doCreateImportNormalizer(packageName, true, ignoreCase); | ||
46 | resolvers.add(0, packageNormalizer); | ||
47 | } | ||
48 | _xblockexpression = resolvers; | ||
49 | } | ||
50 | return _xblockexpression; | ||
51 | } | ||
52 | |||
53 | public ImportScope createImportNormalizedScope(final IScope elements, final EObject context, final EReference reference) { | ||
54 | ImportScope _xblockexpression = null; | ||
55 | { | ||
56 | final boolean ignoreCase = this.isIgnoreCase(reference); | ||
57 | final EClass type = reference.getEReferenceType(); | ||
58 | final List<ImportNormalizer> namespaceResolvers = this.getImportedNamespaceResolvers(context, ignoreCase); | ||
59 | _xblockexpression = this.createImportScope(elements, namespaceResolvers, null, type, ignoreCase); | ||
60 | } | ||
61 | return _xblockexpression; | ||
62 | } | ||
63 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/CftLanguageScopeProvider.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/CftLanguageScopeProvider.java new file mode 100644 index 00000000..0149c8d1 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/CftLanguageScopeProvider.java | |||
@@ -0,0 +1,248 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.scoping; | ||
5 | |||
6 | import com.google.common.base.Objects; | ||
7 | import com.google.common.collect.Lists; | ||
8 | import com.google.inject.Inject; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition; | ||
11 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance; | ||
12 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration; | ||
13 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference; | ||
14 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition; | ||
15 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition; | ||
16 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter; | ||
17 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition; | ||
18 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable; | ||
19 | import hu.bme.mit.inf.dslreasoner.faulttree.components.scoping.AbstractCftLanguageScopeProvider; | ||
20 | import hu.bme.mit.inf.dslreasoner.faulttree.components.scoping.CftLanguageImportedNamespaceAwareLocalScopeProvider; | ||
21 | import java.util.ArrayList; | ||
22 | import org.eclipse.emf.common.notify.Notifier; | ||
23 | import org.eclipse.emf.ecore.EObject; | ||
24 | import org.eclipse.emf.ecore.EReference; | ||
25 | import org.eclipse.emf.ecore.resource.ResourceSet; | ||
26 | import org.eclipse.viatra.query.patternlanguage.emf.vql.Pattern; | ||
27 | import org.eclipse.xtext.EcoreUtil2; | ||
28 | import org.eclipse.xtext.naming.QualifiedName; | ||
29 | import org.eclipse.xtext.resource.EObjectDescription; | ||
30 | import org.eclipse.xtext.resource.IEObjectDescription; | ||
31 | import org.eclipse.xtext.resource.IResourceDescriptions; | ||
32 | import org.eclipse.xtext.resource.IResourceDescriptionsProvider; | ||
33 | import org.eclipse.xtext.scoping.IScope; | ||
34 | import org.eclipse.xtext.scoping.Scopes; | ||
35 | import org.eclipse.xtext.scoping.impl.ImportScope; | ||
36 | import org.eclipse.xtext.scoping.impl.SimpleScope; | ||
37 | import org.eclipse.xtext.xbase.lib.CollectionLiterals; | ||
38 | import org.eclipse.xtext.xbase.lib.Functions.Function1; | ||
39 | import org.eclipse.xtext.xbase.lib.IterableExtensions; | ||
40 | |||
41 | /** | ||
42 | * This class contains custom scoping description. | ||
43 | * | ||
44 | * See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#scoping | ||
45 | * on how and when to use it. | ||
46 | */ | ||
47 | @SuppressWarnings("all") | ||
48 | public class CftLanguageScopeProvider extends AbstractCftLanguageScopeProvider { | ||
49 | public static final String SINGLETON_VARIABLE_PREFIX = "_"; | ||
50 | |||
51 | @Inject | ||
52 | private IResourceDescriptionsProvider resourceDescriptionsProvider; | ||
53 | |||
54 | @Inject | ||
55 | private CftLanguageImportedNamespaceAwareLocalScopeProvider importedNamespaceProvider; | ||
56 | |||
57 | @Override | ||
58 | public IScope getScope(final EObject context, final EReference reference) { | ||
59 | IScope _switchResult = null; | ||
60 | boolean _matched = false; | ||
61 | if (Objects.equal(reference, CftLanguagePackage.Literals.LOOKUP_DEFINITION__MAPPING)) { | ||
62 | _matched=true; | ||
63 | _switchResult = this.getRuleDefinitionsScope(context, reference); | ||
64 | } | ||
65 | if (!_matched) { | ||
66 | if (Objects.equal(reference, CftLanguagePackage.Literals.LOOKUP_DEFINITION__ARGUMENTS)) { | ||
67 | _matched=true; | ||
68 | _switchResult = this.getMappingParametersScope(context); | ||
69 | } | ||
70 | } | ||
71 | if (!_matched) { | ||
72 | if (Objects.equal(reference, CftLanguagePackage.Literals.EVENT_REFERENCE__COMPONENT)) { | ||
73 | _matched=true; | ||
74 | _switchResult = this.getComponentInstancesScope(context); | ||
75 | } | ||
76 | } | ||
77 | if (!_matched) { | ||
78 | if (Objects.equal(reference, CftLanguagePackage.Literals.EVENT_REFERENCE__EVENT)) { | ||
79 | _matched=true; | ||
80 | _switchResult = this.getEventDeclarationsScope(context); | ||
81 | } | ||
82 | } | ||
83 | if (!_matched) { | ||
84 | _switchResult = super.getScope(context, reference); | ||
85 | } | ||
86 | return _switchResult; | ||
87 | } | ||
88 | |||
89 | protected IScope getRuleDefinitionsScope(final EObject context, final EReference referece) { | ||
90 | ImportScope _xblockexpression = null; | ||
91 | { | ||
92 | final TransformationDefinition transformationDefinition = EcoreUtil2.<TransformationDefinition>getContainerOfType(context, TransformationDefinition.class); | ||
93 | if ((transformationDefinition == null)) { | ||
94 | return IScope.NULLSCOPE; | ||
95 | } | ||
96 | final IResourceDescriptions resourceDescriptions = this.getResourceDescriptions(transformationDefinition); | ||
97 | final ArrayList<IEObjectDescription> mappingDefinitionDescriptions = this.toMappingDefinitionDescriptions(resourceDescriptions, | ||
98 | transformationDefinition.getMappingDefinitions()); | ||
99 | final SimpleScope ruleDefinitionsScope = new SimpleScope(IScope.NULLSCOPE, mappingDefinitionDescriptions); | ||
100 | _xblockexpression = this.importedNamespaceProvider.createImportNormalizedScope(ruleDefinitionsScope, context, referece); | ||
101 | } | ||
102 | return _xblockexpression; | ||
103 | } | ||
104 | |||
105 | protected ArrayList<IEObjectDescription> toMappingDefinitionDescriptions(final IResourceDescriptions resourceDescriptions, final Iterable<? extends MappingDefinition> ruleDefinitions) { | ||
106 | ArrayList<IEObjectDescription> _xblockexpression = null; | ||
107 | { | ||
108 | final ArrayList<IEObjectDescription> mappingDefinitionDescriptions = Lists.<IEObjectDescription>newArrayListWithExpectedSize(IterableExtensions.size(ruleDefinitions)); | ||
109 | for (final MappingDefinition ruleDefinition : ruleDefinitions) { | ||
110 | { | ||
111 | Pattern _pattern = null; | ||
112 | if (ruleDefinition!=null) { | ||
113 | _pattern=ruleDefinition.getPattern(); | ||
114 | } | ||
115 | final Pattern pattern = _pattern; | ||
116 | if ((pattern != null)) { | ||
117 | IEObjectDescription _head = IterableExtensions.<IEObjectDescription>head(resourceDescriptions.getExportedObjectsByObject(pattern)); | ||
118 | QualifiedName _qualifiedName = null; | ||
119 | if (_head!=null) { | ||
120 | _qualifiedName=_head.getQualifiedName(); | ||
121 | } | ||
122 | final QualifiedName patternName = _qualifiedName; | ||
123 | if ((patternName != null)) { | ||
124 | IEObjectDescription _create = EObjectDescription.create(patternName, ruleDefinition); | ||
125 | mappingDefinitionDescriptions.add(_create); | ||
126 | } | ||
127 | } | ||
128 | } | ||
129 | } | ||
130 | _xblockexpression = mappingDefinitionDescriptions; | ||
131 | } | ||
132 | return _xblockexpression; | ||
133 | } | ||
134 | |||
135 | private IResourceDescriptions getResourceDescriptions(final Notifier notifier) { | ||
136 | IResourceDescriptions _xblockexpression = null; | ||
137 | { | ||
138 | final ResourceSet resourceSet = EcoreUtil2.getResourceSet(notifier); | ||
139 | IResourceDescriptions _xifexpression = null; | ||
140 | if ((resourceSet == null)) { | ||
141 | _xifexpression = new IResourceDescriptions.NullImpl(); | ||
142 | } else { | ||
143 | _xifexpression = this.resourceDescriptionsProvider.getResourceDescriptions(resourceSet); | ||
144 | } | ||
145 | _xblockexpression = _xifexpression; | ||
146 | } | ||
147 | return _xblockexpression; | ||
148 | } | ||
149 | |||
150 | protected IScope getMappingParametersScope(final EObject context) { | ||
151 | IScope _xblockexpression = null; | ||
152 | { | ||
153 | final MappingDefinition mappingDefinition = EcoreUtil2.<MappingDefinition>getContainerOfType(context, MappingDefinition.class); | ||
154 | if ((mappingDefinition == null)) { | ||
155 | return IScope.NULLSCOPE; | ||
156 | } | ||
157 | final Function1<MappingParameter, Boolean> _function = (MappingParameter it) -> { | ||
158 | boolean _startsWith = it.getName().startsWith(CftLanguageScopeProvider.SINGLETON_VARIABLE_PREFIX); | ||
159 | return Boolean.valueOf((!_startsWith)); | ||
160 | }; | ||
161 | final Iterable<MappingParameter> variables = IterableExtensions.<MappingParameter>filter(mappingDefinition.getParameters(), _function); | ||
162 | _xblockexpression = Scopes.scopeFor(variables); | ||
163 | } | ||
164 | return _xblockexpression; | ||
165 | } | ||
166 | |||
167 | protected IScope getComponentInstancesScope(final EObject context) { | ||
168 | IScope _xblockexpression = null; | ||
169 | { | ||
170 | final MappingDefinition mappingDefinition = EcoreUtil2.<MappingDefinition>getContainerOfType(context, MappingDefinition.class); | ||
171 | if ((mappingDefinition == null)) { | ||
172 | return IScope.NULLSCOPE; | ||
173 | } | ||
174 | final ArrayList<Variable> componentInstances = CollectionLiterals.<Variable>newArrayList(); | ||
175 | componentInstances.addAll(mappingDefinition.getLookupDefinitions()); | ||
176 | ComponentInstance _componentInstance = mappingDefinition.getComponentInstance(); | ||
177 | boolean _tripleNotEquals = (_componentInstance != null); | ||
178 | if (_tripleNotEquals) { | ||
179 | ComponentInstance _componentInstance_1 = mappingDefinition.getComponentInstance(); | ||
180 | componentInstances.add(_componentInstance_1); | ||
181 | } | ||
182 | _xblockexpression = Scopes.scopeFor(componentInstances); | ||
183 | } | ||
184 | return _xblockexpression; | ||
185 | } | ||
186 | |||
187 | protected IScope getEventDeclarationsScope(final EObject context) { | ||
188 | IScope _xblockexpression = null; | ||
189 | { | ||
190 | EventReference _containerOfType = EcoreUtil2.<EventReference>getContainerOfType(context, EventReference.class); | ||
191 | Variable _component = null; | ||
192 | if (_containerOfType!=null) { | ||
193 | _component=_containerOfType.getComponent(); | ||
194 | } | ||
195 | final Variable variable = _component; | ||
196 | ArrayList<EventDeclaration> _switchResult = null; | ||
197 | boolean _matched = false; | ||
198 | if (variable instanceof ComponentInstance) { | ||
199 | _matched=true; | ||
200 | ComponentDefinition _componentType = ((ComponentInstance)variable).getComponentType(); | ||
201 | ArrayList<EventDeclaration> _allEventDeclarations = null; | ||
202 | if (_componentType!=null) { | ||
203 | _allEventDeclarations=this.getAllEventDeclarations(_componentType); | ||
204 | } | ||
205 | _switchResult = _allEventDeclarations; | ||
206 | } | ||
207 | if (!_matched) { | ||
208 | if (variable instanceof LookupDefinition) { | ||
209 | _matched=true; | ||
210 | MappingDefinition _mapping = ((LookupDefinition)variable).getMapping(); | ||
211 | ComponentInstance _componentInstance = null; | ||
212 | if (_mapping!=null) { | ||
213 | _componentInstance=_mapping.getComponentInstance(); | ||
214 | } | ||
215 | ComponentDefinition _componentType = null; | ||
216 | if (_componentInstance!=null) { | ||
217 | _componentType=_componentInstance.getComponentType(); | ||
218 | } | ||
219 | ArrayList<EventDeclaration> _allEventDeclarations = null; | ||
220 | if (_componentType!=null) { | ||
221 | _allEventDeclarations=this.getAllEventDeclarations(_componentType); | ||
222 | } | ||
223 | _switchResult = _allEventDeclarations; | ||
224 | } | ||
225 | } | ||
226 | if (!_matched) { | ||
227 | _switchResult = null; | ||
228 | } | ||
229 | final ArrayList<EventDeclaration> events = _switchResult; | ||
230 | if ((events == null)) { | ||
231 | return IScope.NULLSCOPE; | ||
232 | } | ||
233 | _xblockexpression = Scopes.scopeFor(events); | ||
234 | } | ||
235 | return _xblockexpression; | ||
236 | } | ||
237 | |||
238 | private ArrayList<EventDeclaration> getAllEventDeclarations(final ComponentDefinition componentDefinition) { | ||
239 | ArrayList<EventDeclaration> _xblockexpression = null; | ||
240 | { | ||
241 | final ArrayList<EventDeclaration> eventDeclarations = CollectionLiterals.<EventDeclaration>newArrayList(); | ||
242 | eventDeclarations.addAll(componentDefinition.getInputEvents()); | ||
243 | eventDeclarations.addAll(componentDefinition.getEventDefinitions()); | ||
244 | _xblockexpression = eventDeclarations; | ||
245 | } | ||
246 | return _xblockexpression; | ||
247 | } | ||
248 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/.CftLanguageValidator.xtendbin b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/.CftLanguageValidator.xtendbin new file mode 100644 index 00000000..c978854b --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/.CftLanguageValidator.xtendbin | |||
Binary files differ | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/.gitignore b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/.gitignore new file mode 100644 index 00000000..9065804d --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/.gitignore | |||
@@ -0,0 +1 @@ | |||
/.CftLanguageValidator.java._trace | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/CftLanguageValidator.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/CftLanguageValidator.java new file mode 100644 index 00000000..758d29f4 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/xtend-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/CftLanguageValidator.java | |||
@@ -0,0 +1,15 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.validation; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.validation.AbstractCftLanguageValidator; | ||
7 | |||
8 | /** | ||
9 | * This class contains custom validation rules. | ||
10 | * | ||
11 | * See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#validation | ||
12 | */ | ||
13 | @SuppressWarnings("all") | ||
14 | public class CftLanguageValidator extends AbstractCftLanguageValidator { | ||
15 | } | ||