diff options
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree')
41 files changed, 0 insertions, 16864 deletions
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 deleted file mode 100644 index bdec0d5b..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/AbstractCftLanguageRuntimeModule.java +++ /dev/null | |||
@@ -1,208 +0,0 @@ | |||
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 deleted file mode 100644 index eb879e93..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguage.xtextbin +++ /dev/null | |||
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 deleted file mode 100644 index 75f38b14..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguageStandaloneSetupGenerated.java +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
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/Assignment.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/Assignment.java deleted file mode 100644 index 13c9d6c2..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/Assignment.java +++ /dev/null | |||
@@ -1,106 +0,0 @@ | |||
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/CftLanguageFactory.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftLanguageFactory.java deleted file mode 100644 index 3420d578..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftLanguageFactory.java +++ /dev/null | |||
@@ -1,125 +0,0 @@ | |||
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>Transformation Definition</em>'. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @return a new object of class '<em>Transformation Definition</em>'. | ||
49 | * @generated | ||
50 | */ | ||
51 | TransformationDefinition createTransformationDefinition(); | ||
52 | |||
53 | /** | ||
54 | * Returns a new object of class '<em>Mapping Definition</em>'. | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @return a new object of class '<em>Mapping Definition</em>'. | ||
58 | * @generated | ||
59 | */ | ||
60 | MappingDefinition createMappingDefinition(); | ||
61 | |||
62 | /** | ||
63 | * Returns a new object of class '<em>Mapping Parameter</em>'. | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @return a new object of class '<em>Mapping Parameter</em>'. | ||
67 | * @generated | ||
68 | */ | ||
69 | MappingParameter createMappingParameter(); | ||
70 | |||
71 | /** | ||
72 | * Returns a new object of class '<em>Lookup Definition</em>'. | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @return a new object of class '<em>Lookup Definition</em>'. | ||
76 | * @generated | ||
77 | */ | ||
78 | LookupDefinition createLookupDefinition(); | ||
79 | |||
80 | /** | ||
81 | * Returns a new object of class '<em>Variable</em>'. | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @return a new object of class '<em>Variable</em>'. | ||
85 | * @generated | ||
86 | */ | ||
87 | Variable createVariable(); | ||
88 | |||
89 | /** | ||
90 | * Returns a new object of class '<em>Assignment</em>'. | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @return a new object of class '<em>Assignment</em>'. | ||
94 | * @generated | ||
95 | */ | ||
96 | Assignment createAssignment(); | ||
97 | |||
98 | /** | ||
99 | * Returns a new object of class '<em>Event Reference</em>'. | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @return a new object of class '<em>Event Reference</em>'. | ||
103 | * @generated | ||
104 | */ | ||
105 | EventReference createEventReference(); | ||
106 | |||
107 | /** | ||
108 | * Returns a new object of class '<em>Component Instance</em>'. | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @return a new object of class '<em>Component Instance</em>'. | ||
112 | * @generated | ||
113 | */ | ||
114 | ComponentInstance createComponentInstance(); | ||
115 | |||
116 | /** | ||
117 | * Returns the package supported by this factory. | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @return the package supported by this factory. | ||
121 | * @generated | ||
122 | */ | ||
123 | CftLanguagePackage getCftLanguagePackage(); | ||
124 | |||
125 | } //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 deleted file mode 100644 index 7aab46c2..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftLanguagePackage.java +++ /dev/null | |||
@@ -1,1138 +0,0 @@ | |||
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.TransformationDefinitionImpl <em>Transformation Definition</em>}' class. | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.TransformationDefinitionImpl | ||
148 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getTransformationDefinition() | ||
149 | * @generated | ||
150 | */ | ||
151 | int TRANSFORMATION_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 TRANSFORMATION_DEFINITION__NAME = 0; | ||
161 | |||
162 | /** | ||
163 | * The feature id for the '<em><b>Mapping Definitions</b></em>' containment reference list. | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | * @ordered | ||
168 | */ | ||
169 | int TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS = 1; | ||
170 | |||
171 | /** | ||
172 | * The number of structural features of the '<em>Transformation Definition</em>' class. | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | * @ordered | ||
177 | */ | ||
178 | int TRANSFORMATION_DEFINITION_FEATURE_COUNT = 2; | ||
179 | |||
180 | /** | ||
181 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl <em>Mapping Definition</em>}' class. | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl | ||
185 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getMappingDefinition() | ||
186 | * @generated | ||
187 | */ | ||
188 | int MAPPING_DEFINITION = 3; | ||
189 | |||
190 | /** | ||
191 | * The feature id for the '<em><b>Top Level</b></em>' attribute. | ||
192 | * <!-- begin-user-doc --> | ||
193 | * <!-- end-user-doc --> | ||
194 | * @generated | ||
195 | * @ordered | ||
196 | */ | ||
197 | int MAPPING_DEFINITION__TOP_LEVEL = 0; | ||
198 | |||
199 | /** | ||
200 | * The feature id for the '<em><b>Pattern</b></em>' reference. | ||
201 | * <!-- begin-user-doc --> | ||
202 | * <!-- end-user-doc --> | ||
203 | * @generated | ||
204 | * @ordered | ||
205 | */ | ||
206 | int MAPPING_DEFINITION__PATTERN = 1; | ||
207 | |||
208 | /** | ||
209 | * The feature id for the '<em><b>Parameters</b></em>' containment reference list. | ||
210 | * <!-- begin-user-doc --> | ||
211 | * <!-- end-user-doc --> | ||
212 | * @generated | ||
213 | * @ordered | ||
214 | */ | ||
215 | int MAPPING_DEFINITION__PARAMETERS = 2; | ||
216 | |||
217 | /** | ||
218 | * The feature id for the '<em><b>Component Instance</b></em>' containment reference. | ||
219 | * <!-- begin-user-doc --> | ||
220 | * <!-- end-user-doc --> | ||
221 | * @generated | ||
222 | * @ordered | ||
223 | */ | ||
224 | int MAPPING_DEFINITION__COMPONENT_INSTANCE = 3; | ||
225 | |||
226 | /** | ||
227 | * The feature id for the '<em><b>Lookup Definitions</b></em>' containment reference list. | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | * @ordered | ||
232 | */ | ||
233 | int MAPPING_DEFINITION__LOOKUP_DEFINITIONS = 4; | ||
234 | |||
235 | /** | ||
236 | * The feature id for the '<em><b>Assignments</b></em>' containment reference list. | ||
237 | * <!-- begin-user-doc --> | ||
238 | * <!-- end-user-doc --> | ||
239 | * @generated | ||
240 | * @ordered | ||
241 | */ | ||
242 | int MAPPING_DEFINITION__ASSIGNMENTS = 5; | ||
243 | |||
244 | /** | ||
245 | * The number of structural features of the '<em>Mapping Definition</em>' class. | ||
246 | * <!-- begin-user-doc --> | ||
247 | * <!-- end-user-doc --> | ||
248 | * @generated | ||
249 | * @ordered | ||
250 | */ | ||
251 | int MAPPING_DEFINITION_FEATURE_COUNT = 6; | ||
252 | |||
253 | /** | ||
254 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingParameterImpl <em>Mapping Parameter</em>}' class. | ||
255 | * <!-- begin-user-doc --> | ||
256 | * <!-- end-user-doc --> | ||
257 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingParameterImpl | ||
258 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getMappingParameter() | ||
259 | * @generated | ||
260 | */ | ||
261 | int MAPPING_PARAMETER = 4; | ||
262 | |||
263 | /** | ||
264 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
265 | * <!-- begin-user-doc --> | ||
266 | * <!-- end-user-doc --> | ||
267 | * @generated | ||
268 | * @ordered | ||
269 | */ | ||
270 | int MAPPING_PARAMETER__NAME = 0; | ||
271 | |||
272 | /** | ||
273 | * The number of structural features of the '<em>Mapping Parameter</em>' class. | ||
274 | * <!-- begin-user-doc --> | ||
275 | * <!-- end-user-doc --> | ||
276 | * @generated | ||
277 | * @ordered | ||
278 | */ | ||
279 | int MAPPING_PARAMETER_FEATURE_COUNT = 1; | ||
280 | |||
281 | /** | ||
282 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.VariableImpl <em>Variable</em>}' class. | ||
283 | * <!-- begin-user-doc --> | ||
284 | * <!-- end-user-doc --> | ||
285 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.VariableImpl | ||
286 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getVariable() | ||
287 | * @generated | ||
288 | */ | ||
289 | int VARIABLE = 6; | ||
290 | |||
291 | /** | ||
292 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
293 | * <!-- begin-user-doc --> | ||
294 | * <!-- end-user-doc --> | ||
295 | * @generated | ||
296 | * @ordered | ||
297 | */ | ||
298 | int VARIABLE__NAME = 0; | ||
299 | |||
300 | /** | ||
301 | * The number of structural features of the '<em>Variable</em>' class. | ||
302 | * <!-- begin-user-doc --> | ||
303 | * <!-- end-user-doc --> | ||
304 | * @generated | ||
305 | * @ordered | ||
306 | */ | ||
307 | int VARIABLE_FEATURE_COUNT = 1; | ||
308 | |||
309 | /** | ||
310 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.LookupDefinitionImpl <em>Lookup Definition</em>}' class. | ||
311 | * <!-- begin-user-doc --> | ||
312 | * <!-- end-user-doc --> | ||
313 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.LookupDefinitionImpl | ||
314 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getLookupDefinition() | ||
315 | * @generated | ||
316 | */ | ||
317 | int LOOKUP_DEFINITION = 5; | ||
318 | |||
319 | /** | ||
320 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
321 | * <!-- begin-user-doc --> | ||
322 | * <!-- end-user-doc --> | ||
323 | * @generated | ||
324 | * @ordered | ||
325 | */ | ||
326 | int LOOKUP_DEFINITION__NAME = VARIABLE__NAME; | ||
327 | |||
328 | /** | ||
329 | * The feature id for the '<em><b>Mapping</b></em>' reference. | ||
330 | * <!-- begin-user-doc --> | ||
331 | * <!-- end-user-doc --> | ||
332 | * @generated | ||
333 | * @ordered | ||
334 | */ | ||
335 | int LOOKUP_DEFINITION__MAPPING = VARIABLE_FEATURE_COUNT + 0; | ||
336 | |||
337 | /** | ||
338 | * The feature id for the '<em><b>Arguments</b></em>' reference list. | ||
339 | * <!-- begin-user-doc --> | ||
340 | * <!-- end-user-doc --> | ||
341 | * @generated | ||
342 | * @ordered | ||
343 | */ | ||
344 | int LOOKUP_DEFINITION__ARGUMENTS = VARIABLE_FEATURE_COUNT + 1; | ||
345 | |||
346 | /** | ||
347 | * The number of structural features of the '<em>Lookup Definition</em>' class. | ||
348 | * <!-- begin-user-doc --> | ||
349 | * <!-- end-user-doc --> | ||
350 | * @generated | ||
351 | * @ordered | ||
352 | */ | ||
353 | int LOOKUP_DEFINITION_FEATURE_COUNT = VARIABLE_FEATURE_COUNT + 2; | ||
354 | |||
355 | /** | ||
356 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AssignmentImpl <em>Assignment</em>}' class. | ||
357 | * <!-- begin-user-doc --> | ||
358 | * <!-- end-user-doc --> | ||
359 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AssignmentImpl | ||
360 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getAssignment() | ||
361 | * @generated | ||
362 | */ | ||
363 | int ASSIGNMENT = 7; | ||
364 | |||
365 | /** | ||
366 | * The feature id for the '<em><b>Input</b></em>' containment reference. | ||
367 | * <!-- begin-user-doc --> | ||
368 | * <!-- end-user-doc --> | ||
369 | * @generated | ||
370 | * @ordered | ||
371 | */ | ||
372 | int ASSIGNMENT__INPUT = 0; | ||
373 | |||
374 | /** | ||
375 | * The feature id for the '<em><b>Multiple</b></em>' attribute. | ||
376 | * <!-- begin-user-doc --> | ||
377 | * <!-- end-user-doc --> | ||
378 | * @generated | ||
379 | * @ordered | ||
380 | */ | ||
381 | int ASSIGNMENT__MULTIPLE = 1; | ||
382 | |||
383 | /** | ||
384 | * The feature id for the '<em><b>Output</b></em>' containment reference. | ||
385 | * <!-- begin-user-doc --> | ||
386 | * <!-- end-user-doc --> | ||
387 | * @generated | ||
388 | * @ordered | ||
389 | */ | ||
390 | int ASSIGNMENT__OUTPUT = 2; | ||
391 | |||
392 | /** | ||
393 | * The number of structural features of the '<em>Assignment</em>' class. | ||
394 | * <!-- begin-user-doc --> | ||
395 | * <!-- end-user-doc --> | ||
396 | * @generated | ||
397 | * @ordered | ||
398 | */ | ||
399 | int ASSIGNMENT_FEATURE_COUNT = 3; | ||
400 | |||
401 | /** | ||
402 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventReferenceImpl <em>Event Reference</em>}' class. | ||
403 | * <!-- begin-user-doc --> | ||
404 | * <!-- end-user-doc --> | ||
405 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventReferenceImpl | ||
406 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getEventReference() | ||
407 | * @generated | ||
408 | */ | ||
409 | int EVENT_REFERENCE = 8; | ||
410 | |||
411 | /** | ||
412 | * The feature id for the '<em><b>Component</b></em>' reference. | ||
413 | * <!-- begin-user-doc --> | ||
414 | * <!-- end-user-doc --> | ||
415 | * @generated | ||
416 | * @ordered | ||
417 | */ | ||
418 | int EVENT_REFERENCE__COMPONENT = 0; | ||
419 | |||
420 | /** | ||
421 | * The feature id for the '<em><b>Event</b></em>' reference. | ||
422 | * <!-- begin-user-doc --> | ||
423 | * <!-- end-user-doc --> | ||
424 | * @generated | ||
425 | * @ordered | ||
426 | */ | ||
427 | int EVENT_REFERENCE__EVENT = 1; | ||
428 | |||
429 | /** | ||
430 | * The number of structural features of the '<em>Event Reference</em>' class. | ||
431 | * <!-- begin-user-doc --> | ||
432 | * <!-- end-user-doc --> | ||
433 | * @generated | ||
434 | * @ordered | ||
435 | */ | ||
436 | int EVENT_REFERENCE_FEATURE_COUNT = 2; | ||
437 | |||
438 | /** | ||
439 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentInstanceImpl <em>Component Instance</em>}' class. | ||
440 | * <!-- begin-user-doc --> | ||
441 | * <!-- end-user-doc --> | ||
442 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentInstanceImpl | ||
443 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getComponentInstance() | ||
444 | * @generated | ||
445 | */ | ||
446 | int COMPONENT_INSTANCE = 9; | ||
447 | |||
448 | /** | ||
449 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
450 | * <!-- begin-user-doc --> | ||
451 | * <!-- end-user-doc --> | ||
452 | * @generated | ||
453 | * @ordered | ||
454 | */ | ||
455 | int COMPONENT_INSTANCE__NAME = VARIABLE__NAME; | ||
456 | |||
457 | /** | ||
458 | * The feature id for the '<em><b>Component Type</b></em>' reference. | ||
459 | * <!-- begin-user-doc --> | ||
460 | * <!-- end-user-doc --> | ||
461 | * @generated | ||
462 | * @ordered | ||
463 | */ | ||
464 | int COMPONENT_INSTANCE__COMPONENT_TYPE = VARIABLE_FEATURE_COUNT + 0; | ||
465 | |||
466 | /** | ||
467 | * The number of structural features of the '<em>Component Instance</em>' class. | ||
468 | * <!-- begin-user-doc --> | ||
469 | * <!-- end-user-doc --> | ||
470 | * @generated | ||
471 | * @ordered | ||
472 | */ | ||
473 | int COMPONENT_INSTANCE_FEATURE_COUNT = VARIABLE_FEATURE_COUNT + 1; | ||
474 | |||
475 | |||
476 | /** | ||
477 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel <em>Cft Model</em>}'. | ||
478 | * <!-- begin-user-doc --> | ||
479 | * <!-- end-user-doc --> | ||
480 | * @return the meta object for class '<em>Cft Model</em>'. | ||
481 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel | ||
482 | * @generated | ||
483 | */ | ||
484 | EClass getCftModel(); | ||
485 | |||
486 | /** | ||
487 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getPackageName <em>Package Name</em>}'. | ||
488 | * <!-- begin-user-doc --> | ||
489 | * <!-- end-user-doc --> | ||
490 | * @return the meta object for the attribute '<em>Package Name</em>'. | ||
491 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getPackageName() | ||
492 | * @see #getCftModel() | ||
493 | * @generated | ||
494 | */ | ||
495 | EAttribute getCftModel_PackageName(); | ||
496 | |||
497 | /** | ||
498 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getImports <em>Imports</em>}'. | ||
499 | * <!-- begin-user-doc --> | ||
500 | * <!-- end-user-doc --> | ||
501 | * @return the meta object for the containment reference list '<em>Imports</em>'. | ||
502 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getImports() | ||
503 | * @see #getCftModel() | ||
504 | * @generated | ||
505 | */ | ||
506 | EReference getCftModel_Imports(); | ||
507 | |||
508 | /** | ||
509 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getComponentDefinitions <em>Component Definitions</em>}'. | ||
510 | * <!-- begin-user-doc --> | ||
511 | * <!-- end-user-doc --> | ||
512 | * @return the meta object for the containment reference list '<em>Component Definitions</em>'. | ||
513 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getComponentDefinitions() | ||
514 | * @see #getCftModel() | ||
515 | * @generated | ||
516 | */ | ||
517 | EReference getCftModel_ComponentDefinitions(); | ||
518 | |||
519 | /** | ||
520 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getTransformationDefinitions <em>Transformation Definitions</em>}'. | ||
521 | * <!-- begin-user-doc --> | ||
522 | * <!-- end-user-doc --> | ||
523 | * @return the meta object for the containment reference list '<em>Transformation Definitions</em>'. | ||
524 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getTransformationDefinitions() | ||
525 | * @see #getCftModel() | ||
526 | * @generated | ||
527 | */ | ||
528 | EReference getCftModel_TransformationDefinitions(); | ||
529 | |||
530 | /** | ||
531 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration <em>Import Declaration</em>}'. | ||
532 | * <!-- begin-user-doc --> | ||
533 | * <!-- end-user-doc --> | ||
534 | * @return the meta object for class '<em>Import Declaration</em>'. | ||
535 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration | ||
536 | * @generated | ||
537 | */ | ||
538 | EClass getImportDeclaration(); | ||
539 | |||
540 | /** | ||
541 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration#getImportedNamespace <em>Imported Namespace</em>}'. | ||
542 | * <!-- begin-user-doc --> | ||
543 | * <!-- end-user-doc --> | ||
544 | * @return the meta object for the attribute '<em>Imported Namespace</em>'. | ||
545 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration#getImportedNamespace() | ||
546 | * @see #getImportDeclaration() | ||
547 | * @generated | ||
548 | */ | ||
549 | EAttribute getImportDeclaration_ImportedNamespace(); | ||
550 | |||
551 | /** | ||
552 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition <em>Transformation Definition</em>}'. | ||
553 | * <!-- begin-user-doc --> | ||
554 | * <!-- end-user-doc --> | ||
555 | * @return the meta object for class '<em>Transformation Definition</em>'. | ||
556 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition | ||
557 | * @generated | ||
558 | */ | ||
559 | EClass getTransformationDefinition(); | ||
560 | |||
561 | /** | ||
562 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition#getName <em>Name</em>}'. | ||
563 | * <!-- begin-user-doc --> | ||
564 | * <!-- end-user-doc --> | ||
565 | * @return the meta object for the attribute '<em>Name</em>'. | ||
566 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition#getName() | ||
567 | * @see #getTransformationDefinition() | ||
568 | * @generated | ||
569 | */ | ||
570 | EAttribute getTransformationDefinition_Name(); | ||
571 | |||
572 | /** | ||
573 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition#getMappingDefinitions <em>Mapping Definitions</em>}'. | ||
574 | * <!-- begin-user-doc --> | ||
575 | * <!-- end-user-doc --> | ||
576 | * @return the meta object for the containment reference list '<em>Mapping Definitions</em>'. | ||
577 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition#getMappingDefinitions() | ||
578 | * @see #getTransformationDefinition() | ||
579 | * @generated | ||
580 | */ | ||
581 | EReference getTransformationDefinition_MappingDefinitions(); | ||
582 | |||
583 | /** | ||
584 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition <em>Mapping Definition</em>}'. | ||
585 | * <!-- begin-user-doc --> | ||
586 | * <!-- end-user-doc --> | ||
587 | * @return the meta object for class '<em>Mapping Definition</em>'. | ||
588 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition | ||
589 | * @generated | ||
590 | */ | ||
591 | EClass getMappingDefinition(); | ||
592 | |||
593 | /** | ||
594 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#isTopLevel <em>Top Level</em>}'. | ||
595 | * <!-- begin-user-doc --> | ||
596 | * <!-- end-user-doc --> | ||
597 | * @return the meta object for the attribute '<em>Top Level</em>'. | ||
598 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#isTopLevel() | ||
599 | * @see #getMappingDefinition() | ||
600 | * @generated | ||
601 | */ | ||
602 | EAttribute getMappingDefinition_TopLevel(); | ||
603 | |||
604 | /** | ||
605 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getPattern <em>Pattern</em>}'. | ||
606 | * <!-- begin-user-doc --> | ||
607 | * <!-- end-user-doc --> | ||
608 | * @return the meta object for the reference '<em>Pattern</em>'. | ||
609 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getPattern() | ||
610 | * @see #getMappingDefinition() | ||
611 | * @generated | ||
612 | */ | ||
613 | EReference getMappingDefinition_Pattern(); | ||
614 | |||
615 | /** | ||
616 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getParameters <em>Parameters</em>}'. | ||
617 | * <!-- begin-user-doc --> | ||
618 | * <!-- end-user-doc --> | ||
619 | * @return the meta object for the containment reference list '<em>Parameters</em>'. | ||
620 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getParameters() | ||
621 | * @see #getMappingDefinition() | ||
622 | * @generated | ||
623 | */ | ||
624 | EReference getMappingDefinition_Parameters(); | ||
625 | |||
626 | /** | ||
627 | * Returns the meta object for the containment reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getComponentInstance <em>Component Instance</em>}'. | ||
628 | * <!-- begin-user-doc --> | ||
629 | * <!-- end-user-doc --> | ||
630 | * @return the meta object for the containment reference '<em>Component Instance</em>'. | ||
631 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getComponentInstance() | ||
632 | * @see #getMappingDefinition() | ||
633 | * @generated | ||
634 | */ | ||
635 | EReference getMappingDefinition_ComponentInstance(); | ||
636 | |||
637 | /** | ||
638 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getLookupDefinitions <em>Lookup Definitions</em>}'. | ||
639 | * <!-- begin-user-doc --> | ||
640 | * <!-- end-user-doc --> | ||
641 | * @return the meta object for the containment reference list '<em>Lookup Definitions</em>'. | ||
642 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getLookupDefinitions() | ||
643 | * @see #getMappingDefinition() | ||
644 | * @generated | ||
645 | */ | ||
646 | EReference getMappingDefinition_LookupDefinitions(); | ||
647 | |||
648 | /** | ||
649 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getAssignments <em>Assignments</em>}'. | ||
650 | * <!-- begin-user-doc --> | ||
651 | * <!-- end-user-doc --> | ||
652 | * @return the meta object for the containment reference list '<em>Assignments</em>'. | ||
653 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getAssignments() | ||
654 | * @see #getMappingDefinition() | ||
655 | * @generated | ||
656 | */ | ||
657 | EReference getMappingDefinition_Assignments(); | ||
658 | |||
659 | /** | ||
660 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter <em>Mapping Parameter</em>}'. | ||
661 | * <!-- begin-user-doc --> | ||
662 | * <!-- end-user-doc --> | ||
663 | * @return the meta object for class '<em>Mapping Parameter</em>'. | ||
664 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter | ||
665 | * @generated | ||
666 | */ | ||
667 | EClass getMappingParameter(); | ||
668 | |||
669 | /** | ||
670 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter#getName <em>Name</em>}'. | ||
671 | * <!-- begin-user-doc --> | ||
672 | * <!-- end-user-doc --> | ||
673 | * @return the meta object for the attribute '<em>Name</em>'. | ||
674 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter#getName() | ||
675 | * @see #getMappingParameter() | ||
676 | * @generated | ||
677 | */ | ||
678 | EAttribute getMappingParameter_Name(); | ||
679 | |||
680 | /** | ||
681 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition <em>Lookup Definition</em>}'. | ||
682 | * <!-- begin-user-doc --> | ||
683 | * <!-- end-user-doc --> | ||
684 | * @return the meta object for class '<em>Lookup Definition</em>'. | ||
685 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition | ||
686 | * @generated | ||
687 | */ | ||
688 | EClass getLookupDefinition(); | ||
689 | |||
690 | /** | ||
691 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition#getMapping <em>Mapping</em>}'. | ||
692 | * <!-- begin-user-doc --> | ||
693 | * <!-- end-user-doc --> | ||
694 | * @return the meta object for the reference '<em>Mapping</em>'. | ||
695 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition#getMapping() | ||
696 | * @see #getLookupDefinition() | ||
697 | * @generated | ||
698 | */ | ||
699 | EReference getLookupDefinition_Mapping(); | ||
700 | |||
701 | /** | ||
702 | * Returns the meta object for the reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition#getArguments <em>Arguments</em>}'. | ||
703 | * <!-- begin-user-doc --> | ||
704 | * <!-- end-user-doc --> | ||
705 | * @return the meta object for the reference list '<em>Arguments</em>'. | ||
706 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition#getArguments() | ||
707 | * @see #getLookupDefinition() | ||
708 | * @generated | ||
709 | */ | ||
710 | EReference getLookupDefinition_Arguments(); | ||
711 | |||
712 | /** | ||
713 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable <em>Variable</em>}'. | ||
714 | * <!-- begin-user-doc --> | ||
715 | * <!-- end-user-doc --> | ||
716 | * @return the meta object for class '<em>Variable</em>'. | ||
717 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable | ||
718 | * @generated | ||
719 | */ | ||
720 | EClass getVariable(); | ||
721 | |||
722 | /** | ||
723 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable#getName <em>Name</em>}'. | ||
724 | * <!-- begin-user-doc --> | ||
725 | * <!-- end-user-doc --> | ||
726 | * @return the meta object for the attribute '<em>Name</em>'. | ||
727 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable#getName() | ||
728 | * @see #getVariable() | ||
729 | * @generated | ||
730 | */ | ||
731 | EAttribute getVariable_Name(); | ||
732 | |||
733 | /** | ||
734 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment <em>Assignment</em>}'. | ||
735 | * <!-- begin-user-doc --> | ||
736 | * <!-- end-user-doc --> | ||
737 | * @return the meta object for class '<em>Assignment</em>'. | ||
738 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment | ||
739 | * @generated | ||
740 | */ | ||
741 | EClass getAssignment(); | ||
742 | |||
743 | /** | ||
744 | * Returns the meta object for the containment reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#getInput <em>Input</em>}'. | ||
745 | * <!-- begin-user-doc --> | ||
746 | * <!-- end-user-doc --> | ||
747 | * @return the meta object for the containment reference '<em>Input</em>'. | ||
748 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#getInput() | ||
749 | * @see #getAssignment() | ||
750 | * @generated | ||
751 | */ | ||
752 | EReference getAssignment_Input(); | ||
753 | |||
754 | /** | ||
755 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#isMultiple <em>Multiple</em>}'. | ||
756 | * <!-- begin-user-doc --> | ||
757 | * <!-- end-user-doc --> | ||
758 | * @return the meta object for the attribute '<em>Multiple</em>'. | ||
759 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#isMultiple() | ||
760 | * @see #getAssignment() | ||
761 | * @generated | ||
762 | */ | ||
763 | EAttribute getAssignment_Multiple(); | ||
764 | |||
765 | /** | ||
766 | * Returns the meta object for the containment reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#getOutput <em>Output</em>}'. | ||
767 | * <!-- begin-user-doc --> | ||
768 | * <!-- end-user-doc --> | ||
769 | * @return the meta object for the containment reference '<em>Output</em>'. | ||
770 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#getOutput() | ||
771 | * @see #getAssignment() | ||
772 | * @generated | ||
773 | */ | ||
774 | EReference getAssignment_Output(); | ||
775 | |||
776 | /** | ||
777 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference <em>Event Reference</em>}'. | ||
778 | * <!-- begin-user-doc --> | ||
779 | * <!-- end-user-doc --> | ||
780 | * @return the meta object for class '<em>Event Reference</em>'. | ||
781 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference | ||
782 | * @generated | ||
783 | */ | ||
784 | EClass getEventReference(); | ||
785 | |||
786 | /** | ||
787 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference#getComponent <em>Component</em>}'. | ||
788 | * <!-- begin-user-doc --> | ||
789 | * <!-- end-user-doc --> | ||
790 | * @return the meta object for the reference '<em>Component</em>'. | ||
791 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference#getComponent() | ||
792 | * @see #getEventReference() | ||
793 | * @generated | ||
794 | */ | ||
795 | EReference getEventReference_Component(); | ||
796 | |||
797 | /** | ||
798 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference#getEvent <em>Event</em>}'. | ||
799 | * <!-- begin-user-doc --> | ||
800 | * <!-- end-user-doc --> | ||
801 | * @return the meta object for the reference '<em>Event</em>'. | ||
802 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference#getEvent() | ||
803 | * @see #getEventReference() | ||
804 | * @generated | ||
805 | */ | ||
806 | EReference getEventReference_Event(); | ||
807 | |||
808 | /** | ||
809 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance <em>Component Instance</em>}'. | ||
810 | * <!-- begin-user-doc --> | ||
811 | * <!-- end-user-doc --> | ||
812 | * @return the meta object for class '<em>Component Instance</em>'. | ||
813 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance | ||
814 | * @generated | ||
815 | */ | ||
816 | EClass getComponentInstance(); | ||
817 | |||
818 | /** | ||
819 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance#getComponentType <em>Component Type</em>}'. | ||
820 | * <!-- begin-user-doc --> | ||
821 | * <!-- end-user-doc --> | ||
822 | * @return the meta object for the reference '<em>Component Type</em>'. | ||
823 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance#getComponentType() | ||
824 | * @see #getComponentInstance() | ||
825 | * @generated | ||
826 | */ | ||
827 | EReference getComponentInstance_ComponentType(); | ||
828 | |||
829 | /** | ||
830 | * Returns the factory that creates the instances of the model. | ||
831 | * <!-- begin-user-doc --> | ||
832 | * <!-- end-user-doc --> | ||
833 | * @return the factory that creates the instances of the model. | ||
834 | * @generated | ||
835 | */ | ||
836 | CftLanguageFactory getCftLanguageFactory(); | ||
837 | |||
838 | /** | ||
839 | * <!-- begin-user-doc --> | ||
840 | * Defines literals for the meta objects that represent | ||
841 | * <ul> | ||
842 | * <li>each class,</li> | ||
843 | * <li>each feature of each class,</li> | ||
844 | * <li>each enum,</li> | ||
845 | * <li>and each data type</li> | ||
846 | * </ul> | ||
847 | * <!-- end-user-doc --> | ||
848 | * @generated | ||
849 | */ | ||
850 | interface Literals | ||
851 | { | ||
852 | /** | ||
853 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl <em>Cft Model</em>}' class. | ||
854 | * <!-- begin-user-doc --> | ||
855 | * <!-- end-user-doc --> | ||
856 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl | ||
857 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getCftModel() | ||
858 | * @generated | ||
859 | */ | ||
860 | EClass CFT_MODEL = eINSTANCE.getCftModel(); | ||
861 | |||
862 | /** | ||
863 | * The meta object literal for the '<em><b>Package Name</b></em>' attribute feature. | ||
864 | * <!-- begin-user-doc --> | ||
865 | * <!-- end-user-doc --> | ||
866 | * @generated | ||
867 | */ | ||
868 | EAttribute CFT_MODEL__PACKAGE_NAME = eINSTANCE.getCftModel_PackageName(); | ||
869 | |||
870 | /** | ||
871 | * The meta object literal for the '<em><b>Imports</b></em>' containment reference list feature. | ||
872 | * <!-- begin-user-doc --> | ||
873 | * <!-- end-user-doc --> | ||
874 | * @generated | ||
875 | */ | ||
876 | EReference CFT_MODEL__IMPORTS = eINSTANCE.getCftModel_Imports(); | ||
877 | |||
878 | /** | ||
879 | * The meta object literal for the '<em><b>Component Definitions</b></em>' containment reference list feature. | ||
880 | * <!-- begin-user-doc --> | ||
881 | * <!-- end-user-doc --> | ||
882 | * @generated | ||
883 | */ | ||
884 | EReference CFT_MODEL__COMPONENT_DEFINITIONS = eINSTANCE.getCftModel_ComponentDefinitions(); | ||
885 | |||
886 | /** | ||
887 | * The meta object literal for the '<em><b>Transformation Definitions</b></em>' containment reference list feature. | ||
888 | * <!-- begin-user-doc --> | ||
889 | * <!-- end-user-doc --> | ||
890 | * @generated | ||
891 | */ | ||
892 | EReference CFT_MODEL__TRANSFORMATION_DEFINITIONS = eINSTANCE.getCftModel_TransformationDefinitions(); | ||
893 | |||
894 | /** | ||
895 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ImportDeclarationImpl <em>Import Declaration</em>}' class. | ||
896 | * <!-- begin-user-doc --> | ||
897 | * <!-- end-user-doc --> | ||
898 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ImportDeclarationImpl | ||
899 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getImportDeclaration() | ||
900 | * @generated | ||
901 | */ | ||
902 | EClass IMPORT_DECLARATION = eINSTANCE.getImportDeclaration(); | ||
903 | |||
904 | /** | ||
905 | * The meta object literal for the '<em><b>Imported Namespace</b></em>' attribute feature. | ||
906 | * <!-- begin-user-doc --> | ||
907 | * <!-- end-user-doc --> | ||
908 | * @generated | ||
909 | */ | ||
910 | EAttribute IMPORT_DECLARATION__IMPORTED_NAMESPACE = eINSTANCE.getImportDeclaration_ImportedNamespace(); | ||
911 | |||
912 | /** | ||
913 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.TransformationDefinitionImpl <em>Transformation Definition</em>}' class. | ||
914 | * <!-- begin-user-doc --> | ||
915 | * <!-- end-user-doc --> | ||
916 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.TransformationDefinitionImpl | ||
917 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getTransformationDefinition() | ||
918 | * @generated | ||
919 | */ | ||
920 | EClass TRANSFORMATION_DEFINITION = eINSTANCE.getTransformationDefinition(); | ||
921 | |||
922 | /** | ||
923 | * The meta object literal for the '<em><b>Name</b></em>' attribute feature. | ||
924 | * <!-- begin-user-doc --> | ||
925 | * <!-- end-user-doc --> | ||
926 | * @generated | ||
927 | */ | ||
928 | EAttribute TRANSFORMATION_DEFINITION__NAME = eINSTANCE.getTransformationDefinition_Name(); | ||
929 | |||
930 | /** | ||
931 | * The meta object literal for the '<em><b>Mapping Definitions</b></em>' containment reference list feature. | ||
932 | * <!-- begin-user-doc --> | ||
933 | * <!-- end-user-doc --> | ||
934 | * @generated | ||
935 | */ | ||
936 | EReference TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS = eINSTANCE.getTransformationDefinition_MappingDefinitions(); | ||
937 | |||
938 | /** | ||
939 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl <em>Mapping Definition</em>}' class. | ||
940 | * <!-- begin-user-doc --> | ||
941 | * <!-- end-user-doc --> | ||
942 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl | ||
943 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getMappingDefinition() | ||
944 | * @generated | ||
945 | */ | ||
946 | EClass MAPPING_DEFINITION = eINSTANCE.getMappingDefinition(); | ||
947 | |||
948 | /** | ||
949 | * The meta object literal for the '<em><b>Top Level</b></em>' attribute feature. | ||
950 | * <!-- begin-user-doc --> | ||
951 | * <!-- end-user-doc --> | ||
952 | * @generated | ||
953 | */ | ||
954 | EAttribute MAPPING_DEFINITION__TOP_LEVEL = eINSTANCE.getMappingDefinition_TopLevel(); | ||
955 | |||
956 | /** | ||
957 | * The meta object literal for the '<em><b>Pattern</b></em>' reference feature. | ||
958 | * <!-- begin-user-doc --> | ||
959 | * <!-- end-user-doc --> | ||
960 | * @generated | ||
961 | */ | ||
962 | EReference MAPPING_DEFINITION__PATTERN = eINSTANCE.getMappingDefinition_Pattern(); | ||
963 | |||
964 | /** | ||
965 | * The meta object literal for the '<em><b>Parameters</b></em>' containment reference list feature. | ||
966 | * <!-- begin-user-doc --> | ||
967 | * <!-- end-user-doc --> | ||
968 | * @generated | ||
969 | */ | ||
970 | EReference MAPPING_DEFINITION__PARAMETERS = eINSTANCE.getMappingDefinition_Parameters(); | ||
971 | |||
972 | /** | ||
973 | * The meta object literal for the '<em><b>Component Instance</b></em>' containment reference feature. | ||
974 | * <!-- begin-user-doc --> | ||
975 | * <!-- end-user-doc --> | ||
976 | * @generated | ||
977 | */ | ||
978 | EReference MAPPING_DEFINITION__COMPONENT_INSTANCE = eINSTANCE.getMappingDefinition_ComponentInstance(); | ||
979 | |||
980 | /** | ||
981 | * The meta object literal for the '<em><b>Lookup Definitions</b></em>' containment reference list feature. | ||
982 | * <!-- begin-user-doc --> | ||
983 | * <!-- end-user-doc --> | ||
984 | * @generated | ||
985 | */ | ||
986 | EReference MAPPING_DEFINITION__LOOKUP_DEFINITIONS = eINSTANCE.getMappingDefinition_LookupDefinitions(); | ||
987 | |||
988 | /** | ||
989 | * The meta object literal for the '<em><b>Assignments</b></em>' containment reference list feature. | ||
990 | * <!-- begin-user-doc --> | ||
991 | * <!-- end-user-doc --> | ||
992 | * @generated | ||
993 | */ | ||
994 | EReference MAPPING_DEFINITION__ASSIGNMENTS = eINSTANCE.getMappingDefinition_Assignments(); | ||
995 | |||
996 | /** | ||
997 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingParameterImpl <em>Mapping Parameter</em>}' class. | ||
998 | * <!-- begin-user-doc --> | ||
999 | * <!-- end-user-doc --> | ||
1000 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingParameterImpl | ||
1001 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getMappingParameter() | ||
1002 | * @generated | ||
1003 | */ | ||
1004 | EClass MAPPING_PARAMETER = eINSTANCE.getMappingParameter(); | ||
1005 | |||
1006 | /** | ||
1007 | * The meta object literal for the '<em><b>Name</b></em>' attribute feature. | ||
1008 | * <!-- begin-user-doc --> | ||
1009 | * <!-- end-user-doc --> | ||
1010 | * @generated | ||
1011 | */ | ||
1012 | EAttribute MAPPING_PARAMETER__NAME = eINSTANCE.getMappingParameter_Name(); | ||
1013 | |||
1014 | /** | ||
1015 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.LookupDefinitionImpl <em>Lookup Definition</em>}' class. | ||
1016 | * <!-- begin-user-doc --> | ||
1017 | * <!-- end-user-doc --> | ||
1018 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.LookupDefinitionImpl | ||
1019 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getLookupDefinition() | ||
1020 | * @generated | ||
1021 | */ | ||
1022 | EClass LOOKUP_DEFINITION = eINSTANCE.getLookupDefinition(); | ||
1023 | |||
1024 | /** | ||
1025 | * The meta object literal for the '<em><b>Mapping</b></em>' reference feature. | ||
1026 | * <!-- begin-user-doc --> | ||
1027 | * <!-- end-user-doc --> | ||
1028 | * @generated | ||
1029 | */ | ||
1030 | EReference LOOKUP_DEFINITION__MAPPING = eINSTANCE.getLookupDefinition_Mapping(); | ||
1031 | |||
1032 | /** | ||
1033 | * The meta object literal for the '<em><b>Arguments</b></em>' reference list feature. | ||
1034 | * <!-- begin-user-doc --> | ||
1035 | * <!-- end-user-doc --> | ||
1036 | * @generated | ||
1037 | */ | ||
1038 | EReference LOOKUP_DEFINITION__ARGUMENTS = eINSTANCE.getLookupDefinition_Arguments(); | ||
1039 | |||
1040 | /** | ||
1041 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.VariableImpl <em>Variable</em>}' class. | ||
1042 | * <!-- begin-user-doc --> | ||
1043 | * <!-- end-user-doc --> | ||
1044 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.VariableImpl | ||
1045 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getVariable() | ||
1046 | * @generated | ||
1047 | */ | ||
1048 | EClass VARIABLE = eINSTANCE.getVariable(); | ||
1049 | |||
1050 | /** | ||
1051 | * The meta object literal for the '<em><b>Name</b></em>' attribute feature. | ||
1052 | * <!-- begin-user-doc --> | ||
1053 | * <!-- end-user-doc --> | ||
1054 | * @generated | ||
1055 | */ | ||
1056 | EAttribute VARIABLE__NAME = eINSTANCE.getVariable_Name(); | ||
1057 | |||
1058 | /** | ||
1059 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AssignmentImpl <em>Assignment</em>}' class. | ||
1060 | * <!-- begin-user-doc --> | ||
1061 | * <!-- end-user-doc --> | ||
1062 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AssignmentImpl | ||
1063 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getAssignment() | ||
1064 | * @generated | ||
1065 | */ | ||
1066 | EClass ASSIGNMENT = eINSTANCE.getAssignment(); | ||
1067 | |||
1068 | /** | ||
1069 | * The meta object literal for the '<em><b>Input</b></em>' containment reference feature. | ||
1070 | * <!-- begin-user-doc --> | ||
1071 | * <!-- end-user-doc --> | ||
1072 | * @generated | ||
1073 | */ | ||
1074 | EReference ASSIGNMENT__INPUT = eINSTANCE.getAssignment_Input(); | ||
1075 | |||
1076 | /** | ||
1077 | * The meta object literal for the '<em><b>Multiple</b></em>' attribute feature. | ||
1078 | * <!-- begin-user-doc --> | ||
1079 | * <!-- end-user-doc --> | ||
1080 | * @generated | ||
1081 | */ | ||
1082 | EAttribute ASSIGNMENT__MULTIPLE = eINSTANCE.getAssignment_Multiple(); | ||
1083 | |||
1084 | /** | ||
1085 | * The meta object literal for the '<em><b>Output</b></em>' containment reference feature. | ||
1086 | * <!-- begin-user-doc --> | ||
1087 | * <!-- end-user-doc --> | ||
1088 | * @generated | ||
1089 | */ | ||
1090 | EReference ASSIGNMENT__OUTPUT = eINSTANCE.getAssignment_Output(); | ||
1091 | |||
1092 | /** | ||
1093 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventReferenceImpl <em>Event Reference</em>}' class. | ||
1094 | * <!-- begin-user-doc --> | ||
1095 | * <!-- end-user-doc --> | ||
1096 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventReferenceImpl | ||
1097 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getEventReference() | ||
1098 | * @generated | ||
1099 | */ | ||
1100 | EClass EVENT_REFERENCE = eINSTANCE.getEventReference(); | ||
1101 | |||
1102 | /** | ||
1103 | * The meta object literal for the '<em><b>Component</b></em>' reference feature. | ||
1104 | * <!-- begin-user-doc --> | ||
1105 | * <!-- end-user-doc --> | ||
1106 | * @generated | ||
1107 | */ | ||
1108 | EReference EVENT_REFERENCE__COMPONENT = eINSTANCE.getEventReference_Component(); | ||
1109 | |||
1110 | /** | ||
1111 | * The meta object literal for the '<em><b>Event</b></em>' reference feature. | ||
1112 | * <!-- begin-user-doc --> | ||
1113 | * <!-- end-user-doc --> | ||
1114 | * @generated | ||
1115 | */ | ||
1116 | EReference EVENT_REFERENCE__EVENT = eINSTANCE.getEventReference_Event(); | ||
1117 | |||
1118 | /** | ||
1119 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentInstanceImpl <em>Component Instance</em>}' class. | ||
1120 | * <!-- begin-user-doc --> | ||
1121 | * <!-- end-user-doc --> | ||
1122 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentInstanceImpl | ||
1123 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getComponentInstance() | ||
1124 | * @generated | ||
1125 | */ | ||
1126 | EClass COMPONENT_INSTANCE = eINSTANCE.getComponentInstance(); | ||
1127 | |||
1128 | /** | ||
1129 | * The meta object literal for the '<em><b>Component Type</b></em>' reference feature. | ||
1130 | * <!-- begin-user-doc --> | ||
1131 | * <!-- end-user-doc --> | ||
1132 | * @generated | ||
1133 | */ | ||
1134 | EReference COMPONENT_INSTANCE__COMPONENT_TYPE = eINSTANCE.getComponentInstance_ComponentType(); | ||
1135 | |||
1136 | } | ||
1137 | |||
1138 | } //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 deleted file mode 100644 index 0b384084..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftModel.java +++ /dev/null | |||
@@ -1,107 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition; | ||
7 | |||
8 | import org.eclipse.emf.common.util.EList; | ||
9 | |||
10 | import org.eclipse.emf.ecore.EObject; | ||
11 | |||
12 | /** | ||
13 | * <!-- begin-user-doc --> | ||
14 | * A representation of the model object '<em><b>Cft Model</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.CftModel#getPackageName <em>Package Name</em>}</li> | ||
22 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getImports <em>Imports</em>}</li> | ||
23 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getComponentDefinitions <em>Component Definitions</em>}</li> | ||
24 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getTransformationDefinitions <em>Transformation Definitions</em>}</li> | ||
25 | * </ul> | ||
26 | * | ||
27 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getCftModel() | ||
28 | * @model | ||
29 | * @generated | ||
30 | */ | ||
31 | public interface CftModel extends EObject | ||
32 | { | ||
33 | /** | ||
34 | * Returns the value of the '<em><b>Package Name</b></em>' attribute. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <p> | ||
37 | * If the meaning of the '<em>Package Name</em>' attribute isn't clear, | ||
38 | * there really should be more of a description here... | ||
39 | * </p> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @return the value of the '<em>Package Name</em>' attribute. | ||
42 | * @see #setPackageName(String) | ||
43 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getCftModel_PackageName() | ||
44 | * @model | ||
45 | * @generated | ||
46 | */ | ||
47 | String getPackageName(); | ||
48 | |||
49 | /** | ||
50 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getPackageName <em>Package Name</em>}' attribute. | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @param value the new value of the '<em>Package Name</em>' attribute. | ||
54 | * @see #getPackageName() | ||
55 | * @generated | ||
56 | */ | ||
57 | void setPackageName(String value); | ||
58 | |||
59 | /** | ||
60 | * Returns the value of the '<em><b>Imports</b></em>' containment reference list. | ||
61 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration}. | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <p> | ||
64 | * If the meaning of the '<em>Imports</em>' containment reference list isn't clear, | ||
65 | * there really should be more of a description here... | ||
66 | * </p> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @return the value of the '<em>Imports</em>' containment reference list. | ||
69 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getCftModel_Imports() | ||
70 | * @model containment="true" | ||
71 | * @generated | ||
72 | */ | ||
73 | EList<ImportDeclaration> getImports(); | ||
74 | |||
75 | /** | ||
76 | * Returns the value of the '<em><b>Component Definitions</b></em>' containment reference list. | ||
77 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition}. | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <p> | ||
80 | * If the meaning of the '<em>Component Definitions</em>' containment reference list isn't clear, | ||
81 | * there really should be more of a description here... | ||
82 | * </p> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @return the value of the '<em>Component Definitions</em>' containment reference list. | ||
85 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getCftModel_ComponentDefinitions() | ||
86 | * @model containment="true" | ||
87 | * @generated | ||
88 | */ | ||
89 | EList<ComponentDefinition> getComponentDefinitions(); | ||
90 | |||
91 | /** | ||
92 | * Returns the value of the '<em><b>Transformation Definitions</b></em>' containment reference list. | ||
93 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition}. | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <p> | ||
96 | * If the meaning of the '<em>Transformation Definitions</em>' containment reference list isn't clear, | ||
97 | * there really should be more of a description here... | ||
98 | * </p> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @return the value of the '<em>Transformation Definitions</em>' containment reference list. | ||
101 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getCftModel_TransformationDefinitions() | ||
102 | * @model containment="true" | ||
103 | * @generated | ||
104 | */ | ||
105 | EList<TransformationDefinition> getTransformationDefinitions(); | ||
106 | |||
107 | } // CftModel | ||
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 deleted file mode 100644 index 0c80849d..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ComponentInstance.java +++ /dev/null | |||
@@ -1,52 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * A representation of the model object '<em><b>Component Instance</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.ComponentInstance#getComponentType <em>Component Type</em>}</li> | ||
18 | * </ul> | ||
19 | * | ||
20 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getComponentInstance() | ||
21 | * @model | ||
22 | * @generated | ||
23 | */ | ||
24 | public interface ComponentInstance extends Variable | ||
25 | { | ||
26 | /** | ||
27 | * Returns the value of the '<em><b>Component Type</b></em>' reference. | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <p> | ||
30 | * If the meaning of the '<em>Component Type</em>' reference isn't clear, | ||
31 | * there really should be more of a description here... | ||
32 | * </p> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @return the value of the '<em>Component Type</em>' reference. | ||
35 | * @see #setComponentType(ComponentDefinition) | ||
36 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getComponentInstance_ComponentType() | ||
37 | * @model | ||
38 | * @generated | ||
39 | */ | ||
40 | ComponentDefinition getComponentType(); | ||
41 | |||
42 | /** | ||
43 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance#getComponentType <em>Component Type</em>}' reference. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @param value the new value of the '<em>Component Type</em>' reference. | ||
47 | * @see #getComponentType() | ||
48 | * @generated | ||
49 | */ | ||
50 | void setComponentType(ComponentDefinition value); | ||
51 | |||
52 | } // ComponentInstance | ||
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 deleted file mode 100644 index bf7b7263..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventReference.java +++ /dev/null | |||
@@ -1,81 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EObject; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * A representation of the model object '<em><b>Event Reference</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.EventReference#getComponent <em>Component</em>}</li> | ||
20 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference#getEvent <em>Event</em>}</li> | ||
21 | * </ul> | ||
22 | * | ||
23 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getEventReference() | ||
24 | * @model | ||
25 | * @generated | ||
26 | */ | ||
27 | public interface EventReference extends EObject | ||
28 | { | ||
29 | /** | ||
30 | * Returns the value of the '<em><b>Component</b></em>' reference. | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <p> | ||
33 | * If the meaning of the '<em>Component</em>' reference 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>Component</em>' reference. | ||
38 | * @see #setComponent(Variable) | ||
39 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getEventReference_Component() | ||
40 | * @model | ||
41 | * @generated | ||
42 | */ | ||
43 | Variable getComponent(); | ||
44 | |||
45 | /** | ||
46 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference#getComponent <em>Component</em>}' reference. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @param value the new value of the '<em>Component</em>' reference. | ||
50 | * @see #getComponent() | ||
51 | * @generated | ||
52 | */ | ||
53 | void setComponent(Variable value); | ||
54 | |||
55 | /** | ||
56 | * Returns the value of the '<em><b>Event</b></em>' reference. | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <p> | ||
59 | * If the meaning of the '<em>Event</em>' reference isn't clear, | ||
60 | * there really should be more of a description here... | ||
61 | * </p> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @return the value of the '<em>Event</em>' reference. | ||
64 | * @see #setEvent(EventDeclaration) | ||
65 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getEventReference_Event() | ||
66 | * @model | ||
67 | * @generated | ||
68 | */ | ||
69 | EventDeclaration getEvent(); | ||
70 | |||
71 | /** | ||
72 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference#getEvent <em>Event</em>}' reference. | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @param value the new value of the '<em>Event</em>' reference. | ||
76 | * @see #getEvent() | ||
77 | * @generated | ||
78 | */ | ||
79 | void setEvent(EventDeclaration value); | ||
80 | |||
81 | } // EventReference | ||
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 deleted file mode 100644 index bcb36395..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ImportDeclaration.java +++ /dev/null | |||
@@ -1,52 +0,0 @@ | |||
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/LookupDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/LookupDefinition.java deleted file mode 100644 index f0ad3519..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/LookupDefinition.java +++ /dev/null | |||
@@ -1,69 +0,0 @@ | |||
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 deleted file mode 100644 index 14c539b4..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/MappingDefinition.java +++ /dev/null | |||
@@ -1,161 +0,0 @@ | |||
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 deleted file mode 100644 index 5fc3c006..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/MappingParameter.java +++ /dev/null | |||
@@ -1,52 +0,0 @@ | |||
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/TransformationDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/TransformationDefinition.java deleted file mode 100644 index 1412e725..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/TransformationDefinition.java +++ /dev/null | |||
@@ -1,71 +0,0 @@ | |||
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 deleted file mode 100644 index d49749da..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/Variable.java +++ /dev/null | |||
@@ -1,52 +0,0 @@ | |||
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/AssignmentImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/AssignmentImpl.java deleted file mode 100644 index 0b37cdbb..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/AssignmentImpl.java +++ /dev/null | |||
@@ -1,343 +0,0 @@ | |||
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/CftLanguageFactoryImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguageFactoryImpl.java deleted file mode 100644 index db604384..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguageFactoryImpl.java +++ /dev/null | |||
@@ -1,226 +0,0 @@ | |||
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.TRANSFORMATION_DEFINITION: return createTransformationDefinition(); | ||
71 | case CftLanguagePackage.MAPPING_DEFINITION: return createMappingDefinition(); | ||
72 | case CftLanguagePackage.MAPPING_PARAMETER: return createMappingParameter(); | ||
73 | case CftLanguagePackage.LOOKUP_DEFINITION: return createLookupDefinition(); | ||
74 | case CftLanguagePackage.VARIABLE: return createVariable(); | ||
75 | case CftLanguagePackage.ASSIGNMENT: return createAssignment(); | ||
76 | case CftLanguagePackage.EVENT_REFERENCE: return createEventReference(); | ||
77 | case CftLanguagePackage.COMPONENT_INSTANCE: return createComponentInstance(); | ||
78 | default: | ||
79 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); | ||
80 | } | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public CftModel createCftModel() | ||
90 | { | ||
91 | CftModelImpl cftModel = new CftModelImpl(); | ||
92 | return cftModel; | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | @Override | ||
101 | public ImportDeclaration createImportDeclaration() | ||
102 | { | ||
103 | ImportDeclarationImpl importDeclaration = new ImportDeclarationImpl(); | ||
104 | return importDeclaration; | ||
105 | } | ||
106 | |||
107 | /** | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | */ | ||
112 | @Override | ||
113 | public TransformationDefinition createTransformationDefinition() | ||
114 | { | ||
115 | TransformationDefinitionImpl transformationDefinition = new TransformationDefinitionImpl(); | ||
116 | return transformationDefinition; | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | public MappingDefinition createMappingDefinition() | ||
126 | { | ||
127 | MappingDefinitionImpl mappingDefinition = new MappingDefinitionImpl(); | ||
128 | return mappingDefinition; | ||
129 | } | ||
130 | |||
131 | /** | ||
132 | * <!-- begin-user-doc --> | ||
133 | * <!-- end-user-doc --> | ||
134 | * @generated | ||
135 | */ | ||
136 | @Override | ||
137 | public MappingParameter createMappingParameter() | ||
138 | { | ||
139 | MappingParameterImpl mappingParameter = new MappingParameterImpl(); | ||
140 | return mappingParameter; | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | @Override | ||
149 | public LookupDefinition createLookupDefinition() | ||
150 | { | ||
151 | LookupDefinitionImpl lookupDefinition = new LookupDefinitionImpl(); | ||
152 | return lookupDefinition; | ||
153 | } | ||
154 | |||
155 | /** | ||
156 | * <!-- begin-user-doc --> | ||
157 | * <!-- end-user-doc --> | ||
158 | * @generated | ||
159 | */ | ||
160 | @Override | ||
161 | public Variable createVariable() | ||
162 | { | ||
163 | VariableImpl variable = new VariableImpl(); | ||
164 | return variable; | ||
165 | } | ||
166 | |||
167 | /** | ||
168 | * <!-- begin-user-doc --> | ||
169 | * <!-- end-user-doc --> | ||
170 | * @generated | ||
171 | */ | ||
172 | @Override | ||
173 | public Assignment createAssignment() | ||
174 | { | ||
175 | AssignmentImpl assignment = new AssignmentImpl(); | ||
176 | return assignment; | ||
177 | } | ||
178 | |||
179 | /** | ||
180 | * <!-- begin-user-doc --> | ||
181 | * <!-- end-user-doc --> | ||
182 | * @generated | ||
183 | */ | ||
184 | @Override | ||
185 | public EventReference createEventReference() | ||
186 | { | ||
187 | EventReferenceImpl eventReference = new EventReferenceImpl(); | ||
188 | return eventReference; | ||
189 | } | ||
190 | |||
191 | /** | ||
192 | * <!-- begin-user-doc --> | ||
193 | * <!-- end-user-doc --> | ||
194 | * @generated | ||
195 | */ | ||
196 | @Override | ||
197 | public ComponentInstance createComponentInstance() | ||
198 | { | ||
199 | ComponentInstanceImpl componentInstance = new ComponentInstanceImpl(); | ||
200 | return componentInstance; | ||
201 | } | ||
202 | |||
203 | /** | ||
204 | * <!-- begin-user-doc --> | ||
205 | * <!-- end-user-doc --> | ||
206 | * @generated | ||
207 | */ | ||
208 | @Override | ||
209 | public CftLanguagePackage getCftLanguagePackage() | ||
210 | { | ||
211 | return (CftLanguagePackage)getEPackage(); | ||
212 | } | ||
213 | |||
214 | /** | ||
215 | * <!-- begin-user-doc --> | ||
216 | * <!-- end-user-doc --> | ||
217 | * @deprecated | ||
218 | * @generated | ||
219 | */ | ||
220 | @Deprecated | ||
221 | public static CftLanguagePackage getPackage() | ||
222 | { | ||
223 | return CftLanguagePackage.eINSTANCE; | ||
224 | } | ||
225 | |||
226 | } //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 deleted file mode 100644 index d4e06dde..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguagePackageImpl.java +++ /dev/null | |||
@@ -1,712 +0,0 @@ | |||
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.CftLanguageFactory; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance; | ||
11 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference; | ||
12 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration; | ||
13 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition; | ||
14 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition; | ||
15 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter; | ||
16 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition; | ||
17 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable; | ||
18 | |||
19 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; | ||
20 | |||
21 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; | ||
22 | |||
23 | import org.eclipse.emf.ecore.EAttribute; | ||
24 | import org.eclipse.emf.ecore.EClass; | ||
25 | import org.eclipse.emf.ecore.EPackage; | ||
26 | import org.eclipse.emf.ecore.EReference; | ||
27 | import org.eclipse.emf.ecore.EcorePackage; | ||
28 | |||
29 | import org.eclipse.emf.ecore.impl.EPackageImpl; | ||
30 | |||
31 | import org.eclipse.viatra.query.patternlanguage.emf.vql.PatternLanguagePackage; | ||
32 | |||
33 | import org.eclipse.xtext.common.types.TypesPackage; | ||
34 | |||
35 | import org.eclipse.xtext.xbase.XbasePackage; | ||
36 | |||
37 | import org.eclipse.xtext.xtype.XtypePackage; | ||
38 | |||
39 | /** | ||
40 | * <!-- begin-user-doc --> | ||
41 | * An implementation of the model <b>Package</b>. | ||
42 | * <!-- end-user-doc --> | ||
43 | * @generated | ||
44 | */ | ||
45 | public class CftLanguagePackageImpl extends EPackageImpl implements CftLanguagePackage | ||
46 | { | ||
47 | /** | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @generated | ||
51 | */ | ||
52 | private EClass cftModelEClass = null; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | private EClass importDeclarationEClass = null; | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | private EClass transformationDefinitionEClass = null; | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | private EClass mappingDefinitionEClass = null; | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | private EClass mappingParameterEClass = null; | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | private EClass lookupDefinitionEClass = null; | ||
88 | |||
89 | /** | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | */ | ||
94 | private EClass variableEClass = null; | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | private EClass assignmentEClass = null; | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | private EClass eventReferenceEClass = null; | ||
109 | |||
110 | /** | ||
111 | * <!-- begin-user-doc --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @generated | ||
114 | */ | ||
115 | private EClass componentInstanceEClass = null; | ||
116 | |||
117 | /** | ||
118 | * Creates an instance of the model <b>Package</b>, registered with | ||
119 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | ||
120 | * package URI value. | ||
121 | * <p>Note: the correct way to create the package is via the static | ||
122 | * factory method {@link #init init()}, which also performs | ||
123 | * initialization of the package, or returns the registered package, | ||
124 | * if one already exists. | ||
125 | * <!-- begin-user-doc --> | ||
126 | * <!-- end-user-doc --> | ||
127 | * @see org.eclipse.emf.ecore.EPackage.Registry | ||
128 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#eNS_URI | ||
129 | * @see #init() | ||
130 | * @generated | ||
131 | */ | ||
132 | private CftLanguagePackageImpl() | ||
133 | { | ||
134 | super(eNS_URI, CftLanguageFactory.eINSTANCE); | ||
135 | } | ||
136 | |||
137 | /** | ||
138 | * <!-- begin-user-doc --> | ||
139 | * <!-- end-user-doc --> | ||
140 | * @generated | ||
141 | */ | ||
142 | private static boolean isInited = false; | ||
143 | |||
144 | /** | ||
145 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | ||
146 | * | ||
147 | * <p>This method is used to initialize {@link CftLanguagePackage#eINSTANCE} when that field is accessed. | ||
148 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @see #eNS_URI | ||
152 | * @see #createPackageContents() | ||
153 | * @see #initializePackageContents() | ||
154 | * @generated | ||
155 | */ | ||
156 | public static CftLanguagePackage init() | ||
157 | { | ||
158 | if (isInited) return (CftLanguagePackage)EPackage.Registry.INSTANCE.getEPackage(CftLanguagePackage.eNS_URI); | ||
159 | |||
160 | // Obtain or create and register package | ||
161 | Object registeredCftLanguagePackage = EPackage.Registry.INSTANCE.get(eNS_URI); | ||
162 | CftLanguagePackageImpl theCftLanguagePackage = registeredCftLanguagePackage instanceof CftLanguagePackageImpl ? (CftLanguagePackageImpl)registeredCftLanguagePackage : new CftLanguagePackageImpl(); | ||
163 | |||
164 | isInited = true; | ||
165 | |||
166 | // Initialize simple dependencies | ||
167 | CftPackage.eINSTANCE.eClass(); | ||
168 | EcorePackage.eINSTANCE.eClass(); | ||
169 | PatternLanguagePackage.eINSTANCE.eClass(); | ||
170 | FtPackage.eINSTANCE.eClass(); | ||
171 | XtypePackage.eINSTANCE.eClass(); | ||
172 | TypesPackage.eINSTANCE.eClass(); | ||
173 | XbasePackage.eINSTANCE.eClass(); | ||
174 | |||
175 | // Create package meta-data objects | ||
176 | theCftLanguagePackage.createPackageContents(); | ||
177 | |||
178 | // Initialize created meta-data | ||
179 | theCftLanguagePackage.initializePackageContents(); | ||
180 | |||
181 | // Mark meta-data to indicate it can't be changed | ||
182 | theCftLanguagePackage.freeze(); | ||
183 | |||
184 | // Update the registry and return the package | ||
185 | EPackage.Registry.INSTANCE.put(CftLanguagePackage.eNS_URI, theCftLanguagePackage); | ||
186 | return theCftLanguagePackage; | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | @Override | ||
195 | public EClass getCftModel() | ||
196 | { | ||
197 | return cftModelEClass; | ||
198 | } | ||
199 | |||
200 | /** | ||
201 | * <!-- begin-user-doc --> | ||
202 | * <!-- end-user-doc --> | ||
203 | * @generated | ||
204 | */ | ||
205 | @Override | ||
206 | public EAttribute getCftModel_PackageName() | ||
207 | { | ||
208 | return (EAttribute)cftModelEClass.getEStructuralFeatures().get(0); | ||
209 | } | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | @Override | ||
217 | public EReference getCftModel_Imports() | ||
218 | { | ||
219 | return (EReference)cftModelEClass.getEStructuralFeatures().get(1); | ||
220 | } | ||
221 | |||
222 | /** | ||
223 | * <!-- begin-user-doc --> | ||
224 | * <!-- end-user-doc --> | ||
225 | * @generated | ||
226 | */ | ||
227 | @Override | ||
228 | public EReference getCftModel_ComponentDefinitions() | ||
229 | { | ||
230 | return (EReference)cftModelEClass.getEStructuralFeatures().get(2); | ||
231 | } | ||
232 | |||
233 | /** | ||
234 | * <!-- begin-user-doc --> | ||
235 | * <!-- end-user-doc --> | ||
236 | * @generated | ||
237 | */ | ||
238 | @Override | ||
239 | public EReference getCftModel_TransformationDefinitions() | ||
240 | { | ||
241 | return (EReference)cftModelEClass.getEStructuralFeatures().get(3); | ||
242 | } | ||
243 | |||
244 | /** | ||
245 | * <!-- begin-user-doc --> | ||
246 | * <!-- end-user-doc --> | ||
247 | * @generated | ||
248 | */ | ||
249 | @Override | ||
250 | public EClass getImportDeclaration() | ||
251 | { | ||
252 | return importDeclarationEClass; | ||
253 | } | ||
254 | |||
255 | /** | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | */ | ||
260 | @Override | ||
261 | public EAttribute getImportDeclaration_ImportedNamespace() | ||
262 | { | ||
263 | return (EAttribute)importDeclarationEClass.getEStructuralFeatures().get(0); | ||
264 | } | ||
265 | |||
266 | /** | ||
267 | * <!-- begin-user-doc --> | ||
268 | * <!-- end-user-doc --> | ||
269 | * @generated | ||
270 | */ | ||
271 | @Override | ||
272 | public EClass getTransformationDefinition() | ||
273 | { | ||
274 | return transformationDefinitionEClass; | ||
275 | } | ||
276 | |||
277 | /** | ||
278 | * <!-- begin-user-doc --> | ||
279 | * <!-- end-user-doc --> | ||
280 | * @generated | ||
281 | */ | ||
282 | @Override | ||
283 | public EAttribute getTransformationDefinition_Name() | ||
284 | { | ||
285 | return (EAttribute)transformationDefinitionEClass.getEStructuralFeatures().get(0); | ||
286 | } | ||
287 | |||
288 | /** | ||
289 | * <!-- begin-user-doc --> | ||
290 | * <!-- end-user-doc --> | ||
291 | * @generated | ||
292 | */ | ||
293 | @Override | ||
294 | public EReference getTransformationDefinition_MappingDefinitions() | ||
295 | { | ||
296 | return (EReference)transformationDefinitionEClass.getEStructuralFeatures().get(1); | ||
297 | } | ||
298 | |||
299 | /** | ||
300 | * <!-- begin-user-doc --> | ||
301 | * <!-- end-user-doc --> | ||
302 | * @generated | ||
303 | */ | ||
304 | @Override | ||
305 | public EClass getMappingDefinition() | ||
306 | { | ||
307 | return mappingDefinitionEClass; | ||
308 | } | ||
309 | |||
310 | /** | ||
311 | * <!-- begin-user-doc --> | ||
312 | * <!-- end-user-doc --> | ||
313 | * @generated | ||
314 | */ | ||
315 | @Override | ||
316 | public EAttribute getMappingDefinition_TopLevel() | ||
317 | { | ||
318 | return (EAttribute)mappingDefinitionEClass.getEStructuralFeatures().get(0); | ||
319 | } | ||
320 | |||
321 | /** | ||
322 | * <!-- begin-user-doc --> | ||
323 | * <!-- end-user-doc --> | ||
324 | * @generated | ||
325 | */ | ||
326 | @Override | ||
327 | public EReference getMappingDefinition_Pattern() | ||
328 | { | ||
329 | return (EReference)mappingDefinitionEClass.getEStructuralFeatures().get(1); | ||
330 | } | ||
331 | |||
332 | /** | ||
333 | * <!-- begin-user-doc --> | ||
334 | * <!-- end-user-doc --> | ||
335 | * @generated | ||
336 | */ | ||
337 | @Override | ||
338 | public EReference getMappingDefinition_Parameters() | ||
339 | { | ||
340 | return (EReference)mappingDefinitionEClass.getEStructuralFeatures().get(2); | ||
341 | } | ||
342 | |||
343 | /** | ||
344 | * <!-- begin-user-doc --> | ||
345 | * <!-- end-user-doc --> | ||
346 | * @generated | ||
347 | */ | ||
348 | @Override | ||
349 | public EReference getMappingDefinition_ComponentInstance() | ||
350 | { | ||
351 | return (EReference)mappingDefinitionEClass.getEStructuralFeatures().get(3); | ||
352 | } | ||
353 | |||
354 | /** | ||
355 | * <!-- begin-user-doc --> | ||
356 | * <!-- end-user-doc --> | ||
357 | * @generated | ||
358 | */ | ||
359 | @Override | ||
360 | public EReference getMappingDefinition_LookupDefinitions() | ||
361 | { | ||
362 | return (EReference)mappingDefinitionEClass.getEStructuralFeatures().get(4); | ||
363 | } | ||
364 | |||
365 | /** | ||
366 | * <!-- begin-user-doc --> | ||
367 | * <!-- end-user-doc --> | ||
368 | * @generated | ||
369 | */ | ||
370 | @Override | ||
371 | public EReference getMappingDefinition_Assignments() | ||
372 | { | ||
373 | return (EReference)mappingDefinitionEClass.getEStructuralFeatures().get(5); | ||
374 | } | ||
375 | |||
376 | /** | ||
377 | * <!-- begin-user-doc --> | ||
378 | * <!-- end-user-doc --> | ||
379 | * @generated | ||
380 | */ | ||
381 | @Override | ||
382 | public EClass getMappingParameter() | ||
383 | { | ||
384 | return mappingParameterEClass; | ||
385 | } | ||
386 | |||
387 | /** | ||
388 | * <!-- begin-user-doc --> | ||
389 | * <!-- end-user-doc --> | ||
390 | * @generated | ||
391 | */ | ||
392 | @Override | ||
393 | public EAttribute getMappingParameter_Name() | ||
394 | { | ||
395 | return (EAttribute)mappingParameterEClass.getEStructuralFeatures().get(0); | ||
396 | } | ||
397 | |||
398 | /** | ||
399 | * <!-- begin-user-doc --> | ||
400 | * <!-- end-user-doc --> | ||
401 | * @generated | ||
402 | */ | ||
403 | @Override | ||
404 | public EClass getLookupDefinition() | ||
405 | { | ||
406 | return lookupDefinitionEClass; | ||
407 | } | ||
408 | |||
409 | /** | ||
410 | * <!-- begin-user-doc --> | ||
411 | * <!-- end-user-doc --> | ||
412 | * @generated | ||
413 | */ | ||
414 | @Override | ||
415 | public EReference getLookupDefinition_Mapping() | ||
416 | { | ||
417 | return (EReference)lookupDefinitionEClass.getEStructuralFeatures().get(0); | ||
418 | } | ||
419 | |||
420 | /** | ||
421 | * <!-- begin-user-doc --> | ||
422 | * <!-- end-user-doc --> | ||
423 | * @generated | ||
424 | */ | ||
425 | @Override | ||
426 | public EReference getLookupDefinition_Arguments() | ||
427 | { | ||
428 | return (EReference)lookupDefinitionEClass.getEStructuralFeatures().get(1); | ||
429 | } | ||
430 | |||
431 | /** | ||
432 | * <!-- begin-user-doc --> | ||
433 | * <!-- end-user-doc --> | ||
434 | * @generated | ||
435 | */ | ||
436 | @Override | ||
437 | public EClass getVariable() | ||
438 | { | ||
439 | return variableEClass; | ||
440 | } | ||
441 | |||
442 | /** | ||
443 | * <!-- begin-user-doc --> | ||
444 | * <!-- end-user-doc --> | ||
445 | * @generated | ||
446 | */ | ||
447 | @Override | ||
448 | public EAttribute getVariable_Name() | ||
449 | { | ||
450 | return (EAttribute)variableEClass.getEStructuralFeatures().get(0); | ||
451 | } | ||
452 | |||
453 | /** | ||
454 | * <!-- begin-user-doc --> | ||
455 | * <!-- end-user-doc --> | ||
456 | * @generated | ||
457 | */ | ||
458 | @Override | ||
459 | public EClass getAssignment() | ||
460 | { | ||
461 | return assignmentEClass; | ||
462 | } | ||
463 | |||
464 | /** | ||
465 | * <!-- begin-user-doc --> | ||
466 | * <!-- end-user-doc --> | ||
467 | * @generated | ||
468 | */ | ||
469 | @Override | ||
470 | public EReference getAssignment_Input() | ||
471 | { | ||
472 | return (EReference)assignmentEClass.getEStructuralFeatures().get(0); | ||
473 | } | ||
474 | |||
475 | /** | ||
476 | * <!-- begin-user-doc --> | ||
477 | * <!-- end-user-doc --> | ||
478 | * @generated | ||
479 | */ | ||
480 | @Override | ||
481 | public EAttribute getAssignment_Multiple() | ||
482 | { | ||
483 | return (EAttribute)assignmentEClass.getEStructuralFeatures().get(1); | ||
484 | } | ||
485 | |||
486 | /** | ||
487 | * <!-- begin-user-doc --> | ||
488 | * <!-- end-user-doc --> | ||
489 | * @generated | ||
490 | */ | ||
491 | @Override | ||
492 | public EReference getAssignment_Output() | ||
493 | { | ||
494 | return (EReference)assignmentEClass.getEStructuralFeatures().get(2); | ||
495 | } | ||
496 | |||
497 | /** | ||
498 | * <!-- begin-user-doc --> | ||
499 | * <!-- end-user-doc --> | ||
500 | * @generated | ||
501 | */ | ||
502 | @Override | ||
503 | public EClass getEventReference() | ||
504 | { | ||
505 | return eventReferenceEClass; | ||
506 | } | ||
507 | |||
508 | /** | ||
509 | * <!-- begin-user-doc --> | ||
510 | * <!-- end-user-doc --> | ||
511 | * @generated | ||
512 | */ | ||
513 | @Override | ||
514 | public EReference getEventReference_Component() | ||
515 | { | ||
516 | return (EReference)eventReferenceEClass.getEStructuralFeatures().get(0); | ||
517 | } | ||
518 | |||
519 | /** | ||
520 | * <!-- begin-user-doc --> | ||
521 | * <!-- end-user-doc --> | ||
522 | * @generated | ||
523 | */ | ||
524 | @Override | ||
525 | public EReference getEventReference_Event() | ||
526 | { | ||
527 | return (EReference)eventReferenceEClass.getEStructuralFeatures().get(1); | ||
528 | } | ||
529 | |||
530 | /** | ||
531 | * <!-- begin-user-doc --> | ||
532 | * <!-- end-user-doc --> | ||
533 | * @generated | ||
534 | */ | ||
535 | @Override | ||
536 | public EClass getComponentInstance() | ||
537 | { | ||
538 | return componentInstanceEClass; | ||
539 | } | ||
540 | |||
541 | /** | ||
542 | * <!-- begin-user-doc --> | ||
543 | * <!-- end-user-doc --> | ||
544 | * @generated | ||
545 | */ | ||
546 | @Override | ||
547 | public EReference getComponentInstance_ComponentType() | ||
548 | { | ||
549 | return (EReference)componentInstanceEClass.getEStructuralFeatures().get(0); | ||
550 | } | ||
551 | |||
552 | /** | ||
553 | * <!-- begin-user-doc --> | ||
554 | * <!-- end-user-doc --> | ||
555 | * @generated | ||
556 | */ | ||
557 | @Override | ||
558 | public CftLanguageFactory getCftLanguageFactory() | ||
559 | { | ||
560 | return (CftLanguageFactory)getEFactoryInstance(); | ||
561 | } | ||
562 | |||
563 | /** | ||
564 | * <!-- begin-user-doc --> | ||
565 | * <!-- end-user-doc --> | ||
566 | * @generated | ||
567 | */ | ||
568 | private boolean isCreated = false; | ||
569 | |||
570 | /** | ||
571 | * Creates the meta-model objects for the package. This method is | ||
572 | * guarded to have no affect on any invocation but its first. | ||
573 | * <!-- begin-user-doc --> | ||
574 | * <!-- end-user-doc --> | ||
575 | * @generated | ||
576 | */ | ||
577 | public void createPackageContents() | ||
578 | { | ||
579 | if (isCreated) return; | ||
580 | isCreated = true; | ||
581 | |||
582 | // Create classes and their features | ||
583 | cftModelEClass = createEClass(CFT_MODEL); | ||
584 | createEAttribute(cftModelEClass, CFT_MODEL__PACKAGE_NAME); | ||
585 | createEReference(cftModelEClass, CFT_MODEL__IMPORTS); | ||
586 | createEReference(cftModelEClass, CFT_MODEL__COMPONENT_DEFINITIONS); | ||
587 | createEReference(cftModelEClass, CFT_MODEL__TRANSFORMATION_DEFINITIONS); | ||
588 | |||
589 | importDeclarationEClass = createEClass(IMPORT_DECLARATION); | ||
590 | createEAttribute(importDeclarationEClass, IMPORT_DECLARATION__IMPORTED_NAMESPACE); | ||
591 | |||
592 | transformationDefinitionEClass = createEClass(TRANSFORMATION_DEFINITION); | ||
593 | createEAttribute(transformationDefinitionEClass, TRANSFORMATION_DEFINITION__NAME); | ||
594 | createEReference(transformationDefinitionEClass, TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS); | ||
595 | |||
596 | mappingDefinitionEClass = createEClass(MAPPING_DEFINITION); | ||
597 | createEAttribute(mappingDefinitionEClass, MAPPING_DEFINITION__TOP_LEVEL); | ||
598 | createEReference(mappingDefinitionEClass, MAPPING_DEFINITION__PATTERN); | ||
599 | createEReference(mappingDefinitionEClass, MAPPING_DEFINITION__PARAMETERS); | ||
600 | createEReference(mappingDefinitionEClass, MAPPING_DEFINITION__COMPONENT_INSTANCE); | ||
601 | createEReference(mappingDefinitionEClass, MAPPING_DEFINITION__LOOKUP_DEFINITIONS); | ||
602 | createEReference(mappingDefinitionEClass, MAPPING_DEFINITION__ASSIGNMENTS); | ||
603 | |||
604 | mappingParameterEClass = createEClass(MAPPING_PARAMETER); | ||
605 | createEAttribute(mappingParameterEClass, MAPPING_PARAMETER__NAME); | ||
606 | |||
607 | lookupDefinitionEClass = createEClass(LOOKUP_DEFINITION); | ||
608 | createEReference(lookupDefinitionEClass, LOOKUP_DEFINITION__MAPPING); | ||
609 | createEReference(lookupDefinitionEClass, LOOKUP_DEFINITION__ARGUMENTS); | ||
610 | |||
611 | variableEClass = createEClass(VARIABLE); | ||
612 | createEAttribute(variableEClass, VARIABLE__NAME); | ||
613 | |||
614 | assignmentEClass = createEClass(ASSIGNMENT); | ||
615 | createEReference(assignmentEClass, ASSIGNMENT__INPUT); | ||
616 | createEAttribute(assignmentEClass, ASSIGNMENT__MULTIPLE); | ||
617 | createEReference(assignmentEClass, ASSIGNMENT__OUTPUT); | ||
618 | |||
619 | eventReferenceEClass = createEClass(EVENT_REFERENCE); | ||
620 | createEReference(eventReferenceEClass, EVENT_REFERENCE__COMPONENT); | ||
621 | createEReference(eventReferenceEClass, EVENT_REFERENCE__EVENT); | ||
622 | |||
623 | componentInstanceEClass = createEClass(COMPONENT_INSTANCE); | ||
624 | createEReference(componentInstanceEClass, COMPONENT_INSTANCE__COMPONENT_TYPE); | ||
625 | } | ||
626 | |||
627 | /** | ||
628 | * <!-- begin-user-doc --> | ||
629 | * <!-- end-user-doc --> | ||
630 | * @generated | ||
631 | */ | ||
632 | private boolean isInitialized = false; | ||
633 | |||
634 | /** | ||
635 | * Complete the initialization of the package and its meta-model. This | ||
636 | * method is guarded to have no affect on any invocation but its first. | ||
637 | * <!-- begin-user-doc --> | ||
638 | * <!-- end-user-doc --> | ||
639 | * @generated | ||
640 | */ | ||
641 | public void initializePackageContents() | ||
642 | { | ||
643 | if (isInitialized) return; | ||
644 | isInitialized = true; | ||
645 | |||
646 | // Initialize package | ||
647 | setName(eNAME); | ||
648 | setNsPrefix(eNS_PREFIX); | ||
649 | setNsURI(eNS_URI); | ||
650 | |||
651 | // Obtain other dependent packages | ||
652 | EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); | ||
653 | CftPackage theCftPackage = (CftPackage)EPackage.Registry.INSTANCE.getEPackage(CftPackage.eNS_URI); | ||
654 | PatternLanguagePackage thePatternLanguagePackage = (PatternLanguagePackage)EPackage.Registry.INSTANCE.getEPackage(PatternLanguagePackage.eNS_URI); | ||
655 | |||
656 | // Create type parameters | ||
657 | |||
658 | // Set bounds for type parameters | ||
659 | |||
660 | // Add supertypes to classes | ||
661 | lookupDefinitionEClass.getESuperTypes().add(this.getVariable()); | ||
662 | componentInstanceEClass.getESuperTypes().add(this.getVariable()); | ||
663 | |||
664 | // Initialize classes and features; add operations and parameters | ||
665 | initEClass(cftModelEClass, CftModel.class, "CftModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
666 | 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); | ||
667 | 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); | ||
668 | initEReference(getCftModel_ComponentDefinitions(), theCftPackage.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); | ||
669 | 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); | ||
670 | |||
671 | initEClass(importDeclarationEClass, ImportDeclaration.class, "ImportDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
672 | 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); | ||
673 | |||
674 | initEClass(transformationDefinitionEClass, TransformationDefinition.class, "TransformationDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
675 | 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); | ||
676 | 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); | ||
677 | |||
678 | initEClass(mappingDefinitionEClass, MappingDefinition.class, "MappingDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
679 | 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); | ||
680 | 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); | ||
681 | 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); | ||
682 | 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); | ||
683 | 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); | ||
684 | 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); | ||
685 | |||
686 | initEClass(mappingParameterEClass, MappingParameter.class, "MappingParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
687 | 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); | ||
688 | |||
689 | initEClass(lookupDefinitionEClass, LookupDefinition.class, "LookupDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
690 | 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); | ||
691 | 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); | ||
692 | |||
693 | initEClass(variableEClass, Variable.class, "Variable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
694 | 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); | ||
695 | |||
696 | initEClass(assignmentEClass, Assignment.class, "Assignment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
697 | 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); | ||
698 | 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); | ||
699 | 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); | ||
700 | |||
701 | initEClass(eventReferenceEClass, EventReference.class, "EventReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
702 | 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); | ||
703 | initEReference(getEventReference_Event(), theCftPackage.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); | ||
704 | |||
705 | initEClass(componentInstanceEClass, ComponentInstance.class, "ComponentInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
706 | initEReference(getComponentInstance_ComponentType(), theCftPackage.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); | ||
707 | |||
708 | // Create resource | ||
709 | createResource(eNS_URI); | ||
710 | } | ||
711 | |||
712 | } //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 deleted file mode 100644 index 1a5a8c16..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftModelImpl.java +++ /dev/null | |||
@@ -1,325 +0,0 @@ | |||
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.ImportDeclaration; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition; | ||
10 | |||
11 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition; | ||
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 | /** | ||
30 | * <!-- begin-user-doc --> | ||
31 | * An implementation of the model object '<em><b>Cft Model</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.CftModelImpl#getPackageName <em>Package Name</em>}</li> | ||
38 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl#getImports <em>Imports</em>}</li> | ||
39 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl#getComponentDefinitions <em>Component Definitions</em>}</li> | ||
40 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl#getTransformationDefinitions <em>Transformation Definitions</em>}</li> | ||
41 | * </ul> | ||
42 | * | ||
43 | * @generated | ||
44 | */ | ||
45 | public class CftModelImpl extends MinimalEObjectImpl.Container implements CftModel | ||
46 | { | ||
47 | /** | ||
48 | * The default value of the '{@link #getPackageName() <em>Package Name</em>}' attribute. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @see #getPackageName() | ||
52 | * @generated | ||
53 | * @ordered | ||
54 | */ | ||
55 | protected static final String PACKAGE_NAME_EDEFAULT = null; | ||
56 | |||
57 | /** | ||
58 | * The cached value of the '{@link #getPackageName() <em>Package Name</em>}' attribute. | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @see #getPackageName() | ||
62 | * @generated | ||
63 | * @ordered | ||
64 | */ | ||
65 | protected String packageName = PACKAGE_NAME_EDEFAULT; | ||
66 | |||
67 | /** | ||
68 | * The cached value of the '{@link #getImports() <em>Imports</em>}' containment reference list. | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @see #getImports() | ||
72 | * @generated | ||
73 | * @ordered | ||
74 | */ | ||
75 | protected EList<ImportDeclaration> imports; | ||
76 | |||
77 | /** | ||
78 | * The cached value of the '{@link #getComponentDefinitions() <em>Component Definitions</em>}' containment reference list. | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @see #getComponentDefinitions() | ||
82 | * @generated | ||
83 | * @ordered | ||
84 | */ | ||
85 | protected EList<ComponentDefinition> componentDefinitions; | ||
86 | |||
87 | /** | ||
88 | * The cached value of the '{@link #getTransformationDefinitions() <em>Transformation Definitions</em>}' containment reference list. | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @see #getTransformationDefinitions() | ||
92 | * @generated | ||
93 | * @ordered | ||
94 | */ | ||
95 | protected EList<TransformationDefinition> transformationDefinitions; | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | protected CftModelImpl() | ||
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.CFT_MODEL; | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | @Override | ||
124 | public String getPackageName() | ||
125 | { | ||
126 | return packageName; | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void setPackageName(String newPackageName) | ||
136 | { | ||
137 | String oldPackageName = packageName; | ||
138 | packageName = newPackageName; | ||
139 | if (eNotificationRequired()) | ||
140 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.CFT_MODEL__PACKAGE_NAME, oldPackageName, packageName)); | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | @Override | ||
149 | public EList<ImportDeclaration> getImports() | ||
150 | { | ||
151 | if (imports == null) | ||
152 | { | ||
153 | imports = new EObjectContainmentEList<ImportDeclaration>(ImportDeclaration.class, this, CftLanguagePackage.CFT_MODEL__IMPORTS); | ||
154 | } | ||
155 | return imports; | ||
156 | } | ||
157 | |||
158 | /** | ||
159 | * <!-- begin-user-doc --> | ||
160 | * <!-- end-user-doc --> | ||
161 | * @generated | ||
162 | */ | ||
163 | @Override | ||
164 | public EList<ComponentDefinition> getComponentDefinitions() | ||
165 | { | ||
166 | if (componentDefinitions == null) | ||
167 | { | ||
168 | componentDefinitions = new EObjectContainmentEList<ComponentDefinition>(ComponentDefinition.class, this, CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS); | ||
169 | } | ||
170 | return componentDefinitions; | ||
171 | } | ||
172 | |||
173 | /** | ||
174 | * <!-- begin-user-doc --> | ||
175 | * <!-- end-user-doc --> | ||
176 | * @generated | ||
177 | */ | ||
178 | @Override | ||
179 | public EList<TransformationDefinition> getTransformationDefinitions() | ||
180 | { | ||
181 | if (transformationDefinitions == null) | ||
182 | { | ||
183 | transformationDefinitions = new EObjectContainmentEList<TransformationDefinition>(TransformationDefinition.class, this, CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS); | ||
184 | } | ||
185 | return transformationDefinitions; | ||
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.CFT_MODEL__IMPORTS: | ||
199 | return ((InternalEList<?>)getImports()).basicRemove(otherEnd, msgs); | ||
200 | case CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS: | ||
201 | return ((InternalEList<?>)getComponentDefinitions()).basicRemove(otherEnd, msgs); | ||
202 | case CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS: | ||
203 | return ((InternalEList<?>)getTransformationDefinitions()).basicRemove(otherEnd, msgs); | ||
204 | } | ||
205 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
206 | } | ||
207 | |||
208 | /** | ||
209 | * <!-- begin-user-doc --> | ||
210 | * <!-- end-user-doc --> | ||
211 | * @generated | ||
212 | */ | ||
213 | @Override | ||
214 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
215 | { | ||
216 | switch (featureID) | ||
217 | { | ||
218 | case CftLanguagePackage.CFT_MODEL__PACKAGE_NAME: | ||
219 | return getPackageName(); | ||
220 | case CftLanguagePackage.CFT_MODEL__IMPORTS: | ||
221 | return getImports(); | ||
222 | case CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS: | ||
223 | return getComponentDefinitions(); | ||
224 | case CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS: | ||
225 | return getTransformationDefinitions(); | ||
226 | } | ||
227 | return super.eGet(featureID, resolve, coreType); | ||
228 | } | ||
229 | |||
230 | /** | ||
231 | * <!-- begin-user-doc --> | ||
232 | * <!-- end-user-doc --> | ||
233 | * @generated | ||
234 | */ | ||
235 | @SuppressWarnings("unchecked") | ||
236 | @Override | ||
237 | public void eSet(int featureID, Object newValue) | ||
238 | { | ||
239 | switch (featureID) | ||
240 | { | ||
241 | case CftLanguagePackage.CFT_MODEL__PACKAGE_NAME: | ||
242 | setPackageName((String)newValue); | ||
243 | return; | ||
244 | case CftLanguagePackage.CFT_MODEL__IMPORTS: | ||
245 | getImports().clear(); | ||
246 | getImports().addAll((Collection<? extends ImportDeclaration>)newValue); | ||
247 | return; | ||
248 | case CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS: | ||
249 | getComponentDefinitions().clear(); | ||
250 | getComponentDefinitions().addAll((Collection<? extends ComponentDefinition>)newValue); | ||
251 | return; | ||
252 | case CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS: | ||
253 | getTransformationDefinitions().clear(); | ||
254 | getTransformationDefinitions().addAll((Collection<? extends TransformationDefinition>)newValue); | ||
255 | return; | ||
256 | } | ||
257 | super.eSet(featureID, newValue); | ||
258 | } | ||
259 | |||
260 | /** | ||
261 | * <!-- begin-user-doc --> | ||
262 | * <!-- end-user-doc --> | ||
263 | * @generated | ||
264 | */ | ||
265 | @Override | ||
266 | public void eUnset(int featureID) | ||
267 | { | ||
268 | switch (featureID) | ||
269 | { | ||
270 | case CftLanguagePackage.CFT_MODEL__PACKAGE_NAME: | ||
271 | setPackageName(PACKAGE_NAME_EDEFAULT); | ||
272 | return; | ||
273 | case CftLanguagePackage.CFT_MODEL__IMPORTS: | ||
274 | getImports().clear(); | ||
275 | return; | ||
276 | case CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS: | ||
277 | getComponentDefinitions().clear(); | ||
278 | return; | ||
279 | case CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS: | ||
280 | getTransformationDefinitions().clear(); | ||
281 | return; | ||
282 | } | ||
283 | super.eUnset(featureID); | ||
284 | } | ||
285 | |||
286 | /** | ||
287 | * <!-- begin-user-doc --> | ||
288 | * <!-- end-user-doc --> | ||
289 | * @generated | ||
290 | */ | ||
291 | @Override | ||
292 | public boolean eIsSet(int featureID) | ||
293 | { | ||
294 | switch (featureID) | ||
295 | { | ||
296 | case CftLanguagePackage.CFT_MODEL__PACKAGE_NAME: | ||
297 | return PACKAGE_NAME_EDEFAULT == null ? packageName != null : !PACKAGE_NAME_EDEFAULT.equals(packageName); | ||
298 | case CftLanguagePackage.CFT_MODEL__IMPORTS: | ||
299 | return imports != null && !imports.isEmpty(); | ||
300 | case CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS: | ||
301 | return componentDefinitions != null && !componentDefinitions.isEmpty(); | ||
302 | case CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS: | ||
303 | return transformationDefinitions != null && !transformationDefinitions.isEmpty(); | ||
304 | } | ||
305 | return super.eIsSet(featureID); | ||
306 | } | ||
307 | |||
308 | /** | ||
309 | * <!-- begin-user-doc --> | ||
310 | * <!-- end-user-doc --> | ||
311 | * @generated | ||
312 | */ | ||
313 | @Override | ||
314 | public String toString() | ||
315 | { | ||
316 | if (eIsProxy()) return super.toString(); | ||
317 | |||
318 | StringBuilder result = new StringBuilder(super.toString()); | ||
319 | result.append(" (packageName: "); | ||
320 | result.append(packageName); | ||
321 | result.append(')'); | ||
322 | return result.toString(); | ||
323 | } | ||
324 | |||
325 | } //CftModelImpl | ||
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 deleted file mode 100644 index d1c22199..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentInstanceImpl.java +++ /dev/null | |||
@@ -1,176 +0,0 @@ | |||
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.ComponentInstance; | ||
8 | |||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition; | ||
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 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Component Instance</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.ComponentInstanceImpl#getComponentType <em>Component Type</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class ComponentInstanceImpl extends VariableImpl implements ComponentInstance | ||
32 | { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getComponentType() <em>Component Type</em>}' reference. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getComponentType() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected ComponentDefinition componentType; | ||
42 | |||
43 | /** | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | protected ComponentInstanceImpl() | ||
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.COMPONENT_INSTANCE; | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | @Override | ||
70 | public ComponentDefinition getComponentType() | ||
71 | { | ||
72 | if (componentType != null && componentType.eIsProxy()) | ||
73 | { | ||
74 | InternalEObject oldComponentType = (InternalEObject)componentType; | ||
75 | componentType = (ComponentDefinition)eResolveProxy(oldComponentType); | ||
76 | if (componentType != oldComponentType) | ||
77 | { | ||
78 | if (eNotificationRequired()) | ||
79 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftLanguagePackage.COMPONENT_INSTANCE__COMPONENT_TYPE, oldComponentType, componentType)); | ||
80 | } | ||
81 | } | ||
82 | return componentType; | ||
83 | } | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | public ComponentDefinition basicGetComponentType() | ||
91 | { | ||
92 | return componentType; | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | @Override | ||
101 | public void setComponentType(ComponentDefinition newComponentType) | ||
102 | { | ||
103 | ComponentDefinition oldComponentType = componentType; | ||
104 | componentType = newComponentType; | ||
105 | if (eNotificationRequired()) | ||
106 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.COMPONENT_INSTANCE__COMPONENT_TYPE, oldComponentType, componentType)); | ||
107 | } | ||
108 | |||
109 | /** | ||
110 | * <!-- begin-user-doc --> | ||
111 | * <!-- end-user-doc --> | ||
112 | * @generated | ||
113 | */ | ||
114 | @Override | ||
115 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
116 | { | ||
117 | switch (featureID) | ||
118 | { | ||
119 | case CftLanguagePackage.COMPONENT_INSTANCE__COMPONENT_TYPE: | ||
120 | if (resolve) return getComponentType(); | ||
121 | return basicGetComponentType(); | ||
122 | } | ||
123 | return super.eGet(featureID, resolve, coreType); | ||
124 | } | ||
125 | |||
126 | /** | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @generated | ||
130 | */ | ||
131 | @Override | ||
132 | public void eSet(int featureID, Object newValue) | ||
133 | { | ||
134 | switch (featureID) | ||
135 | { | ||
136 | case CftLanguagePackage.COMPONENT_INSTANCE__COMPONENT_TYPE: | ||
137 | setComponentType((ComponentDefinition)newValue); | ||
138 | return; | ||
139 | } | ||
140 | super.eSet(featureID, newValue); | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | @Override | ||
149 | public void eUnset(int featureID) | ||
150 | { | ||
151 | switch (featureID) | ||
152 | { | ||
153 | case CftLanguagePackage.COMPONENT_INSTANCE__COMPONENT_TYPE: | ||
154 | setComponentType((ComponentDefinition)null); | ||
155 | return; | ||
156 | } | ||
157 | super.eUnset(featureID); | ||
158 | } | ||
159 | |||
160 | /** | ||
161 | * <!-- begin-user-doc --> | ||
162 | * <!-- end-user-doc --> | ||
163 | * @generated | ||
164 | */ | ||
165 | @Override | ||
166 | public boolean eIsSet(int featureID) | ||
167 | { | ||
168 | switch (featureID) | ||
169 | { | ||
170 | case CftLanguagePackage.COMPONENT_INSTANCE__COMPONENT_TYPE: | ||
171 | return componentType != null; | ||
172 | } | ||
173 | return super.eIsSet(featureID); | ||
174 | } | ||
175 | |||
176 | } //ComponentInstanceImpl | ||
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 deleted file mode 100644 index 2f4835a3..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventReferenceImpl.java +++ /dev/null | |||
@@ -1,245 +0,0 @@ | |||
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.EventReference; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable; | ||
9 | |||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration; | ||
11 | |||
12 | import org.eclipse.emf.common.notify.Notification; | ||
13 | |||
14 | import org.eclipse.emf.ecore.EClass; | ||
15 | import org.eclipse.emf.ecore.InternalEObject; | ||
16 | |||
17 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
18 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
19 | |||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * An implementation of the model object '<em><b>Event Reference</b></em>'. | ||
23 | * <!-- end-user-doc --> | ||
24 | * <p> | ||
25 | * The following features are implemented: | ||
26 | * </p> | ||
27 | * <ul> | ||
28 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventReferenceImpl#getComponent <em>Component</em>}</li> | ||
29 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventReferenceImpl#getEvent <em>Event</em>}</li> | ||
30 | * </ul> | ||
31 | * | ||
32 | * @generated | ||
33 | */ | ||
34 | public class EventReferenceImpl extends MinimalEObjectImpl.Container implements EventReference | ||
35 | { | ||
36 | /** | ||
37 | * The cached value of the '{@link #getComponent() <em>Component</em>}' reference. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @see #getComponent() | ||
41 | * @generated | ||
42 | * @ordered | ||
43 | */ | ||
44 | protected Variable component; | ||
45 | |||
46 | /** | ||
47 | * The cached value of the '{@link #getEvent() <em>Event</em>}' reference. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @see #getEvent() | ||
51 | * @generated | ||
52 | * @ordered | ||
53 | */ | ||
54 | protected EventDeclaration event; | ||
55 | |||
56 | /** | ||
57 | * <!-- begin-user-doc --> | ||
58 | * <!-- end-user-doc --> | ||
59 | * @generated | ||
60 | */ | ||
61 | protected EventReferenceImpl() | ||
62 | { | ||
63 | super(); | ||
64 | } | ||
65 | |||
66 | /** | ||
67 | * <!-- begin-user-doc --> | ||
68 | * <!-- end-user-doc --> | ||
69 | * @generated | ||
70 | */ | ||
71 | @Override | ||
72 | protected EClass eStaticClass() | ||
73 | { | ||
74 | return CftLanguagePackage.Literals.EVENT_REFERENCE; | ||
75 | } | ||
76 | |||
77 | /** | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @generated | ||
81 | */ | ||
82 | @Override | ||
83 | public Variable getComponent() | ||
84 | { | ||
85 | if (component != null && component.eIsProxy()) | ||
86 | { | ||
87 | InternalEObject oldComponent = (InternalEObject)component; | ||
88 | component = (Variable)eResolveProxy(oldComponent); | ||
89 | if (component != oldComponent) | ||
90 | { | ||
91 | if (eNotificationRequired()) | ||
92 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftLanguagePackage.EVENT_REFERENCE__COMPONENT, oldComponent, component)); | ||
93 | } | ||
94 | } | ||
95 | return component; | ||
96 | } | ||
97 | |||
98 | /** | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @generated | ||
102 | */ | ||
103 | public Variable basicGetComponent() | ||
104 | { | ||
105 | return component; | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | @Override | ||
114 | public void setComponent(Variable newComponent) | ||
115 | { | ||
116 | Variable oldComponent = component; | ||
117 | component = newComponent; | ||
118 | if (eNotificationRequired()) | ||
119 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.EVENT_REFERENCE__COMPONENT, oldComponent, component)); | ||
120 | } | ||
121 | |||
122 | /** | ||
123 | * <!-- begin-user-doc --> | ||
124 | * <!-- end-user-doc --> | ||
125 | * @generated | ||
126 | */ | ||
127 | @Override | ||
128 | public EventDeclaration getEvent() | ||
129 | { | ||
130 | if (event != null && event.eIsProxy()) | ||
131 | { | ||
132 | InternalEObject oldEvent = (InternalEObject)event; | ||
133 | event = (EventDeclaration)eResolveProxy(oldEvent); | ||
134 | if (event != oldEvent) | ||
135 | { | ||
136 | if (eNotificationRequired()) | ||
137 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftLanguagePackage.EVENT_REFERENCE__EVENT, oldEvent, event)); | ||
138 | } | ||
139 | } | ||
140 | return event; | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | public EventDeclaration basicGetEvent() | ||
149 | { | ||
150 | return event; | ||
151 | } | ||
152 | |||
153 | /** | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @generated | ||
157 | */ | ||
158 | @Override | ||
159 | public void setEvent(EventDeclaration newEvent) | ||
160 | { | ||
161 | EventDeclaration oldEvent = event; | ||
162 | event = newEvent; | ||
163 | if (eNotificationRequired()) | ||
164 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.EVENT_REFERENCE__EVENT, oldEvent, event)); | ||
165 | } | ||
166 | |||
167 | /** | ||
168 | * <!-- begin-user-doc --> | ||
169 | * <!-- end-user-doc --> | ||
170 | * @generated | ||
171 | */ | ||
172 | @Override | ||
173 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
174 | { | ||
175 | switch (featureID) | ||
176 | { | ||
177 | case CftLanguagePackage.EVENT_REFERENCE__COMPONENT: | ||
178 | if (resolve) return getComponent(); | ||
179 | return basicGetComponent(); | ||
180 | case CftLanguagePackage.EVENT_REFERENCE__EVENT: | ||
181 | if (resolve) return getEvent(); | ||
182 | return basicGetEvent(); | ||
183 | } | ||
184 | return super.eGet(featureID, resolve, coreType); | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * <!-- begin-user-doc --> | ||
189 | * <!-- end-user-doc --> | ||
190 | * @generated | ||
191 | */ | ||
192 | @Override | ||
193 | public void eSet(int featureID, Object newValue) | ||
194 | { | ||
195 | switch (featureID) | ||
196 | { | ||
197 | case CftLanguagePackage.EVENT_REFERENCE__COMPONENT: | ||
198 | setComponent((Variable)newValue); | ||
199 | return; | ||
200 | case CftLanguagePackage.EVENT_REFERENCE__EVENT: | ||
201 | setEvent((EventDeclaration)newValue); | ||
202 | return; | ||
203 | } | ||
204 | super.eSet(featureID, newValue); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @Override | ||
213 | public void eUnset(int featureID) | ||
214 | { | ||
215 | switch (featureID) | ||
216 | { | ||
217 | case CftLanguagePackage.EVENT_REFERENCE__COMPONENT: | ||
218 | setComponent((Variable)null); | ||
219 | return; | ||
220 | case CftLanguagePackage.EVENT_REFERENCE__EVENT: | ||
221 | setEvent((EventDeclaration)null); | ||
222 | return; | ||
223 | } | ||
224 | super.eUnset(featureID); | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public boolean eIsSet(int featureID) | ||
234 | { | ||
235 | switch (featureID) | ||
236 | { | ||
237 | case CftLanguagePackage.EVENT_REFERENCE__COMPONENT: | ||
238 | return component != null; | ||
239 | case CftLanguagePackage.EVENT_REFERENCE__EVENT: | ||
240 | return event != null; | ||
241 | } | ||
242 | return super.eIsSet(featureID); | ||
243 | } | ||
244 | |||
245 | } //EventReferenceImpl | ||
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 deleted file mode 100644 index f4e45535..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ImportDeclarationImpl.java +++ /dev/null | |||
@@ -1,180 +0,0 @@ | |||
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/LookupDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/LookupDefinitionImpl.java deleted file mode 100644 index f4877855..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/LookupDefinitionImpl.java +++ /dev/null | |||
@@ -1,220 +0,0 @@ | |||
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 deleted file mode 100644 index d92dd935..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/MappingDefinitionImpl.java +++ /dev/null | |||
@@ -1,467 +0,0 @@ | |||
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 deleted file mode 100644 index 9d0ee701..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/MappingParameterImpl.java +++ /dev/null | |||
@@ -1,180 +0,0 @@ | |||
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/TransformationDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/TransformationDefinitionImpl.java deleted file mode 100644 index 89e89b0f..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/TransformationDefinitionImpl.java +++ /dev/null | |||
@@ -1,244 +0,0 @@ | |||
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 deleted file mode 100644 index 3c7d1ccb..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/VariableImpl.java +++ /dev/null | |||
@@ -1,180 +0,0 @@ | |||
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 deleted file mode 100644 index 99fa656d..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageAdapterFactory.java +++ /dev/null | |||
@@ -1,313 +0,0 @@ | |||
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 caseTransformationDefinition(TransformationDefinition object) | ||
90 | { | ||
91 | return createTransformationDefinitionAdapter(); | ||
92 | } | ||
93 | @Override | ||
94 | public Adapter caseMappingDefinition(MappingDefinition object) | ||
95 | { | ||
96 | return createMappingDefinitionAdapter(); | ||
97 | } | ||
98 | @Override | ||
99 | public Adapter caseMappingParameter(MappingParameter object) | ||
100 | { | ||
101 | return createMappingParameterAdapter(); | ||
102 | } | ||
103 | @Override | ||
104 | public Adapter caseLookupDefinition(LookupDefinition object) | ||
105 | { | ||
106 | return createLookupDefinitionAdapter(); | ||
107 | } | ||
108 | @Override | ||
109 | public Adapter caseVariable(Variable object) | ||
110 | { | ||
111 | return createVariableAdapter(); | ||
112 | } | ||
113 | @Override | ||
114 | public Adapter caseAssignment(Assignment object) | ||
115 | { | ||
116 | return createAssignmentAdapter(); | ||
117 | } | ||
118 | @Override | ||
119 | public Adapter caseEventReference(EventReference object) | ||
120 | { | ||
121 | return createEventReferenceAdapter(); | ||
122 | } | ||
123 | @Override | ||
124 | public Adapter caseComponentInstance(ComponentInstance object) | ||
125 | { | ||
126 | return createComponentInstanceAdapter(); | ||
127 | } | ||
128 | @Override | ||
129 | public Adapter defaultCase(EObject object) | ||
130 | { | ||
131 | return createEObjectAdapter(); | ||
132 | } | ||
133 | }; | ||
134 | |||
135 | /** | ||
136 | * Creates an adapter for the <code>target</code>. | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @param target the object to adapt. | ||
140 | * @return the adapter for the <code>target</code>. | ||
141 | * @generated | ||
142 | */ | ||
143 | @Override | ||
144 | public Adapter createAdapter(Notifier target) | ||
145 | { | ||
146 | return modelSwitch.doSwitch((EObject)target); | ||
147 | } | ||
148 | |||
149 | |||
150 | /** | ||
151 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel <em>Cft Model</em>}'. | ||
152 | * <!-- begin-user-doc --> | ||
153 | * This default implementation returns null so that we can easily ignore cases; | ||
154 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
155 | * <!-- end-user-doc --> | ||
156 | * @return the new adapter. | ||
157 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel | ||
158 | * @generated | ||
159 | */ | ||
160 | public Adapter createCftModelAdapter() | ||
161 | { | ||
162 | return null; | ||
163 | } | ||
164 | |||
165 | /** | ||
166 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration <em>Import Declaration</em>}'. | ||
167 | * <!-- begin-user-doc --> | ||
168 | * This default implementation returns null so that we can easily ignore cases; | ||
169 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
170 | * <!-- end-user-doc --> | ||
171 | * @return the new adapter. | ||
172 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration | ||
173 | * @generated | ||
174 | */ | ||
175 | public Adapter createImportDeclarationAdapter() | ||
176 | { | ||
177 | return null; | ||
178 | } | ||
179 | |||
180 | /** | ||
181 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition <em>Transformation Definition</em>}'. | ||
182 | * <!-- begin-user-doc --> | ||
183 | * This default implementation returns null so that we can easily ignore cases; | ||
184 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
185 | * <!-- end-user-doc --> | ||
186 | * @return the new adapter. | ||
187 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition | ||
188 | * @generated | ||
189 | */ | ||
190 | public Adapter createTransformationDefinitionAdapter() | ||
191 | { | ||
192 | return null; | ||
193 | } | ||
194 | |||
195 | /** | ||
196 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition <em>Mapping Definition</em>}'. | ||
197 | * <!-- begin-user-doc --> | ||
198 | * This default implementation returns null so that we can easily ignore cases; | ||
199 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
200 | * <!-- end-user-doc --> | ||
201 | * @return the new adapter. | ||
202 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition | ||
203 | * @generated | ||
204 | */ | ||
205 | public Adapter createMappingDefinitionAdapter() | ||
206 | { | ||
207 | return null; | ||
208 | } | ||
209 | |||
210 | /** | ||
211 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter <em>Mapping Parameter</em>}'. | ||
212 | * <!-- begin-user-doc --> | ||
213 | * This default implementation returns null so that we can easily ignore cases; | ||
214 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
215 | * <!-- end-user-doc --> | ||
216 | * @return the new adapter. | ||
217 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter | ||
218 | * @generated | ||
219 | */ | ||
220 | public Adapter createMappingParameterAdapter() | ||
221 | { | ||
222 | return null; | ||
223 | } | ||
224 | |||
225 | /** | ||
226 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition <em>Lookup Definition</em>}'. | ||
227 | * <!-- begin-user-doc --> | ||
228 | * This default implementation returns null so that we can easily ignore cases; | ||
229 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
230 | * <!-- end-user-doc --> | ||
231 | * @return the new adapter. | ||
232 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition | ||
233 | * @generated | ||
234 | */ | ||
235 | public Adapter createLookupDefinitionAdapter() | ||
236 | { | ||
237 | return null; | ||
238 | } | ||
239 | |||
240 | /** | ||
241 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable <em>Variable</em>}'. | ||
242 | * <!-- begin-user-doc --> | ||
243 | * This default implementation returns null so that we can easily ignore cases; | ||
244 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
245 | * <!-- end-user-doc --> | ||
246 | * @return the new adapter. | ||
247 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable | ||
248 | * @generated | ||
249 | */ | ||
250 | public Adapter createVariableAdapter() | ||
251 | { | ||
252 | return null; | ||
253 | } | ||
254 | |||
255 | /** | ||
256 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment <em>Assignment</em>}'. | ||
257 | * <!-- begin-user-doc --> | ||
258 | * This default implementation returns null so that we can easily ignore cases; | ||
259 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
260 | * <!-- end-user-doc --> | ||
261 | * @return the new adapter. | ||
262 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment | ||
263 | * @generated | ||
264 | */ | ||
265 | public Adapter createAssignmentAdapter() | ||
266 | { | ||
267 | return null; | ||
268 | } | ||
269 | |||
270 | /** | ||
271 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference <em>Event Reference</em>}'. | ||
272 | * <!-- begin-user-doc --> | ||
273 | * This default implementation returns null so that we can easily ignore cases; | ||
274 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
275 | * <!-- end-user-doc --> | ||
276 | * @return the new adapter. | ||
277 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference | ||
278 | * @generated | ||
279 | */ | ||
280 | public Adapter createEventReferenceAdapter() | ||
281 | { | ||
282 | return null; | ||
283 | } | ||
284 | |||
285 | /** | ||
286 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance <em>Component Instance</em>}'. | ||
287 | * <!-- begin-user-doc --> | ||
288 | * This default implementation returns null so that we can easily ignore cases; | ||
289 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
290 | * <!-- end-user-doc --> | ||
291 | * @return the new adapter. | ||
292 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance | ||
293 | * @generated | ||
294 | */ | ||
295 | public Adapter createComponentInstanceAdapter() | ||
296 | { | ||
297 | return null; | ||
298 | } | ||
299 | |||
300 | /** | ||
301 | * Creates a new adapter for the default case. | ||
302 | * <!-- begin-user-doc --> | ||
303 | * This default implementation returns null. | ||
304 | * <!-- end-user-doc --> | ||
305 | * @return the new adapter. | ||
306 | * @generated | ||
307 | */ | ||
308 | public Adapter createEObjectAdapter() | ||
309 | { | ||
310 | return null; | ||
311 | } | ||
312 | |||
313 | } //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 deleted file mode 100644 index b3de106b..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageSwitch.java +++ /dev/null | |||
@@ -1,329 +0,0 @@ | |||
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.TRANSFORMATION_DEFINITION: | ||
91 | { | ||
92 | TransformationDefinition transformationDefinition = (TransformationDefinition)theEObject; | ||
93 | T result = caseTransformationDefinition(transformationDefinition); | ||
94 | if (result == null) result = defaultCase(theEObject); | ||
95 | return result; | ||
96 | } | ||
97 | case CftLanguagePackage.MAPPING_DEFINITION: | ||
98 | { | ||
99 | MappingDefinition mappingDefinition = (MappingDefinition)theEObject; | ||
100 | T result = caseMappingDefinition(mappingDefinition); | ||
101 | if (result == null) result = defaultCase(theEObject); | ||
102 | return result; | ||
103 | } | ||
104 | case CftLanguagePackage.MAPPING_PARAMETER: | ||
105 | { | ||
106 | MappingParameter mappingParameter = (MappingParameter)theEObject; | ||
107 | T result = caseMappingParameter(mappingParameter); | ||
108 | if (result == null) result = defaultCase(theEObject); | ||
109 | return result; | ||
110 | } | ||
111 | case CftLanguagePackage.LOOKUP_DEFINITION: | ||
112 | { | ||
113 | LookupDefinition lookupDefinition = (LookupDefinition)theEObject; | ||
114 | T result = caseLookupDefinition(lookupDefinition); | ||
115 | if (result == null) result = caseVariable(lookupDefinition); | ||
116 | if (result == null) result = defaultCase(theEObject); | ||
117 | return result; | ||
118 | } | ||
119 | case CftLanguagePackage.VARIABLE: | ||
120 | { | ||
121 | Variable variable = (Variable)theEObject; | ||
122 | T result = caseVariable(variable); | ||
123 | if (result == null) result = defaultCase(theEObject); | ||
124 | return result; | ||
125 | } | ||
126 | case CftLanguagePackage.ASSIGNMENT: | ||
127 | { | ||
128 | Assignment assignment = (Assignment)theEObject; | ||
129 | T result = caseAssignment(assignment); | ||
130 | if (result == null) result = defaultCase(theEObject); | ||
131 | return result; | ||
132 | } | ||
133 | case CftLanguagePackage.EVENT_REFERENCE: | ||
134 | { | ||
135 | EventReference eventReference = (EventReference)theEObject; | ||
136 | T result = caseEventReference(eventReference); | ||
137 | if (result == null) result = defaultCase(theEObject); | ||
138 | return result; | ||
139 | } | ||
140 | case CftLanguagePackage.COMPONENT_INSTANCE: | ||
141 | { | ||
142 | ComponentInstance componentInstance = (ComponentInstance)theEObject; | ||
143 | T result = caseComponentInstance(componentInstance); | ||
144 | if (result == null) result = caseVariable(componentInstance); | ||
145 | if (result == null) result = defaultCase(theEObject); | ||
146 | return result; | ||
147 | } | ||
148 | default: return defaultCase(theEObject); | ||
149 | } | ||
150 | } | ||
151 | |||
152 | /** | ||
153 | * Returns the result of interpreting the object as an instance of '<em>Cft Model</em>'. | ||
154 | * <!-- begin-user-doc --> | ||
155 | * This implementation returns null; | ||
156 | * returning a non-null result will terminate the switch. | ||
157 | * <!-- end-user-doc --> | ||
158 | * @param object the target of the switch. | ||
159 | * @return the result of interpreting the object as an instance of '<em>Cft Model</em>'. | ||
160 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
161 | * @generated | ||
162 | */ | ||
163 | public T caseCftModel(CftModel object) | ||
164 | { | ||
165 | return null; | ||
166 | } | ||
167 | |||
168 | /** | ||
169 | * Returns the result of interpreting the object as an instance of '<em>Import Declaration</em>'. | ||
170 | * <!-- begin-user-doc --> | ||
171 | * This implementation returns null; | ||
172 | * returning a non-null result will terminate the switch. | ||
173 | * <!-- end-user-doc --> | ||
174 | * @param object the target of the switch. | ||
175 | * @return the result of interpreting the object as an instance of '<em>Import Declaration</em>'. | ||
176 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
177 | * @generated | ||
178 | */ | ||
179 | public T caseImportDeclaration(ImportDeclaration object) | ||
180 | { | ||
181 | return null; | ||
182 | } | ||
183 | |||
184 | /** | ||
185 | * Returns the result of interpreting the object as an instance of '<em>Transformation Definition</em>'. | ||
186 | * <!-- begin-user-doc --> | ||
187 | * This implementation returns null; | ||
188 | * returning a non-null result will terminate the switch. | ||
189 | * <!-- end-user-doc --> | ||
190 | * @param object the target of the switch. | ||
191 | * @return the result of interpreting the object as an instance of '<em>Transformation Definition</em>'. | ||
192 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
193 | * @generated | ||
194 | */ | ||
195 | public T caseTransformationDefinition(TransformationDefinition object) | ||
196 | { | ||
197 | return null; | ||
198 | } | ||
199 | |||
200 | /** | ||
201 | * Returns the result of interpreting the object as an instance of '<em>Mapping Definition</em>'. | ||
202 | * <!-- begin-user-doc --> | ||
203 | * This implementation returns null; | ||
204 | * returning a non-null result will terminate the switch. | ||
205 | * <!-- end-user-doc --> | ||
206 | * @param object the target of the switch. | ||
207 | * @return the result of interpreting the object as an instance of '<em>Mapping Definition</em>'. | ||
208 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
209 | * @generated | ||
210 | */ | ||
211 | public T caseMappingDefinition(MappingDefinition object) | ||
212 | { | ||
213 | return null; | ||
214 | } | ||
215 | |||
216 | /** | ||
217 | * Returns the result of interpreting the object as an instance of '<em>Mapping Parameter</em>'. | ||
218 | * <!-- begin-user-doc --> | ||
219 | * This implementation returns null; | ||
220 | * returning a non-null result will terminate the switch. | ||
221 | * <!-- end-user-doc --> | ||
222 | * @param object the target of the switch. | ||
223 | * @return the result of interpreting the object as an instance of '<em>Mapping Parameter</em>'. | ||
224 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
225 | * @generated | ||
226 | */ | ||
227 | public T caseMappingParameter(MappingParameter object) | ||
228 | { | ||
229 | return null; | ||
230 | } | ||
231 | |||
232 | /** | ||
233 | * Returns the result of interpreting the object as an instance of '<em>Lookup Definition</em>'. | ||
234 | * <!-- begin-user-doc --> | ||
235 | * This implementation returns null; | ||
236 | * returning a non-null result will terminate the switch. | ||
237 | * <!-- end-user-doc --> | ||
238 | * @param object the target of the switch. | ||
239 | * @return the result of interpreting the object as an instance of '<em>Lookup Definition</em>'. | ||
240 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
241 | * @generated | ||
242 | */ | ||
243 | public T caseLookupDefinition(LookupDefinition object) | ||
244 | { | ||
245 | return null; | ||
246 | } | ||
247 | |||
248 | /** | ||
249 | * Returns the result of interpreting the object as an instance of '<em>Variable</em>'. | ||
250 | * <!-- begin-user-doc --> | ||
251 | * This implementation returns null; | ||
252 | * returning a non-null result will terminate the switch. | ||
253 | * <!-- end-user-doc --> | ||
254 | * @param object the target of the switch. | ||
255 | * @return the result of interpreting the object as an instance of '<em>Variable</em>'. | ||
256 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
257 | * @generated | ||
258 | */ | ||
259 | public T caseVariable(Variable object) | ||
260 | { | ||
261 | return null; | ||
262 | } | ||
263 | |||
264 | /** | ||
265 | * Returns the result of interpreting the object as an instance of '<em>Assignment</em>'. | ||
266 | * <!-- begin-user-doc --> | ||
267 | * This implementation returns null; | ||
268 | * returning a non-null result will terminate the switch. | ||
269 | * <!-- end-user-doc --> | ||
270 | * @param object the target of the switch. | ||
271 | * @return the result of interpreting the object as an instance of '<em>Assignment</em>'. | ||
272 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
273 | * @generated | ||
274 | */ | ||
275 | public T caseAssignment(Assignment object) | ||
276 | { | ||
277 | return null; | ||
278 | } | ||
279 | |||
280 | /** | ||
281 | * Returns the result of interpreting the object as an instance of '<em>Event Reference</em>'. | ||
282 | * <!-- begin-user-doc --> | ||
283 | * This implementation returns null; | ||
284 | * returning a non-null result will terminate the switch. | ||
285 | * <!-- end-user-doc --> | ||
286 | * @param object the target of the switch. | ||
287 | * @return the result of interpreting the object as an instance of '<em>Event Reference</em>'. | ||
288 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
289 | * @generated | ||
290 | */ | ||
291 | public T caseEventReference(EventReference object) | ||
292 | { | ||
293 | return null; | ||
294 | } | ||
295 | |||
296 | /** | ||
297 | * Returns the result of interpreting the object as an instance of '<em>Component Instance</em>'. | ||
298 | * <!-- begin-user-doc --> | ||
299 | * This implementation returns null; | ||
300 | * returning a non-null result will terminate the switch. | ||
301 | * <!-- end-user-doc --> | ||
302 | * @param object the target of the switch. | ||
303 | * @return the result of interpreting the object as an instance of '<em>Component Instance</em>'. | ||
304 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
305 | * @generated | ||
306 | */ | ||
307 | public T caseComponentInstance(ComponentInstance object) | ||
308 | { | ||
309 | return null; | ||
310 | } | ||
311 | |||
312 | /** | ||
313 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
314 | * <!-- begin-user-doc --> | ||
315 | * This implementation returns null; | ||
316 | * returning a non-null result will terminate the switch, but this is the last case anyway. | ||
317 | * <!-- end-user-doc --> | ||
318 | * @param object the target of the switch. | ||
319 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
320 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) | ||
321 | * @generated | ||
322 | */ | ||
323 | @Override | ||
324 | public T defaultCase(EObject object) | ||
325 | { | ||
326 | return null; | ||
327 | } | ||
328 | |||
329 | } //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 deleted file mode 100644 index 14a64042..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/CftLanguageAntlrTokenFileProvider.java +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
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 deleted file mode 100644 index 602ea50d..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/CftLanguageParser.java +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
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 deleted file mode 100644 index 51479ad3..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.g +++ /dev/null | |||
@@ -1,1688 +0,0 @@ | |||
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 | { | ||
242 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getNameValidIdParserRuleCall_1_0()); | ||
243 | } | ||
244 | lv_name_1_0=ruleValidId | ||
245 | { | ||
246 | if ($current==null) { | ||
247 | $current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); | ||
248 | } | ||
249 | set( | ||
250 | $current, | ||
251 | "name", | ||
252 | lv_name_1_0, | ||
253 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
254 | afterParserOrEnumRuleCall(); | ||
255 | } | ||
256 | ) | ||
257 | ) | ||
258 | otherlv_2='{' | ||
259 | { | ||
260 | newLeafNode(otherlv_2, grammarAccess.getComponentDefinitionAccess().getLeftCurlyBracketKeyword_2()); | ||
261 | } | ||
262 | ( | ||
263 | ( | ||
264 | { | ||
265 | getUnorderedGroupHelper().enter(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
266 | } | ||
267 | ( | ||
268 | ( | ||
269 | ( | ||
270 | {getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0)}?=>( | ||
271 | { | ||
272 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0); | ||
273 | } | ||
274 | ({true}?=>(otherlv_4='in' | ||
275 | { | ||
276 | newLeafNode(otherlv_4, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()); | ||
277 | } | ||
278 | ( | ||
279 | ( | ||
280 | { | ||
281 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getInputEventsInputEventParserRuleCall_3_0_1_0()); | ||
282 | } | ||
283 | lv_inputEvents_5_0=ruleInputEvent | ||
284 | { | ||
285 | if ($current==null) { | ||
286 | $current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); | ||
287 | } | ||
288 | add( | ||
289 | $current, | ||
290 | "inputEvents", | ||
291 | lv_inputEvents_5_0, | ||
292 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.InputEvent"); | ||
293 | afterParserOrEnumRuleCall(); | ||
294 | } | ||
295 | ) | ||
296 | )* | ||
297 | otherlv_6=';' | ||
298 | { | ||
299 | newLeafNode(otherlv_6, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()); | ||
300 | } | ||
301 | )) | ||
302 | { | ||
303 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
304 | } | ||
305 | ) | ||
306 | )| | ||
307 | ( | ||
308 | {getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1)}?=>( | ||
309 | { | ||
310 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1); | ||
311 | } | ||
312 | ({true}?=>(otherlv_7='out' | ||
313 | { | ||
314 | newLeafNode(otherlv_7, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()); | ||
315 | } | ||
316 | ( | ||
317 | ( | ||
318 | { | ||
319 | if ($current==null) { | ||
320 | $current = createModelElement(grammarAccess.getComponentDefinitionRule()); | ||
321 | } | ||
322 | } | ||
323 | { | ||
324 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationCrossReference_3_1_1_0()); | ||
325 | } | ||
326 | ruleValidId | ||
327 | { | ||
328 | afterParserOrEnumRuleCall(); | ||
329 | } | ||
330 | ) | ||
331 | )* | ||
332 | otherlv_9=';' | ||
333 | { | ||
334 | newLeafNode(otherlv_9, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()); | ||
335 | } | ||
336 | )) | ||
337 | { | ||
338 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
339 | } | ||
340 | ) | ||
341 | ) | ||
342 | )* | ||
343 | ) | ||
344 | ) | ||
345 | { | ||
346 | getUnorderedGroupHelper().leave(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
347 | } | ||
348 | ) | ||
349 | ( | ||
350 | ( | ||
351 | ( | ||
352 | { | ||
353 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getEventDefinitionsEventDefinitionParserRuleCall_4_0_0()); | ||
354 | } | ||
355 | lv_eventDefinitions_10_0=ruleEventDefinition | ||
356 | { | ||
357 | if ($current==null) { | ||
358 | $current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); | ||
359 | } | ||
360 | add( | ||
361 | $current, | ||
362 | "eventDefinitions", | ||
363 | lv_eventDefinitions_10_0, | ||
364 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventDefinition"); | ||
365 | afterParserOrEnumRuleCall(); | ||
366 | } | ||
367 | ) | ||
368 | ) | ||
369 | otherlv_11=';' | ||
370 | { | ||
371 | newLeafNode(otherlv_11, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_4_1()); | ||
372 | } | ||
373 | )* | ||
374 | otherlv_12='}' | ||
375 | { | ||
376 | newLeafNode(otherlv_12, grammarAccess.getComponentDefinitionAccess().getRightCurlyBracketKeyword_5()); | ||
377 | } | ||
378 | ) | ||
379 | ; | ||
380 | |||
381 | // Entry rule entryRuleInputEvent | ||
382 | entryRuleInputEvent returns [EObject current=null]: | ||
383 | { newCompositeNode(grammarAccess.getInputEventRule()); } | ||
384 | iv_ruleInputEvent=ruleInputEvent | ||
385 | { $current=$iv_ruleInputEvent.current; } | ||
386 | EOF; | ||
387 | |||
388 | // Rule InputEvent | ||
389 | ruleInputEvent returns [EObject current=null] | ||
390 | @init { | ||
391 | enterRule(); | ||
392 | } | ||
393 | @after { | ||
394 | leaveRule(); | ||
395 | }: | ||
396 | ( | ||
397 | ( | ||
398 | ( | ||
399 | { | ||
400 | newCompositeNode(grammarAccess.getInputEventAccess().getNameValidIdParserRuleCall_0_0()); | ||
401 | } | ||
402 | lv_name_0_0=ruleValidId | ||
403 | { | ||
404 | if ($current==null) { | ||
405 | $current = createModelElementForParent(grammarAccess.getInputEventRule()); | ||
406 | } | ||
407 | set( | ||
408 | $current, | ||
409 | "name", | ||
410 | lv_name_0_0, | ||
411 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
412 | afterParserOrEnumRuleCall(); | ||
413 | } | ||
414 | ) | ||
415 | ) | ||
416 | ( | ||
417 | ( | ||
418 | lv_multiple_1_0='[]' | ||
419 | { | ||
420 | newLeafNode(lv_multiple_1_0, grammarAccess.getInputEventAccess().getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0()); | ||
421 | } | ||
422 | { | ||
423 | if ($current==null) { | ||
424 | $current = createModelElement(grammarAccess.getInputEventRule()); | ||
425 | } | ||
426 | setWithLastConsumed($current, "multiple", true, "[]"); | ||
427 | } | ||
428 | ) | ||
429 | )? | ||
430 | ) | ||
431 | ; | ||
432 | |||
433 | // Entry rule entryRuleEventDefinition | ||
434 | entryRuleEventDefinition returns [EObject current=null]: | ||
435 | { newCompositeNode(grammarAccess.getEventDefinitionRule()); } | ||
436 | iv_ruleEventDefinition=ruleEventDefinition | ||
437 | { $current=$iv_ruleEventDefinition.current; } | ||
438 | EOF; | ||
439 | |||
440 | // Rule EventDefinition | ||
441 | ruleEventDefinition returns [EObject current=null] | ||
442 | @init { | ||
443 | enterRule(); | ||
444 | } | ||
445 | @after { | ||
446 | leaveRule(); | ||
447 | }: | ||
448 | ( | ||
449 | { | ||
450 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getBasicEventDefinitionParserRuleCall_0()); | ||
451 | } | ||
452 | this_BasicEventDefinition_0=ruleBasicEventDefinition | ||
453 | { | ||
454 | $current = $this_BasicEventDefinition_0.current; | ||
455 | afterParserOrEnumRuleCall(); | ||
456 | } | ||
457 | | | ||
458 | { | ||
459 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getGateDefinitionParserRuleCall_1()); | ||
460 | } | ||
461 | this_GateDefinition_1=ruleGateDefinition | ||
462 | { | ||
463 | $current = $this_GateDefinition_1.current; | ||
464 | afterParserOrEnumRuleCall(); | ||
465 | } | ||
466 | ) | ||
467 | ; | ||
468 | |||
469 | // Entry rule entryRuleBasicEventDefinition | ||
470 | entryRuleBasicEventDefinition returns [EObject current=null]: | ||
471 | { newCompositeNode(grammarAccess.getBasicEventDefinitionRule()); } | ||
472 | iv_ruleBasicEventDefinition=ruleBasicEventDefinition | ||
473 | { $current=$iv_ruleBasicEventDefinition.current; } | ||
474 | EOF; | ||
475 | |||
476 | // Rule BasicEventDefinition | ||
477 | ruleBasicEventDefinition returns [EObject current=null] | ||
478 | @init { | ||
479 | enterRule(); | ||
480 | } | ||
481 | @after { | ||
482 | leaveRule(); | ||
483 | }: | ||
484 | ( | ||
485 | ( | ||
486 | ( | ||
487 | { | ||
488 | newCompositeNode(grammarAccess.getBasicEventDefinitionAccess().getNameValidIdParserRuleCall_0_0()); | ||
489 | } | ||
490 | lv_name_0_0=ruleValidId | ||
491 | { | ||
492 | if ($current==null) { | ||
493 | $current = createModelElementForParent(grammarAccess.getBasicEventDefinitionRule()); | ||
494 | } | ||
495 | set( | ||
496 | $current, | ||
497 | "name", | ||
498 | lv_name_0_0, | ||
499 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
500 | afterParserOrEnumRuleCall(); | ||
501 | } | ||
502 | ) | ||
503 | ) | ||
504 | ( | ||
505 | ( | ||
506 | { | ||
507 | newCompositeNode(grammarAccess.getBasicEventDefinitionAccess().getDistributionDistributionParserRuleCall_1_0()); | ||
508 | } | ||
509 | lv_distribution_1_0=ruleDistribution | ||
510 | { | ||
511 | if ($current==null) { | ||
512 | $current = createModelElementForParent(grammarAccess.getBasicEventDefinitionRule()); | ||
513 | } | ||
514 | set( | ||
515 | $current, | ||
516 | "distribution", | ||
517 | lv_distribution_1_0, | ||
518 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Distribution"); | ||
519 | afterParserOrEnumRuleCall(); | ||
520 | } | ||
521 | ) | ||
522 | ) | ||
523 | ) | ||
524 | ; | ||
525 | |||
526 | // Entry rule entryRuleDistribution | ||
527 | entryRuleDistribution returns [EObject current=null]: | ||
528 | { newCompositeNode(grammarAccess.getDistributionRule()); } | ||
529 | iv_ruleDistribution=ruleDistribution | ||
530 | { $current=$iv_ruleDistribution.current; } | ||
531 | EOF; | ||
532 | |||
533 | // Rule Distribution | ||
534 | ruleDistribution returns [EObject current=null] | ||
535 | @init { | ||
536 | enterRule(); | ||
537 | } | ||
538 | @after { | ||
539 | leaveRule(); | ||
540 | }: | ||
541 | ( | ||
542 | { | ||
543 | newCompositeNode(grammarAccess.getDistributionAccess().getConstantDistributionParserRuleCall_0()); | ||
544 | } | ||
545 | this_ConstantDistribution_0=ruleConstantDistribution | ||
546 | { | ||
547 | $current = $this_ConstantDistribution_0.current; | ||
548 | afterParserOrEnumRuleCall(); | ||
549 | } | ||
550 | | | ||
551 | { | ||
552 | newCompositeNode(grammarAccess.getDistributionAccess().getExponentialDistributionParserRuleCall_1()); | ||
553 | } | ||
554 | this_ExponentialDistribution_1=ruleExponentialDistribution | ||
555 | { | ||
556 | $current = $this_ExponentialDistribution_1.current; | ||
557 | afterParserOrEnumRuleCall(); | ||
558 | } | ||
559 | ) | ||
560 | ; | ||
561 | |||
562 | // Entry rule entryRuleConstantDistribution | ||
563 | entryRuleConstantDistribution returns [EObject current=null]: | ||
564 | { newCompositeNode(grammarAccess.getConstantDistributionRule()); } | ||
565 | iv_ruleConstantDistribution=ruleConstantDistribution | ||
566 | { $current=$iv_ruleConstantDistribution.current; } | ||
567 | EOF; | ||
568 | |||
569 | // Rule ConstantDistribution | ||
570 | ruleConstantDistribution returns [EObject current=null] | ||
571 | @init { | ||
572 | enterRule(); | ||
573 | } | ||
574 | @after { | ||
575 | leaveRule(); | ||
576 | }: | ||
577 | ( | ||
578 | otherlv_0='prob' | ||
579 | { | ||
580 | newLeafNode(otherlv_0, grammarAccess.getConstantDistributionAccess().getProbKeyword_0()); | ||
581 | } | ||
582 | otherlv_1='=' | ||
583 | { | ||
584 | newLeafNode(otherlv_1, grammarAccess.getConstantDistributionAccess().getEqualsSignKeyword_1()); | ||
585 | } | ||
586 | ( | ||
587 | ( | ||
588 | { | ||
589 | newCompositeNode(grammarAccess.getConstantDistributionAccess().getPDoubleParserRuleCall_2_0()); | ||
590 | } | ||
591 | lv_p_2_0=ruleDouble | ||
592 | { | ||
593 | if ($current==null) { | ||
594 | $current = createModelElementForParent(grammarAccess.getConstantDistributionRule()); | ||
595 | } | ||
596 | set( | ||
597 | $current, | ||
598 | "p", | ||
599 | lv_p_2_0, | ||
600 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Double"); | ||
601 | afterParserOrEnumRuleCall(); | ||
602 | } | ||
603 | ) | ||
604 | ) | ||
605 | ) | ||
606 | ; | ||
607 | |||
608 | // Entry rule entryRuleExponentialDistribution | ||
609 | entryRuleExponentialDistribution returns [EObject current=null]: | ||
610 | { newCompositeNode(grammarAccess.getExponentialDistributionRule()); } | ||
611 | iv_ruleExponentialDistribution=ruleExponentialDistribution | ||
612 | { $current=$iv_ruleExponentialDistribution.current; } | ||
613 | EOF; | ||
614 | |||
615 | // Rule ExponentialDistribution | ||
616 | ruleExponentialDistribution returns [EObject current=null] | ||
617 | @init { | ||
618 | enterRule(); | ||
619 | } | ||
620 | @after { | ||
621 | leaveRule(); | ||
622 | }: | ||
623 | ( | ||
624 | otherlv_0='lambda' | ||
625 | { | ||
626 | newLeafNode(otherlv_0, grammarAccess.getExponentialDistributionAccess().getLambdaKeyword_0()); | ||
627 | } | ||
628 | otherlv_1='=' | ||
629 | { | ||
630 | newLeafNode(otherlv_1, grammarAccess.getExponentialDistributionAccess().getEqualsSignKeyword_1()); | ||
631 | } | ||
632 | ( | ||
633 | ( | ||
634 | { | ||
635 | newCompositeNode(grammarAccess.getExponentialDistributionAccess().getLambdaDoubleParserRuleCall_2_0()); | ||
636 | } | ||
637 | lv_lambda_2_0=ruleDouble | ||
638 | { | ||
639 | if ($current==null) { | ||
640 | $current = createModelElementForParent(grammarAccess.getExponentialDistributionRule()); | ||
641 | } | ||
642 | set( | ||
643 | $current, | ||
644 | "lambda", | ||
645 | lv_lambda_2_0, | ||
646 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Double"); | ||
647 | afterParserOrEnumRuleCall(); | ||
648 | } | ||
649 | ) | ||
650 | ) | ||
651 | ) | ||
652 | ; | ||
653 | |||
654 | // Entry rule entryRuleGateDefinition | ||
655 | entryRuleGateDefinition returns [EObject current=null]: | ||
656 | { newCompositeNode(grammarAccess.getGateDefinitionRule()); } | ||
657 | iv_ruleGateDefinition=ruleGateDefinition | ||
658 | { $current=$iv_ruleGateDefinition.current; } | ||
659 | EOF; | ||
660 | |||
661 | // Rule GateDefinition | ||
662 | ruleGateDefinition returns [EObject current=null] | ||
663 | @init { | ||
664 | enterRule(); | ||
665 | } | ||
666 | @after { | ||
667 | leaveRule(); | ||
668 | }: | ||
669 | ( | ||
670 | { | ||
671 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getAndGateDefinitionParserRuleCall_0()); | ||
672 | } | ||
673 | this_AndGateDefinition_0=ruleAndGateDefinition | ||
674 | { | ||
675 | $current = $this_AndGateDefinition_0.current; | ||
676 | afterParserOrEnumRuleCall(); | ||
677 | } | ||
678 | | | ||
679 | { | ||
680 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getOrGateDefinitionParserRuleCall_1()); | ||
681 | } | ||
682 | this_OrGateDefinition_1=ruleOrGateDefinition | ||
683 | { | ||
684 | $current = $this_OrGateDefinition_1.current; | ||
685 | afterParserOrEnumRuleCall(); | ||
686 | } | ||
687 | | | ||
688 | { | ||
689 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getKOfMGateDefinitionParserRuleCall_2()); | ||
690 | } | ||
691 | this_KOfMGateDefinition_2=ruleKOfMGateDefinition | ||
692 | { | ||
693 | $current = $this_KOfMGateDefinition_2.current; | ||
694 | afterParserOrEnumRuleCall(); | ||
695 | } | ||
696 | ) | ||
697 | ; | ||
698 | |||
699 | // Entry rule entryRuleAndGateDefinition | ||
700 | entryRuleAndGateDefinition returns [EObject current=null]: | ||
701 | { newCompositeNode(grammarAccess.getAndGateDefinitionRule()); } | ||
702 | iv_ruleAndGateDefinition=ruleAndGateDefinition | ||
703 | { $current=$iv_ruleAndGateDefinition.current; } | ||
704 | EOF; | ||
705 | |||
706 | // Rule AndGateDefinition | ||
707 | ruleAndGateDefinition returns [EObject current=null] | ||
708 | @init { | ||
709 | enterRule(); | ||
710 | } | ||
711 | @after { | ||
712 | leaveRule(); | ||
713 | }: | ||
714 | ( | ||
715 | ( | ||
716 | ( | ||
717 | { | ||
718 | newCompositeNode(grammarAccess.getAndGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); | ||
719 | } | ||
720 | lv_name_0_0=ruleValidId | ||
721 | { | ||
722 | if ($current==null) { | ||
723 | $current = createModelElementForParent(grammarAccess.getAndGateDefinitionRule()); | ||
724 | } | ||
725 | set( | ||
726 | $current, | ||
727 | "name", | ||
728 | lv_name_0_0, | ||
729 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
730 | afterParserOrEnumRuleCall(); | ||
731 | } | ||
732 | ) | ||
733 | ) | ||
734 | otherlv_1='and' | ||
735 | { | ||
736 | newLeafNode(otherlv_1, grammarAccess.getAndGateDefinitionAccess().getAndKeyword_1()); | ||
737 | } | ||
738 | ( | ||
739 | ( | ||
740 | { | ||
741 | if ($current==null) { | ||
742 | $current = createModelElement(grammarAccess.getAndGateDefinitionRule()); | ||
743 | } | ||
744 | } | ||
745 | { | ||
746 | newCompositeNode(grammarAccess.getAndGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_2_0()); | ||
747 | } | ||
748 | ruleValidId | ||
749 | { | ||
750 | afterParserOrEnumRuleCall(); | ||
751 | } | ||
752 | ) | ||
753 | )* | ||
754 | ) | ||
755 | ; | ||
756 | |||
757 | // Entry rule entryRuleOrGateDefinition | ||
758 | entryRuleOrGateDefinition returns [EObject current=null]: | ||
759 | { newCompositeNode(grammarAccess.getOrGateDefinitionRule()); } | ||
760 | iv_ruleOrGateDefinition=ruleOrGateDefinition | ||
761 | { $current=$iv_ruleOrGateDefinition.current; } | ||
762 | EOF; | ||
763 | |||
764 | // Rule OrGateDefinition | ||
765 | ruleOrGateDefinition returns [EObject current=null] | ||
766 | @init { | ||
767 | enterRule(); | ||
768 | } | ||
769 | @after { | ||
770 | leaveRule(); | ||
771 | }: | ||
772 | ( | ||
773 | ( | ||
774 | ( | ||
775 | { | ||
776 | newCompositeNode(grammarAccess.getOrGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); | ||
777 | } | ||
778 | lv_name_0_0=ruleValidId | ||
779 | { | ||
780 | if ($current==null) { | ||
781 | $current = createModelElementForParent(grammarAccess.getOrGateDefinitionRule()); | ||
782 | } | ||
783 | set( | ||
784 | $current, | ||
785 | "name", | ||
786 | lv_name_0_0, | ||
787 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
788 | afterParserOrEnumRuleCall(); | ||
789 | } | ||
790 | ) | ||
791 | ) | ||
792 | otherlv_1='or' | ||
793 | { | ||
794 | newLeafNode(otherlv_1, grammarAccess.getOrGateDefinitionAccess().getOrKeyword_1()); | ||
795 | } | ||
796 | ( | ||
797 | ( | ||
798 | { | ||
799 | if ($current==null) { | ||
800 | $current = createModelElement(grammarAccess.getOrGateDefinitionRule()); | ||
801 | } | ||
802 | } | ||
803 | { | ||
804 | newCompositeNode(grammarAccess.getOrGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_2_0()); | ||
805 | } | ||
806 | ruleValidId | ||
807 | { | ||
808 | afterParserOrEnumRuleCall(); | ||
809 | } | ||
810 | ) | ||
811 | )* | ||
812 | ) | ||
813 | ; | ||
814 | |||
815 | // Entry rule entryRuleKOfMGateDefinition | ||
816 | entryRuleKOfMGateDefinition returns [EObject current=null]: | ||
817 | { newCompositeNode(grammarAccess.getKOfMGateDefinitionRule()); } | ||
818 | iv_ruleKOfMGateDefinition=ruleKOfMGateDefinition | ||
819 | { $current=$iv_ruleKOfMGateDefinition.current; } | ||
820 | EOF; | ||
821 | |||
822 | // Rule KOfMGateDefinition | ||
823 | ruleKOfMGateDefinition returns [EObject current=null] | ||
824 | @init { | ||
825 | enterRule(); | ||
826 | } | ||
827 | @after { | ||
828 | leaveRule(); | ||
829 | }: | ||
830 | ( | ||
831 | ( | ||
832 | ( | ||
833 | { | ||
834 | newCompositeNode(grammarAccess.getKOfMGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); | ||
835 | } | ||
836 | lv_name_0_0=ruleValidId | ||
837 | { | ||
838 | if ($current==null) { | ||
839 | $current = createModelElementForParent(grammarAccess.getKOfMGateDefinitionRule()); | ||
840 | } | ||
841 | set( | ||
842 | $current, | ||
843 | "name", | ||
844 | lv_name_0_0, | ||
845 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
846 | afterParserOrEnumRuleCall(); | ||
847 | } | ||
848 | ) | ||
849 | ) | ||
850 | ( | ||
851 | ( | ||
852 | lv_k_1_0=RULE_INT | ||
853 | { | ||
854 | newLeafNode(lv_k_1_0, grammarAccess.getKOfMGateDefinitionAccess().getKINTTerminalRuleCall_1_0()); | ||
855 | } | ||
856 | { | ||
857 | if ($current==null) { | ||
858 | $current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
859 | } | ||
860 | setWithLastConsumed( | ||
861 | $current, | ||
862 | "k", | ||
863 | lv_k_1_0, | ||
864 | "org.eclipse.xtext.common.Terminals.INT"); | ||
865 | } | ||
866 | ) | ||
867 | ) | ||
868 | ( | ||
869 | ( | ||
870 | otherlv_2='of' | ||
871 | { | ||
872 | newLeafNode(otherlv_2, grammarAccess.getKOfMGateDefinitionAccess().getOfKeyword_2_0_0()); | ||
873 | } | ||
874 | ( | ||
875 | ( | ||
876 | lv_m_3_0=RULE_INT | ||
877 | { | ||
878 | newLeafNode(lv_m_3_0, grammarAccess.getKOfMGateDefinitionAccess().getMINTTerminalRuleCall_2_0_1_0()); | ||
879 | } | ||
880 | { | ||
881 | if ($current==null) { | ||
882 | $current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
883 | } | ||
884 | setWithLastConsumed( | ||
885 | $current, | ||
886 | "m", | ||
887 | lv_m_3_0, | ||
888 | "org.eclipse.xtext.common.Terminals.INT"); | ||
889 | } | ||
890 | ) | ||
891 | ) | ||
892 | ) | ||
893 | | | ||
894 | ( | ||
895 | ( | ||
896 | lv_m_4_0=RULE_OF_INT | ||
897 | { | ||
898 | newLeafNode(lv_m_4_0, grammarAccess.getKOfMGateDefinitionAccess().getMOF_INTTerminalRuleCall_2_1_0()); | ||
899 | } | ||
900 | { | ||
901 | if ($current==null) { | ||
902 | $current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
903 | } | ||
904 | setWithLastConsumed( | ||
905 | $current, | ||
906 | "m", | ||
907 | lv_m_4_0, | ||
908 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.OF_INT"); | ||
909 | } | ||
910 | ) | ||
911 | ) | ||
912 | ) | ||
913 | ( | ||
914 | ( | ||
915 | { | ||
916 | if ($current==null) { | ||
917 | $current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
918 | } | ||
919 | } | ||
920 | { | ||
921 | newCompositeNode(grammarAccess.getKOfMGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_3_0()); | ||
922 | } | ||
923 | ruleValidId | ||
924 | { | ||
925 | afterParserOrEnumRuleCall(); | ||
926 | } | ||
927 | ) | ||
928 | )* | ||
929 | ) | ||
930 | ; | ||
931 | |||
932 | // Entry rule entryRuleTransformationDefinition | ||
933 | entryRuleTransformationDefinition returns [EObject current=null]: | ||
934 | { newCompositeNode(grammarAccess.getTransformationDefinitionRule()); } | ||
935 | iv_ruleTransformationDefinition=ruleTransformationDefinition | ||
936 | { $current=$iv_ruleTransformationDefinition.current; } | ||
937 | EOF; | ||
938 | |||
939 | // Rule TransformationDefinition | ||
940 | ruleTransformationDefinition returns [EObject current=null] | ||
941 | @init { | ||
942 | enterRule(); | ||
943 | } | ||
944 | @after { | ||
945 | leaveRule(); | ||
946 | }: | ||
947 | ( | ||
948 | otherlv_0='transformation' | ||
949 | { | ||
950 | newLeafNode(otherlv_0, grammarAccess.getTransformationDefinitionAccess().getTransformationKeyword_0()); | ||
951 | } | ||
952 | ( | ||
953 | ( | ||
954 | { | ||
955 | newCompositeNode(grammarAccess.getTransformationDefinitionAccess().getNameValidIdParserRuleCall_1_0()); | ||
956 | } | ||
957 | lv_name_1_0=ruleValidId | ||
958 | { | ||
959 | if ($current==null) { | ||
960 | $current = createModelElementForParent(grammarAccess.getTransformationDefinitionRule()); | ||
961 | } | ||
962 | set( | ||
963 | $current, | ||
964 | "name", | ||
965 | lv_name_1_0, | ||
966 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
967 | afterParserOrEnumRuleCall(); | ||
968 | } | ||
969 | ) | ||
970 | ) | ||
971 | otherlv_2='{' | ||
972 | { | ||
973 | newLeafNode(otherlv_2, grammarAccess.getTransformationDefinitionAccess().getLeftCurlyBracketKeyword_2()); | ||
974 | } | ||
975 | ( | ||
976 | ( | ||
977 | { | ||
978 | newCompositeNode(grammarAccess.getTransformationDefinitionAccess().getMappingDefinitionsMappingDefinitionParserRuleCall_3_0()); | ||
979 | } | ||
980 | lv_mappingDefinitions_3_0=ruleMappingDefinition | ||
981 | { | ||
982 | if ($current==null) { | ||
983 | $current = createModelElementForParent(grammarAccess.getTransformationDefinitionRule()); | ||
984 | } | ||
985 | add( | ||
986 | $current, | ||
987 | "mappingDefinitions", | ||
988 | lv_mappingDefinitions_3_0, | ||
989 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingDefinition"); | ||
990 | afterParserOrEnumRuleCall(); | ||
991 | } | ||
992 | ) | ||
993 | )* | ||
994 | otherlv_4='}' | ||
995 | { | ||
996 | newLeafNode(otherlv_4, grammarAccess.getTransformationDefinitionAccess().getRightCurlyBracketKeyword_4()); | ||
997 | } | ||
998 | ) | ||
999 | ; | ||
1000 | |||
1001 | // Entry rule entryRuleMappingDefinition | ||
1002 | entryRuleMappingDefinition returns [EObject current=null]: | ||
1003 | { newCompositeNode(grammarAccess.getMappingDefinitionRule()); } | ||
1004 | iv_ruleMappingDefinition=ruleMappingDefinition | ||
1005 | { $current=$iv_ruleMappingDefinition.current; } | ||
1006 | EOF; | ||
1007 | |||
1008 | // Rule MappingDefinition | ||
1009 | ruleMappingDefinition returns [EObject current=null] | ||
1010 | @init { | ||
1011 | enterRule(); | ||
1012 | } | ||
1013 | @after { | ||
1014 | leaveRule(); | ||
1015 | }: | ||
1016 | ( | ||
1017 | ( | ||
1018 | ( | ||
1019 | lv_topLevel_0_0='toplevel' | ||
1020 | { | ||
1021 | newLeafNode(lv_topLevel_0_0, grammarAccess.getMappingDefinitionAccess().getTopLevelToplevelKeyword_0_0()); | ||
1022 | } | ||
1023 | { | ||
1024 | if ($current==null) { | ||
1025 | $current = createModelElement(grammarAccess.getMappingDefinitionRule()); | ||
1026 | } | ||
1027 | setWithLastConsumed($current, "topLevel", true, "toplevel"); | ||
1028 | } | ||
1029 | ) | ||
1030 | )? | ||
1031 | otherlv_1='mapping' | ||
1032 | { | ||
1033 | newLeafNode(otherlv_1, grammarAccess.getMappingDefinitionAccess().getMappingKeyword_1()); | ||
1034 | } | ||
1035 | ( | ||
1036 | ( | ||
1037 | { | ||
1038 | if ($current==null) { | ||
1039 | $current = createModelElement(grammarAccess.getMappingDefinitionRule()); | ||
1040 | } | ||
1041 | } | ||
1042 | { | ||
1043 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getPatternPatternCrossReference_2_0()); | ||
1044 | } | ||
1045 | ruleQualifiedName | ||
1046 | { | ||
1047 | afterParserOrEnumRuleCall(); | ||
1048 | } | ||
1049 | ) | ||
1050 | ) | ||
1051 | otherlv_3='(' | ||
1052 | { | ||
1053 | newLeafNode(otherlv_3, grammarAccess.getMappingDefinitionAccess().getLeftParenthesisKeyword_3()); | ||
1054 | } | ||
1055 | ( | ||
1056 | ( | ||
1057 | { | ||
1058 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_4_0()); | ||
1059 | } | ||
1060 | lv_parameters_4_0=ruleMappingParameter | ||
1061 | { | ||
1062 | if ($current==null) { | ||
1063 | $current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
1064 | } | ||
1065 | add( | ||
1066 | $current, | ||
1067 | "parameters", | ||
1068 | lv_parameters_4_0, | ||
1069 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingParameter"); | ||
1070 | afterParserOrEnumRuleCall(); | ||
1071 | } | ||
1072 | ) | ||
1073 | ) | ||
1074 | ( | ||
1075 | otherlv_5=',' | ||
1076 | { | ||
1077 | newLeafNode(otherlv_5, grammarAccess.getMappingDefinitionAccess().getCommaKeyword_5_0()); | ||
1078 | } | ||
1079 | ( | ||
1080 | ( | ||
1081 | { | ||
1082 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_5_1_0()); | ||
1083 | } | ||
1084 | lv_parameters_6_0=ruleMappingParameter | ||
1085 | { | ||
1086 | if ($current==null) { | ||
1087 | $current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
1088 | } | ||
1089 | add( | ||
1090 | $current, | ||
1091 | "parameters", | ||
1092 | lv_parameters_6_0, | ||
1093 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingParameter"); | ||
1094 | afterParserOrEnumRuleCall(); | ||
1095 | } | ||
1096 | ) | ||
1097 | ) | ||
1098 | )* | ||
1099 | otherlv_7=')' | ||
1100 | { | ||
1101 | newLeafNode(otherlv_7, grammarAccess.getMappingDefinitionAccess().getRightParenthesisKeyword_6()); | ||
1102 | } | ||
1103 | ( | ||
1104 | ( | ||
1105 | { | ||
1106 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getComponentInstanceComponentInstanceParserRuleCall_7_0()); | ||
1107 | } | ||
1108 | lv_componentInstance_8_0=ruleComponentInstance | ||
1109 | { | ||
1110 | if ($current==null) { | ||
1111 | $current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
1112 | } | ||
1113 | set( | ||
1114 | $current, | ||
1115 | "componentInstance", | ||
1116 | lv_componentInstance_8_0, | ||
1117 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentInstance"); | ||
1118 | afterParserOrEnumRuleCall(); | ||
1119 | } | ||
1120 | ) | ||
1121 | )? | ||
1122 | ( | ||
1123 | otherlv_9='{' | ||
1124 | { | ||
1125 | newLeafNode(otherlv_9, grammarAccess.getMappingDefinitionAccess().getLeftCurlyBracketKeyword_8_0()); | ||
1126 | } | ||
1127 | ( | ||
1128 | ( | ||
1129 | ( | ||
1130 | ( | ||
1131 | { | ||
1132 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0()); | ||
1133 | } | ||
1134 | lv_lookupDefinitions_10_0=ruleLookupDefinition | ||
1135 | { | ||
1136 | if ($current==null) { | ||
1137 | $current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
1138 | } | ||
1139 | add( | ||
1140 | $current, | ||
1141 | "lookupDefinitions", | ||
1142 | lv_lookupDefinitions_10_0, | ||
1143 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.LookupDefinition"); | ||
1144 | afterParserOrEnumRuleCall(); | ||
1145 | } | ||
1146 | ) | ||
1147 | ) | ||
1148 | | | ||
1149 | ( | ||
1150 | ( | ||
1151 | { | ||
1152 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getAssignmentsAssignmentParserRuleCall_8_1_0_1_0()); | ||
1153 | } | ||
1154 | lv_assignments_11_0=ruleAssignment | ||
1155 | { | ||
1156 | if ($current==null) { | ||
1157 | $current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
1158 | } | ||
1159 | add( | ||
1160 | $current, | ||
1161 | "assignments", | ||
1162 | lv_assignments_11_0, | ||
1163 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Assignment"); | ||
1164 | afterParserOrEnumRuleCall(); | ||
1165 | } | ||
1166 | ) | ||
1167 | ) | ||
1168 | ) | ||
1169 | otherlv_12=';' | ||
1170 | { | ||
1171 | newLeafNode(otherlv_12, grammarAccess.getMappingDefinitionAccess().getSemicolonKeyword_8_1_1()); | ||
1172 | } | ||
1173 | )* | ||
1174 | otherlv_13='}' | ||
1175 | { | ||
1176 | newLeafNode(otherlv_13, grammarAccess.getMappingDefinitionAccess().getRightCurlyBracketKeyword_8_2()); | ||
1177 | } | ||
1178 | )? | ||
1179 | ) | ||
1180 | ; | ||
1181 | |||
1182 | // Entry rule entryRuleMappingParameter | ||
1183 | entryRuleMappingParameter returns [EObject current=null]: | ||
1184 | { newCompositeNode(grammarAccess.getMappingParameterRule()); } | ||
1185 | iv_ruleMappingParameter=ruleMappingParameter | ||
1186 | { $current=$iv_ruleMappingParameter.current; } | ||
1187 | EOF; | ||
1188 | |||
1189 | // Rule MappingParameter | ||
1190 | ruleMappingParameter returns [EObject current=null] | ||
1191 | @init { | ||
1192 | enterRule(); | ||
1193 | } | ||
1194 | @after { | ||
1195 | leaveRule(); | ||
1196 | }: | ||
1197 | ( | ||
1198 | ( | ||
1199 | { | ||
1200 | newCompositeNode(grammarAccess.getMappingParameterAccess().getNameValidIdParserRuleCall_0()); | ||
1201 | } | ||
1202 | lv_name_0_0=ruleValidId | ||
1203 | { | ||
1204 | if ($current==null) { | ||
1205 | $current = createModelElementForParent(grammarAccess.getMappingParameterRule()); | ||
1206 | } | ||
1207 | set( | ||
1208 | $current, | ||
1209 | "name", | ||
1210 | lv_name_0_0, | ||
1211 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
1212 | afterParserOrEnumRuleCall(); | ||
1213 | } | ||
1214 | ) | ||
1215 | ) | ||
1216 | ; | ||
1217 | |||
1218 | // Entry rule entryRuleLookupDefinition | ||
1219 | entryRuleLookupDefinition returns [EObject current=null]: | ||
1220 | { newCompositeNode(grammarAccess.getLookupDefinitionRule()); } | ||
1221 | iv_ruleLookupDefinition=ruleLookupDefinition | ||
1222 | { $current=$iv_ruleLookupDefinition.current; } | ||
1223 | EOF; | ||
1224 | |||
1225 | // Rule LookupDefinition | ||
1226 | ruleLookupDefinition returns [EObject current=null] | ||
1227 | @init { | ||
1228 | enterRule(); | ||
1229 | } | ||
1230 | @after { | ||
1231 | leaveRule(); | ||
1232 | }: | ||
1233 | ( | ||
1234 | otherlv_0='lookup' | ||
1235 | { | ||
1236 | newLeafNode(otherlv_0, grammarAccess.getLookupDefinitionAccess().getLookupKeyword_0()); | ||
1237 | } | ||
1238 | ( | ||
1239 | ( | ||
1240 | { | ||
1241 | if ($current==null) { | ||
1242 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
1243 | } | ||
1244 | } | ||
1245 | { | ||
1246 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionCrossReference_1_0()); | ||
1247 | } | ||
1248 | ruleQualifiedName | ||
1249 | { | ||
1250 | afterParserOrEnumRuleCall(); | ||
1251 | } | ||
1252 | ) | ||
1253 | ) | ||
1254 | otherlv_2='(' | ||
1255 | { | ||
1256 | newLeafNode(otherlv_2, grammarAccess.getLookupDefinitionAccess().getLeftParenthesisKeyword_2()); | ||
1257 | } | ||
1258 | ( | ||
1259 | ( | ||
1260 | { | ||
1261 | if ($current==null) { | ||
1262 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
1263 | } | ||
1264 | } | ||
1265 | { | ||
1266 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_3_0()); | ||
1267 | } | ||
1268 | ruleValidId | ||
1269 | { | ||
1270 | afterParserOrEnumRuleCall(); | ||
1271 | } | ||
1272 | ) | ||
1273 | ) | ||
1274 | ( | ||
1275 | otherlv_4=',' | ||
1276 | { | ||
1277 | newLeafNode(otherlv_4, grammarAccess.getLookupDefinitionAccess().getCommaKeyword_4_0()); | ||
1278 | } | ||
1279 | ( | ||
1280 | ( | ||
1281 | { | ||
1282 | if ($current==null) { | ||
1283 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
1284 | } | ||
1285 | } | ||
1286 | { | ||
1287 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_4_1_0()); | ||
1288 | } | ||
1289 | ruleValidId | ||
1290 | { | ||
1291 | afterParserOrEnumRuleCall(); | ||
1292 | } | ||
1293 | ) | ||
1294 | ) | ||
1295 | )* | ||
1296 | otherlv_6=')' | ||
1297 | { | ||
1298 | newLeafNode(otherlv_6, grammarAccess.getLookupDefinitionAccess().getRightParenthesisKeyword_5()); | ||
1299 | } | ||
1300 | otherlv_7='as' | ||
1301 | { | ||
1302 | newLeafNode(otherlv_7, grammarAccess.getLookupDefinitionAccess().getAsKeyword_6()); | ||
1303 | } | ||
1304 | ( | ||
1305 | ( | ||
1306 | { | ||
1307 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getNameValidIdParserRuleCall_7_0()); | ||
1308 | } | ||
1309 | lv_name_8_0=ruleValidId | ||
1310 | { | ||
1311 | if ($current==null) { | ||
1312 | $current = createModelElementForParent(grammarAccess.getLookupDefinitionRule()); | ||
1313 | } | ||
1314 | set( | ||
1315 | $current, | ||
1316 | "name", | ||
1317 | lv_name_8_0, | ||
1318 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
1319 | afterParserOrEnumRuleCall(); | ||
1320 | } | ||
1321 | ) | ||
1322 | ) | ||
1323 | ) | ||
1324 | ; | ||
1325 | |||
1326 | // Entry rule entryRuleAssignment | ||
1327 | entryRuleAssignment returns [EObject current=null]: | ||
1328 | { newCompositeNode(grammarAccess.getAssignmentRule()); } | ||
1329 | iv_ruleAssignment=ruleAssignment | ||
1330 | { $current=$iv_ruleAssignment.current; } | ||
1331 | EOF; | ||
1332 | |||
1333 | // Rule Assignment | ||
1334 | ruleAssignment returns [EObject current=null] | ||
1335 | @init { | ||
1336 | enterRule(); | ||
1337 | } | ||
1338 | @after { | ||
1339 | leaveRule(); | ||
1340 | }: | ||
1341 | ( | ||
1342 | ( | ||
1343 | ( | ||
1344 | { | ||
1345 | newCompositeNode(grammarAccess.getAssignmentAccess().getInputEventReferenceParserRuleCall_0_0()); | ||
1346 | } | ||
1347 | lv_input_0_0=ruleEventReference | ||
1348 | { | ||
1349 | if ($current==null) { | ||
1350 | $current = createModelElementForParent(grammarAccess.getAssignmentRule()); | ||
1351 | } | ||
1352 | set( | ||
1353 | $current, | ||
1354 | "input", | ||
1355 | lv_input_0_0, | ||
1356 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventReference"); | ||
1357 | afterParserOrEnumRuleCall(); | ||
1358 | } | ||
1359 | ) | ||
1360 | ) | ||
1361 | ( | ||
1362 | ( | ||
1363 | ( | ||
1364 | lv_multiple_1_0='+=' | ||
1365 | { | ||
1366 | newLeafNode(lv_multiple_1_0, grammarAccess.getAssignmentAccess().getMultiplePlusSignEqualsSignKeyword_1_0_0()); | ||
1367 | } | ||
1368 | { | ||
1369 | if ($current==null) { | ||
1370 | $current = createModelElement(grammarAccess.getAssignmentRule()); | ||
1371 | } | ||
1372 | setWithLastConsumed($current, "multiple", true, "+="); | ||
1373 | } | ||
1374 | ) | ||
1375 | ) | ||
1376 | | | ||
1377 | otherlv_2=':=' | ||
1378 | { | ||
1379 | newLeafNode(otherlv_2, grammarAccess.getAssignmentAccess().getColonEqualsSignKeyword_1_1()); | ||
1380 | } | ||
1381 | ) | ||
1382 | ( | ||
1383 | ( | ||
1384 | { | ||
1385 | newCompositeNode(grammarAccess.getAssignmentAccess().getOutputEventReferenceParserRuleCall_2_0()); | ||
1386 | } | ||
1387 | lv_output_3_0=ruleEventReference | ||
1388 | { | ||
1389 | if ($current==null) { | ||
1390 | $current = createModelElementForParent(grammarAccess.getAssignmentRule()); | ||
1391 | } | ||
1392 | set( | ||
1393 | $current, | ||
1394 | "output", | ||
1395 | lv_output_3_0, | ||
1396 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventReference"); | ||
1397 | afterParserOrEnumRuleCall(); | ||
1398 | } | ||
1399 | ) | ||
1400 | ) | ||
1401 | ) | ||
1402 | ; | ||
1403 | |||
1404 | // Entry rule entryRuleEventReference | ||
1405 | entryRuleEventReference returns [EObject current=null]: | ||
1406 | { newCompositeNode(grammarAccess.getEventReferenceRule()); } | ||
1407 | iv_ruleEventReference=ruleEventReference | ||
1408 | { $current=$iv_ruleEventReference.current; } | ||
1409 | EOF; | ||
1410 | |||
1411 | // Rule EventReference | ||
1412 | ruleEventReference returns [EObject current=null] | ||
1413 | @init { | ||
1414 | enterRule(); | ||
1415 | } | ||
1416 | @after { | ||
1417 | leaveRule(); | ||
1418 | }: | ||
1419 | ( | ||
1420 | ( | ||
1421 | ( | ||
1422 | { | ||
1423 | if ($current==null) { | ||
1424 | $current = createModelElement(grammarAccess.getEventReferenceRule()); | ||
1425 | } | ||
1426 | } | ||
1427 | { | ||
1428 | newCompositeNode(grammarAccess.getEventReferenceAccess().getComponentVariableCrossReference_0_0()); | ||
1429 | } | ||
1430 | ruleValidId | ||
1431 | { | ||
1432 | afterParserOrEnumRuleCall(); | ||
1433 | } | ||
1434 | ) | ||
1435 | ) | ||
1436 | otherlv_1='.' | ||
1437 | { | ||
1438 | newLeafNode(otherlv_1, grammarAccess.getEventReferenceAccess().getFullStopKeyword_1()); | ||
1439 | } | ||
1440 | ( | ||
1441 | ( | ||
1442 | { | ||
1443 | if ($current==null) { | ||
1444 | $current = createModelElement(grammarAccess.getEventReferenceRule()); | ||
1445 | } | ||
1446 | } | ||
1447 | { | ||
1448 | newCompositeNode(grammarAccess.getEventReferenceAccess().getEventEventDeclarationCrossReference_2_0()); | ||
1449 | } | ||
1450 | ruleValidId | ||
1451 | { | ||
1452 | afterParserOrEnumRuleCall(); | ||
1453 | } | ||
1454 | ) | ||
1455 | ) | ||
1456 | ) | ||
1457 | ; | ||
1458 | |||
1459 | // Entry rule entryRuleComponentInstance | ||
1460 | entryRuleComponentInstance returns [EObject current=null]: | ||
1461 | { newCompositeNode(grammarAccess.getComponentInstanceRule()); } | ||
1462 | iv_ruleComponentInstance=ruleComponentInstance | ||
1463 | { $current=$iv_ruleComponentInstance.current; } | ||
1464 | EOF; | ||
1465 | |||
1466 | // Rule ComponentInstance | ||
1467 | ruleComponentInstance returns [EObject current=null] | ||
1468 | @init { | ||
1469 | enterRule(); | ||
1470 | } | ||
1471 | @after { | ||
1472 | leaveRule(); | ||
1473 | }: | ||
1474 | ( | ||
1475 | otherlv_0='=>' | ||
1476 | { | ||
1477 | newLeafNode(otherlv_0, grammarAccess.getComponentInstanceAccess().getEqualsSignGreaterThanSignKeyword_0()); | ||
1478 | } | ||
1479 | ( | ||
1480 | ( | ||
1481 | { | ||
1482 | if ($current==null) { | ||
1483 | $current = createModelElement(grammarAccess.getComponentInstanceRule()); | ||
1484 | } | ||
1485 | } | ||
1486 | { | ||
1487 | newCompositeNode(grammarAccess.getComponentInstanceAccess().getComponentTypeComponentDefinitionCrossReference_1_0()); | ||
1488 | } | ||
1489 | ruleQualifiedName | ||
1490 | { | ||
1491 | afterParserOrEnumRuleCall(); | ||
1492 | } | ||
1493 | ) | ||
1494 | ) | ||
1495 | ( | ||
1496 | ( | ||
1497 | { | ||
1498 | newCompositeNode(grammarAccess.getComponentInstanceAccess().getNameValidIdParserRuleCall_2_0()); | ||
1499 | } | ||
1500 | lv_name_2_0=ruleValidId | ||
1501 | { | ||
1502 | if ($current==null) { | ||
1503 | $current = createModelElementForParent(grammarAccess.getComponentInstanceRule()); | ||
1504 | } | ||
1505 | set( | ||
1506 | $current, | ||
1507 | "name", | ||
1508 | lv_name_2_0, | ||
1509 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
1510 | afterParserOrEnumRuleCall(); | ||
1511 | } | ||
1512 | ) | ||
1513 | )? | ||
1514 | ) | ||
1515 | ; | ||
1516 | |||
1517 | // Entry rule entryRuleQualifiedName | ||
1518 | entryRuleQualifiedName returns [String current=null]: | ||
1519 | { newCompositeNode(grammarAccess.getQualifiedNameRule()); } | ||
1520 | iv_ruleQualifiedName=ruleQualifiedName | ||
1521 | { $current=$iv_ruleQualifiedName.current.getText(); } | ||
1522 | EOF; | ||
1523 | |||
1524 | // Rule QualifiedName | ||
1525 | ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] | ||
1526 | @init { | ||
1527 | enterRule(); | ||
1528 | } | ||
1529 | @after { | ||
1530 | leaveRule(); | ||
1531 | }: | ||
1532 | ( | ||
1533 | { | ||
1534 | newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIdParserRuleCall_0()); | ||
1535 | } | ||
1536 | this_ValidId_0=ruleValidId | ||
1537 | { | ||
1538 | $current.merge(this_ValidId_0); | ||
1539 | } | ||
1540 | { | ||
1541 | afterParserOrEnumRuleCall(); | ||
1542 | } | ||
1543 | ( | ||
1544 | kw='.' | ||
1545 | { | ||
1546 | $current.merge(kw); | ||
1547 | newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); | ||
1548 | } | ||
1549 | { | ||
1550 | newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIdParserRuleCall_1_1()); | ||
1551 | } | ||
1552 | this_ValidId_2=ruleValidId | ||
1553 | { | ||
1554 | $current.merge(this_ValidId_2); | ||
1555 | } | ||
1556 | { | ||
1557 | afterParserOrEnumRuleCall(); | ||
1558 | } | ||
1559 | )* | ||
1560 | ) | ||
1561 | ; | ||
1562 | |||
1563 | // Entry rule entryRuleQualifiedNameWithWildcard | ||
1564 | entryRuleQualifiedNameWithWildcard returns [String current=null]: | ||
1565 | { newCompositeNode(grammarAccess.getQualifiedNameWithWildcardRule()); } | ||
1566 | iv_ruleQualifiedNameWithWildcard=ruleQualifiedNameWithWildcard | ||
1567 | { $current=$iv_ruleQualifiedNameWithWildcard.current.getText(); } | ||
1568 | EOF; | ||
1569 | |||
1570 | // Rule QualifiedNameWithWildcard | ||
1571 | ruleQualifiedNameWithWildcard returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] | ||
1572 | @init { | ||
1573 | enterRule(); | ||
1574 | } | ||
1575 | @after { | ||
1576 | leaveRule(); | ||
1577 | }: | ||
1578 | ( | ||
1579 | { | ||
1580 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); | ||
1581 | } | ||
1582 | this_QualifiedName_0=ruleQualifiedName | ||
1583 | { | ||
1584 | $current.merge(this_QualifiedName_0); | ||
1585 | } | ||
1586 | { | ||
1587 | afterParserOrEnumRuleCall(); | ||
1588 | } | ||
1589 | ( | ||
1590 | kw='.' | ||
1591 | { | ||
1592 | $current.merge(kw); | ||
1593 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1_0()); | ||
1594 | } | ||
1595 | kw='*' | ||
1596 | { | ||
1597 | $current.merge(kw); | ||
1598 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_1_1()); | ||
1599 | } | ||
1600 | )? | ||
1601 | ) | ||
1602 | ; | ||
1603 | |||
1604 | // Entry rule entryRuleValidId | ||
1605 | entryRuleValidId returns [String current=null]: | ||
1606 | { newCompositeNode(grammarAccess.getValidIdRule()); } | ||
1607 | iv_ruleValidId=ruleValidId | ||
1608 | { $current=$iv_ruleValidId.current.getText(); } | ||
1609 | EOF; | ||
1610 | |||
1611 | // Rule ValidId | ||
1612 | ruleValidId returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] | ||
1613 | @init { | ||
1614 | enterRule(); | ||
1615 | } | ||
1616 | @after { | ||
1617 | leaveRule(); | ||
1618 | }: | ||
1619 | ( | ||
1620 | this_ID_0=RULE_ID | ||
1621 | { | ||
1622 | $current.merge(this_ID_0); | ||
1623 | } | ||
1624 | { | ||
1625 | newLeafNode(this_ID_0, grammarAccess.getValidIdAccess().getIDTerminalRuleCall_0()); | ||
1626 | } | ||
1627 | | | ||
1628 | this_OF_INT_1=RULE_OF_INT | ||
1629 | { | ||
1630 | $current.merge(this_OF_INT_1); | ||
1631 | } | ||
1632 | { | ||
1633 | newLeafNode(this_OF_INT_1, grammarAccess.getValidIdAccess().getOF_INTTerminalRuleCall_1()); | ||
1634 | } | ||
1635 | ) | ||
1636 | ; | ||
1637 | |||
1638 | // Entry rule entryRuleDouble | ||
1639 | entryRuleDouble returns [String current=null]: | ||
1640 | { newCompositeNode(grammarAccess.getDoubleRule()); } | ||
1641 | iv_ruleDouble=ruleDouble | ||
1642 | { $current=$iv_ruleDouble.current.getText(); } | ||
1643 | EOF; | ||
1644 | |||
1645 | // Rule Double | ||
1646 | ruleDouble returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] | ||
1647 | @init { | ||
1648 | enterRule(); | ||
1649 | } | ||
1650 | @after { | ||
1651 | leaveRule(); | ||
1652 | }: | ||
1653 | ( | ||
1654 | this_INT_0=RULE_INT | ||
1655 | { | ||
1656 | $current.merge(this_INT_0); | ||
1657 | } | ||
1658 | { | ||
1659 | newLeafNode(this_INT_0, grammarAccess.getDoubleAccess().getINTTerminalRuleCall_0()); | ||
1660 | } | ||
1661 | | | ||
1662 | this_T_DOUBLE_1=RULE_T_DOUBLE | ||
1663 | { | ||
1664 | $current.merge(this_T_DOUBLE_1); | ||
1665 | } | ||
1666 | { | ||
1667 | newLeafNode(this_T_DOUBLE_1, grammarAccess.getDoubleAccess().getT_DOUBLETerminalRuleCall_1()); | ||
1668 | } | ||
1669 | ) | ||
1670 | ; | ||
1671 | |||
1672 | RULE_OF_INT : 'o' 'f' ('0'..'9')+; | ||
1673 | |||
1674 | RULE_T_DOUBLE : ('0'..'9')+ ('.' ('0'..'9')+|('.' ('0'..'9')+)? ('e'|'E') ('+'|'-')? ('0'..'9')+); | ||
1675 | |||
1676 | RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; | ||
1677 | |||
1678 | RULE_INT : ('0'..'9')+; | ||
1679 | |||
1680 | RULE_STRING : ('"' ('\\' .|~(('\\'|'"')))* '"'|'\'' ('\\' .|~(('\\'|'\'')))* '\''); | ||
1681 | |||
1682 | RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/'; | ||
1683 | |||
1684 | RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?; | ||
1685 | |||
1686 | RULE_WS : (' '|'\t'|'\r'|'\n')+; | ||
1687 | |||
1688 | 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 deleted file mode 100644 index 24a3b0ab..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.tokens +++ /dev/null | |||
@@ -1,65 +0,0 @@ | |||
1 | '('=31 | ||
2 | ')'=33 | ||
3 | '*'=40 | ||
4 | '+='=36 | ||
5 | ','=32 | ||
6 | '.'=38 | ||
7 | ':='=37 | ||
8 | ';'=14 | ||
9 | '='=23 | ||
10 | '=>'=39 | ||
11 | '[]'=21 | ||
12 | 'and'=25 | ||
13 | 'as'=35 | ||
14 | 'cft'=16 | ||
15 | 'import'=15 | ||
16 | 'in'=18 | ||
17 | 'lambda'=24 | ||
18 | 'lookup'=34 | ||
19 | 'mapping'=30 | ||
20 | 'of'=27 | ||
21 | 'or'=26 | ||
22 | 'out'=19 | ||
23 | 'package'=13 | ||
24 | 'prob'=22 | ||
25 | 'toplevel'=29 | ||
26 | 'transformation'=28 | ||
27 | '{'=17 | ||
28 | '}'=20 | ||
29 | RULE_ANY_OTHER=12 | ||
30 | RULE_ID=6 | ||
31 | RULE_INT=4 | ||
32 | RULE_ML_COMMENT=9 | ||
33 | RULE_OF_INT=5 | ||
34 | RULE_SL_COMMENT=10 | ||
35 | RULE_STRING=8 | ||
36 | RULE_T_DOUBLE=7 | ||
37 | RULE_WS=11 | ||
38 | T__13=13 | ||
39 | T__14=14 | ||
40 | T__15=15 | ||
41 | T__16=16 | ||
42 | T__17=17 | ||
43 | T__18=18 | ||
44 | T__19=19 | ||
45 | T__20=20 | ||
46 | T__21=21 | ||
47 | T__22=22 | ||
48 | T__23=23 | ||
49 | T__24=24 | ||
50 | T__25=25 | ||
51 | T__26=26 | ||
52 | T__27=27 | ||
53 | T__28=28 | ||
54 | T__29=29 | ||
55 | T__30=30 | ||
56 | T__31=31 | ||
57 | T__32=32 | ||
58 | T__33=33 | ||
59 | T__34=34 | ||
60 | T__35=35 | ||
61 | T__36=36 | ||
62 | T__37=37 | ||
63 | T__38=38 | ||
64 | T__39=39 | ||
65 | T__40=40 | ||
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 deleted file mode 100644 index c15c826a..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageLexer.java +++ /dev/null | |||
@@ -1,2001 +0,0 @@ | |||
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=8; | ||
16 | public static final int RULE_SL_COMMENT=10; | ||
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__38=38; | ||
22 | public static final int T__17=17; | ||
23 | public static final int T__39=39; | ||
24 | public static final int T__18=18; | ||
25 | public static final int T__33=33; | ||
26 | public static final int T__34=34; | ||
27 | public static final int RULE_T_DOUBLE=7; | ||
28 | public static final int T__13=13; | ||
29 | public static final int T__35=35; | ||
30 | public static final int T__14=14; | ||
31 | public static final int T__36=36; | ||
32 | public static final int EOF=-1; | ||
33 | public static final int T__30=30; | ||
34 | public static final int T__31=31; | ||
35 | public static final int T__32=32; | ||
36 | public static final int RULE_OF_INT=5; | ||
37 | public static final int RULE_ID=6; | ||
38 | public static final int RULE_WS=11; | ||
39 | public static final int RULE_ANY_OTHER=12; | ||
40 | public static final int T__26=26; | ||
41 | public static final int T__27=27; | ||
42 | public static final int T__28=28; | ||
43 | public static final int RULE_INT=4; | ||
44 | public static final int T__29=29; | ||
45 | public static final int T__22=22; | ||
46 | public static final int RULE_ML_COMMENT=9; | ||
47 | public static final int T__23=23; | ||
48 | public static final int T__24=24; | ||
49 | public static final int T__25=25; | ||
50 | public static final int T__40=40; | ||
51 | public static final int T__20=20; | ||
52 | public static final int T__21=21; | ||
53 | |||
54 | // delegates | ||
55 | // delegators | ||
56 | |||
57 | public InternalCftLanguageLexer() {;} | ||
58 | public InternalCftLanguageLexer(CharStream input) { | ||
59 | this(input, new RecognizerSharedState()); | ||
60 | } | ||
61 | public InternalCftLanguageLexer(CharStream input, RecognizerSharedState state) { | ||
62 | super(input,state); | ||
63 | |||
64 | } | ||
65 | public String getGrammarFileName() { return "InternalCftLanguage.g"; } | ||
66 | |||
67 | // $ANTLR start "T__13" | ||
68 | public final void mT__13() throws RecognitionException { | ||
69 | try { | ||
70 | int _type = T__13; | ||
71 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
72 | // InternalCftLanguage.g:11:7: ( 'package' ) | ||
73 | // InternalCftLanguage.g:11:9: 'package' | ||
74 | { | ||
75 | match("package"); | ||
76 | |||
77 | |||
78 | } | ||
79 | |||
80 | state.type = _type; | ||
81 | state.channel = _channel; | ||
82 | } | ||
83 | finally { | ||
84 | } | ||
85 | } | ||
86 | // $ANTLR end "T__13" | ||
87 | |||
88 | // $ANTLR start "T__14" | ||
89 | public final void mT__14() throws RecognitionException { | ||
90 | try { | ||
91 | int _type = T__14; | ||
92 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
93 | // InternalCftLanguage.g:12:7: ( ';' ) | ||
94 | // InternalCftLanguage.g:12:9: ';' | ||
95 | { | ||
96 | match(';'); | ||
97 | |||
98 | } | ||
99 | |||
100 | state.type = _type; | ||
101 | state.channel = _channel; | ||
102 | } | ||
103 | finally { | ||
104 | } | ||
105 | } | ||
106 | // $ANTLR end "T__14" | ||
107 | |||
108 | // $ANTLR start "T__15" | ||
109 | public final void mT__15() throws RecognitionException { | ||
110 | try { | ||
111 | int _type = T__15; | ||
112 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
113 | // InternalCftLanguage.g:13:7: ( 'import' ) | ||
114 | // InternalCftLanguage.g:13:9: 'import' | ||
115 | { | ||
116 | match("import"); | ||
117 | |||
118 | |||
119 | } | ||
120 | |||
121 | state.type = _type; | ||
122 | state.channel = _channel; | ||
123 | } | ||
124 | finally { | ||
125 | } | ||
126 | } | ||
127 | // $ANTLR end "T__15" | ||
128 | |||
129 | // $ANTLR start "T__16" | ||
130 | public final void mT__16() throws RecognitionException { | ||
131 | try { | ||
132 | int _type = T__16; | ||
133 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
134 | // InternalCftLanguage.g:14:7: ( 'cft' ) | ||
135 | // InternalCftLanguage.g:14:9: 'cft' | ||
136 | { | ||
137 | match("cft"); | ||
138 | |||
139 | |||
140 | } | ||
141 | |||
142 | state.type = _type; | ||
143 | state.channel = _channel; | ||
144 | } | ||
145 | finally { | ||
146 | } | ||
147 | } | ||
148 | // $ANTLR end "T__16" | ||
149 | |||
150 | // $ANTLR start "T__17" | ||
151 | public final void mT__17() throws RecognitionException { | ||
152 | try { | ||
153 | int _type = T__17; | ||
154 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
155 | // InternalCftLanguage.g:15:7: ( '{' ) | ||
156 | // InternalCftLanguage.g:15:9: '{' | ||
157 | { | ||
158 | match('{'); | ||
159 | |||
160 | } | ||
161 | |||
162 | state.type = _type; | ||
163 | state.channel = _channel; | ||
164 | } | ||
165 | finally { | ||
166 | } | ||
167 | } | ||
168 | // $ANTLR end "T__17" | ||
169 | |||
170 | // $ANTLR start "T__18" | ||
171 | public final void mT__18() throws RecognitionException { | ||
172 | try { | ||
173 | int _type = T__18; | ||
174 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
175 | // InternalCftLanguage.g:16:7: ( 'in' ) | ||
176 | // InternalCftLanguage.g:16:9: 'in' | ||
177 | { | ||
178 | match("in"); | ||
179 | |||
180 | |||
181 | } | ||
182 | |||
183 | state.type = _type; | ||
184 | state.channel = _channel; | ||
185 | } | ||
186 | finally { | ||
187 | } | ||
188 | } | ||
189 | // $ANTLR end "T__18" | ||
190 | |||
191 | // $ANTLR start "T__19" | ||
192 | public final void mT__19() throws RecognitionException { | ||
193 | try { | ||
194 | int _type = T__19; | ||
195 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
196 | // InternalCftLanguage.g:17:7: ( 'out' ) | ||
197 | // InternalCftLanguage.g:17:9: 'out' | ||
198 | { | ||
199 | match("out"); | ||
200 | |||
201 | |||
202 | } | ||
203 | |||
204 | state.type = _type; | ||
205 | state.channel = _channel; | ||
206 | } | ||
207 | finally { | ||
208 | } | ||
209 | } | ||
210 | // $ANTLR end "T__19" | ||
211 | |||
212 | // $ANTLR start "T__20" | ||
213 | public final void mT__20() throws RecognitionException { | ||
214 | try { | ||
215 | int _type = T__20; | ||
216 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
217 | // InternalCftLanguage.g:18:7: ( '}' ) | ||
218 | // InternalCftLanguage.g:18:9: '}' | ||
219 | { | ||
220 | match('}'); | ||
221 | |||
222 | } | ||
223 | |||
224 | state.type = _type; | ||
225 | state.channel = _channel; | ||
226 | } | ||
227 | finally { | ||
228 | } | ||
229 | } | ||
230 | // $ANTLR end "T__20" | ||
231 | |||
232 | // $ANTLR start "T__21" | ||
233 | public final void mT__21() throws RecognitionException { | ||
234 | try { | ||
235 | int _type = T__21; | ||
236 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
237 | // InternalCftLanguage.g:19:7: ( '[]' ) | ||
238 | // InternalCftLanguage.g:19:9: '[]' | ||
239 | { | ||
240 | match("[]"); | ||
241 | |||
242 | |||
243 | } | ||
244 | |||
245 | state.type = _type; | ||
246 | state.channel = _channel; | ||
247 | } | ||
248 | finally { | ||
249 | } | ||
250 | } | ||
251 | // $ANTLR end "T__21" | ||
252 | |||
253 | // $ANTLR start "T__22" | ||
254 | public final void mT__22() throws RecognitionException { | ||
255 | try { | ||
256 | int _type = T__22; | ||
257 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
258 | // InternalCftLanguage.g:20:7: ( 'prob' ) | ||
259 | // InternalCftLanguage.g:20:9: 'prob' | ||
260 | { | ||
261 | match("prob"); | ||
262 | |||
263 | |||
264 | } | ||
265 | |||
266 | state.type = _type; | ||
267 | state.channel = _channel; | ||
268 | } | ||
269 | finally { | ||
270 | } | ||
271 | } | ||
272 | // $ANTLR end "T__22" | ||
273 | |||
274 | // $ANTLR start "T__23" | ||
275 | public final void mT__23() throws RecognitionException { | ||
276 | try { | ||
277 | int _type = T__23; | ||
278 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
279 | // InternalCftLanguage.g:21:7: ( '=' ) | ||
280 | // InternalCftLanguage.g:21:9: '=' | ||
281 | { | ||
282 | match('='); | ||
283 | |||
284 | } | ||
285 | |||
286 | state.type = _type; | ||
287 | state.channel = _channel; | ||
288 | } | ||
289 | finally { | ||
290 | } | ||
291 | } | ||
292 | // $ANTLR end "T__23" | ||
293 | |||
294 | // $ANTLR start "T__24" | ||
295 | public final void mT__24() throws RecognitionException { | ||
296 | try { | ||
297 | int _type = T__24; | ||
298 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
299 | // InternalCftLanguage.g:22:7: ( 'lambda' ) | ||
300 | // InternalCftLanguage.g:22:9: 'lambda' | ||
301 | { | ||
302 | match("lambda"); | ||
303 | |||
304 | |||
305 | } | ||
306 | |||
307 | state.type = _type; | ||
308 | state.channel = _channel; | ||
309 | } | ||
310 | finally { | ||
311 | } | ||
312 | } | ||
313 | // $ANTLR end "T__24" | ||
314 | |||
315 | // $ANTLR start "T__25" | ||
316 | public final void mT__25() throws RecognitionException { | ||
317 | try { | ||
318 | int _type = T__25; | ||
319 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
320 | // InternalCftLanguage.g:23:7: ( 'and' ) | ||
321 | // InternalCftLanguage.g:23:9: 'and' | ||
322 | { | ||
323 | match("and"); | ||
324 | |||
325 | |||
326 | } | ||
327 | |||
328 | state.type = _type; | ||
329 | state.channel = _channel; | ||
330 | } | ||
331 | finally { | ||
332 | } | ||
333 | } | ||
334 | // $ANTLR end "T__25" | ||
335 | |||
336 | // $ANTLR start "T__26" | ||
337 | public final void mT__26() throws RecognitionException { | ||
338 | try { | ||
339 | int _type = T__26; | ||
340 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
341 | // InternalCftLanguage.g:24:7: ( 'or' ) | ||
342 | // InternalCftLanguage.g:24:9: 'or' | ||
343 | { | ||
344 | match("or"); | ||
345 | |||
346 | |||
347 | } | ||
348 | |||
349 | state.type = _type; | ||
350 | state.channel = _channel; | ||
351 | } | ||
352 | finally { | ||
353 | } | ||
354 | } | ||
355 | // $ANTLR end "T__26" | ||
356 | |||
357 | // $ANTLR start "T__27" | ||
358 | public final void mT__27() throws RecognitionException { | ||
359 | try { | ||
360 | int _type = T__27; | ||
361 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
362 | // InternalCftLanguage.g:25:7: ( 'of' ) | ||
363 | // InternalCftLanguage.g:25:9: 'of' | ||
364 | { | ||
365 | match("of"); | ||
366 | |||
367 | |||
368 | } | ||
369 | |||
370 | state.type = _type; | ||
371 | state.channel = _channel; | ||
372 | } | ||
373 | finally { | ||
374 | } | ||
375 | } | ||
376 | // $ANTLR end "T__27" | ||
377 | |||
378 | // $ANTLR start "T__28" | ||
379 | public final void mT__28() throws RecognitionException { | ||
380 | try { | ||
381 | int _type = T__28; | ||
382 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
383 | // InternalCftLanguage.g:26:7: ( 'transformation' ) | ||
384 | // InternalCftLanguage.g:26:9: 'transformation' | ||
385 | { | ||
386 | match("transformation"); | ||
387 | |||
388 | |||
389 | } | ||
390 | |||
391 | state.type = _type; | ||
392 | state.channel = _channel; | ||
393 | } | ||
394 | finally { | ||
395 | } | ||
396 | } | ||
397 | // $ANTLR end "T__28" | ||
398 | |||
399 | // $ANTLR start "T__29" | ||
400 | public final void mT__29() throws RecognitionException { | ||
401 | try { | ||
402 | int _type = T__29; | ||
403 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
404 | // InternalCftLanguage.g:27:7: ( 'toplevel' ) | ||
405 | // InternalCftLanguage.g:27:9: 'toplevel' | ||
406 | { | ||
407 | match("toplevel"); | ||
408 | |||
409 | |||
410 | } | ||
411 | |||
412 | state.type = _type; | ||
413 | state.channel = _channel; | ||
414 | } | ||
415 | finally { | ||
416 | } | ||
417 | } | ||
418 | // $ANTLR end "T__29" | ||
419 | |||
420 | // $ANTLR start "T__30" | ||
421 | public final void mT__30() throws RecognitionException { | ||
422 | try { | ||
423 | int _type = T__30; | ||
424 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
425 | // InternalCftLanguage.g:28:7: ( 'mapping' ) | ||
426 | // InternalCftLanguage.g:28:9: 'mapping' | ||
427 | { | ||
428 | match("mapping"); | ||
429 | |||
430 | |||
431 | } | ||
432 | |||
433 | state.type = _type; | ||
434 | state.channel = _channel; | ||
435 | } | ||
436 | finally { | ||
437 | } | ||
438 | } | ||
439 | // $ANTLR end "T__30" | ||
440 | |||
441 | // $ANTLR start "T__31" | ||
442 | public final void mT__31() throws RecognitionException { | ||
443 | try { | ||
444 | int _type = T__31; | ||
445 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
446 | // InternalCftLanguage.g:29:7: ( '(' ) | ||
447 | // InternalCftLanguage.g:29:9: '(' | ||
448 | { | ||
449 | match('('); | ||
450 | |||
451 | } | ||
452 | |||
453 | state.type = _type; | ||
454 | state.channel = _channel; | ||
455 | } | ||
456 | finally { | ||
457 | } | ||
458 | } | ||
459 | // $ANTLR end "T__31" | ||
460 | |||
461 | // $ANTLR start "T__32" | ||
462 | public final void mT__32() throws RecognitionException { | ||
463 | try { | ||
464 | int _type = T__32; | ||
465 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
466 | // InternalCftLanguage.g:30:7: ( ',' ) | ||
467 | // InternalCftLanguage.g:30:9: ',' | ||
468 | { | ||
469 | match(','); | ||
470 | |||
471 | } | ||
472 | |||
473 | state.type = _type; | ||
474 | state.channel = _channel; | ||
475 | } | ||
476 | finally { | ||
477 | } | ||
478 | } | ||
479 | // $ANTLR end "T__32" | ||
480 | |||
481 | // $ANTLR start "T__33" | ||
482 | public final void mT__33() throws RecognitionException { | ||
483 | try { | ||
484 | int _type = T__33; | ||
485 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
486 | // InternalCftLanguage.g:31:7: ( ')' ) | ||
487 | // InternalCftLanguage.g:31:9: ')' | ||
488 | { | ||
489 | match(')'); | ||
490 | |||
491 | } | ||
492 | |||
493 | state.type = _type; | ||
494 | state.channel = _channel; | ||
495 | } | ||
496 | finally { | ||
497 | } | ||
498 | } | ||
499 | // $ANTLR end "T__33" | ||
500 | |||
501 | // $ANTLR start "T__34" | ||
502 | public final void mT__34() throws RecognitionException { | ||
503 | try { | ||
504 | int _type = T__34; | ||
505 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
506 | // InternalCftLanguage.g:32:7: ( 'lookup' ) | ||
507 | // InternalCftLanguage.g:32:9: 'lookup' | ||
508 | { | ||
509 | match("lookup"); | ||
510 | |||
511 | |||
512 | } | ||
513 | |||
514 | state.type = _type; | ||
515 | state.channel = _channel; | ||
516 | } | ||
517 | finally { | ||
518 | } | ||
519 | } | ||
520 | // $ANTLR end "T__34" | ||
521 | |||
522 | // $ANTLR start "T__35" | ||
523 | public final void mT__35() throws RecognitionException { | ||
524 | try { | ||
525 | int _type = T__35; | ||
526 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
527 | // InternalCftLanguage.g:33:7: ( 'as' ) | ||
528 | // InternalCftLanguage.g:33:9: 'as' | ||
529 | { | ||
530 | match("as"); | ||
531 | |||
532 | |||
533 | } | ||
534 | |||
535 | state.type = _type; | ||
536 | state.channel = _channel; | ||
537 | } | ||
538 | finally { | ||
539 | } | ||
540 | } | ||
541 | // $ANTLR end "T__35" | ||
542 | |||
543 | // $ANTLR start "T__36" | ||
544 | public final void mT__36() throws RecognitionException { | ||
545 | try { | ||
546 | int _type = T__36; | ||
547 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
548 | // InternalCftLanguage.g:34:7: ( '+=' ) | ||
549 | // InternalCftLanguage.g:34:9: '+=' | ||
550 | { | ||
551 | match("+="); | ||
552 | |||
553 | |||
554 | } | ||
555 | |||
556 | state.type = _type; | ||
557 | state.channel = _channel; | ||
558 | } | ||
559 | finally { | ||
560 | } | ||
561 | } | ||
562 | // $ANTLR end "T__36" | ||
563 | |||
564 | // $ANTLR start "T__37" | ||
565 | public final void mT__37() throws RecognitionException { | ||
566 | try { | ||
567 | int _type = T__37; | ||
568 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
569 | // InternalCftLanguage.g:35:7: ( ':=' ) | ||
570 | // InternalCftLanguage.g:35:9: ':=' | ||
571 | { | ||
572 | match(":="); | ||
573 | |||
574 | |||
575 | } | ||
576 | |||
577 | state.type = _type; | ||
578 | state.channel = _channel; | ||
579 | } | ||
580 | finally { | ||
581 | } | ||
582 | } | ||
583 | // $ANTLR end "T__37" | ||
584 | |||
585 | // $ANTLR start "T__38" | ||
586 | public final void mT__38() throws RecognitionException { | ||
587 | try { | ||
588 | int _type = T__38; | ||
589 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
590 | // InternalCftLanguage.g:36:7: ( '.' ) | ||
591 | // InternalCftLanguage.g:36:9: '.' | ||
592 | { | ||
593 | match('.'); | ||
594 | |||
595 | } | ||
596 | |||
597 | state.type = _type; | ||
598 | state.channel = _channel; | ||
599 | } | ||
600 | finally { | ||
601 | } | ||
602 | } | ||
603 | // $ANTLR end "T__38" | ||
604 | |||
605 | // $ANTLR start "T__39" | ||
606 | public final void mT__39() throws RecognitionException { | ||
607 | try { | ||
608 | int _type = T__39; | ||
609 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
610 | // InternalCftLanguage.g:37:7: ( '=>' ) | ||
611 | // InternalCftLanguage.g:37:9: '=>' | ||
612 | { | ||
613 | match("=>"); | ||
614 | |||
615 | |||
616 | } | ||
617 | |||
618 | state.type = _type; | ||
619 | state.channel = _channel; | ||
620 | } | ||
621 | finally { | ||
622 | } | ||
623 | } | ||
624 | // $ANTLR end "T__39" | ||
625 | |||
626 | // $ANTLR start "T__40" | ||
627 | public final void mT__40() throws RecognitionException { | ||
628 | try { | ||
629 | int _type = T__40; | ||
630 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
631 | // InternalCftLanguage.g:38:7: ( '*' ) | ||
632 | // InternalCftLanguage.g:38:9: '*' | ||
633 | { | ||
634 | match('*'); | ||
635 | |||
636 | } | ||
637 | |||
638 | state.type = _type; | ||
639 | state.channel = _channel; | ||
640 | } | ||
641 | finally { | ||
642 | } | ||
643 | } | ||
644 | // $ANTLR end "T__40" | ||
645 | |||
646 | // $ANTLR start "RULE_OF_INT" | ||
647 | public final void mRULE_OF_INT() throws RecognitionException { | ||
648 | try { | ||
649 | int _type = RULE_OF_INT; | ||
650 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
651 | // InternalCftLanguage.g:1672:13: ( 'o' 'f' ( '0' .. '9' )+ ) | ||
652 | // InternalCftLanguage.g:1672:15: 'o' 'f' ( '0' .. '9' )+ | ||
653 | { | ||
654 | match('o'); | ||
655 | match('f'); | ||
656 | // InternalCftLanguage.g:1672:23: ( '0' .. '9' )+ | ||
657 | int cnt1=0; | ||
658 | loop1: | ||
659 | do { | ||
660 | int alt1=2; | ||
661 | int LA1_0 = input.LA(1); | ||
662 | |||
663 | if ( ((LA1_0>='0' && LA1_0<='9')) ) { | ||
664 | alt1=1; | ||
665 | } | ||
666 | |||
667 | |||
668 | switch (alt1) { | ||
669 | case 1 : | ||
670 | // InternalCftLanguage.g:1672:24: '0' .. '9' | ||
671 | { | ||
672 | matchRange('0','9'); | ||
673 | |||
674 | } | ||
675 | break; | ||
676 | |||
677 | default : | ||
678 | if ( cnt1 >= 1 ) break loop1; | ||
679 | EarlyExitException eee = | ||
680 | new EarlyExitException(1, input); | ||
681 | throw eee; | ||
682 | } | ||
683 | cnt1++; | ||
684 | } while (true); | ||
685 | |||
686 | |||
687 | } | ||
688 | |||
689 | state.type = _type; | ||
690 | state.channel = _channel; | ||
691 | } | ||
692 | finally { | ||
693 | } | ||
694 | } | ||
695 | // $ANTLR end "RULE_OF_INT" | ||
696 | |||
697 | // $ANTLR start "RULE_T_DOUBLE" | ||
698 | public final void mRULE_T_DOUBLE() throws RecognitionException { | ||
699 | try { | ||
700 | int _type = RULE_T_DOUBLE; | ||
701 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
702 | // InternalCftLanguage.g:1674:15: ( ( '0' .. '9' )+ ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) ) | ||
703 | // InternalCftLanguage.g:1674:17: ( '0' .. '9' )+ ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) | ||
704 | { | ||
705 | // InternalCftLanguage.g:1674:17: ( '0' .. '9' )+ | ||
706 | int cnt2=0; | ||
707 | loop2: | ||
708 | do { | ||
709 | int alt2=2; | ||
710 | int LA2_0 = input.LA(1); | ||
711 | |||
712 | if ( ((LA2_0>='0' && LA2_0<='9')) ) { | ||
713 | alt2=1; | ||
714 | } | ||
715 | |||
716 | |||
717 | switch (alt2) { | ||
718 | case 1 : | ||
719 | // InternalCftLanguage.g:1674:18: '0' .. '9' | ||
720 | { | ||
721 | matchRange('0','9'); | ||
722 | |||
723 | } | ||
724 | break; | ||
725 | |||
726 | default : | ||
727 | if ( cnt2 >= 1 ) break loop2; | ||
728 | EarlyExitException eee = | ||
729 | new EarlyExitException(2, input); | ||
730 | throw eee; | ||
731 | } | ||
732 | cnt2++; | ||
733 | } while (true); | ||
734 | |||
735 | // InternalCftLanguage.g:1674:29: ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) | ||
736 | int alt8=2; | ||
737 | alt8 = dfa8.predict(input); | ||
738 | switch (alt8) { | ||
739 | case 1 : | ||
740 | // InternalCftLanguage.g:1674:30: '.' ( '0' .. '9' )+ | ||
741 | { | ||
742 | match('.'); | ||
743 | // InternalCftLanguage.g:1674:34: ( '0' .. '9' )+ | ||
744 | int cnt3=0; | ||
745 | loop3: | ||
746 | do { | ||
747 | int alt3=2; | ||
748 | int LA3_0 = input.LA(1); | ||
749 | |||
750 | if ( ((LA3_0>='0' && LA3_0<='9')) ) { | ||
751 | alt3=1; | ||
752 | } | ||
753 | |||
754 | |||
755 | switch (alt3) { | ||
756 | case 1 : | ||
757 | // InternalCftLanguage.g:1674:35: '0' .. '9' | ||
758 | { | ||
759 | matchRange('0','9'); | ||
760 | |||
761 | } | ||
762 | break; | ||
763 | |||
764 | default : | ||
765 | if ( cnt3 >= 1 ) break loop3; | ||
766 | EarlyExitException eee = | ||
767 | new EarlyExitException(3, input); | ||
768 | throw eee; | ||
769 | } | ||
770 | cnt3++; | ||
771 | } while (true); | ||
772 | |||
773 | |||
774 | } | ||
775 | break; | ||
776 | case 2 : | ||
777 | // InternalCftLanguage.g:1674:46: ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ | ||
778 | { | ||
779 | // InternalCftLanguage.g:1674:46: ( '.' ( '0' .. '9' )+ )? | ||
780 | int alt5=2; | ||
781 | int LA5_0 = input.LA(1); | ||
782 | |||
783 | if ( (LA5_0=='.') ) { | ||
784 | alt5=1; | ||
785 | } | ||
786 | switch (alt5) { | ||
787 | case 1 : | ||
788 | // InternalCftLanguage.g:1674:47: '.' ( '0' .. '9' )+ | ||
789 | { | ||
790 | match('.'); | ||
791 | // InternalCftLanguage.g:1674:51: ( '0' .. '9' )+ | ||
792 | int cnt4=0; | ||
793 | loop4: | ||
794 | do { | ||
795 | int alt4=2; | ||
796 | int LA4_0 = input.LA(1); | ||
797 | |||
798 | if ( ((LA4_0>='0' && LA4_0<='9')) ) { | ||
799 | alt4=1; | ||
800 | } | ||
801 | |||
802 | |||
803 | switch (alt4) { | ||
804 | case 1 : | ||
805 | // InternalCftLanguage.g:1674:52: '0' .. '9' | ||
806 | { | ||
807 | matchRange('0','9'); | ||
808 | |||
809 | } | ||
810 | break; | ||
811 | |||
812 | default : | ||
813 | if ( cnt4 >= 1 ) break loop4; | ||
814 | EarlyExitException eee = | ||
815 | new EarlyExitException(4, input); | ||
816 | throw eee; | ||
817 | } | ||
818 | cnt4++; | ||
819 | } while (true); | ||
820 | |||
821 | |||
822 | } | ||
823 | break; | ||
824 | |||
825 | } | ||
826 | |||
827 | if ( input.LA(1)=='E'||input.LA(1)=='e' ) { | ||
828 | input.consume(); | ||
829 | |||
830 | } | ||
831 | else { | ||
832 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
833 | recover(mse); | ||
834 | throw mse;} | ||
835 | |||
836 | // InternalCftLanguage.g:1674:75: ( '+' | '-' )? | ||
837 | int alt6=2; | ||
838 | int LA6_0 = input.LA(1); | ||
839 | |||
840 | if ( (LA6_0=='+'||LA6_0=='-') ) { | ||
841 | alt6=1; | ||
842 | } | ||
843 | switch (alt6) { | ||
844 | case 1 : | ||
845 | // InternalCftLanguage.g: | ||
846 | { | ||
847 | if ( input.LA(1)=='+'||input.LA(1)=='-' ) { | ||
848 | input.consume(); | ||
849 | |||
850 | } | ||
851 | else { | ||
852 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
853 | recover(mse); | ||
854 | throw mse;} | ||
855 | |||
856 | |||
857 | } | ||
858 | break; | ||
859 | |||
860 | } | ||
861 | |||
862 | // InternalCftLanguage.g:1674:86: ( '0' .. '9' )+ | ||
863 | int cnt7=0; | ||
864 | loop7: | ||
865 | do { | ||
866 | int alt7=2; | ||
867 | int LA7_0 = input.LA(1); | ||
868 | |||
869 | if ( ((LA7_0>='0' && LA7_0<='9')) ) { | ||
870 | alt7=1; | ||
871 | } | ||
872 | |||
873 | |||
874 | switch (alt7) { | ||
875 | case 1 : | ||
876 | // InternalCftLanguage.g:1674:87: '0' .. '9' | ||
877 | { | ||
878 | matchRange('0','9'); | ||
879 | |||
880 | } | ||
881 | break; | ||
882 | |||
883 | default : | ||
884 | if ( cnt7 >= 1 ) break loop7; | ||
885 | EarlyExitException eee = | ||
886 | new EarlyExitException(7, input); | ||
887 | throw eee; | ||
888 | } | ||
889 | cnt7++; | ||
890 | } while (true); | ||
891 | |||
892 | |||
893 | } | ||
894 | break; | ||
895 | |||
896 | } | ||
897 | |||
898 | |||
899 | } | ||
900 | |||
901 | state.type = _type; | ||
902 | state.channel = _channel; | ||
903 | } | ||
904 | finally { | ||
905 | } | ||
906 | } | ||
907 | // $ANTLR end "RULE_T_DOUBLE" | ||
908 | |||
909 | // $ANTLR start "RULE_ID" | ||
910 | public final void mRULE_ID() throws RecognitionException { | ||
911 | try { | ||
912 | int _type = RULE_ID; | ||
913 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
914 | // InternalCftLanguage.g:1676:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) | ||
915 | // InternalCftLanguage.g:1676:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | ||
916 | { | ||
917 | // InternalCftLanguage.g:1676:11: ( '^' )? | ||
918 | int alt9=2; | ||
919 | int LA9_0 = input.LA(1); | ||
920 | |||
921 | if ( (LA9_0=='^') ) { | ||
922 | alt9=1; | ||
923 | } | ||
924 | switch (alt9) { | ||
925 | case 1 : | ||
926 | // InternalCftLanguage.g:1676:11: '^' | ||
927 | { | ||
928 | match('^'); | ||
929 | |||
930 | } | ||
931 | break; | ||
932 | |||
933 | } | ||
934 | |||
935 | if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { | ||
936 | input.consume(); | ||
937 | |||
938 | } | ||
939 | else { | ||
940 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
941 | recover(mse); | ||
942 | throw mse;} | ||
943 | |||
944 | // InternalCftLanguage.g:1676:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | ||
945 | loop10: | ||
946 | do { | ||
947 | int alt10=2; | ||
948 | int LA10_0 = input.LA(1); | ||
949 | |||
950 | if ( ((LA10_0>='0' && LA10_0<='9')||(LA10_0>='A' && LA10_0<='Z')||LA10_0=='_'||(LA10_0>='a' && LA10_0<='z')) ) { | ||
951 | alt10=1; | ||
952 | } | ||
953 | |||
954 | |||
955 | switch (alt10) { | ||
956 | case 1 : | ||
957 | // InternalCftLanguage.g: | ||
958 | { | ||
959 | 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') ) { | ||
960 | input.consume(); | ||
961 | |||
962 | } | ||
963 | else { | ||
964 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
965 | recover(mse); | ||
966 | throw mse;} | ||
967 | |||
968 | |||
969 | } | ||
970 | break; | ||
971 | |||
972 | default : | ||
973 | break loop10; | ||
974 | } | ||
975 | } while (true); | ||
976 | |||
977 | |||
978 | } | ||
979 | |||
980 | state.type = _type; | ||
981 | state.channel = _channel; | ||
982 | } | ||
983 | finally { | ||
984 | } | ||
985 | } | ||
986 | // $ANTLR end "RULE_ID" | ||
987 | |||
988 | // $ANTLR start "RULE_INT" | ||
989 | public final void mRULE_INT() throws RecognitionException { | ||
990 | try { | ||
991 | int _type = RULE_INT; | ||
992 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
993 | // InternalCftLanguage.g:1678:10: ( ( '0' .. '9' )+ ) | ||
994 | // InternalCftLanguage.g:1678:12: ( '0' .. '9' )+ | ||
995 | { | ||
996 | // InternalCftLanguage.g:1678:12: ( '0' .. '9' )+ | ||
997 | int cnt11=0; | ||
998 | loop11: | ||
999 | do { | ||
1000 | int alt11=2; | ||
1001 | int LA11_0 = input.LA(1); | ||
1002 | |||
1003 | if ( ((LA11_0>='0' && LA11_0<='9')) ) { | ||
1004 | alt11=1; | ||
1005 | } | ||
1006 | |||
1007 | |||
1008 | switch (alt11) { | ||
1009 | case 1 : | ||
1010 | // InternalCftLanguage.g:1678:13: '0' .. '9' | ||
1011 | { | ||
1012 | matchRange('0','9'); | ||
1013 | |||
1014 | } | ||
1015 | break; | ||
1016 | |||
1017 | default : | ||
1018 | if ( cnt11 >= 1 ) break loop11; | ||
1019 | EarlyExitException eee = | ||
1020 | new EarlyExitException(11, input); | ||
1021 | throw eee; | ||
1022 | } | ||
1023 | cnt11++; | ||
1024 | } while (true); | ||
1025 | |||
1026 | |||
1027 | } | ||
1028 | |||
1029 | state.type = _type; | ||
1030 | state.channel = _channel; | ||
1031 | } | ||
1032 | finally { | ||
1033 | } | ||
1034 | } | ||
1035 | // $ANTLR end "RULE_INT" | ||
1036 | |||
1037 | // $ANTLR start "RULE_STRING" | ||
1038 | public final void mRULE_STRING() throws RecognitionException { | ||
1039 | try { | ||
1040 | int _type = RULE_STRING; | ||
1041 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1042 | // InternalCftLanguage.g:1680:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) ) | ||
1043 | // InternalCftLanguage.g:1680:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) | ||
1044 | { | ||
1045 | // InternalCftLanguage.g:1680:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) | ||
1046 | int alt14=2; | ||
1047 | int LA14_0 = input.LA(1); | ||
1048 | |||
1049 | if ( (LA14_0=='\"') ) { | ||
1050 | alt14=1; | ||
1051 | } | ||
1052 | else if ( (LA14_0=='\'') ) { | ||
1053 | alt14=2; | ||
1054 | } | ||
1055 | else { | ||
1056 | NoViableAltException nvae = | ||
1057 | new NoViableAltException("", 14, 0, input); | ||
1058 | |||
1059 | throw nvae; | ||
1060 | } | ||
1061 | switch (alt14) { | ||
1062 | case 1 : | ||
1063 | // InternalCftLanguage.g:1680:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | ||
1064 | { | ||
1065 | match('\"'); | ||
1066 | // InternalCftLanguage.g:1680:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* | ||
1067 | loop12: | ||
1068 | do { | ||
1069 | int alt12=3; | ||
1070 | int LA12_0 = input.LA(1); | ||
1071 | |||
1072 | if ( (LA12_0=='\\') ) { | ||
1073 | alt12=1; | ||
1074 | } | ||
1075 | else if ( ((LA12_0>='\u0000' && LA12_0<='!')||(LA12_0>='#' && LA12_0<='[')||(LA12_0>=']' && LA12_0<='\uFFFF')) ) { | ||
1076 | alt12=2; | ||
1077 | } | ||
1078 | |||
1079 | |||
1080 | switch (alt12) { | ||
1081 | case 1 : | ||
1082 | // InternalCftLanguage.g:1680:21: '\\\\' . | ||
1083 | { | ||
1084 | match('\\'); | ||
1085 | matchAny(); | ||
1086 | |||
1087 | } | ||
1088 | break; | ||
1089 | case 2 : | ||
1090 | // InternalCftLanguage.g:1680:28: ~ ( ( '\\\\' | '\"' ) ) | ||
1091 | { | ||
1092 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { | ||
1093 | input.consume(); | ||
1094 | |||
1095 | } | ||
1096 | else { | ||
1097 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1098 | recover(mse); | ||
1099 | throw mse;} | ||
1100 | |||
1101 | |||
1102 | } | ||
1103 | break; | ||
1104 | |||
1105 | default : | ||
1106 | break loop12; | ||
1107 | } | ||
1108 | } while (true); | ||
1109 | |||
1110 | match('\"'); | ||
1111 | |||
1112 | } | ||
1113 | break; | ||
1114 | case 2 : | ||
1115 | // InternalCftLanguage.g:1680:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' | ||
1116 | { | ||
1117 | match('\''); | ||
1118 | // InternalCftLanguage.g:1680:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* | ||
1119 | loop13: | ||
1120 | do { | ||
1121 | int alt13=3; | ||
1122 | int LA13_0 = input.LA(1); | ||
1123 | |||
1124 | if ( (LA13_0=='\\') ) { | ||
1125 | alt13=1; | ||
1126 | } | ||
1127 | else if ( ((LA13_0>='\u0000' && LA13_0<='&')||(LA13_0>='(' && LA13_0<='[')||(LA13_0>=']' && LA13_0<='\uFFFF')) ) { | ||
1128 | alt13=2; | ||
1129 | } | ||
1130 | |||
1131 | |||
1132 | switch (alt13) { | ||
1133 | case 1 : | ||
1134 | // InternalCftLanguage.g:1680:54: '\\\\' . | ||
1135 | { | ||
1136 | match('\\'); | ||
1137 | matchAny(); | ||
1138 | |||
1139 | } | ||
1140 | break; | ||
1141 | case 2 : | ||
1142 | // InternalCftLanguage.g:1680:61: ~ ( ( '\\\\' | '\\'' ) ) | ||
1143 | { | ||
1144 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { | ||
1145 | input.consume(); | ||
1146 | |||
1147 | } | ||
1148 | else { | ||
1149 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1150 | recover(mse); | ||
1151 | throw mse;} | ||
1152 | |||
1153 | |||
1154 | } | ||
1155 | break; | ||
1156 | |||
1157 | default : | ||
1158 | break loop13; | ||
1159 | } | ||
1160 | } while (true); | ||
1161 | |||
1162 | match('\''); | ||
1163 | |||
1164 | } | ||
1165 | break; | ||
1166 | |||
1167 | } | ||
1168 | |||
1169 | |||
1170 | } | ||
1171 | |||
1172 | state.type = _type; | ||
1173 | state.channel = _channel; | ||
1174 | } | ||
1175 | finally { | ||
1176 | } | ||
1177 | } | ||
1178 | // $ANTLR end "RULE_STRING" | ||
1179 | |||
1180 | // $ANTLR start "RULE_ML_COMMENT" | ||
1181 | public final void mRULE_ML_COMMENT() throws RecognitionException { | ||
1182 | try { | ||
1183 | int _type = RULE_ML_COMMENT; | ||
1184 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1185 | // InternalCftLanguage.g:1682:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) | ||
1186 | // InternalCftLanguage.g:1682:19: '/*' ( options {greedy=false; } : . )* '*/' | ||
1187 | { | ||
1188 | match("/*"); | ||
1189 | |||
1190 | // InternalCftLanguage.g:1682:24: ( options {greedy=false; } : . )* | ||
1191 | loop15: | ||
1192 | do { | ||
1193 | int alt15=2; | ||
1194 | int LA15_0 = input.LA(1); | ||
1195 | |||
1196 | if ( (LA15_0=='*') ) { | ||
1197 | int LA15_1 = input.LA(2); | ||
1198 | |||
1199 | if ( (LA15_1=='/') ) { | ||
1200 | alt15=2; | ||
1201 | } | ||
1202 | else if ( ((LA15_1>='\u0000' && LA15_1<='.')||(LA15_1>='0' && LA15_1<='\uFFFF')) ) { | ||
1203 | alt15=1; | ||
1204 | } | ||
1205 | |||
1206 | |||
1207 | } | ||
1208 | else if ( ((LA15_0>='\u0000' && LA15_0<=')')||(LA15_0>='+' && LA15_0<='\uFFFF')) ) { | ||
1209 | alt15=1; | ||
1210 | } | ||
1211 | |||
1212 | |||
1213 | switch (alt15) { | ||
1214 | case 1 : | ||
1215 | // InternalCftLanguage.g:1682:52: . | ||
1216 | { | ||
1217 | matchAny(); | ||
1218 | |||
1219 | } | ||
1220 | break; | ||
1221 | |||
1222 | default : | ||
1223 | break loop15; | ||
1224 | } | ||
1225 | } while (true); | ||
1226 | |||
1227 | match("*/"); | ||
1228 | |||
1229 | |||
1230 | } | ||
1231 | |||
1232 | state.type = _type; | ||
1233 | state.channel = _channel; | ||
1234 | } | ||
1235 | finally { | ||
1236 | } | ||
1237 | } | ||
1238 | // $ANTLR end "RULE_ML_COMMENT" | ||
1239 | |||
1240 | // $ANTLR start "RULE_SL_COMMENT" | ||
1241 | public final void mRULE_SL_COMMENT() throws RecognitionException { | ||
1242 | try { | ||
1243 | int _type = RULE_SL_COMMENT; | ||
1244 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1245 | // InternalCftLanguage.g:1684:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) | ||
1246 | // InternalCftLanguage.g:1684:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? | ||
1247 | { | ||
1248 | match("//"); | ||
1249 | |||
1250 | // InternalCftLanguage.g:1684:24: (~ ( ( '\\n' | '\\r' ) ) )* | ||
1251 | loop16: | ||
1252 | do { | ||
1253 | int alt16=2; | ||
1254 | int LA16_0 = input.LA(1); | ||
1255 | |||
1256 | if ( ((LA16_0>='\u0000' && LA16_0<='\t')||(LA16_0>='\u000B' && LA16_0<='\f')||(LA16_0>='\u000E' && LA16_0<='\uFFFF')) ) { | ||
1257 | alt16=1; | ||
1258 | } | ||
1259 | |||
1260 | |||
1261 | switch (alt16) { | ||
1262 | case 1 : | ||
1263 | // InternalCftLanguage.g:1684:24: ~ ( ( '\\n' | '\\r' ) ) | ||
1264 | { | ||
1265 | 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') ) { | ||
1266 | input.consume(); | ||
1267 | |||
1268 | } | ||
1269 | else { | ||
1270 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1271 | recover(mse); | ||
1272 | throw mse;} | ||
1273 | |||
1274 | |||
1275 | } | ||
1276 | break; | ||
1277 | |||
1278 | default : | ||
1279 | break loop16; | ||
1280 | } | ||
1281 | } while (true); | ||
1282 | |||
1283 | // InternalCftLanguage.g:1684:40: ( ( '\\r' )? '\\n' )? | ||
1284 | int alt18=2; | ||
1285 | int LA18_0 = input.LA(1); | ||
1286 | |||
1287 | if ( (LA18_0=='\n'||LA18_0=='\r') ) { | ||
1288 | alt18=1; | ||
1289 | } | ||
1290 | switch (alt18) { | ||
1291 | case 1 : | ||
1292 | // InternalCftLanguage.g:1684:41: ( '\\r' )? '\\n' | ||
1293 | { | ||
1294 | // InternalCftLanguage.g:1684:41: ( '\\r' )? | ||
1295 | int alt17=2; | ||
1296 | int LA17_0 = input.LA(1); | ||
1297 | |||
1298 | if ( (LA17_0=='\r') ) { | ||
1299 | alt17=1; | ||
1300 | } | ||
1301 | switch (alt17) { | ||
1302 | case 1 : | ||
1303 | // InternalCftLanguage.g:1684:41: '\\r' | ||
1304 | { | ||
1305 | match('\r'); | ||
1306 | |||
1307 | } | ||
1308 | break; | ||
1309 | |||
1310 | } | ||
1311 | |||
1312 | match('\n'); | ||
1313 | |||
1314 | } | ||
1315 | break; | ||
1316 | |||
1317 | } | ||
1318 | |||
1319 | |||
1320 | } | ||
1321 | |||
1322 | state.type = _type; | ||
1323 | state.channel = _channel; | ||
1324 | } | ||
1325 | finally { | ||
1326 | } | ||
1327 | } | ||
1328 | // $ANTLR end "RULE_SL_COMMENT" | ||
1329 | |||
1330 | // $ANTLR start "RULE_WS" | ||
1331 | public final void mRULE_WS() throws RecognitionException { | ||
1332 | try { | ||
1333 | int _type = RULE_WS; | ||
1334 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1335 | // InternalCftLanguage.g:1686:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) | ||
1336 | // InternalCftLanguage.g:1686:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ | ||
1337 | { | ||
1338 | // InternalCftLanguage.g:1686:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ | ||
1339 | int cnt19=0; | ||
1340 | loop19: | ||
1341 | do { | ||
1342 | int alt19=2; | ||
1343 | int LA19_0 = input.LA(1); | ||
1344 | |||
1345 | if ( ((LA19_0>='\t' && LA19_0<='\n')||LA19_0=='\r'||LA19_0==' ') ) { | ||
1346 | alt19=1; | ||
1347 | } | ||
1348 | |||
1349 | |||
1350 | switch (alt19) { | ||
1351 | case 1 : | ||
1352 | // InternalCftLanguage.g: | ||
1353 | { | ||
1354 | if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) { | ||
1355 | input.consume(); | ||
1356 | |||
1357 | } | ||
1358 | else { | ||
1359 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1360 | recover(mse); | ||
1361 | throw mse;} | ||
1362 | |||
1363 | |||
1364 | } | ||
1365 | break; | ||
1366 | |||
1367 | default : | ||
1368 | if ( cnt19 >= 1 ) break loop19; | ||
1369 | EarlyExitException eee = | ||
1370 | new EarlyExitException(19, input); | ||
1371 | throw eee; | ||
1372 | } | ||
1373 | cnt19++; | ||
1374 | } while (true); | ||
1375 | |||
1376 | |||
1377 | } | ||
1378 | |||
1379 | state.type = _type; | ||
1380 | state.channel = _channel; | ||
1381 | } | ||
1382 | finally { | ||
1383 | } | ||
1384 | } | ||
1385 | // $ANTLR end "RULE_WS" | ||
1386 | |||
1387 | // $ANTLR start "RULE_ANY_OTHER" | ||
1388 | public final void mRULE_ANY_OTHER() throws RecognitionException { | ||
1389 | try { | ||
1390 | int _type = RULE_ANY_OTHER; | ||
1391 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1392 | // InternalCftLanguage.g:1688:16: ( . ) | ||
1393 | // InternalCftLanguage.g:1688:18: . | ||
1394 | { | ||
1395 | matchAny(); | ||
1396 | |||
1397 | } | ||
1398 | |||
1399 | state.type = _type; | ||
1400 | state.channel = _channel; | ||
1401 | } | ||
1402 | finally { | ||
1403 | } | ||
1404 | } | ||
1405 | // $ANTLR end "RULE_ANY_OTHER" | ||
1406 | |||
1407 | public void mTokens() throws RecognitionException { | ||
1408 | // InternalCftLanguage.g:1:8: ( T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | RULE_OF_INT | RULE_T_DOUBLE | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER ) | ||
1409 | int alt20=37; | ||
1410 | alt20 = dfa20.predict(input); | ||
1411 | switch (alt20) { | ||
1412 | case 1 : | ||
1413 | // InternalCftLanguage.g:1:10: T__13 | ||
1414 | { | ||
1415 | mT__13(); | ||
1416 | |||
1417 | } | ||
1418 | break; | ||
1419 | case 2 : | ||
1420 | // InternalCftLanguage.g:1:16: T__14 | ||
1421 | { | ||
1422 | mT__14(); | ||
1423 | |||
1424 | } | ||
1425 | break; | ||
1426 | case 3 : | ||
1427 | // InternalCftLanguage.g:1:22: T__15 | ||
1428 | { | ||
1429 | mT__15(); | ||
1430 | |||
1431 | } | ||
1432 | break; | ||
1433 | case 4 : | ||
1434 | // InternalCftLanguage.g:1:28: T__16 | ||
1435 | { | ||
1436 | mT__16(); | ||
1437 | |||
1438 | } | ||
1439 | break; | ||
1440 | case 5 : | ||
1441 | // InternalCftLanguage.g:1:34: T__17 | ||
1442 | { | ||
1443 | mT__17(); | ||
1444 | |||
1445 | } | ||
1446 | break; | ||
1447 | case 6 : | ||
1448 | // InternalCftLanguage.g:1:40: T__18 | ||
1449 | { | ||
1450 | mT__18(); | ||
1451 | |||
1452 | } | ||
1453 | break; | ||
1454 | case 7 : | ||
1455 | // InternalCftLanguage.g:1:46: T__19 | ||
1456 | { | ||
1457 | mT__19(); | ||
1458 | |||
1459 | } | ||
1460 | break; | ||
1461 | case 8 : | ||
1462 | // InternalCftLanguage.g:1:52: T__20 | ||
1463 | { | ||
1464 | mT__20(); | ||
1465 | |||
1466 | } | ||
1467 | break; | ||
1468 | case 9 : | ||
1469 | // InternalCftLanguage.g:1:58: T__21 | ||
1470 | { | ||
1471 | mT__21(); | ||
1472 | |||
1473 | } | ||
1474 | break; | ||
1475 | case 10 : | ||
1476 | // InternalCftLanguage.g:1:64: T__22 | ||
1477 | { | ||
1478 | mT__22(); | ||
1479 | |||
1480 | } | ||
1481 | break; | ||
1482 | case 11 : | ||
1483 | // InternalCftLanguage.g:1:70: T__23 | ||
1484 | { | ||
1485 | mT__23(); | ||
1486 | |||
1487 | } | ||
1488 | break; | ||
1489 | case 12 : | ||
1490 | // InternalCftLanguage.g:1:76: T__24 | ||
1491 | { | ||
1492 | mT__24(); | ||
1493 | |||
1494 | } | ||
1495 | break; | ||
1496 | case 13 : | ||
1497 | // InternalCftLanguage.g:1:82: T__25 | ||
1498 | { | ||
1499 | mT__25(); | ||
1500 | |||
1501 | } | ||
1502 | break; | ||
1503 | case 14 : | ||
1504 | // InternalCftLanguage.g:1:88: T__26 | ||
1505 | { | ||
1506 | mT__26(); | ||
1507 | |||
1508 | } | ||
1509 | break; | ||
1510 | case 15 : | ||
1511 | // InternalCftLanguage.g:1:94: T__27 | ||
1512 | { | ||
1513 | mT__27(); | ||
1514 | |||
1515 | } | ||
1516 | break; | ||
1517 | case 16 : | ||
1518 | // InternalCftLanguage.g:1:100: T__28 | ||
1519 | { | ||
1520 | mT__28(); | ||
1521 | |||
1522 | } | ||
1523 | break; | ||
1524 | case 17 : | ||
1525 | // InternalCftLanguage.g:1:106: T__29 | ||
1526 | { | ||
1527 | mT__29(); | ||
1528 | |||
1529 | } | ||
1530 | break; | ||
1531 | case 18 : | ||
1532 | // InternalCftLanguage.g:1:112: T__30 | ||
1533 | { | ||
1534 | mT__30(); | ||
1535 | |||
1536 | } | ||
1537 | break; | ||
1538 | case 19 : | ||
1539 | // InternalCftLanguage.g:1:118: T__31 | ||
1540 | { | ||
1541 | mT__31(); | ||
1542 | |||
1543 | } | ||
1544 | break; | ||
1545 | case 20 : | ||
1546 | // InternalCftLanguage.g:1:124: T__32 | ||
1547 | { | ||
1548 | mT__32(); | ||
1549 | |||
1550 | } | ||
1551 | break; | ||
1552 | case 21 : | ||
1553 | // InternalCftLanguage.g:1:130: T__33 | ||
1554 | { | ||
1555 | mT__33(); | ||
1556 | |||
1557 | } | ||
1558 | break; | ||
1559 | case 22 : | ||
1560 | // InternalCftLanguage.g:1:136: T__34 | ||
1561 | { | ||
1562 | mT__34(); | ||
1563 | |||
1564 | } | ||
1565 | break; | ||
1566 | case 23 : | ||
1567 | // InternalCftLanguage.g:1:142: T__35 | ||
1568 | { | ||
1569 | mT__35(); | ||
1570 | |||
1571 | } | ||
1572 | break; | ||
1573 | case 24 : | ||
1574 | // InternalCftLanguage.g:1:148: T__36 | ||
1575 | { | ||
1576 | mT__36(); | ||
1577 | |||
1578 | } | ||
1579 | break; | ||
1580 | case 25 : | ||
1581 | // InternalCftLanguage.g:1:154: T__37 | ||
1582 | { | ||
1583 | mT__37(); | ||
1584 | |||
1585 | } | ||
1586 | break; | ||
1587 | case 26 : | ||
1588 | // InternalCftLanguage.g:1:160: T__38 | ||
1589 | { | ||
1590 | mT__38(); | ||
1591 | |||
1592 | } | ||
1593 | break; | ||
1594 | case 27 : | ||
1595 | // InternalCftLanguage.g:1:166: T__39 | ||
1596 | { | ||
1597 | mT__39(); | ||
1598 | |||
1599 | } | ||
1600 | break; | ||
1601 | case 28 : | ||
1602 | // InternalCftLanguage.g:1:172: T__40 | ||
1603 | { | ||
1604 | mT__40(); | ||
1605 | |||
1606 | } | ||
1607 | break; | ||
1608 | case 29 : | ||
1609 | // InternalCftLanguage.g:1:178: RULE_OF_INT | ||
1610 | { | ||
1611 | mRULE_OF_INT(); | ||
1612 | |||
1613 | } | ||
1614 | break; | ||
1615 | case 30 : | ||
1616 | // InternalCftLanguage.g:1:190: RULE_T_DOUBLE | ||
1617 | { | ||
1618 | mRULE_T_DOUBLE(); | ||
1619 | |||
1620 | } | ||
1621 | break; | ||
1622 | case 31 : | ||
1623 | // InternalCftLanguage.g:1:204: RULE_ID | ||
1624 | { | ||
1625 | mRULE_ID(); | ||
1626 | |||
1627 | } | ||
1628 | break; | ||
1629 | case 32 : | ||
1630 | // InternalCftLanguage.g:1:212: RULE_INT | ||
1631 | { | ||
1632 | mRULE_INT(); | ||
1633 | |||
1634 | } | ||
1635 | break; | ||
1636 | case 33 : | ||
1637 | // InternalCftLanguage.g:1:221: RULE_STRING | ||
1638 | { | ||
1639 | mRULE_STRING(); | ||
1640 | |||
1641 | } | ||
1642 | break; | ||
1643 | case 34 : | ||
1644 | // InternalCftLanguage.g:1:233: RULE_ML_COMMENT | ||
1645 | { | ||
1646 | mRULE_ML_COMMENT(); | ||
1647 | |||
1648 | } | ||
1649 | break; | ||
1650 | case 35 : | ||
1651 | // InternalCftLanguage.g:1:249: RULE_SL_COMMENT | ||
1652 | { | ||
1653 | mRULE_SL_COMMENT(); | ||
1654 | |||
1655 | } | ||
1656 | break; | ||
1657 | case 36 : | ||
1658 | // InternalCftLanguage.g:1:265: RULE_WS | ||
1659 | { | ||
1660 | mRULE_WS(); | ||
1661 | |||
1662 | } | ||
1663 | break; | ||
1664 | case 37 : | ||
1665 | // InternalCftLanguage.g:1:273: RULE_ANY_OTHER | ||
1666 | { | ||
1667 | mRULE_ANY_OTHER(); | ||
1668 | |||
1669 | } | ||
1670 | break; | ||
1671 | |||
1672 | } | ||
1673 | |||
1674 | } | ||
1675 | |||
1676 | |||
1677 | protected DFA8 dfa8 = new DFA8(this); | ||
1678 | protected DFA20 dfa20 = new DFA20(this); | ||
1679 | static final String DFA8_eotS = | ||
1680 | "\3\uffff\1\4\1\uffff"; | ||
1681 | static final String DFA8_eofS = | ||
1682 | "\5\uffff"; | ||
1683 | static final String DFA8_minS = | ||
1684 | "\1\56\1\60\1\uffff\1\60\1\uffff"; | ||
1685 | static final String DFA8_maxS = | ||
1686 | "\1\145\1\71\1\uffff\1\145\1\uffff"; | ||
1687 | static final String DFA8_acceptS = | ||
1688 | "\2\uffff\1\2\1\uffff\1\1"; | ||
1689 | static final String DFA8_specialS = | ||
1690 | "\5\uffff}>"; | ||
1691 | static final String[] DFA8_transitionS = { | ||
1692 | "\1\1\26\uffff\1\2\37\uffff\1\2", | ||
1693 | "\12\3", | ||
1694 | "", | ||
1695 | "\12\3\13\uffff\1\2\37\uffff\1\2", | ||
1696 | "" | ||
1697 | }; | ||
1698 | |||
1699 | static final short[] DFA8_eot = DFA.unpackEncodedString(DFA8_eotS); | ||
1700 | static final short[] DFA8_eof = DFA.unpackEncodedString(DFA8_eofS); | ||
1701 | static final char[] DFA8_min = DFA.unpackEncodedStringToUnsignedChars(DFA8_minS); | ||
1702 | static final char[] DFA8_max = DFA.unpackEncodedStringToUnsignedChars(DFA8_maxS); | ||
1703 | static final short[] DFA8_accept = DFA.unpackEncodedString(DFA8_acceptS); | ||
1704 | static final short[] DFA8_special = DFA.unpackEncodedString(DFA8_specialS); | ||
1705 | static final short[][] DFA8_transition; | ||
1706 | |||
1707 | static { | ||
1708 | int numStates = DFA8_transitionS.length; | ||
1709 | DFA8_transition = new short[numStates][]; | ||
1710 | for (int i=0; i<numStates; i++) { | ||
1711 | DFA8_transition[i] = DFA.unpackEncodedString(DFA8_transitionS[i]); | ||
1712 | } | ||
1713 | } | ||
1714 | |||
1715 | class DFA8 extends DFA { | ||
1716 | |||
1717 | public DFA8(BaseRecognizer recognizer) { | ||
1718 | this.recognizer = recognizer; | ||
1719 | this.decisionNumber = 8; | ||
1720 | this.eot = DFA8_eot; | ||
1721 | this.eof = DFA8_eof; | ||
1722 | this.min = DFA8_min; | ||
1723 | this.max = DFA8_max; | ||
1724 | this.accept = DFA8_accept; | ||
1725 | this.special = DFA8_special; | ||
1726 | this.transition = DFA8_transition; | ||
1727 | } | ||
1728 | public String getDescription() { | ||
1729 | return "1674:29: ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ )"; | ||
1730 | } | ||
1731 | } | ||
1732 | static final String DFA20_eotS = | ||
1733 | "\1\uffff\1\37\1\uffff\2\37\1\uffff\1\37\1\uffff\1\34\1\53\4\37\3\uffff\2\34\2\uffff\1\74\1\34\1\uffff\3\34\2\uffff\2\37\2\uffff\1\37\1\104\1\37\1\uffff\1\37\1\107\1\110\4\uffff\3\37\1\115\3\37\10\uffff\1\74\5\uffff\3\37\1\uffff\1\124\1\125\2\uffff\1\126\2\37\1\131\1\uffff\4\37\1\136\1\37\3\uffff\2\37\1\uffff\4\37\1\uffff\7\37\1\155\1\156\1\157\3\37\1\163\3\uffff\2\37\1\166\1\uffff\1\37\1\170\1\uffff\1\37\1\uffff\4\37\1\176\1\uffff"; | ||
1734 | static final String DFA20_eofS = | ||
1735 | "\177\uffff"; | ||
1736 | static final String DFA20_minS = | ||
1737 | "\1\0\1\141\1\uffff\1\155\1\146\1\uffff\1\146\1\uffff\1\135\1\76\1\141\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\1\157\2\uffff\1\160\1\60\1\164\1\uffff\1\164\2\60\4\uffff\1\155\1\157\1\144\1\60\1\141\2\160\10\uffff\1\56\5\uffff\1\153\1\142\1\157\1\uffff\2\60\2\uffff\1\60\1\142\1\153\1\60\1\uffff\1\156\1\154\1\160\1\141\1\60\1\162\3\uffff\1\144\1\165\1\uffff\1\163\1\145\1\151\1\147\1\uffff\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"; | ||
1738 | static final String DFA20_maxS = | ||
1739 | "\1\uffff\1\162\1\uffff\1\156\1\146\1\uffff\1\165\1\uffff\1\135\1\76\1\157\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\1\157\2\uffff\1\160\1\172\1\164\1\uffff\1\164\2\172\4\uffff\1\155\1\157\1\144\1\172\1\141\2\160\10\uffff\1\145\5\uffff\1\153\1\142\1\157\1\uffff\2\172\2\uffff\1\172\1\142\1\153\1\172\1\uffff\1\156\1\154\1\160\1\141\1\172\1\162\3\uffff\1\144\1\165\1\uffff\1\163\1\145\1\151\1\147\1\uffff\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"; | ||
1740 | static final String DFA20_acceptS = | ||
1741 | "\2\uffff\1\2\2\uffff\1\5\1\uffff\1\10\6\uffff\1\23\1\24\1\25\2\uffff\1\32\1\34\2\uffff\1\37\3\uffff\1\44\1\45\2\uffff\1\37\1\2\3\uffff\1\5\3\uffff\1\10\1\11\1\33\1\13\7\uffff\1\23\1\24\1\25\1\30\1\31\1\32\1\34\1\36\1\uffff\1\40\1\41\1\42\1\43\1\44\3\uffff\1\6\2\uffff\1\16\1\17\4\uffff\1\27\6\uffff\1\4\1\7\1\35\2\uffff\1\15\4\uffff\1\12\16\uffff\1\3\1\14\1\26\3\uffff\1\1\2\uffff\1\22\1\uffff\1\21\5\uffff\1\20"; | ||
1742 | static final String DFA20_specialS = | ||
1743 | "\1\1\27\uffff\1\2\1\0\145\uffff}>"; | ||
1744 | static final String[] DFA20_transitionS = { | ||
1745 | "\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\11\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\12\1\15\1\27\1\6\1\1\3\27\1\14\6\27\1\5\1\34\1\7\uff82\34", | ||
1746 | "\1\35\20\uffff\1\36", | ||
1747 | "", | ||
1748 | "\1\41\1\42", | ||
1749 | "\1\43", | ||
1750 | "", | ||
1751 | "\1\47\13\uffff\1\46\2\uffff\1\45", | ||
1752 | "", | ||
1753 | "\1\51", | ||
1754 | "\1\52", | ||
1755 | "\1\54\15\uffff\1\55", | ||
1756 | "\1\56\4\uffff\1\57", | ||
1757 | "\1\61\2\uffff\1\60", | ||
1758 | "\1\62", | ||
1759 | "", | ||
1760 | "", | ||
1761 | "", | ||
1762 | "\1\66", | ||
1763 | "\1\67", | ||
1764 | "", | ||
1765 | "", | ||
1766 | "\1\72\1\uffff\12\73\13\uffff\1\72\37\uffff\1\72", | ||
1767 | "\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1768 | "", | ||
1769 | "\0\75", | ||
1770 | "\0\75", | ||
1771 | "\1\76\4\uffff\1\77", | ||
1772 | "", | ||
1773 | "", | ||
1774 | "\1\101", | ||
1775 | "\1\102", | ||
1776 | "", | ||
1777 | "", | ||
1778 | "\1\103", | ||
1779 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1780 | "\1\105", | ||
1781 | "", | ||
1782 | "\1\106", | ||
1783 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1784 | "\12\111\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1785 | "", | ||
1786 | "", | ||
1787 | "", | ||
1788 | "", | ||
1789 | "\1\112", | ||
1790 | "\1\113", | ||
1791 | "\1\114", | ||
1792 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1793 | "\1\116", | ||
1794 | "\1\117", | ||
1795 | "\1\120", | ||
1796 | "", | ||
1797 | "", | ||
1798 | "", | ||
1799 | "", | ||
1800 | "", | ||
1801 | "", | ||
1802 | "", | ||
1803 | "", | ||
1804 | "\1\72\1\uffff\12\73\13\uffff\1\72\37\uffff\1\72", | ||
1805 | "", | ||
1806 | "", | ||
1807 | "", | ||
1808 | "", | ||
1809 | "", | ||
1810 | "\1\121", | ||
1811 | "\1\122", | ||
1812 | "\1\123", | ||
1813 | "", | ||
1814 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1815 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1816 | "", | ||
1817 | "", | ||
1818 | "\12\111\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1819 | "\1\127", | ||
1820 | "\1\130", | ||
1821 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1822 | "", | ||
1823 | "\1\132", | ||
1824 | "\1\133", | ||
1825 | "\1\134", | ||
1826 | "\1\135", | ||
1827 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1828 | "\1\137", | ||
1829 | "", | ||
1830 | "", | ||
1831 | "", | ||
1832 | "\1\140", | ||
1833 | "\1\141", | ||
1834 | "", | ||
1835 | "\1\142", | ||
1836 | "\1\143", | ||
1837 | "\1\144", | ||
1838 | "\1\145", | ||
1839 | "", | ||
1840 | "\1\146", | ||
1841 | "\1\147", | ||
1842 | "\1\150", | ||
1843 | "\1\151", | ||
1844 | "\1\152", | ||
1845 | "\1\153", | ||
1846 | "\1\154", | ||
1847 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1848 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1849 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1850 | "\1\160", | ||
1851 | "\1\161", | ||
1852 | "\1\162", | ||
1853 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1854 | "", | ||
1855 | "", | ||
1856 | "", | ||
1857 | "\1\164", | ||
1858 | "\1\165", | ||
1859 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1860 | "", | ||
1861 | "\1\167", | ||
1862 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1863 | "", | ||
1864 | "\1\171", | ||
1865 | "", | ||
1866 | "\1\172", | ||
1867 | "\1\173", | ||
1868 | "\1\174", | ||
1869 | "\1\175", | ||
1870 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1871 | "" | ||
1872 | }; | ||
1873 | |||
1874 | static final short[] DFA20_eot = DFA.unpackEncodedString(DFA20_eotS); | ||
1875 | static final short[] DFA20_eof = DFA.unpackEncodedString(DFA20_eofS); | ||
1876 | static final char[] DFA20_min = DFA.unpackEncodedStringToUnsignedChars(DFA20_minS); | ||
1877 | static final char[] DFA20_max = DFA.unpackEncodedStringToUnsignedChars(DFA20_maxS); | ||
1878 | static final short[] DFA20_accept = DFA.unpackEncodedString(DFA20_acceptS); | ||
1879 | static final short[] DFA20_special = DFA.unpackEncodedString(DFA20_specialS); | ||
1880 | static final short[][] DFA20_transition; | ||
1881 | |||
1882 | static { | ||
1883 | int numStates = DFA20_transitionS.length; | ||
1884 | DFA20_transition = new short[numStates][]; | ||
1885 | for (int i=0; i<numStates; i++) { | ||
1886 | DFA20_transition[i] = DFA.unpackEncodedString(DFA20_transitionS[i]); | ||
1887 | } | ||
1888 | } | ||
1889 | |||
1890 | class DFA20 extends DFA { | ||
1891 | |||
1892 | public DFA20(BaseRecognizer recognizer) { | ||
1893 | this.recognizer = recognizer; | ||
1894 | this.decisionNumber = 20; | ||
1895 | this.eot = DFA20_eot; | ||
1896 | this.eof = DFA20_eof; | ||
1897 | this.min = DFA20_min; | ||
1898 | this.max = DFA20_max; | ||
1899 | this.accept = DFA20_accept; | ||
1900 | this.special = DFA20_special; | ||
1901 | this.transition = DFA20_transition; | ||
1902 | } | ||
1903 | public String getDescription() { | ||
1904 | return "1:1: Tokens : ( T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | RULE_OF_INT | RULE_T_DOUBLE | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER );"; | ||
1905 | } | ||
1906 | public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { | ||
1907 | IntStream input = _input; | ||
1908 | int _s = s; | ||
1909 | switch ( s ) { | ||
1910 | case 0 : | ||
1911 | int LA20_25 = input.LA(1); | ||
1912 | |||
1913 | s = -1; | ||
1914 | if ( ((LA20_25>='\u0000' && LA20_25<='\uFFFF')) ) {s = 61;} | ||
1915 | |||
1916 | else s = 28; | ||
1917 | |||
1918 | if ( s>=0 ) return s; | ||
1919 | break; | ||
1920 | case 1 : | ||
1921 | int LA20_0 = input.LA(1); | ||
1922 | |||
1923 | s = -1; | ||
1924 | if ( (LA20_0=='p') ) {s = 1;} | ||
1925 | |||
1926 | else if ( (LA20_0==';') ) {s = 2;} | ||
1927 | |||
1928 | else if ( (LA20_0=='i') ) {s = 3;} | ||
1929 | |||
1930 | else if ( (LA20_0=='c') ) {s = 4;} | ||
1931 | |||
1932 | else if ( (LA20_0=='{') ) {s = 5;} | ||
1933 | |||
1934 | else if ( (LA20_0=='o') ) {s = 6;} | ||
1935 | |||
1936 | else if ( (LA20_0=='}') ) {s = 7;} | ||
1937 | |||
1938 | else if ( (LA20_0=='[') ) {s = 8;} | ||
1939 | |||
1940 | else if ( (LA20_0=='=') ) {s = 9;} | ||
1941 | |||
1942 | else if ( (LA20_0=='l') ) {s = 10;} | ||
1943 | |||
1944 | else if ( (LA20_0=='a') ) {s = 11;} | ||
1945 | |||
1946 | else if ( (LA20_0=='t') ) {s = 12;} | ||
1947 | |||
1948 | else if ( (LA20_0=='m') ) {s = 13;} | ||
1949 | |||
1950 | else if ( (LA20_0=='(') ) {s = 14;} | ||
1951 | |||
1952 | else if ( (LA20_0==',') ) {s = 15;} | ||
1953 | |||
1954 | else if ( (LA20_0==')') ) {s = 16;} | ||
1955 | |||
1956 | else if ( (LA20_0=='+') ) {s = 17;} | ||
1957 | |||
1958 | else if ( (LA20_0==':') ) {s = 18;} | ||
1959 | |||
1960 | else if ( (LA20_0=='.') ) {s = 19;} | ||
1961 | |||
1962 | else if ( (LA20_0=='*') ) {s = 20;} | ||
1963 | |||
1964 | else if ( ((LA20_0>='0' && LA20_0<='9')) ) {s = 21;} | ||
1965 | |||
1966 | else if ( (LA20_0=='^') ) {s = 22;} | ||
1967 | |||
1968 | else if ( ((LA20_0>='A' && LA20_0<='Z')||LA20_0=='_'||LA20_0=='b'||(LA20_0>='d' && LA20_0<='h')||(LA20_0>='j' && LA20_0<='k')||LA20_0=='n'||(LA20_0>='q' && LA20_0<='s')||(LA20_0>='u' && LA20_0<='z')) ) {s = 23;} | ||
1969 | |||
1970 | else if ( (LA20_0=='\"') ) {s = 24;} | ||
1971 | |||
1972 | else if ( (LA20_0=='\'') ) {s = 25;} | ||
1973 | |||
1974 | else if ( (LA20_0=='/') ) {s = 26;} | ||
1975 | |||
1976 | else if ( ((LA20_0>='\t' && LA20_0<='\n')||LA20_0=='\r'||LA20_0==' ') ) {s = 27;} | ||
1977 | |||
1978 | else if ( ((LA20_0>='\u0000' && LA20_0<='\b')||(LA20_0>='\u000B' && LA20_0<='\f')||(LA20_0>='\u000E' && LA20_0<='\u001F')||LA20_0=='!'||(LA20_0>='#' && LA20_0<='&')||LA20_0=='-'||LA20_0=='<'||(LA20_0>='>' && LA20_0<='@')||(LA20_0>='\\' && LA20_0<=']')||LA20_0=='`'||LA20_0=='|'||(LA20_0>='~' && LA20_0<='\uFFFF')) ) {s = 28;} | ||
1979 | |||
1980 | if ( s>=0 ) return s; | ||
1981 | break; | ||
1982 | case 2 : | ||
1983 | int LA20_24 = input.LA(1); | ||
1984 | |||
1985 | s = -1; | ||
1986 | if ( ((LA20_24>='\u0000' && LA20_24<='\uFFFF')) ) {s = 61;} | ||
1987 | |||
1988 | else s = 28; | ||
1989 | |||
1990 | if ( s>=0 ) return s; | ||
1991 | break; | ||
1992 | } | ||
1993 | NoViableAltException nvae = | ||
1994 | new NoViableAltException(getDescription(), 20, _s, input); | ||
1995 | error(nvae); | ||
1996 | throw nvae; | ||
1997 | } | ||
1998 | } | ||
1999 | |||
2000 | |||
2001 | } \ 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 deleted file mode 100644 index 0da9c0f1..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java +++ /dev/null | |||
@@ -1,4509 +0,0 @@ | |||
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_INT", "RULE_OF_INT", "RULE_ID", "RULE_T_DOUBLE", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'package'", "';'", "'import'", "'cft'", "'{'", "'in'", "'out'", "'}'", "'[]'", "'prob'", "'='", "'lambda'", "'and'", "'or'", "'of'", "'transformation'", "'toplevel'", "'mapping'", "'('", "','", "')'", "'lookup'", "'as'", "'+='", "':='", "'.'", "'=>'", "'*'" | ||
25 | }; | ||
26 | public static final int RULE_STRING=8; | ||
27 | public static final int RULE_SL_COMMENT=10; | ||
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__38=38; | ||
33 | public static final int T__17=17; | ||
34 | public static final int T__39=39; | ||
35 | public static final int T__18=18; | ||
36 | public static final int T__33=33; | ||
37 | public static final int T__34=34; | ||
38 | public static final int RULE_T_DOUBLE=7; | ||
39 | public static final int T__13=13; | ||
40 | public static final int T__35=35; | ||
41 | public static final int T__14=14; | ||
42 | public static final int T__36=36; | ||
43 | public static final int EOF=-1; | ||
44 | public static final int T__30=30; | ||
45 | public static final int T__31=31; | ||
46 | public static final int T__32=32; | ||
47 | public static final int RULE_OF_INT=5; | ||
48 | public static final int RULE_ID=6; | ||
49 | public static final int RULE_WS=11; | ||
50 | public static final int RULE_ANY_OTHER=12; | ||
51 | public static final int T__26=26; | ||
52 | public static final int T__27=27; | ||
53 | public static final int T__28=28; | ||
54 | public static final int RULE_INT=4; | ||
55 | public static final int T__29=29; | ||
56 | public static final int T__22=22; | ||
57 | public static final int RULE_ML_COMMENT=9; | ||
58 | public static final int T__23=23; | ||
59 | public static final int T__24=24; | ||
60 | public static final int T__25=25; | ||
61 | public static final int T__40=40; | ||
62 | public static final int T__20=20; | ||
63 | public static final int T__21=21; | ||
64 | |||
65 | // delegates | ||
66 | // delegators | ||
67 | |||
68 | |||
69 | public InternalCftLanguageParser(TokenStream input) { | ||
70 | this(input, new RecognizerSharedState()); | ||
71 | } | ||
72 | public InternalCftLanguageParser(TokenStream input, RecognizerSharedState state) { | ||
73 | super(input, state); | ||
74 | |||
75 | } | ||
76 | |||
77 | |||
78 | public String[] getTokenNames() { return InternalCftLanguageParser.tokenNames; } | ||
79 | public String getGrammarFileName() { return "InternalCftLanguage.g"; } | ||
80 | |||
81 | |||
82 | |||
83 | private CftLanguageGrammarAccess grammarAccess; | ||
84 | |||
85 | public InternalCftLanguageParser(TokenStream input, CftLanguageGrammarAccess grammarAccess) { | ||
86 | this(input); | ||
87 | this.grammarAccess = grammarAccess; | ||
88 | registerRules(grammarAccess.getGrammar()); | ||
89 | } | ||
90 | |||
91 | @Override | ||
92 | protected String getFirstRuleName() { | ||
93 | return "CftModel"; | ||
94 | } | ||
95 | |||
96 | @Override | ||
97 | protected CftLanguageGrammarAccess getGrammarAccess() { | ||
98 | return grammarAccess; | ||
99 | } | ||
100 | |||
101 | |||
102 | |||
103 | |||
104 | // $ANTLR start "entryRuleCftModel" | ||
105 | // InternalCftLanguage.g:64:1: entryRuleCftModel returns [EObject current=null] : iv_ruleCftModel= ruleCftModel EOF ; | ||
106 | public final EObject entryRuleCftModel() throws RecognitionException { | ||
107 | EObject current = null; | ||
108 | |||
109 | EObject iv_ruleCftModel = null; | ||
110 | |||
111 | |||
112 | try { | ||
113 | // InternalCftLanguage.g:64:49: (iv_ruleCftModel= ruleCftModel EOF ) | ||
114 | // InternalCftLanguage.g:65:2: iv_ruleCftModel= ruleCftModel EOF | ||
115 | { | ||
116 | newCompositeNode(grammarAccess.getCftModelRule()); | ||
117 | pushFollow(FOLLOW_1); | ||
118 | iv_ruleCftModel=ruleCftModel(); | ||
119 | |||
120 | state._fsp--; | ||
121 | |||
122 | current =iv_ruleCftModel; | ||
123 | match(input,EOF,FOLLOW_2); | ||
124 | |||
125 | } | ||
126 | |||
127 | } | ||
128 | |||
129 | catch (RecognitionException re) { | ||
130 | recover(input,re); | ||
131 | appendSkippedTokens(); | ||
132 | } | ||
133 | finally { | ||
134 | } | ||
135 | return current; | ||
136 | } | ||
137 | // $ANTLR end "entryRuleCftModel" | ||
138 | |||
139 | |||
140 | // $ANTLR start "ruleCftModel" | ||
141 | // 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 ) ) )* ) ; | ||
142 | public final EObject ruleCftModel() throws RecognitionException { | ||
143 | EObject current = null; | ||
144 | |||
145 | Token otherlv_0=null; | ||
146 | Token otherlv_2=null; | ||
147 | AntlrDatatypeRuleToken lv_packageName_1_0 = null; | ||
148 | |||
149 | EObject lv_imports_3_0 = null; | ||
150 | |||
151 | EObject lv_componentDefinitions_4_0 = null; | ||
152 | |||
153 | EObject lv_transformationDefinitions_5_0 = null; | ||
154 | |||
155 | |||
156 | |||
157 | enterRule(); | ||
158 | |||
159 | try { | ||
160 | // 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 ) ) )* ) ) | ||
161 | // 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 ) ) )* ) | ||
162 | { | ||
163 | // 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 ) ) )* ) | ||
164 | // 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 ) ) )* | ||
165 | { | ||
166 | otherlv_0=(Token)match(input,13,FOLLOW_3); | ||
167 | |||
168 | newLeafNode(otherlv_0, grammarAccess.getCftModelAccess().getPackageKeyword_0()); | ||
169 | |||
170 | // InternalCftLanguage.g:83:3: ( (lv_packageName_1_0= ruleQualifiedName ) ) | ||
171 | // InternalCftLanguage.g:84:4: (lv_packageName_1_0= ruleQualifiedName ) | ||
172 | { | ||
173 | // InternalCftLanguage.g:84:4: (lv_packageName_1_0= ruleQualifiedName ) | ||
174 | // InternalCftLanguage.g:85:5: lv_packageName_1_0= ruleQualifiedName | ||
175 | { | ||
176 | |||
177 | newCompositeNode(grammarAccess.getCftModelAccess().getPackageNameQualifiedNameParserRuleCall_1_0()); | ||
178 | |||
179 | pushFollow(FOLLOW_4); | ||
180 | lv_packageName_1_0=ruleQualifiedName(); | ||
181 | |||
182 | state._fsp--; | ||
183 | |||
184 | |||
185 | if (current==null) { | ||
186 | current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
187 | } | ||
188 | set( | ||
189 | current, | ||
190 | "packageName", | ||
191 | lv_packageName_1_0, | ||
192 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedName"); | ||
193 | afterParserOrEnumRuleCall(); | ||
194 | |||
195 | |||
196 | } | ||
197 | |||
198 | |||
199 | } | ||
200 | |||
201 | // InternalCftLanguage.g:102:3: (otherlv_2= ';' )? | ||
202 | int alt1=2; | ||
203 | int LA1_0 = input.LA(1); | ||
204 | |||
205 | if ( (LA1_0==14) ) { | ||
206 | alt1=1; | ||
207 | } | ||
208 | switch (alt1) { | ||
209 | case 1 : | ||
210 | // InternalCftLanguage.g:103:4: otherlv_2= ';' | ||
211 | { | ||
212 | otherlv_2=(Token)match(input,14,FOLLOW_5); | ||
213 | |||
214 | newLeafNode(otherlv_2, grammarAccess.getCftModelAccess().getSemicolonKeyword_2()); | ||
215 | |||
216 | |||
217 | } | ||
218 | break; | ||
219 | |||
220 | } | ||
221 | |||
222 | // InternalCftLanguage.g:108:3: ( (lv_imports_3_0= ruleImportDeclaration ) )* | ||
223 | loop2: | ||
224 | do { | ||
225 | int alt2=2; | ||
226 | int LA2_0 = input.LA(1); | ||
227 | |||
228 | if ( (LA2_0==15) ) { | ||
229 | alt2=1; | ||
230 | } | ||
231 | |||
232 | |||
233 | switch (alt2) { | ||
234 | case 1 : | ||
235 | // InternalCftLanguage.g:109:4: (lv_imports_3_0= ruleImportDeclaration ) | ||
236 | { | ||
237 | // InternalCftLanguage.g:109:4: (lv_imports_3_0= ruleImportDeclaration ) | ||
238 | // InternalCftLanguage.g:110:5: lv_imports_3_0= ruleImportDeclaration | ||
239 | { | ||
240 | |||
241 | newCompositeNode(grammarAccess.getCftModelAccess().getImportsImportDeclarationParserRuleCall_3_0()); | ||
242 | |||
243 | pushFollow(FOLLOW_5); | ||
244 | lv_imports_3_0=ruleImportDeclaration(); | ||
245 | |||
246 | state._fsp--; | ||
247 | |||
248 | |||
249 | if (current==null) { | ||
250 | current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
251 | } | ||
252 | add( | ||
253 | current, | ||
254 | "imports", | ||
255 | lv_imports_3_0, | ||
256 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ImportDeclaration"); | ||
257 | afterParserOrEnumRuleCall(); | ||
258 | |||
259 | |||
260 | } | ||
261 | |||
262 | |||
263 | } | ||
264 | break; | ||
265 | |||
266 | default : | ||
267 | break loop2; | ||
268 | } | ||
269 | } while (true); | ||
270 | |||
271 | // InternalCftLanguage.g:127:3: ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* | ||
272 | loop3: | ||
273 | do { | ||
274 | int alt3=3; | ||
275 | int LA3_0 = input.LA(1); | ||
276 | |||
277 | if ( (LA3_0==16) ) { | ||
278 | alt3=1; | ||
279 | } | ||
280 | else if ( (LA3_0==28) ) { | ||
281 | alt3=2; | ||
282 | } | ||
283 | |||
284 | |||
285 | switch (alt3) { | ||
286 | case 1 : | ||
287 | // InternalCftLanguage.g:128:4: ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ||
288 | { | ||
289 | // InternalCftLanguage.g:128:4: ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ||
290 | // InternalCftLanguage.g:129:5: (lv_componentDefinitions_4_0= ruleComponentDefinition ) | ||
291 | { | ||
292 | // InternalCftLanguage.g:129:5: (lv_componentDefinitions_4_0= ruleComponentDefinition ) | ||
293 | // InternalCftLanguage.g:130:6: lv_componentDefinitions_4_0= ruleComponentDefinition | ||
294 | { | ||
295 | |||
296 | newCompositeNode(grammarAccess.getCftModelAccess().getComponentDefinitionsComponentDefinitionParserRuleCall_4_0_0()); | ||
297 | |||
298 | pushFollow(FOLLOW_6); | ||
299 | lv_componentDefinitions_4_0=ruleComponentDefinition(); | ||
300 | |||
301 | state._fsp--; | ||
302 | |||
303 | |||
304 | if (current==null) { | ||
305 | current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
306 | } | ||
307 | add( | ||
308 | current, | ||
309 | "componentDefinitions", | ||
310 | lv_componentDefinitions_4_0, | ||
311 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentDefinition"); | ||
312 | afterParserOrEnumRuleCall(); | ||
313 | |||
314 | |||
315 | } | ||
316 | |||
317 | |||
318 | } | ||
319 | |||
320 | |||
321 | } | ||
322 | break; | ||
323 | case 2 : | ||
324 | // InternalCftLanguage.g:148:4: ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) | ||
325 | { | ||
326 | // InternalCftLanguage.g:148:4: ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) | ||
327 | // InternalCftLanguage.g:149:5: (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) | ||
328 | { | ||
329 | // InternalCftLanguage.g:149:5: (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) | ||
330 | // InternalCftLanguage.g:150:6: lv_transformationDefinitions_5_0= ruleTransformationDefinition | ||
331 | { | ||
332 | |||
333 | newCompositeNode(grammarAccess.getCftModelAccess().getTransformationDefinitionsTransformationDefinitionParserRuleCall_4_1_0()); | ||
334 | |||
335 | pushFollow(FOLLOW_6); | ||
336 | lv_transformationDefinitions_5_0=ruleTransformationDefinition(); | ||
337 | |||
338 | state._fsp--; | ||
339 | |||
340 | |||
341 | if (current==null) { | ||
342 | current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
343 | } | ||
344 | add( | ||
345 | current, | ||
346 | "transformationDefinitions", | ||
347 | lv_transformationDefinitions_5_0, | ||
348 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.TransformationDefinition"); | ||
349 | afterParserOrEnumRuleCall(); | ||
350 | |||
351 | |||
352 | } | ||
353 | |||
354 | |||
355 | } | ||
356 | |||
357 | |||
358 | } | ||
359 | break; | ||
360 | |||
361 | default : | ||
362 | break loop3; | ||
363 | } | ||
364 | } while (true); | ||
365 | |||
366 | |||
367 | } | ||
368 | |||
369 | |||
370 | } | ||
371 | |||
372 | |||
373 | leaveRule(); | ||
374 | |||
375 | } | ||
376 | |||
377 | catch (RecognitionException re) { | ||
378 | recover(input,re); | ||
379 | appendSkippedTokens(); | ||
380 | } | ||
381 | finally { | ||
382 | } | ||
383 | return current; | ||
384 | } | ||
385 | // $ANTLR end "ruleCftModel" | ||
386 | |||
387 | |||
388 | // $ANTLR start "entryRuleImportDeclaration" | ||
389 | // InternalCftLanguage.g:172:1: entryRuleImportDeclaration returns [EObject current=null] : iv_ruleImportDeclaration= ruleImportDeclaration EOF ; | ||
390 | public final EObject entryRuleImportDeclaration() throws RecognitionException { | ||
391 | EObject current = null; | ||
392 | |||
393 | EObject iv_ruleImportDeclaration = null; | ||
394 | |||
395 | |||
396 | try { | ||
397 | // InternalCftLanguage.g:172:58: (iv_ruleImportDeclaration= ruleImportDeclaration EOF ) | ||
398 | // InternalCftLanguage.g:173:2: iv_ruleImportDeclaration= ruleImportDeclaration EOF | ||
399 | { | ||
400 | newCompositeNode(grammarAccess.getImportDeclarationRule()); | ||
401 | pushFollow(FOLLOW_1); | ||
402 | iv_ruleImportDeclaration=ruleImportDeclaration(); | ||
403 | |||
404 | state._fsp--; | ||
405 | |||
406 | current =iv_ruleImportDeclaration; | ||
407 | match(input,EOF,FOLLOW_2); | ||
408 | |||
409 | } | ||
410 | |||
411 | } | ||
412 | |||
413 | catch (RecognitionException re) { | ||
414 | recover(input,re); | ||
415 | appendSkippedTokens(); | ||
416 | } | ||
417 | finally { | ||
418 | } | ||
419 | return current; | ||
420 | } | ||
421 | // $ANTLR end "entryRuleImportDeclaration" | ||
422 | |||
423 | |||
424 | // $ANTLR start "ruleImportDeclaration" | ||
425 | // InternalCftLanguage.g:179:1: ruleImportDeclaration returns [EObject current=null] : (otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? ) ; | ||
426 | public final EObject ruleImportDeclaration() throws RecognitionException { | ||
427 | EObject current = null; | ||
428 | |||
429 | Token otherlv_0=null; | ||
430 | Token otherlv_2=null; | ||
431 | AntlrDatatypeRuleToken lv_importedNamespace_1_0 = null; | ||
432 | |||
433 | |||
434 | |||
435 | enterRule(); | ||
436 | |||
437 | try { | ||
438 | // InternalCftLanguage.g:185:2: ( (otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? ) ) | ||
439 | // InternalCftLanguage.g:186:2: (otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? ) | ||
440 | { | ||
441 | // InternalCftLanguage.g:186:2: (otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? ) | ||
442 | // InternalCftLanguage.g:187:3: otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? | ||
443 | { | ||
444 | otherlv_0=(Token)match(input,15,FOLLOW_3); | ||
445 | |||
446 | newLeafNode(otherlv_0, grammarAccess.getImportDeclarationAccess().getImportKeyword_0()); | ||
447 | |||
448 | // InternalCftLanguage.g:191:3: ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) | ||
449 | // InternalCftLanguage.g:192:4: (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) | ||
450 | { | ||
451 | // InternalCftLanguage.g:192:4: (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) | ||
452 | // InternalCftLanguage.g:193:5: lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard | ||
453 | { | ||
454 | |||
455 | newCompositeNode(grammarAccess.getImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_0()); | ||
456 | |||
457 | pushFollow(FOLLOW_7); | ||
458 | lv_importedNamespace_1_0=ruleQualifiedNameWithWildcard(); | ||
459 | |||
460 | state._fsp--; | ||
461 | |||
462 | |||
463 | if (current==null) { | ||
464 | current = createModelElementForParent(grammarAccess.getImportDeclarationRule()); | ||
465 | } | ||
466 | set( | ||
467 | current, | ||
468 | "importedNamespace", | ||
469 | lv_importedNamespace_1_0, | ||
470 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedNameWithWildcard"); | ||
471 | afterParserOrEnumRuleCall(); | ||
472 | |||
473 | |||
474 | } | ||
475 | |||
476 | |||
477 | } | ||
478 | |||
479 | // InternalCftLanguage.g:210:3: (otherlv_2= ';' )? | ||
480 | int alt4=2; | ||
481 | int LA4_0 = input.LA(1); | ||
482 | |||
483 | if ( (LA4_0==14) ) { | ||
484 | alt4=1; | ||
485 | } | ||
486 | switch (alt4) { | ||
487 | case 1 : | ||
488 | // InternalCftLanguage.g:211:4: otherlv_2= ';' | ||
489 | { | ||
490 | otherlv_2=(Token)match(input,14,FOLLOW_2); | ||
491 | |||
492 | newLeafNode(otherlv_2, grammarAccess.getImportDeclarationAccess().getSemicolonKeyword_2()); | ||
493 | |||
494 | |||
495 | } | ||
496 | break; | ||
497 | |||
498 | } | ||
499 | |||
500 | |||
501 | } | ||
502 | |||
503 | |||
504 | } | ||
505 | |||
506 | |||
507 | leaveRule(); | ||
508 | |||
509 | } | ||
510 | |||
511 | catch (RecognitionException re) { | ||
512 | recover(input,re); | ||
513 | appendSkippedTokens(); | ||
514 | } | ||
515 | finally { | ||
516 | } | ||
517 | return current; | ||
518 | } | ||
519 | // $ANTLR end "ruleImportDeclaration" | ||
520 | |||
521 | |||
522 | // $ANTLR start "entryRuleComponentDefinition" | ||
523 | // InternalCftLanguage.g:220:1: entryRuleComponentDefinition returns [EObject current=null] : iv_ruleComponentDefinition= ruleComponentDefinition EOF ; | ||
524 | public final EObject entryRuleComponentDefinition() throws RecognitionException { | ||
525 | EObject current = null; | ||
526 | |||
527 | EObject iv_ruleComponentDefinition = null; | ||
528 | |||
529 | |||
530 | try { | ||
531 | // InternalCftLanguage.g:220:60: (iv_ruleComponentDefinition= ruleComponentDefinition EOF ) | ||
532 | // InternalCftLanguage.g:221:2: iv_ruleComponentDefinition= ruleComponentDefinition EOF | ||
533 | { | ||
534 | newCompositeNode(grammarAccess.getComponentDefinitionRule()); | ||
535 | pushFollow(FOLLOW_1); | ||
536 | iv_ruleComponentDefinition=ruleComponentDefinition(); | ||
537 | |||
538 | state._fsp--; | ||
539 | |||
540 | current =iv_ruleComponentDefinition; | ||
541 | match(input,EOF,FOLLOW_2); | ||
542 | |||
543 | } | ||
544 | |||
545 | } | ||
546 | |||
547 | catch (RecognitionException re) { | ||
548 | recover(input,re); | ||
549 | appendSkippedTokens(); | ||
550 | } | ||
551 | finally { | ||
552 | } | ||
553 | return current; | ||
554 | } | ||
555 | // $ANTLR end "entryRuleComponentDefinition" | ||
556 | |||
557 | |||
558 | // $ANTLR start "ruleComponentDefinition" | ||
559 | // InternalCftLanguage.g:227:1: ruleComponentDefinition returns [EObject current=null] : (otherlv_0= 'cft' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) ; | ||
560 | public final EObject ruleComponentDefinition() throws RecognitionException { | ||
561 | EObject current = null; | ||
562 | |||
563 | Token otherlv_0=null; | ||
564 | Token otherlv_2=null; | ||
565 | Token otherlv_4=null; | ||
566 | Token otherlv_6=null; | ||
567 | Token otherlv_7=null; | ||
568 | Token otherlv_9=null; | ||
569 | Token otherlv_11=null; | ||
570 | Token otherlv_12=null; | ||
571 | AntlrDatatypeRuleToken lv_name_1_0 = null; | ||
572 | |||
573 | EObject lv_inputEvents_5_0 = null; | ||
574 | |||
575 | EObject lv_eventDefinitions_10_0 = null; | ||
576 | |||
577 | |||
578 | |||
579 | enterRule(); | ||
580 | |||
581 | try { | ||
582 | // InternalCftLanguage.g:233:2: ( (otherlv_0= 'cft' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) ) | ||
583 | // InternalCftLanguage.g:234:2: (otherlv_0= 'cft' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) | ||
584 | { | ||
585 | // InternalCftLanguage.g:234:2: (otherlv_0= 'cft' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) | ||
586 | // InternalCftLanguage.g:235:3: otherlv_0= 'cft' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' | ||
587 | { | ||
588 | otherlv_0=(Token)match(input,16,FOLLOW_3); | ||
589 | |||
590 | newLeafNode(otherlv_0, grammarAccess.getComponentDefinitionAccess().getCftKeyword_0()); | ||
591 | |||
592 | // InternalCftLanguage.g:239:3: ( (lv_name_1_0= ruleValidId ) ) | ||
593 | // InternalCftLanguage.g:240:4: (lv_name_1_0= ruleValidId ) | ||
594 | { | ||
595 | // InternalCftLanguage.g:240:4: (lv_name_1_0= ruleValidId ) | ||
596 | // InternalCftLanguage.g:241:5: lv_name_1_0= ruleValidId | ||
597 | { | ||
598 | |||
599 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getNameValidIdParserRuleCall_1_0()); | ||
600 | |||
601 | pushFollow(FOLLOW_8); | ||
602 | lv_name_1_0=ruleValidId(); | ||
603 | |||
604 | state._fsp--; | ||
605 | |||
606 | |||
607 | if (current==null) { | ||
608 | current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); | ||
609 | } | ||
610 | set( | ||
611 | current, | ||
612 | "name", | ||
613 | lv_name_1_0, | ||
614 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
615 | afterParserOrEnumRuleCall(); | ||
616 | |||
617 | |||
618 | } | ||
619 | |||
620 | |||
621 | } | ||
622 | |||
623 | otherlv_2=(Token)match(input,17,FOLLOW_9); | ||
624 | |||
625 | newLeafNode(otherlv_2, grammarAccess.getComponentDefinitionAccess().getLeftCurlyBracketKeyword_2()); | ||
626 | |||
627 | // InternalCftLanguage.g:262:3: ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) | ||
628 | // InternalCftLanguage.g:263:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) | ||
629 | { | ||
630 | // InternalCftLanguage.g:263:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) | ||
631 | // InternalCftLanguage.g:264:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) | ||
632 | { | ||
633 | |||
634 | getUnorderedGroupHelper().enter(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
635 | |||
636 | // InternalCftLanguage.g:267:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) | ||
637 | // InternalCftLanguage.g:268:6: ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* | ||
638 | { | ||
639 | // InternalCftLanguage.g:268:6: ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* | ||
640 | loop7: | ||
641 | do { | ||
642 | int alt7=3; | ||
643 | int LA7_0 = input.LA(1); | ||
644 | |||
645 | if ( LA7_0 == 18 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0) ) { | ||
646 | alt7=1; | ||
647 | } | ||
648 | else if ( LA7_0 == 19 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1) ) { | ||
649 | alt7=2; | ||
650 | } | ||
651 | |||
652 | |||
653 | switch (alt7) { | ||
654 | case 1 : | ||
655 | // InternalCftLanguage.g:269:4: ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ||
656 | { | ||
657 | // InternalCftLanguage.g:269:4: ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ||
658 | // InternalCftLanguage.g:270:5: {...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) | ||
659 | { | ||
660 | if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0) ) { | ||
661 | throw new FailedPredicateException(input, "ruleComponentDefinition", "getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0)"); | ||
662 | } | ||
663 | // InternalCftLanguage.g:270:116: ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) | ||
664 | // InternalCftLanguage.g:271:6: ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) | ||
665 | { | ||
666 | |||
667 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0); | ||
668 | |||
669 | // InternalCftLanguage.g:274:9: ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) | ||
670 | // InternalCftLanguage.g:274:10: {...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) | ||
671 | { | ||
672 | if ( !((true)) ) { | ||
673 | throw new FailedPredicateException(input, "ruleComponentDefinition", "true"); | ||
674 | } | ||
675 | // InternalCftLanguage.g:274:19: (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) | ||
676 | // InternalCftLanguage.g:274:20: otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' | ||
677 | { | ||
678 | otherlv_4=(Token)match(input,18,FOLLOW_10); | ||
679 | |||
680 | newLeafNode(otherlv_4, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()); | ||
681 | |||
682 | // InternalCftLanguage.g:278:9: ( (lv_inputEvents_5_0= ruleInputEvent ) )* | ||
683 | loop5: | ||
684 | do { | ||
685 | int alt5=2; | ||
686 | int LA5_0 = input.LA(1); | ||
687 | |||
688 | if ( ((LA5_0>=RULE_OF_INT && LA5_0<=RULE_ID)) ) { | ||
689 | alt5=1; | ||
690 | } | ||
691 | |||
692 | |||
693 | switch (alt5) { | ||
694 | case 1 : | ||
695 | // InternalCftLanguage.g:279:10: (lv_inputEvents_5_0= ruleInputEvent ) | ||
696 | { | ||
697 | // InternalCftLanguage.g:279:10: (lv_inputEvents_5_0= ruleInputEvent ) | ||
698 | // InternalCftLanguage.g:280:11: lv_inputEvents_5_0= ruleInputEvent | ||
699 | { | ||
700 | |||
701 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getInputEventsInputEventParserRuleCall_3_0_1_0()); | ||
702 | |||
703 | pushFollow(FOLLOW_10); | ||
704 | lv_inputEvents_5_0=ruleInputEvent(); | ||
705 | |||
706 | state._fsp--; | ||
707 | |||
708 | |||
709 | if (current==null) { | ||
710 | current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); | ||
711 | } | ||
712 | add( | ||
713 | current, | ||
714 | "inputEvents", | ||
715 | lv_inputEvents_5_0, | ||
716 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.InputEvent"); | ||
717 | afterParserOrEnumRuleCall(); | ||
718 | |||
719 | |||
720 | } | ||
721 | |||
722 | |||
723 | } | ||
724 | break; | ||
725 | |||
726 | default : | ||
727 | break loop5; | ||
728 | } | ||
729 | } while (true); | ||
730 | |||
731 | otherlv_6=(Token)match(input,14,FOLLOW_9); | ||
732 | |||
733 | newLeafNode(otherlv_6, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()); | ||
734 | |||
735 | |||
736 | } | ||
737 | |||
738 | |||
739 | } | ||
740 | |||
741 | |||
742 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
743 | |||
744 | |||
745 | } | ||
746 | |||
747 | |||
748 | } | ||
749 | |||
750 | |||
751 | } | ||
752 | break; | ||
753 | case 2 : | ||
754 | // InternalCftLanguage.g:307:4: ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) | ||
755 | { | ||
756 | // InternalCftLanguage.g:307:4: ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) | ||
757 | // InternalCftLanguage.g:308:5: {...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) | ||
758 | { | ||
759 | if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1) ) { | ||
760 | throw new FailedPredicateException(input, "ruleComponentDefinition", "getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1)"); | ||
761 | } | ||
762 | // InternalCftLanguage.g:308:116: ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) | ||
763 | // InternalCftLanguage.g:309:6: ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) | ||
764 | { | ||
765 | |||
766 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1); | ||
767 | |||
768 | // InternalCftLanguage.g:312:9: ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) | ||
769 | // InternalCftLanguage.g:312:10: {...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) | ||
770 | { | ||
771 | if ( !((true)) ) { | ||
772 | throw new FailedPredicateException(input, "ruleComponentDefinition", "true"); | ||
773 | } | ||
774 | // InternalCftLanguage.g:312:19: (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) | ||
775 | // InternalCftLanguage.g:312:20: otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' | ||
776 | { | ||
777 | otherlv_7=(Token)match(input,19,FOLLOW_10); | ||
778 | |||
779 | newLeafNode(otherlv_7, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()); | ||
780 | |||
781 | // InternalCftLanguage.g:316:9: ( ( ruleValidId ) )* | ||
782 | loop6: | ||
783 | do { | ||
784 | int alt6=2; | ||
785 | int LA6_0 = input.LA(1); | ||
786 | |||
787 | if ( ((LA6_0>=RULE_OF_INT && LA6_0<=RULE_ID)) ) { | ||
788 | alt6=1; | ||
789 | } | ||
790 | |||
791 | |||
792 | switch (alt6) { | ||
793 | case 1 : | ||
794 | // InternalCftLanguage.g:317:10: ( ruleValidId ) | ||
795 | { | ||
796 | // InternalCftLanguage.g:317:10: ( ruleValidId ) | ||
797 | // InternalCftLanguage.g:318:11: ruleValidId | ||
798 | { | ||
799 | |||
800 | if (current==null) { | ||
801 | current = createModelElement(grammarAccess.getComponentDefinitionRule()); | ||
802 | } | ||
803 | |||
804 | |||
805 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationCrossReference_3_1_1_0()); | ||
806 | |||
807 | pushFollow(FOLLOW_10); | ||
808 | ruleValidId(); | ||
809 | |||
810 | state._fsp--; | ||
811 | |||
812 | |||
813 | afterParserOrEnumRuleCall(); | ||
814 | |||
815 | |||
816 | } | ||
817 | |||
818 | |||
819 | } | ||
820 | break; | ||
821 | |||
822 | default : | ||
823 | break loop6; | ||
824 | } | ||
825 | } while (true); | ||
826 | |||
827 | otherlv_9=(Token)match(input,14,FOLLOW_9); | ||
828 | |||
829 | newLeafNode(otherlv_9, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()); | ||
830 | |||
831 | |||
832 | } | ||
833 | |||
834 | |||
835 | } | ||
836 | |||
837 | |||
838 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
839 | |||
840 | |||
841 | } | ||
842 | |||
843 | |||
844 | } | ||
845 | |||
846 | |||
847 | } | ||
848 | break; | ||
849 | |||
850 | default : | ||
851 | break loop7; | ||
852 | } | ||
853 | } while (true); | ||
854 | |||
855 | |||
856 | } | ||
857 | |||
858 | |||
859 | } | ||
860 | |||
861 | |||
862 | getUnorderedGroupHelper().leave(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
863 | |||
864 | |||
865 | } | ||
866 | |||
867 | // InternalCftLanguage.g:349:3: ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* | ||
868 | loop8: | ||
869 | do { | ||
870 | int alt8=2; | ||
871 | int LA8_0 = input.LA(1); | ||
872 | |||
873 | if ( ((LA8_0>=RULE_OF_INT && LA8_0<=RULE_ID)) ) { | ||
874 | alt8=1; | ||
875 | } | ||
876 | |||
877 | |||
878 | switch (alt8) { | ||
879 | case 1 : | ||
880 | // InternalCftLanguage.g:350:4: ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' | ||
881 | { | ||
882 | // InternalCftLanguage.g:350:4: ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) | ||
883 | // InternalCftLanguage.g:351:5: (lv_eventDefinitions_10_0= ruleEventDefinition ) | ||
884 | { | ||
885 | // InternalCftLanguage.g:351:5: (lv_eventDefinitions_10_0= ruleEventDefinition ) | ||
886 | // InternalCftLanguage.g:352:6: lv_eventDefinitions_10_0= ruleEventDefinition | ||
887 | { | ||
888 | |||
889 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getEventDefinitionsEventDefinitionParserRuleCall_4_0_0()); | ||
890 | |||
891 | pushFollow(FOLLOW_11); | ||
892 | lv_eventDefinitions_10_0=ruleEventDefinition(); | ||
893 | |||
894 | state._fsp--; | ||
895 | |||
896 | |||
897 | if (current==null) { | ||
898 | current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); | ||
899 | } | ||
900 | add( | ||
901 | current, | ||
902 | "eventDefinitions", | ||
903 | lv_eventDefinitions_10_0, | ||
904 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventDefinition"); | ||
905 | afterParserOrEnumRuleCall(); | ||
906 | |||
907 | |||
908 | } | ||
909 | |||
910 | |||
911 | } | ||
912 | |||
913 | otherlv_11=(Token)match(input,14,FOLLOW_12); | ||
914 | |||
915 | newLeafNode(otherlv_11, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_4_1()); | ||
916 | |||
917 | |||
918 | } | ||
919 | break; | ||
920 | |||
921 | default : | ||
922 | break loop8; | ||
923 | } | ||
924 | } while (true); | ||
925 | |||
926 | otherlv_12=(Token)match(input,20,FOLLOW_2); | ||
927 | |||
928 | newLeafNode(otherlv_12, grammarAccess.getComponentDefinitionAccess().getRightCurlyBracketKeyword_5()); | ||
929 | |||
930 | |||
931 | } | ||
932 | |||
933 | |||
934 | } | ||
935 | |||
936 | |||
937 | leaveRule(); | ||
938 | |||
939 | } | ||
940 | |||
941 | catch (RecognitionException re) { | ||
942 | recover(input,re); | ||
943 | appendSkippedTokens(); | ||
944 | } | ||
945 | finally { | ||
946 | } | ||
947 | return current; | ||
948 | } | ||
949 | // $ANTLR end "ruleComponentDefinition" | ||
950 | |||
951 | |||
952 | // $ANTLR start "entryRuleInputEvent" | ||
953 | // InternalCftLanguage.g:382:1: entryRuleInputEvent returns [EObject current=null] : iv_ruleInputEvent= ruleInputEvent EOF ; | ||
954 | public final EObject entryRuleInputEvent() throws RecognitionException { | ||
955 | EObject current = null; | ||
956 | |||
957 | EObject iv_ruleInputEvent = null; | ||
958 | |||
959 | |||
960 | try { | ||
961 | // InternalCftLanguage.g:382:51: (iv_ruleInputEvent= ruleInputEvent EOF ) | ||
962 | // InternalCftLanguage.g:383:2: iv_ruleInputEvent= ruleInputEvent EOF | ||
963 | { | ||
964 | newCompositeNode(grammarAccess.getInputEventRule()); | ||
965 | pushFollow(FOLLOW_1); | ||
966 | iv_ruleInputEvent=ruleInputEvent(); | ||
967 | |||
968 | state._fsp--; | ||
969 | |||
970 | current =iv_ruleInputEvent; | ||
971 | match(input,EOF,FOLLOW_2); | ||
972 | |||
973 | } | ||
974 | |||
975 | } | ||
976 | |||
977 | catch (RecognitionException re) { | ||
978 | recover(input,re); | ||
979 | appendSkippedTokens(); | ||
980 | } | ||
981 | finally { | ||
982 | } | ||
983 | return current; | ||
984 | } | ||
985 | // $ANTLR end "entryRuleInputEvent" | ||
986 | |||
987 | |||
988 | // $ANTLR start "ruleInputEvent" | ||
989 | // InternalCftLanguage.g:389:1: ruleInputEvent returns [EObject current=null] : ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_multiple_1_0= '[]' ) )? ) ; | ||
990 | public final EObject ruleInputEvent() throws RecognitionException { | ||
991 | EObject current = null; | ||
992 | |||
993 | Token lv_multiple_1_0=null; | ||
994 | AntlrDatatypeRuleToken lv_name_0_0 = null; | ||
995 | |||
996 | |||
997 | |||
998 | enterRule(); | ||
999 | |||
1000 | try { | ||
1001 | // InternalCftLanguage.g:395:2: ( ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_multiple_1_0= '[]' ) )? ) ) | ||
1002 | // InternalCftLanguage.g:396:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_multiple_1_0= '[]' ) )? ) | ||
1003 | { | ||
1004 | // InternalCftLanguage.g:396:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_multiple_1_0= '[]' ) )? ) | ||
1005 | // InternalCftLanguage.g:397:3: ( (lv_name_0_0= ruleValidId ) ) ( (lv_multiple_1_0= '[]' ) )? | ||
1006 | { | ||
1007 | // InternalCftLanguage.g:397:3: ( (lv_name_0_0= ruleValidId ) ) | ||
1008 | // InternalCftLanguage.g:398:4: (lv_name_0_0= ruleValidId ) | ||
1009 | { | ||
1010 | // InternalCftLanguage.g:398:4: (lv_name_0_0= ruleValidId ) | ||
1011 | // InternalCftLanguage.g:399:5: lv_name_0_0= ruleValidId | ||
1012 | { | ||
1013 | |||
1014 | newCompositeNode(grammarAccess.getInputEventAccess().getNameValidIdParserRuleCall_0_0()); | ||
1015 | |||
1016 | pushFollow(FOLLOW_13); | ||
1017 | lv_name_0_0=ruleValidId(); | ||
1018 | |||
1019 | state._fsp--; | ||
1020 | |||
1021 | |||
1022 | if (current==null) { | ||
1023 | current = createModelElementForParent(grammarAccess.getInputEventRule()); | ||
1024 | } | ||
1025 | set( | ||
1026 | current, | ||
1027 | "name", | ||
1028 | lv_name_0_0, | ||
1029 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
1030 | afterParserOrEnumRuleCall(); | ||
1031 | |||
1032 | |||
1033 | } | ||
1034 | |||
1035 | |||
1036 | } | ||
1037 | |||
1038 | // InternalCftLanguage.g:416:3: ( (lv_multiple_1_0= '[]' ) )? | ||
1039 | int alt9=2; | ||
1040 | int LA9_0 = input.LA(1); | ||
1041 | |||
1042 | if ( (LA9_0==21) ) { | ||
1043 | alt9=1; | ||
1044 | } | ||
1045 | switch (alt9) { | ||
1046 | case 1 : | ||
1047 | // InternalCftLanguage.g:417:4: (lv_multiple_1_0= '[]' ) | ||
1048 | { | ||
1049 | // InternalCftLanguage.g:417:4: (lv_multiple_1_0= '[]' ) | ||
1050 | // InternalCftLanguage.g:418:5: lv_multiple_1_0= '[]' | ||
1051 | { | ||
1052 | lv_multiple_1_0=(Token)match(input,21,FOLLOW_2); | ||
1053 | |||
1054 | newLeafNode(lv_multiple_1_0, grammarAccess.getInputEventAccess().getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0()); | ||
1055 | |||
1056 | |||
1057 | if (current==null) { | ||
1058 | current = createModelElement(grammarAccess.getInputEventRule()); | ||
1059 | } | ||
1060 | setWithLastConsumed(current, "multiple", true, "[]"); | ||
1061 | |||
1062 | |||
1063 | } | ||
1064 | |||
1065 | |||
1066 | } | ||
1067 | break; | ||
1068 | |||
1069 | } | ||
1070 | |||
1071 | |||
1072 | } | ||
1073 | |||
1074 | |||
1075 | } | ||
1076 | |||
1077 | |||
1078 | leaveRule(); | ||
1079 | |||
1080 | } | ||
1081 | |||
1082 | catch (RecognitionException re) { | ||
1083 | recover(input,re); | ||
1084 | appendSkippedTokens(); | ||
1085 | } | ||
1086 | finally { | ||
1087 | } | ||
1088 | return current; | ||
1089 | } | ||
1090 | // $ANTLR end "ruleInputEvent" | ||
1091 | |||
1092 | |||
1093 | // $ANTLR start "entryRuleEventDefinition" | ||
1094 | // InternalCftLanguage.g:434:1: entryRuleEventDefinition returns [EObject current=null] : iv_ruleEventDefinition= ruleEventDefinition EOF ; | ||
1095 | public final EObject entryRuleEventDefinition() throws RecognitionException { | ||
1096 | EObject current = null; | ||
1097 | |||
1098 | EObject iv_ruleEventDefinition = null; | ||
1099 | |||
1100 | |||
1101 | try { | ||
1102 | // InternalCftLanguage.g:434:56: (iv_ruleEventDefinition= ruleEventDefinition EOF ) | ||
1103 | // InternalCftLanguage.g:435:2: iv_ruleEventDefinition= ruleEventDefinition EOF | ||
1104 | { | ||
1105 | newCompositeNode(grammarAccess.getEventDefinitionRule()); | ||
1106 | pushFollow(FOLLOW_1); | ||
1107 | iv_ruleEventDefinition=ruleEventDefinition(); | ||
1108 | |||
1109 | state._fsp--; | ||
1110 | |||
1111 | current =iv_ruleEventDefinition; | ||
1112 | match(input,EOF,FOLLOW_2); | ||
1113 | |||
1114 | } | ||
1115 | |||
1116 | } | ||
1117 | |||
1118 | catch (RecognitionException re) { | ||
1119 | recover(input,re); | ||
1120 | appendSkippedTokens(); | ||
1121 | } | ||
1122 | finally { | ||
1123 | } | ||
1124 | return current; | ||
1125 | } | ||
1126 | // $ANTLR end "entryRuleEventDefinition" | ||
1127 | |||
1128 | |||
1129 | // $ANTLR start "ruleEventDefinition" | ||
1130 | // InternalCftLanguage.g:441:1: ruleEventDefinition returns [EObject current=null] : (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) ; | ||
1131 | public final EObject ruleEventDefinition() throws RecognitionException { | ||
1132 | EObject current = null; | ||
1133 | |||
1134 | EObject this_BasicEventDefinition_0 = null; | ||
1135 | |||
1136 | EObject this_GateDefinition_1 = null; | ||
1137 | |||
1138 | |||
1139 | |||
1140 | enterRule(); | ||
1141 | |||
1142 | try { | ||
1143 | // InternalCftLanguage.g:447:2: ( (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) ) | ||
1144 | // InternalCftLanguage.g:448:2: (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) | ||
1145 | { | ||
1146 | // InternalCftLanguage.g:448:2: (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) | ||
1147 | int alt10=2; | ||
1148 | int LA10_0 = input.LA(1); | ||
1149 | |||
1150 | if ( (LA10_0==RULE_ID) ) { | ||
1151 | int LA10_1 = input.LA(2); | ||
1152 | |||
1153 | if ( (LA10_1==RULE_INT||(LA10_1>=25 && LA10_1<=26)) ) { | ||
1154 | alt10=2; | ||
1155 | } | ||
1156 | else if ( (LA10_1==22||LA10_1==24) ) { | ||
1157 | alt10=1; | ||
1158 | } | ||
1159 | else { | ||
1160 | NoViableAltException nvae = | ||
1161 | new NoViableAltException("", 10, 1, input); | ||
1162 | |||
1163 | throw nvae; | ||
1164 | } | ||
1165 | } | ||
1166 | else if ( (LA10_0==RULE_OF_INT) ) { | ||
1167 | int LA10_2 = input.LA(2); | ||
1168 | |||
1169 | if ( (LA10_2==22||LA10_2==24) ) { | ||
1170 | alt10=1; | ||
1171 | } | ||
1172 | else if ( (LA10_2==RULE_INT||(LA10_2>=25 && LA10_2<=26)) ) { | ||
1173 | alt10=2; | ||
1174 | } | ||
1175 | else { | ||
1176 | NoViableAltException nvae = | ||
1177 | new NoViableAltException("", 10, 2, input); | ||
1178 | |||
1179 | throw nvae; | ||
1180 | } | ||
1181 | } | ||
1182 | else { | ||
1183 | NoViableAltException nvae = | ||
1184 | new NoViableAltException("", 10, 0, input); | ||
1185 | |||
1186 | throw nvae; | ||
1187 | } | ||
1188 | switch (alt10) { | ||
1189 | case 1 : | ||
1190 | // InternalCftLanguage.g:449:3: this_BasicEventDefinition_0= ruleBasicEventDefinition | ||
1191 | { | ||
1192 | |||
1193 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getBasicEventDefinitionParserRuleCall_0()); | ||
1194 | |||
1195 | pushFollow(FOLLOW_2); | ||
1196 | this_BasicEventDefinition_0=ruleBasicEventDefinition(); | ||
1197 | |||
1198 | state._fsp--; | ||
1199 | |||
1200 | |||
1201 | current = this_BasicEventDefinition_0; | ||
1202 | afterParserOrEnumRuleCall(); | ||
1203 | |||
1204 | |||
1205 | } | ||
1206 | break; | ||
1207 | case 2 : | ||
1208 | // InternalCftLanguage.g:458:3: this_GateDefinition_1= ruleGateDefinition | ||
1209 | { | ||
1210 | |||
1211 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getGateDefinitionParserRuleCall_1()); | ||
1212 | |||
1213 | pushFollow(FOLLOW_2); | ||
1214 | this_GateDefinition_1=ruleGateDefinition(); | ||
1215 | |||
1216 | state._fsp--; | ||
1217 | |||
1218 | |||
1219 | current = this_GateDefinition_1; | ||
1220 | afterParserOrEnumRuleCall(); | ||
1221 | |||
1222 | |||
1223 | } | ||
1224 | break; | ||
1225 | |||
1226 | } | ||
1227 | |||
1228 | |||
1229 | } | ||
1230 | |||
1231 | |||
1232 | leaveRule(); | ||
1233 | |||
1234 | } | ||
1235 | |||
1236 | catch (RecognitionException re) { | ||
1237 | recover(input,re); | ||
1238 | appendSkippedTokens(); | ||
1239 | } | ||
1240 | finally { | ||
1241 | } | ||
1242 | return current; | ||
1243 | } | ||
1244 | // $ANTLR end "ruleEventDefinition" | ||
1245 | |||
1246 | |||
1247 | // $ANTLR start "entryRuleBasicEventDefinition" | ||
1248 | // InternalCftLanguage.g:470:1: entryRuleBasicEventDefinition returns [EObject current=null] : iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF ; | ||
1249 | public final EObject entryRuleBasicEventDefinition() throws RecognitionException { | ||
1250 | EObject current = null; | ||
1251 | |||
1252 | EObject iv_ruleBasicEventDefinition = null; | ||
1253 | |||
1254 | |||
1255 | try { | ||
1256 | // InternalCftLanguage.g:470:61: (iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF ) | ||
1257 | // InternalCftLanguage.g:471:2: iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF | ||
1258 | { | ||
1259 | newCompositeNode(grammarAccess.getBasicEventDefinitionRule()); | ||
1260 | pushFollow(FOLLOW_1); | ||
1261 | iv_ruleBasicEventDefinition=ruleBasicEventDefinition(); | ||
1262 | |||
1263 | state._fsp--; | ||
1264 | |||
1265 | current =iv_ruleBasicEventDefinition; | ||
1266 | match(input,EOF,FOLLOW_2); | ||
1267 | |||
1268 | } | ||
1269 | |||
1270 | } | ||
1271 | |||
1272 | catch (RecognitionException re) { | ||
1273 | recover(input,re); | ||
1274 | appendSkippedTokens(); | ||
1275 | } | ||
1276 | finally { | ||
1277 | } | ||
1278 | return current; | ||
1279 | } | ||
1280 | // $ANTLR end "entryRuleBasicEventDefinition" | ||
1281 | |||
1282 | |||
1283 | // $ANTLR start "ruleBasicEventDefinition" | ||
1284 | // InternalCftLanguage.g:477:1: ruleBasicEventDefinition returns [EObject current=null] : ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_distribution_1_0= ruleDistribution ) ) ) ; | ||
1285 | public final EObject ruleBasicEventDefinition() throws RecognitionException { | ||
1286 | EObject current = null; | ||
1287 | |||
1288 | AntlrDatatypeRuleToken lv_name_0_0 = null; | ||
1289 | |||
1290 | EObject lv_distribution_1_0 = null; | ||
1291 | |||
1292 | |||
1293 | |||
1294 | enterRule(); | ||
1295 | |||
1296 | try { | ||
1297 | // InternalCftLanguage.g:483:2: ( ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_distribution_1_0= ruleDistribution ) ) ) ) | ||
1298 | // InternalCftLanguage.g:484:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_distribution_1_0= ruleDistribution ) ) ) | ||
1299 | { | ||
1300 | // InternalCftLanguage.g:484:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_distribution_1_0= ruleDistribution ) ) ) | ||
1301 | // InternalCftLanguage.g:485:3: ( (lv_name_0_0= ruleValidId ) ) ( (lv_distribution_1_0= ruleDistribution ) ) | ||
1302 | { | ||
1303 | // InternalCftLanguage.g:485:3: ( (lv_name_0_0= ruleValidId ) ) | ||
1304 | // InternalCftLanguage.g:486:4: (lv_name_0_0= ruleValidId ) | ||
1305 | { | ||
1306 | // InternalCftLanguage.g:486:4: (lv_name_0_0= ruleValidId ) | ||
1307 | // InternalCftLanguage.g:487:5: lv_name_0_0= ruleValidId | ||
1308 | { | ||
1309 | |||
1310 | newCompositeNode(grammarAccess.getBasicEventDefinitionAccess().getNameValidIdParserRuleCall_0_0()); | ||
1311 | |||
1312 | pushFollow(FOLLOW_14); | ||
1313 | lv_name_0_0=ruleValidId(); | ||
1314 | |||
1315 | state._fsp--; | ||
1316 | |||
1317 | |||
1318 | if (current==null) { | ||
1319 | current = createModelElementForParent(grammarAccess.getBasicEventDefinitionRule()); | ||
1320 | } | ||
1321 | set( | ||
1322 | current, | ||
1323 | "name", | ||
1324 | lv_name_0_0, | ||
1325 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
1326 | afterParserOrEnumRuleCall(); | ||
1327 | |||
1328 | |||
1329 | } | ||
1330 | |||
1331 | |||
1332 | } | ||
1333 | |||
1334 | // InternalCftLanguage.g:504:3: ( (lv_distribution_1_0= ruleDistribution ) ) | ||
1335 | // InternalCftLanguage.g:505:4: (lv_distribution_1_0= ruleDistribution ) | ||
1336 | { | ||
1337 | // InternalCftLanguage.g:505:4: (lv_distribution_1_0= ruleDistribution ) | ||
1338 | // InternalCftLanguage.g:506:5: lv_distribution_1_0= ruleDistribution | ||
1339 | { | ||
1340 | |||
1341 | newCompositeNode(grammarAccess.getBasicEventDefinitionAccess().getDistributionDistributionParserRuleCall_1_0()); | ||
1342 | |||
1343 | pushFollow(FOLLOW_2); | ||
1344 | lv_distribution_1_0=ruleDistribution(); | ||
1345 | |||
1346 | state._fsp--; | ||
1347 | |||
1348 | |||
1349 | if (current==null) { | ||
1350 | current = createModelElementForParent(grammarAccess.getBasicEventDefinitionRule()); | ||
1351 | } | ||
1352 | set( | ||
1353 | current, | ||
1354 | "distribution", | ||
1355 | lv_distribution_1_0, | ||
1356 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Distribution"); | ||
1357 | afterParserOrEnumRuleCall(); | ||
1358 | |||
1359 | |||
1360 | } | ||
1361 | |||
1362 | |||
1363 | } | ||
1364 | |||
1365 | |||
1366 | } | ||
1367 | |||
1368 | |||
1369 | } | ||
1370 | |||
1371 | |||
1372 | leaveRule(); | ||
1373 | |||
1374 | } | ||
1375 | |||
1376 | catch (RecognitionException re) { | ||
1377 | recover(input,re); | ||
1378 | appendSkippedTokens(); | ||
1379 | } | ||
1380 | finally { | ||
1381 | } | ||
1382 | return current; | ||
1383 | } | ||
1384 | // $ANTLR end "ruleBasicEventDefinition" | ||
1385 | |||
1386 | |||
1387 | // $ANTLR start "entryRuleDistribution" | ||
1388 | // InternalCftLanguage.g:527:1: entryRuleDistribution returns [EObject current=null] : iv_ruleDistribution= ruleDistribution EOF ; | ||
1389 | public final EObject entryRuleDistribution() throws RecognitionException { | ||
1390 | EObject current = null; | ||
1391 | |||
1392 | EObject iv_ruleDistribution = null; | ||
1393 | |||
1394 | |||
1395 | try { | ||
1396 | // InternalCftLanguage.g:527:53: (iv_ruleDistribution= ruleDistribution EOF ) | ||
1397 | // InternalCftLanguage.g:528:2: iv_ruleDistribution= ruleDistribution EOF | ||
1398 | { | ||
1399 | newCompositeNode(grammarAccess.getDistributionRule()); | ||
1400 | pushFollow(FOLLOW_1); | ||
1401 | iv_ruleDistribution=ruleDistribution(); | ||
1402 | |||
1403 | state._fsp--; | ||
1404 | |||
1405 | current =iv_ruleDistribution; | ||
1406 | match(input,EOF,FOLLOW_2); | ||
1407 | |||
1408 | } | ||
1409 | |||
1410 | } | ||
1411 | |||
1412 | catch (RecognitionException re) { | ||
1413 | recover(input,re); | ||
1414 | appendSkippedTokens(); | ||
1415 | } | ||
1416 | finally { | ||
1417 | } | ||
1418 | return current; | ||
1419 | } | ||
1420 | // $ANTLR end "entryRuleDistribution" | ||
1421 | |||
1422 | |||
1423 | // $ANTLR start "ruleDistribution" | ||
1424 | // InternalCftLanguage.g:534:1: ruleDistribution returns [EObject current=null] : (this_ConstantDistribution_0= ruleConstantDistribution | this_ExponentialDistribution_1= ruleExponentialDistribution ) ; | ||
1425 | public final EObject ruleDistribution() throws RecognitionException { | ||
1426 | EObject current = null; | ||
1427 | |||
1428 | EObject this_ConstantDistribution_0 = null; | ||
1429 | |||
1430 | EObject this_ExponentialDistribution_1 = null; | ||
1431 | |||
1432 | |||
1433 | |||
1434 | enterRule(); | ||
1435 | |||
1436 | try { | ||
1437 | // InternalCftLanguage.g:540:2: ( (this_ConstantDistribution_0= ruleConstantDistribution | this_ExponentialDistribution_1= ruleExponentialDistribution ) ) | ||
1438 | // InternalCftLanguage.g:541:2: (this_ConstantDistribution_0= ruleConstantDistribution | this_ExponentialDistribution_1= ruleExponentialDistribution ) | ||
1439 | { | ||
1440 | // InternalCftLanguage.g:541:2: (this_ConstantDistribution_0= ruleConstantDistribution | this_ExponentialDistribution_1= ruleExponentialDistribution ) | ||
1441 | int alt11=2; | ||
1442 | int LA11_0 = input.LA(1); | ||
1443 | |||
1444 | if ( (LA11_0==22) ) { | ||
1445 | alt11=1; | ||
1446 | } | ||
1447 | else if ( (LA11_0==24) ) { | ||
1448 | alt11=2; | ||
1449 | } | ||
1450 | else { | ||
1451 | NoViableAltException nvae = | ||
1452 | new NoViableAltException("", 11, 0, input); | ||
1453 | |||
1454 | throw nvae; | ||
1455 | } | ||
1456 | switch (alt11) { | ||
1457 | case 1 : | ||
1458 | // InternalCftLanguage.g:542:3: this_ConstantDistribution_0= ruleConstantDistribution | ||
1459 | { | ||
1460 | |||
1461 | newCompositeNode(grammarAccess.getDistributionAccess().getConstantDistributionParserRuleCall_0()); | ||
1462 | |||
1463 | pushFollow(FOLLOW_2); | ||
1464 | this_ConstantDistribution_0=ruleConstantDistribution(); | ||
1465 | |||
1466 | state._fsp--; | ||
1467 | |||
1468 | |||
1469 | current = this_ConstantDistribution_0; | ||
1470 | afterParserOrEnumRuleCall(); | ||
1471 | |||
1472 | |||
1473 | } | ||
1474 | break; | ||
1475 | case 2 : | ||
1476 | // InternalCftLanguage.g:551:3: this_ExponentialDistribution_1= ruleExponentialDistribution | ||
1477 | { | ||
1478 | |||
1479 | newCompositeNode(grammarAccess.getDistributionAccess().getExponentialDistributionParserRuleCall_1()); | ||
1480 | |||
1481 | pushFollow(FOLLOW_2); | ||
1482 | this_ExponentialDistribution_1=ruleExponentialDistribution(); | ||
1483 | |||
1484 | state._fsp--; | ||
1485 | |||
1486 | |||
1487 | current = this_ExponentialDistribution_1; | ||
1488 | afterParserOrEnumRuleCall(); | ||
1489 | |||
1490 | |||
1491 | } | ||
1492 | break; | ||
1493 | |||
1494 | } | ||
1495 | |||
1496 | |||
1497 | } | ||
1498 | |||
1499 | |||
1500 | leaveRule(); | ||
1501 | |||
1502 | } | ||
1503 | |||
1504 | catch (RecognitionException re) { | ||
1505 | recover(input,re); | ||
1506 | appendSkippedTokens(); | ||
1507 | } | ||
1508 | finally { | ||
1509 | } | ||
1510 | return current; | ||
1511 | } | ||
1512 | // $ANTLR end "ruleDistribution" | ||
1513 | |||
1514 | |||
1515 | // $ANTLR start "entryRuleConstantDistribution" | ||
1516 | // InternalCftLanguage.g:563:1: entryRuleConstantDistribution returns [EObject current=null] : iv_ruleConstantDistribution= ruleConstantDistribution EOF ; | ||
1517 | public final EObject entryRuleConstantDistribution() throws RecognitionException { | ||
1518 | EObject current = null; | ||
1519 | |||
1520 | EObject iv_ruleConstantDistribution = null; | ||
1521 | |||
1522 | |||
1523 | try { | ||
1524 | // InternalCftLanguage.g:563:61: (iv_ruleConstantDistribution= ruleConstantDistribution EOF ) | ||
1525 | // InternalCftLanguage.g:564:2: iv_ruleConstantDistribution= ruleConstantDistribution EOF | ||
1526 | { | ||
1527 | newCompositeNode(grammarAccess.getConstantDistributionRule()); | ||
1528 | pushFollow(FOLLOW_1); | ||
1529 | iv_ruleConstantDistribution=ruleConstantDistribution(); | ||
1530 | |||
1531 | state._fsp--; | ||
1532 | |||
1533 | current =iv_ruleConstantDistribution; | ||
1534 | match(input,EOF,FOLLOW_2); | ||
1535 | |||
1536 | } | ||
1537 | |||
1538 | } | ||
1539 | |||
1540 | catch (RecognitionException re) { | ||
1541 | recover(input,re); | ||
1542 | appendSkippedTokens(); | ||
1543 | } | ||
1544 | finally { | ||
1545 | } | ||
1546 | return current; | ||
1547 | } | ||
1548 | // $ANTLR end "entryRuleConstantDistribution" | ||
1549 | |||
1550 | |||
1551 | // $ANTLR start "ruleConstantDistribution" | ||
1552 | // InternalCftLanguage.g:570:1: ruleConstantDistribution returns [EObject current=null] : (otherlv_0= 'prob' otherlv_1= '=' ( (lv_p_2_0= ruleDouble ) ) ) ; | ||
1553 | public final EObject ruleConstantDistribution() throws RecognitionException { | ||
1554 | EObject current = null; | ||
1555 | |||
1556 | Token otherlv_0=null; | ||
1557 | Token otherlv_1=null; | ||
1558 | AntlrDatatypeRuleToken lv_p_2_0 = null; | ||
1559 | |||
1560 | |||
1561 | |||
1562 | enterRule(); | ||
1563 | |||
1564 | try { | ||
1565 | // InternalCftLanguage.g:576:2: ( (otherlv_0= 'prob' otherlv_1= '=' ( (lv_p_2_0= ruleDouble ) ) ) ) | ||
1566 | // InternalCftLanguage.g:577:2: (otherlv_0= 'prob' otherlv_1= '=' ( (lv_p_2_0= ruleDouble ) ) ) | ||
1567 | { | ||
1568 | // InternalCftLanguage.g:577:2: (otherlv_0= 'prob' otherlv_1= '=' ( (lv_p_2_0= ruleDouble ) ) ) | ||
1569 | // InternalCftLanguage.g:578:3: otherlv_0= 'prob' otherlv_1= '=' ( (lv_p_2_0= ruleDouble ) ) | ||
1570 | { | ||
1571 | otherlv_0=(Token)match(input,22,FOLLOW_15); | ||
1572 | |||
1573 | newLeafNode(otherlv_0, grammarAccess.getConstantDistributionAccess().getProbKeyword_0()); | ||
1574 | |||
1575 | otherlv_1=(Token)match(input,23,FOLLOW_16); | ||
1576 | |||
1577 | newLeafNode(otherlv_1, grammarAccess.getConstantDistributionAccess().getEqualsSignKeyword_1()); | ||
1578 | |||
1579 | // InternalCftLanguage.g:586:3: ( (lv_p_2_0= ruleDouble ) ) | ||
1580 | // InternalCftLanguage.g:587:4: (lv_p_2_0= ruleDouble ) | ||
1581 | { | ||
1582 | // InternalCftLanguage.g:587:4: (lv_p_2_0= ruleDouble ) | ||
1583 | // InternalCftLanguage.g:588:5: lv_p_2_0= ruleDouble | ||
1584 | { | ||
1585 | |||
1586 | newCompositeNode(grammarAccess.getConstantDistributionAccess().getPDoubleParserRuleCall_2_0()); | ||
1587 | |||
1588 | pushFollow(FOLLOW_2); | ||
1589 | lv_p_2_0=ruleDouble(); | ||
1590 | |||
1591 | state._fsp--; | ||
1592 | |||
1593 | |||
1594 | if (current==null) { | ||
1595 | current = createModelElementForParent(grammarAccess.getConstantDistributionRule()); | ||
1596 | } | ||
1597 | set( | ||
1598 | current, | ||
1599 | "p", | ||
1600 | lv_p_2_0, | ||
1601 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Double"); | ||
1602 | afterParserOrEnumRuleCall(); | ||
1603 | |||
1604 | |||
1605 | } | ||
1606 | |||
1607 | |||
1608 | } | ||
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 "ruleConstantDistribution" | ||
1630 | |||
1631 | |||
1632 | // $ANTLR start "entryRuleExponentialDistribution" | ||
1633 | // InternalCftLanguage.g:609:1: entryRuleExponentialDistribution returns [EObject current=null] : iv_ruleExponentialDistribution= ruleExponentialDistribution EOF ; | ||
1634 | public final EObject entryRuleExponentialDistribution() throws RecognitionException { | ||
1635 | EObject current = null; | ||
1636 | |||
1637 | EObject iv_ruleExponentialDistribution = null; | ||
1638 | |||
1639 | |||
1640 | try { | ||
1641 | // InternalCftLanguage.g:609:64: (iv_ruleExponentialDistribution= ruleExponentialDistribution EOF ) | ||
1642 | // InternalCftLanguage.g:610:2: iv_ruleExponentialDistribution= ruleExponentialDistribution EOF | ||
1643 | { | ||
1644 | newCompositeNode(grammarAccess.getExponentialDistributionRule()); | ||
1645 | pushFollow(FOLLOW_1); | ||
1646 | iv_ruleExponentialDistribution=ruleExponentialDistribution(); | ||
1647 | |||
1648 | state._fsp--; | ||
1649 | |||
1650 | current =iv_ruleExponentialDistribution; | ||
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 "entryRuleExponentialDistribution" | ||
1666 | |||
1667 | |||
1668 | // $ANTLR start "ruleExponentialDistribution" | ||
1669 | // InternalCftLanguage.g:616:1: ruleExponentialDistribution returns [EObject current=null] : (otherlv_0= 'lambda' otherlv_1= '=' ( (lv_lambda_2_0= ruleDouble ) ) ) ; | ||
1670 | public final EObject ruleExponentialDistribution() throws RecognitionException { | ||
1671 | EObject current = null; | ||
1672 | |||
1673 | Token otherlv_0=null; | ||
1674 | Token otherlv_1=null; | ||
1675 | AntlrDatatypeRuleToken lv_lambda_2_0 = null; | ||
1676 | |||
1677 | |||
1678 | |||
1679 | enterRule(); | ||
1680 | |||
1681 | try { | ||
1682 | // InternalCftLanguage.g:622:2: ( (otherlv_0= 'lambda' otherlv_1= '=' ( (lv_lambda_2_0= ruleDouble ) ) ) ) | ||
1683 | // InternalCftLanguage.g:623:2: (otherlv_0= 'lambda' otherlv_1= '=' ( (lv_lambda_2_0= ruleDouble ) ) ) | ||
1684 | { | ||
1685 | // InternalCftLanguage.g:623:2: (otherlv_0= 'lambda' otherlv_1= '=' ( (lv_lambda_2_0= ruleDouble ) ) ) | ||
1686 | // InternalCftLanguage.g:624:3: otherlv_0= 'lambda' otherlv_1= '=' ( (lv_lambda_2_0= ruleDouble ) ) | ||
1687 | { | ||
1688 | otherlv_0=(Token)match(input,24,FOLLOW_15); | ||
1689 | |||
1690 | newLeafNode(otherlv_0, grammarAccess.getExponentialDistributionAccess().getLambdaKeyword_0()); | ||
1691 | |||
1692 | otherlv_1=(Token)match(input,23,FOLLOW_16); | ||
1693 | |||
1694 | newLeafNode(otherlv_1, grammarAccess.getExponentialDistributionAccess().getEqualsSignKeyword_1()); | ||
1695 | |||
1696 | // InternalCftLanguage.g:632:3: ( (lv_lambda_2_0= ruleDouble ) ) | ||
1697 | // InternalCftLanguage.g:633:4: (lv_lambda_2_0= ruleDouble ) | ||
1698 | { | ||
1699 | // InternalCftLanguage.g:633:4: (lv_lambda_2_0= ruleDouble ) | ||
1700 | // InternalCftLanguage.g:634:5: lv_lambda_2_0= ruleDouble | ||
1701 | { | ||
1702 | |||
1703 | newCompositeNode(grammarAccess.getExponentialDistributionAccess().getLambdaDoubleParserRuleCall_2_0()); | ||
1704 | |||
1705 | pushFollow(FOLLOW_2); | ||
1706 | lv_lambda_2_0=ruleDouble(); | ||
1707 | |||
1708 | state._fsp--; | ||
1709 | |||
1710 | |||
1711 | if (current==null) { | ||
1712 | current = createModelElementForParent(grammarAccess.getExponentialDistributionRule()); | ||
1713 | } | ||
1714 | set( | ||
1715 | current, | ||
1716 | "lambda", | ||
1717 | lv_lambda_2_0, | ||
1718 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Double"); | ||
1719 | afterParserOrEnumRuleCall(); | ||
1720 | |||
1721 | |||
1722 | } | ||
1723 | |||
1724 | |||
1725 | } | ||
1726 | |||
1727 | |||
1728 | } | ||
1729 | |||
1730 | |||
1731 | } | ||
1732 | |||
1733 | |||
1734 | leaveRule(); | ||
1735 | |||
1736 | } | ||
1737 | |||
1738 | catch (RecognitionException re) { | ||
1739 | recover(input,re); | ||
1740 | appendSkippedTokens(); | ||
1741 | } | ||
1742 | finally { | ||
1743 | } | ||
1744 | return current; | ||
1745 | } | ||
1746 | // $ANTLR end "ruleExponentialDistribution" | ||
1747 | |||
1748 | |||
1749 | // $ANTLR start "entryRuleGateDefinition" | ||
1750 | // InternalCftLanguage.g:655:1: entryRuleGateDefinition returns [EObject current=null] : iv_ruleGateDefinition= ruleGateDefinition EOF ; | ||
1751 | public final EObject entryRuleGateDefinition() throws RecognitionException { | ||
1752 | EObject current = null; | ||
1753 | |||
1754 | EObject iv_ruleGateDefinition = null; | ||
1755 | |||
1756 | |||
1757 | try { | ||
1758 | // InternalCftLanguage.g:655:55: (iv_ruleGateDefinition= ruleGateDefinition EOF ) | ||
1759 | // InternalCftLanguage.g:656:2: iv_ruleGateDefinition= ruleGateDefinition EOF | ||
1760 | { | ||
1761 | newCompositeNode(grammarAccess.getGateDefinitionRule()); | ||
1762 | pushFollow(FOLLOW_1); | ||
1763 | iv_ruleGateDefinition=ruleGateDefinition(); | ||
1764 | |||
1765 | state._fsp--; | ||
1766 | |||
1767 | current =iv_ruleGateDefinition; | ||
1768 | match(input,EOF,FOLLOW_2); | ||
1769 | |||
1770 | } | ||
1771 | |||
1772 | } | ||
1773 | |||
1774 | catch (RecognitionException re) { | ||
1775 | recover(input,re); | ||
1776 | appendSkippedTokens(); | ||
1777 | } | ||
1778 | finally { | ||
1779 | } | ||
1780 | return current; | ||
1781 | } | ||
1782 | // $ANTLR end "entryRuleGateDefinition" | ||
1783 | |||
1784 | |||
1785 | // $ANTLR start "ruleGateDefinition" | ||
1786 | // InternalCftLanguage.g:662:1: ruleGateDefinition returns [EObject current=null] : (this_AndGateDefinition_0= ruleAndGateDefinition | this_OrGateDefinition_1= ruleOrGateDefinition | this_KOfMGateDefinition_2= ruleKOfMGateDefinition ) ; | ||
1787 | public final EObject ruleGateDefinition() throws RecognitionException { | ||
1788 | EObject current = null; | ||
1789 | |||
1790 | EObject this_AndGateDefinition_0 = null; | ||
1791 | |||
1792 | EObject this_OrGateDefinition_1 = null; | ||
1793 | |||
1794 | EObject this_KOfMGateDefinition_2 = null; | ||
1795 | |||
1796 | |||
1797 | |||
1798 | enterRule(); | ||
1799 | |||
1800 | try { | ||
1801 | // InternalCftLanguage.g:668:2: ( (this_AndGateDefinition_0= ruleAndGateDefinition | this_OrGateDefinition_1= ruleOrGateDefinition | this_KOfMGateDefinition_2= ruleKOfMGateDefinition ) ) | ||
1802 | // InternalCftLanguage.g:669:2: (this_AndGateDefinition_0= ruleAndGateDefinition | this_OrGateDefinition_1= ruleOrGateDefinition | this_KOfMGateDefinition_2= ruleKOfMGateDefinition ) | ||
1803 | { | ||
1804 | // InternalCftLanguage.g:669:2: (this_AndGateDefinition_0= ruleAndGateDefinition | this_OrGateDefinition_1= ruleOrGateDefinition | this_KOfMGateDefinition_2= ruleKOfMGateDefinition ) | ||
1805 | int alt12=3; | ||
1806 | int LA12_0 = input.LA(1); | ||
1807 | |||
1808 | if ( (LA12_0==RULE_ID) ) { | ||
1809 | switch ( input.LA(2) ) { | ||
1810 | case RULE_INT: | ||
1811 | { | ||
1812 | alt12=3; | ||
1813 | } | ||
1814 | break; | ||
1815 | case 26: | ||
1816 | { | ||
1817 | alt12=2; | ||
1818 | } | ||
1819 | break; | ||
1820 | case 25: | ||
1821 | { | ||
1822 | alt12=1; | ||
1823 | } | ||
1824 | break; | ||
1825 | default: | ||
1826 | NoViableAltException nvae = | ||
1827 | new NoViableAltException("", 12, 1, input); | ||
1828 | |||
1829 | throw nvae; | ||
1830 | } | ||
1831 | |||
1832 | } | ||
1833 | else if ( (LA12_0==RULE_OF_INT) ) { | ||
1834 | switch ( input.LA(2) ) { | ||
1835 | case RULE_INT: | ||
1836 | { | ||
1837 | alt12=3; | ||
1838 | } | ||
1839 | break; | ||
1840 | case 26: | ||
1841 | { | ||
1842 | alt12=2; | ||
1843 | } | ||
1844 | break; | ||
1845 | case 25: | ||
1846 | { | ||
1847 | alt12=1; | ||
1848 | } | ||
1849 | break; | ||
1850 | default: | ||
1851 | NoViableAltException nvae = | ||
1852 | new NoViableAltException("", 12, 2, input); | ||
1853 | |||
1854 | throw nvae; | ||
1855 | } | ||
1856 | |||
1857 | } | ||
1858 | else { | ||
1859 | NoViableAltException nvae = | ||
1860 | new NoViableAltException("", 12, 0, input); | ||
1861 | |||
1862 | throw nvae; | ||
1863 | } | ||
1864 | switch (alt12) { | ||
1865 | case 1 : | ||
1866 | // InternalCftLanguage.g:670:3: this_AndGateDefinition_0= ruleAndGateDefinition | ||
1867 | { | ||
1868 | |||
1869 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getAndGateDefinitionParserRuleCall_0()); | ||
1870 | |||
1871 | pushFollow(FOLLOW_2); | ||
1872 | this_AndGateDefinition_0=ruleAndGateDefinition(); | ||
1873 | |||
1874 | state._fsp--; | ||
1875 | |||
1876 | |||
1877 | current = this_AndGateDefinition_0; | ||
1878 | afterParserOrEnumRuleCall(); | ||
1879 | |||
1880 | |||
1881 | } | ||
1882 | break; | ||
1883 | case 2 : | ||
1884 | // InternalCftLanguage.g:679:3: this_OrGateDefinition_1= ruleOrGateDefinition | ||
1885 | { | ||
1886 | |||
1887 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getOrGateDefinitionParserRuleCall_1()); | ||
1888 | |||
1889 | pushFollow(FOLLOW_2); | ||
1890 | this_OrGateDefinition_1=ruleOrGateDefinition(); | ||
1891 | |||
1892 | state._fsp--; | ||
1893 | |||
1894 | |||
1895 | current = this_OrGateDefinition_1; | ||
1896 | afterParserOrEnumRuleCall(); | ||
1897 | |||
1898 | |||
1899 | } | ||
1900 | break; | ||
1901 | case 3 : | ||
1902 | // InternalCftLanguage.g:688:3: this_KOfMGateDefinition_2= ruleKOfMGateDefinition | ||
1903 | { | ||
1904 | |||
1905 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getKOfMGateDefinitionParserRuleCall_2()); | ||
1906 | |||
1907 | pushFollow(FOLLOW_2); | ||
1908 | this_KOfMGateDefinition_2=ruleKOfMGateDefinition(); | ||
1909 | |||
1910 | state._fsp--; | ||
1911 | |||
1912 | |||
1913 | current = this_KOfMGateDefinition_2; | ||
1914 | afterParserOrEnumRuleCall(); | ||
1915 | |||
1916 | |||
1917 | } | ||
1918 | break; | ||
1919 | |||
1920 | } | ||
1921 | |||
1922 | |||
1923 | } | ||
1924 | |||
1925 | |||
1926 | leaveRule(); | ||
1927 | |||
1928 | } | ||
1929 | |||
1930 | catch (RecognitionException re) { | ||
1931 | recover(input,re); | ||
1932 | appendSkippedTokens(); | ||
1933 | } | ||
1934 | finally { | ||
1935 | } | ||
1936 | return current; | ||
1937 | } | ||
1938 | // $ANTLR end "ruleGateDefinition" | ||
1939 | |||
1940 | |||
1941 | // $ANTLR start "entryRuleAndGateDefinition" | ||
1942 | // InternalCftLanguage.g:700:1: entryRuleAndGateDefinition returns [EObject current=null] : iv_ruleAndGateDefinition= ruleAndGateDefinition EOF ; | ||
1943 | public final EObject entryRuleAndGateDefinition() throws RecognitionException { | ||
1944 | EObject current = null; | ||
1945 | |||
1946 | EObject iv_ruleAndGateDefinition = null; | ||
1947 | |||
1948 | |||
1949 | try { | ||
1950 | // InternalCftLanguage.g:700:58: (iv_ruleAndGateDefinition= ruleAndGateDefinition EOF ) | ||
1951 | // InternalCftLanguage.g:701:2: iv_ruleAndGateDefinition= ruleAndGateDefinition EOF | ||
1952 | { | ||
1953 | newCompositeNode(grammarAccess.getAndGateDefinitionRule()); | ||
1954 | pushFollow(FOLLOW_1); | ||
1955 | iv_ruleAndGateDefinition=ruleAndGateDefinition(); | ||
1956 | |||
1957 | state._fsp--; | ||
1958 | |||
1959 | current =iv_ruleAndGateDefinition; | ||
1960 | match(input,EOF,FOLLOW_2); | ||
1961 | |||
1962 | } | ||
1963 | |||
1964 | } | ||
1965 | |||
1966 | catch (RecognitionException re) { | ||
1967 | recover(input,re); | ||
1968 | appendSkippedTokens(); | ||
1969 | } | ||
1970 | finally { | ||
1971 | } | ||
1972 | return current; | ||
1973 | } | ||
1974 | // $ANTLR end "entryRuleAndGateDefinition" | ||
1975 | |||
1976 | |||
1977 | // $ANTLR start "ruleAndGateDefinition" | ||
1978 | // InternalCftLanguage.g:707:1: ruleAndGateDefinition returns [EObject current=null] : ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'and' ( ( ruleValidId ) )* ) ; | ||
1979 | public final EObject ruleAndGateDefinition() throws RecognitionException { | ||
1980 | EObject current = null; | ||
1981 | |||
1982 | Token otherlv_1=null; | ||
1983 | AntlrDatatypeRuleToken lv_name_0_0 = null; | ||
1984 | |||
1985 | |||
1986 | |||
1987 | enterRule(); | ||
1988 | |||
1989 | try { | ||
1990 | // InternalCftLanguage.g:713:2: ( ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'and' ( ( ruleValidId ) )* ) ) | ||
1991 | // InternalCftLanguage.g:714:2: ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'and' ( ( ruleValidId ) )* ) | ||
1992 | { | ||
1993 | // InternalCftLanguage.g:714:2: ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'and' ( ( ruleValidId ) )* ) | ||
1994 | // InternalCftLanguage.g:715:3: ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'and' ( ( ruleValidId ) )* | ||
1995 | { | ||
1996 | // InternalCftLanguage.g:715:3: ( (lv_name_0_0= ruleValidId ) ) | ||
1997 | // InternalCftLanguage.g:716:4: (lv_name_0_0= ruleValidId ) | ||
1998 | { | ||
1999 | // InternalCftLanguage.g:716:4: (lv_name_0_0= ruleValidId ) | ||
2000 | // InternalCftLanguage.g:717:5: lv_name_0_0= ruleValidId | ||
2001 | { | ||
2002 | |||
2003 | newCompositeNode(grammarAccess.getAndGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); | ||
2004 | |||
2005 | pushFollow(FOLLOW_17); | ||
2006 | lv_name_0_0=ruleValidId(); | ||
2007 | |||
2008 | state._fsp--; | ||
2009 | |||
2010 | |||
2011 | if (current==null) { | ||
2012 | current = createModelElementForParent(grammarAccess.getAndGateDefinitionRule()); | ||
2013 | } | ||
2014 | set( | ||
2015 | current, | ||
2016 | "name", | ||
2017 | lv_name_0_0, | ||
2018 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
2019 | afterParserOrEnumRuleCall(); | ||
2020 | |||
2021 | |||
2022 | } | ||
2023 | |||
2024 | |||
2025 | } | ||
2026 | |||
2027 | otherlv_1=(Token)match(input,25,FOLLOW_18); | ||
2028 | |||
2029 | newLeafNode(otherlv_1, grammarAccess.getAndGateDefinitionAccess().getAndKeyword_1()); | ||
2030 | |||
2031 | // InternalCftLanguage.g:738:3: ( ( ruleValidId ) )* | ||
2032 | loop13: | ||
2033 | do { | ||
2034 | int alt13=2; | ||
2035 | int LA13_0 = input.LA(1); | ||
2036 | |||
2037 | if ( ((LA13_0>=RULE_OF_INT && LA13_0<=RULE_ID)) ) { | ||
2038 | alt13=1; | ||
2039 | } | ||
2040 | |||
2041 | |||
2042 | switch (alt13) { | ||
2043 | case 1 : | ||
2044 | // InternalCftLanguage.g:739:4: ( ruleValidId ) | ||
2045 | { | ||
2046 | // InternalCftLanguage.g:739:4: ( ruleValidId ) | ||
2047 | // InternalCftLanguage.g:740:5: ruleValidId | ||
2048 | { | ||
2049 | |||
2050 | if (current==null) { | ||
2051 | current = createModelElement(grammarAccess.getAndGateDefinitionRule()); | ||
2052 | } | ||
2053 | |||
2054 | |||
2055 | newCompositeNode(grammarAccess.getAndGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_2_0()); | ||
2056 | |||
2057 | pushFollow(FOLLOW_18); | ||
2058 | ruleValidId(); | ||
2059 | |||
2060 | state._fsp--; | ||
2061 | |||
2062 | |||
2063 | afterParserOrEnumRuleCall(); | ||
2064 | |||
2065 | |||
2066 | } | ||
2067 | |||
2068 | |||
2069 | } | ||
2070 | break; | ||
2071 | |||
2072 | default : | ||
2073 | break loop13; | ||
2074 | } | ||
2075 | } while (true); | ||
2076 | |||
2077 | |||
2078 | } | ||
2079 | |||
2080 | |||
2081 | } | ||
2082 | |||
2083 | |||
2084 | leaveRule(); | ||
2085 | |||
2086 | } | ||
2087 | |||
2088 | catch (RecognitionException re) { | ||
2089 | recover(input,re); | ||
2090 | appendSkippedTokens(); | ||
2091 | } | ||
2092 | finally { | ||
2093 | } | ||
2094 | return current; | ||
2095 | } | ||
2096 | // $ANTLR end "ruleAndGateDefinition" | ||
2097 | |||
2098 | |||
2099 | // $ANTLR start "entryRuleOrGateDefinition" | ||
2100 | // InternalCftLanguage.g:758:1: entryRuleOrGateDefinition returns [EObject current=null] : iv_ruleOrGateDefinition= ruleOrGateDefinition EOF ; | ||
2101 | public final EObject entryRuleOrGateDefinition() throws RecognitionException { | ||
2102 | EObject current = null; | ||
2103 | |||
2104 | EObject iv_ruleOrGateDefinition = null; | ||
2105 | |||
2106 | |||
2107 | try { | ||
2108 | // InternalCftLanguage.g:758:57: (iv_ruleOrGateDefinition= ruleOrGateDefinition EOF ) | ||
2109 | // InternalCftLanguage.g:759:2: iv_ruleOrGateDefinition= ruleOrGateDefinition EOF | ||
2110 | { | ||
2111 | newCompositeNode(grammarAccess.getOrGateDefinitionRule()); | ||
2112 | pushFollow(FOLLOW_1); | ||
2113 | iv_ruleOrGateDefinition=ruleOrGateDefinition(); | ||
2114 | |||
2115 | state._fsp--; | ||
2116 | |||
2117 | current =iv_ruleOrGateDefinition; | ||
2118 | match(input,EOF,FOLLOW_2); | ||
2119 | |||
2120 | } | ||
2121 | |||
2122 | } | ||
2123 | |||
2124 | catch (RecognitionException re) { | ||
2125 | recover(input,re); | ||
2126 | appendSkippedTokens(); | ||
2127 | } | ||
2128 | finally { | ||
2129 | } | ||
2130 | return current; | ||
2131 | } | ||
2132 | // $ANTLR end "entryRuleOrGateDefinition" | ||
2133 | |||
2134 | |||
2135 | // $ANTLR start "ruleOrGateDefinition" | ||
2136 | // InternalCftLanguage.g:765:1: ruleOrGateDefinition returns [EObject current=null] : ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'or' ( ( ruleValidId ) )* ) ; | ||
2137 | public final EObject ruleOrGateDefinition() throws RecognitionException { | ||
2138 | EObject current = null; | ||
2139 | |||
2140 | Token otherlv_1=null; | ||
2141 | AntlrDatatypeRuleToken lv_name_0_0 = null; | ||
2142 | |||
2143 | |||
2144 | |||
2145 | enterRule(); | ||
2146 | |||
2147 | try { | ||
2148 | // InternalCftLanguage.g:771:2: ( ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'or' ( ( ruleValidId ) )* ) ) | ||
2149 | // InternalCftLanguage.g:772:2: ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'or' ( ( ruleValidId ) )* ) | ||
2150 | { | ||
2151 | // InternalCftLanguage.g:772:2: ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'or' ( ( ruleValidId ) )* ) | ||
2152 | // InternalCftLanguage.g:773:3: ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'or' ( ( ruleValidId ) )* | ||
2153 | { | ||
2154 | // InternalCftLanguage.g:773:3: ( (lv_name_0_0= ruleValidId ) ) | ||
2155 | // InternalCftLanguage.g:774:4: (lv_name_0_0= ruleValidId ) | ||
2156 | { | ||
2157 | // InternalCftLanguage.g:774:4: (lv_name_0_0= ruleValidId ) | ||
2158 | // InternalCftLanguage.g:775:5: lv_name_0_0= ruleValidId | ||
2159 | { | ||
2160 | |||
2161 | newCompositeNode(grammarAccess.getOrGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); | ||
2162 | |||
2163 | pushFollow(FOLLOW_19); | ||
2164 | lv_name_0_0=ruleValidId(); | ||
2165 | |||
2166 | state._fsp--; | ||
2167 | |||
2168 | |||
2169 | if (current==null) { | ||
2170 | current = createModelElementForParent(grammarAccess.getOrGateDefinitionRule()); | ||
2171 | } | ||
2172 | set( | ||
2173 | current, | ||
2174 | "name", | ||
2175 | lv_name_0_0, | ||
2176 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
2177 | afterParserOrEnumRuleCall(); | ||
2178 | |||
2179 | |||
2180 | } | ||
2181 | |||
2182 | |||
2183 | } | ||
2184 | |||
2185 | otherlv_1=(Token)match(input,26,FOLLOW_18); | ||
2186 | |||
2187 | newLeafNode(otherlv_1, grammarAccess.getOrGateDefinitionAccess().getOrKeyword_1()); | ||
2188 | |||
2189 | // InternalCftLanguage.g:796:3: ( ( ruleValidId ) )* | ||
2190 | loop14: | ||
2191 | do { | ||
2192 | int alt14=2; | ||
2193 | int LA14_0 = input.LA(1); | ||
2194 | |||
2195 | if ( ((LA14_0>=RULE_OF_INT && LA14_0<=RULE_ID)) ) { | ||
2196 | alt14=1; | ||
2197 | } | ||
2198 | |||
2199 | |||
2200 | switch (alt14) { | ||
2201 | case 1 : | ||
2202 | // InternalCftLanguage.g:797:4: ( ruleValidId ) | ||
2203 | { | ||
2204 | // InternalCftLanguage.g:797:4: ( ruleValidId ) | ||
2205 | // InternalCftLanguage.g:798:5: ruleValidId | ||
2206 | { | ||
2207 | |||
2208 | if (current==null) { | ||
2209 | current = createModelElement(grammarAccess.getOrGateDefinitionRule()); | ||
2210 | } | ||
2211 | |||
2212 | |||
2213 | newCompositeNode(grammarAccess.getOrGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_2_0()); | ||
2214 | |||
2215 | pushFollow(FOLLOW_18); | ||
2216 | ruleValidId(); | ||
2217 | |||
2218 | state._fsp--; | ||
2219 | |||
2220 | |||
2221 | afterParserOrEnumRuleCall(); | ||
2222 | |||
2223 | |||
2224 | } | ||
2225 | |||
2226 | |||
2227 | } | ||
2228 | break; | ||
2229 | |||
2230 | default : | ||
2231 | break loop14; | ||
2232 | } | ||
2233 | } while (true); | ||
2234 | |||
2235 | |||
2236 | } | ||
2237 | |||
2238 | |||
2239 | } | ||
2240 | |||
2241 | |||
2242 | leaveRule(); | ||
2243 | |||
2244 | } | ||
2245 | |||
2246 | catch (RecognitionException re) { | ||
2247 | recover(input,re); | ||
2248 | appendSkippedTokens(); | ||
2249 | } | ||
2250 | finally { | ||
2251 | } | ||
2252 | return current; | ||
2253 | } | ||
2254 | // $ANTLR end "ruleOrGateDefinition" | ||
2255 | |||
2256 | |||
2257 | // $ANTLR start "entryRuleKOfMGateDefinition" | ||
2258 | // InternalCftLanguage.g:816:1: entryRuleKOfMGateDefinition returns [EObject current=null] : iv_ruleKOfMGateDefinition= ruleKOfMGateDefinition EOF ; | ||
2259 | public final EObject entryRuleKOfMGateDefinition() throws RecognitionException { | ||
2260 | EObject current = null; | ||
2261 | |||
2262 | EObject iv_ruleKOfMGateDefinition = null; | ||
2263 | |||
2264 | |||
2265 | try { | ||
2266 | // InternalCftLanguage.g:816:59: (iv_ruleKOfMGateDefinition= ruleKOfMGateDefinition EOF ) | ||
2267 | // InternalCftLanguage.g:817:2: iv_ruleKOfMGateDefinition= ruleKOfMGateDefinition EOF | ||
2268 | { | ||
2269 | newCompositeNode(grammarAccess.getKOfMGateDefinitionRule()); | ||
2270 | pushFollow(FOLLOW_1); | ||
2271 | iv_ruleKOfMGateDefinition=ruleKOfMGateDefinition(); | ||
2272 | |||
2273 | state._fsp--; | ||
2274 | |||
2275 | current =iv_ruleKOfMGateDefinition; | ||
2276 | match(input,EOF,FOLLOW_2); | ||
2277 | |||
2278 | } | ||
2279 | |||
2280 | } | ||
2281 | |||
2282 | catch (RecognitionException re) { | ||
2283 | recover(input,re); | ||
2284 | appendSkippedTokens(); | ||
2285 | } | ||
2286 | finally { | ||
2287 | } | ||
2288 | return current; | ||
2289 | } | ||
2290 | // $ANTLR end "entryRuleKOfMGateDefinition" | ||
2291 | |||
2292 | |||
2293 | // $ANTLR start "ruleKOfMGateDefinition" | ||
2294 | // InternalCftLanguage.g:823:1: ruleKOfMGateDefinition returns [EObject current=null] : ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_k_1_0= RULE_INT ) ) ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) ( ( ruleValidId ) )* ) ; | ||
2295 | public final EObject ruleKOfMGateDefinition() throws RecognitionException { | ||
2296 | EObject current = null; | ||
2297 | |||
2298 | Token lv_k_1_0=null; | ||
2299 | Token otherlv_2=null; | ||
2300 | Token lv_m_3_0=null; | ||
2301 | Token lv_m_4_0=null; | ||
2302 | AntlrDatatypeRuleToken lv_name_0_0 = null; | ||
2303 | |||
2304 | |||
2305 | |||
2306 | enterRule(); | ||
2307 | |||
2308 | try { | ||
2309 | // InternalCftLanguage.g:829:2: ( ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_k_1_0= RULE_INT ) ) ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) ( ( ruleValidId ) )* ) ) | ||
2310 | // InternalCftLanguage.g:830:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_k_1_0= RULE_INT ) ) ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) ( ( ruleValidId ) )* ) | ||
2311 | { | ||
2312 | // InternalCftLanguage.g:830:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_k_1_0= RULE_INT ) ) ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) ( ( ruleValidId ) )* ) | ||
2313 | // InternalCftLanguage.g:831:3: ( (lv_name_0_0= ruleValidId ) ) ( (lv_k_1_0= RULE_INT ) ) ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) ( ( ruleValidId ) )* | ||
2314 | { | ||
2315 | // InternalCftLanguage.g:831:3: ( (lv_name_0_0= ruleValidId ) ) | ||
2316 | // InternalCftLanguage.g:832:4: (lv_name_0_0= ruleValidId ) | ||
2317 | { | ||
2318 | // InternalCftLanguage.g:832:4: (lv_name_0_0= ruleValidId ) | ||
2319 | // InternalCftLanguage.g:833:5: lv_name_0_0= ruleValidId | ||
2320 | { | ||
2321 | |||
2322 | newCompositeNode(grammarAccess.getKOfMGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); | ||
2323 | |||
2324 | pushFollow(FOLLOW_20); | ||
2325 | lv_name_0_0=ruleValidId(); | ||
2326 | |||
2327 | state._fsp--; | ||
2328 | |||
2329 | |||
2330 | if (current==null) { | ||
2331 | current = createModelElementForParent(grammarAccess.getKOfMGateDefinitionRule()); | ||
2332 | } | ||
2333 | set( | ||
2334 | current, | ||
2335 | "name", | ||
2336 | lv_name_0_0, | ||
2337 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
2338 | afterParserOrEnumRuleCall(); | ||
2339 | |||
2340 | |||
2341 | } | ||
2342 | |||
2343 | |||
2344 | } | ||
2345 | |||
2346 | // InternalCftLanguage.g:850:3: ( (lv_k_1_0= RULE_INT ) ) | ||
2347 | // InternalCftLanguage.g:851:4: (lv_k_1_0= RULE_INT ) | ||
2348 | { | ||
2349 | // InternalCftLanguage.g:851:4: (lv_k_1_0= RULE_INT ) | ||
2350 | // InternalCftLanguage.g:852:5: lv_k_1_0= RULE_INT | ||
2351 | { | ||
2352 | lv_k_1_0=(Token)match(input,RULE_INT,FOLLOW_21); | ||
2353 | |||
2354 | newLeafNode(lv_k_1_0, grammarAccess.getKOfMGateDefinitionAccess().getKINTTerminalRuleCall_1_0()); | ||
2355 | |||
2356 | |||
2357 | if (current==null) { | ||
2358 | current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
2359 | } | ||
2360 | setWithLastConsumed( | ||
2361 | current, | ||
2362 | "k", | ||
2363 | lv_k_1_0, | ||
2364 | "org.eclipse.xtext.common.Terminals.INT"); | ||
2365 | |||
2366 | |||
2367 | } | ||
2368 | |||
2369 | |||
2370 | } | ||
2371 | |||
2372 | // InternalCftLanguage.g:868:3: ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) | ||
2373 | int alt15=2; | ||
2374 | int LA15_0 = input.LA(1); | ||
2375 | |||
2376 | if ( (LA15_0==27) ) { | ||
2377 | alt15=1; | ||
2378 | } | ||
2379 | else if ( (LA15_0==RULE_OF_INT) ) { | ||
2380 | alt15=2; | ||
2381 | } | ||
2382 | else { | ||
2383 | NoViableAltException nvae = | ||
2384 | new NoViableAltException("", 15, 0, input); | ||
2385 | |||
2386 | throw nvae; | ||
2387 | } | ||
2388 | switch (alt15) { | ||
2389 | case 1 : | ||
2390 | // InternalCftLanguage.g:869:4: (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ||
2391 | { | ||
2392 | // InternalCftLanguage.g:869:4: (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ||
2393 | // InternalCftLanguage.g:870:5: otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) | ||
2394 | { | ||
2395 | otherlv_2=(Token)match(input,27,FOLLOW_20); | ||
2396 | |||
2397 | newLeafNode(otherlv_2, grammarAccess.getKOfMGateDefinitionAccess().getOfKeyword_2_0_0()); | ||
2398 | |||
2399 | // InternalCftLanguage.g:874:5: ( (lv_m_3_0= RULE_INT ) ) | ||
2400 | // InternalCftLanguage.g:875:6: (lv_m_3_0= RULE_INT ) | ||
2401 | { | ||
2402 | // InternalCftLanguage.g:875:6: (lv_m_3_0= RULE_INT ) | ||
2403 | // InternalCftLanguage.g:876:7: lv_m_3_0= RULE_INT | ||
2404 | { | ||
2405 | lv_m_3_0=(Token)match(input,RULE_INT,FOLLOW_18); | ||
2406 | |||
2407 | newLeafNode(lv_m_3_0, grammarAccess.getKOfMGateDefinitionAccess().getMINTTerminalRuleCall_2_0_1_0()); | ||
2408 | |||
2409 | |||
2410 | if (current==null) { | ||
2411 | current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
2412 | } | ||
2413 | setWithLastConsumed( | ||
2414 | current, | ||
2415 | "m", | ||
2416 | lv_m_3_0, | ||
2417 | "org.eclipse.xtext.common.Terminals.INT"); | ||
2418 | |||
2419 | |||
2420 | } | ||
2421 | |||
2422 | |||
2423 | } | ||
2424 | |||
2425 | |||
2426 | } | ||
2427 | |||
2428 | |||
2429 | } | ||
2430 | break; | ||
2431 | case 2 : | ||
2432 | // InternalCftLanguage.g:894:4: ( (lv_m_4_0= RULE_OF_INT ) ) | ||
2433 | { | ||
2434 | // InternalCftLanguage.g:894:4: ( (lv_m_4_0= RULE_OF_INT ) ) | ||
2435 | // InternalCftLanguage.g:895:5: (lv_m_4_0= RULE_OF_INT ) | ||
2436 | { | ||
2437 | // InternalCftLanguage.g:895:5: (lv_m_4_0= RULE_OF_INT ) | ||
2438 | // InternalCftLanguage.g:896:6: lv_m_4_0= RULE_OF_INT | ||
2439 | { | ||
2440 | lv_m_4_0=(Token)match(input,RULE_OF_INT,FOLLOW_18); | ||
2441 | |||
2442 | newLeafNode(lv_m_4_0, grammarAccess.getKOfMGateDefinitionAccess().getMOF_INTTerminalRuleCall_2_1_0()); | ||
2443 | |||
2444 | |||
2445 | if (current==null) { | ||
2446 | current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
2447 | } | ||
2448 | setWithLastConsumed( | ||
2449 | current, | ||
2450 | "m", | ||
2451 | lv_m_4_0, | ||
2452 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.OF_INT"); | ||
2453 | |||
2454 | |||
2455 | } | ||
2456 | |||
2457 | |||
2458 | } | ||
2459 | |||
2460 | |||
2461 | } | ||
2462 | break; | ||
2463 | |||
2464 | } | ||
2465 | |||
2466 | // InternalCftLanguage.g:913:3: ( ( ruleValidId ) )* | ||
2467 | loop16: | ||
2468 | do { | ||
2469 | int alt16=2; | ||
2470 | int LA16_0 = input.LA(1); | ||
2471 | |||
2472 | if ( ((LA16_0>=RULE_OF_INT && LA16_0<=RULE_ID)) ) { | ||
2473 | alt16=1; | ||
2474 | } | ||
2475 | |||
2476 | |||
2477 | switch (alt16) { | ||
2478 | case 1 : | ||
2479 | // InternalCftLanguage.g:914:4: ( ruleValidId ) | ||
2480 | { | ||
2481 | // InternalCftLanguage.g:914:4: ( ruleValidId ) | ||
2482 | // InternalCftLanguage.g:915:5: ruleValidId | ||
2483 | { | ||
2484 | |||
2485 | if (current==null) { | ||
2486 | current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
2487 | } | ||
2488 | |||
2489 | |||
2490 | newCompositeNode(grammarAccess.getKOfMGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_3_0()); | ||
2491 | |||
2492 | pushFollow(FOLLOW_18); | ||
2493 | ruleValidId(); | ||
2494 | |||
2495 | state._fsp--; | ||
2496 | |||
2497 | |||
2498 | afterParserOrEnumRuleCall(); | ||
2499 | |||
2500 | |||
2501 | } | ||
2502 | |||
2503 | |||
2504 | } | ||
2505 | break; | ||
2506 | |||
2507 | default : | ||
2508 | break loop16; | ||
2509 | } | ||
2510 | } while (true); | ||
2511 | |||
2512 | |||
2513 | } | ||
2514 | |||
2515 | |||
2516 | } | ||
2517 | |||
2518 | |||
2519 | leaveRule(); | ||
2520 | |||
2521 | } | ||
2522 | |||
2523 | catch (RecognitionException re) { | ||
2524 | recover(input,re); | ||
2525 | appendSkippedTokens(); | ||
2526 | } | ||
2527 | finally { | ||
2528 | } | ||
2529 | return current; | ||
2530 | } | ||
2531 | // $ANTLR end "ruleKOfMGateDefinition" | ||
2532 | |||
2533 | |||
2534 | // $ANTLR start "entryRuleTransformationDefinition" | ||
2535 | // InternalCftLanguage.g:933:1: entryRuleTransformationDefinition returns [EObject current=null] : iv_ruleTransformationDefinition= ruleTransformationDefinition EOF ; | ||
2536 | public final EObject entryRuleTransformationDefinition() throws RecognitionException { | ||
2537 | EObject current = null; | ||
2538 | |||
2539 | EObject iv_ruleTransformationDefinition = null; | ||
2540 | |||
2541 | |||
2542 | try { | ||
2543 | // InternalCftLanguage.g:933:65: (iv_ruleTransformationDefinition= ruleTransformationDefinition EOF ) | ||
2544 | // InternalCftLanguage.g:934:2: iv_ruleTransformationDefinition= ruleTransformationDefinition EOF | ||
2545 | { | ||
2546 | newCompositeNode(grammarAccess.getTransformationDefinitionRule()); | ||
2547 | pushFollow(FOLLOW_1); | ||
2548 | iv_ruleTransformationDefinition=ruleTransformationDefinition(); | ||
2549 | |||
2550 | state._fsp--; | ||
2551 | |||
2552 | current =iv_ruleTransformationDefinition; | ||
2553 | match(input,EOF,FOLLOW_2); | ||
2554 | |||
2555 | } | ||
2556 | |||
2557 | } | ||
2558 | |||
2559 | catch (RecognitionException re) { | ||
2560 | recover(input,re); | ||
2561 | appendSkippedTokens(); | ||
2562 | } | ||
2563 | finally { | ||
2564 | } | ||
2565 | return current; | ||
2566 | } | ||
2567 | // $ANTLR end "entryRuleTransformationDefinition" | ||
2568 | |||
2569 | |||
2570 | // $ANTLR start "ruleTransformationDefinition" | ||
2571 | // InternalCftLanguage.g:940:1: ruleTransformationDefinition returns [EObject current=null] : (otherlv_0= 'transformation' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) ; | ||
2572 | public final EObject ruleTransformationDefinition() throws RecognitionException { | ||
2573 | EObject current = null; | ||
2574 | |||
2575 | Token otherlv_0=null; | ||
2576 | Token otherlv_2=null; | ||
2577 | Token otherlv_4=null; | ||
2578 | AntlrDatatypeRuleToken lv_name_1_0 = null; | ||
2579 | |||
2580 | EObject lv_mappingDefinitions_3_0 = null; | ||
2581 | |||
2582 | |||
2583 | |||
2584 | enterRule(); | ||
2585 | |||
2586 | try { | ||
2587 | // InternalCftLanguage.g:946:2: ( (otherlv_0= 'transformation' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) ) | ||
2588 | // InternalCftLanguage.g:947:2: (otherlv_0= 'transformation' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) | ||
2589 | { | ||
2590 | // InternalCftLanguage.g:947:2: (otherlv_0= 'transformation' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) | ||
2591 | // InternalCftLanguage.g:948:3: otherlv_0= 'transformation' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' | ||
2592 | { | ||
2593 | otherlv_0=(Token)match(input,28,FOLLOW_3); | ||
2594 | |||
2595 | newLeafNode(otherlv_0, grammarAccess.getTransformationDefinitionAccess().getTransformationKeyword_0()); | ||
2596 | |||
2597 | // InternalCftLanguage.g:952:3: ( (lv_name_1_0= ruleValidId ) ) | ||
2598 | // InternalCftLanguage.g:953:4: (lv_name_1_0= ruleValidId ) | ||
2599 | { | ||
2600 | // InternalCftLanguage.g:953:4: (lv_name_1_0= ruleValidId ) | ||
2601 | // InternalCftLanguage.g:954:5: lv_name_1_0= ruleValidId | ||
2602 | { | ||
2603 | |||
2604 | newCompositeNode(grammarAccess.getTransformationDefinitionAccess().getNameValidIdParserRuleCall_1_0()); | ||
2605 | |||
2606 | pushFollow(FOLLOW_8); | ||
2607 | lv_name_1_0=ruleValidId(); | ||
2608 | |||
2609 | state._fsp--; | ||
2610 | |||
2611 | |||
2612 | if (current==null) { | ||
2613 | current = createModelElementForParent(grammarAccess.getTransformationDefinitionRule()); | ||
2614 | } | ||
2615 | set( | ||
2616 | current, | ||
2617 | "name", | ||
2618 | lv_name_1_0, | ||
2619 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
2620 | afterParserOrEnumRuleCall(); | ||
2621 | |||
2622 | |||
2623 | } | ||
2624 | |||
2625 | |||
2626 | } | ||
2627 | |||
2628 | otherlv_2=(Token)match(input,17,FOLLOW_22); | ||
2629 | |||
2630 | newLeafNode(otherlv_2, grammarAccess.getTransformationDefinitionAccess().getLeftCurlyBracketKeyword_2()); | ||
2631 | |||
2632 | // InternalCftLanguage.g:975:3: ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* | ||
2633 | loop17: | ||
2634 | do { | ||
2635 | int alt17=2; | ||
2636 | int LA17_0 = input.LA(1); | ||
2637 | |||
2638 | if ( ((LA17_0>=29 && LA17_0<=30)) ) { | ||
2639 | alt17=1; | ||
2640 | } | ||
2641 | |||
2642 | |||
2643 | switch (alt17) { | ||
2644 | case 1 : | ||
2645 | // InternalCftLanguage.g:976:4: (lv_mappingDefinitions_3_0= ruleMappingDefinition ) | ||
2646 | { | ||
2647 | // InternalCftLanguage.g:976:4: (lv_mappingDefinitions_3_0= ruleMappingDefinition ) | ||
2648 | // InternalCftLanguage.g:977:5: lv_mappingDefinitions_3_0= ruleMappingDefinition | ||
2649 | { | ||
2650 | |||
2651 | newCompositeNode(grammarAccess.getTransformationDefinitionAccess().getMappingDefinitionsMappingDefinitionParserRuleCall_3_0()); | ||
2652 | |||
2653 | pushFollow(FOLLOW_22); | ||
2654 | lv_mappingDefinitions_3_0=ruleMappingDefinition(); | ||
2655 | |||
2656 | state._fsp--; | ||
2657 | |||
2658 | |||
2659 | if (current==null) { | ||
2660 | current = createModelElementForParent(grammarAccess.getTransformationDefinitionRule()); | ||
2661 | } | ||
2662 | add( | ||
2663 | current, | ||
2664 | "mappingDefinitions", | ||
2665 | lv_mappingDefinitions_3_0, | ||
2666 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingDefinition"); | ||
2667 | afterParserOrEnumRuleCall(); | ||
2668 | |||
2669 | |||
2670 | } | ||
2671 | |||
2672 | |||
2673 | } | ||
2674 | break; | ||
2675 | |||
2676 | default : | ||
2677 | break loop17; | ||
2678 | } | ||
2679 | } while (true); | ||
2680 | |||
2681 | otherlv_4=(Token)match(input,20,FOLLOW_2); | ||
2682 | |||
2683 | newLeafNode(otherlv_4, grammarAccess.getTransformationDefinitionAccess().getRightCurlyBracketKeyword_4()); | ||
2684 | |||
2685 | |||
2686 | } | ||
2687 | |||
2688 | |||
2689 | } | ||
2690 | |||
2691 | |||
2692 | leaveRule(); | ||
2693 | |||
2694 | } | ||
2695 | |||
2696 | catch (RecognitionException re) { | ||
2697 | recover(input,re); | ||
2698 | appendSkippedTokens(); | ||
2699 | } | ||
2700 | finally { | ||
2701 | } | ||
2702 | return current; | ||
2703 | } | ||
2704 | // $ANTLR end "ruleTransformationDefinition" | ||
2705 | |||
2706 | |||
2707 | // $ANTLR start "entryRuleMappingDefinition" | ||
2708 | // InternalCftLanguage.g:1002:1: entryRuleMappingDefinition returns [EObject current=null] : iv_ruleMappingDefinition= ruleMappingDefinition EOF ; | ||
2709 | public final EObject entryRuleMappingDefinition() throws RecognitionException { | ||
2710 | EObject current = null; | ||
2711 | |||
2712 | EObject iv_ruleMappingDefinition = null; | ||
2713 | |||
2714 | |||
2715 | try { | ||
2716 | // InternalCftLanguage.g:1002:58: (iv_ruleMappingDefinition= ruleMappingDefinition EOF ) | ||
2717 | // InternalCftLanguage.g:1003:2: iv_ruleMappingDefinition= ruleMappingDefinition EOF | ||
2718 | { | ||
2719 | newCompositeNode(grammarAccess.getMappingDefinitionRule()); | ||
2720 | pushFollow(FOLLOW_1); | ||
2721 | iv_ruleMappingDefinition=ruleMappingDefinition(); | ||
2722 | |||
2723 | state._fsp--; | ||
2724 | |||
2725 | current =iv_ruleMappingDefinition; | ||
2726 | match(input,EOF,FOLLOW_2); | ||
2727 | |||
2728 | } | ||
2729 | |||
2730 | } | ||
2731 | |||
2732 | catch (RecognitionException re) { | ||
2733 | recover(input,re); | ||
2734 | appendSkippedTokens(); | ||
2735 | } | ||
2736 | finally { | ||
2737 | } | ||
2738 | return current; | ||
2739 | } | ||
2740 | // $ANTLR end "entryRuleMappingDefinition" | ||
2741 | |||
2742 | |||
2743 | // $ANTLR start "ruleMappingDefinition" | ||
2744 | // InternalCftLanguage.g:1009: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= '}' )? ) ; | ||
2745 | public final EObject ruleMappingDefinition() throws RecognitionException { | ||
2746 | EObject current = null; | ||
2747 | |||
2748 | Token lv_topLevel_0_0=null; | ||
2749 | Token otherlv_1=null; | ||
2750 | Token otherlv_3=null; | ||
2751 | Token otherlv_5=null; | ||
2752 | Token otherlv_7=null; | ||
2753 | Token otherlv_9=null; | ||
2754 | Token otherlv_12=null; | ||
2755 | Token otherlv_13=null; | ||
2756 | EObject lv_parameters_4_0 = null; | ||
2757 | |||
2758 | EObject lv_parameters_6_0 = null; | ||
2759 | |||
2760 | EObject lv_componentInstance_8_0 = null; | ||
2761 | |||
2762 | EObject lv_lookupDefinitions_10_0 = null; | ||
2763 | |||
2764 | EObject lv_assignments_11_0 = null; | ||
2765 | |||
2766 | |||
2767 | |||
2768 | enterRule(); | ||
2769 | |||
2770 | try { | ||
2771 | // InternalCftLanguage.g:1015: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= '}' )? ) ) | ||
2772 | // InternalCftLanguage.g:1016: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= '}' )? ) | ||
2773 | { | ||
2774 | // InternalCftLanguage.g:1016: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= '}' )? ) | ||
2775 | // InternalCftLanguage.g:1017: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= '}' )? | ||
2776 | { | ||
2777 | // InternalCftLanguage.g:1017:3: ( (lv_topLevel_0_0= 'toplevel' ) )? | ||
2778 | int alt18=2; | ||
2779 | int LA18_0 = input.LA(1); | ||
2780 | |||
2781 | if ( (LA18_0==29) ) { | ||
2782 | alt18=1; | ||
2783 | } | ||
2784 | switch (alt18) { | ||
2785 | case 1 : | ||
2786 | // InternalCftLanguage.g:1018:4: (lv_topLevel_0_0= 'toplevel' ) | ||
2787 | { | ||
2788 | // InternalCftLanguage.g:1018:4: (lv_topLevel_0_0= 'toplevel' ) | ||
2789 | // InternalCftLanguage.g:1019:5: lv_topLevel_0_0= 'toplevel' | ||
2790 | { | ||
2791 | lv_topLevel_0_0=(Token)match(input,29,FOLLOW_23); | ||
2792 | |||
2793 | newLeafNode(lv_topLevel_0_0, grammarAccess.getMappingDefinitionAccess().getTopLevelToplevelKeyword_0_0()); | ||
2794 | |||
2795 | |||
2796 | if (current==null) { | ||
2797 | current = createModelElement(grammarAccess.getMappingDefinitionRule()); | ||
2798 | } | ||
2799 | setWithLastConsumed(current, "topLevel", true, "toplevel"); | ||
2800 | |||
2801 | |||
2802 | } | ||
2803 | |||
2804 | |||
2805 | } | ||
2806 | break; | ||
2807 | |||
2808 | } | ||
2809 | |||
2810 | otherlv_1=(Token)match(input,30,FOLLOW_3); | ||
2811 | |||
2812 | newLeafNode(otherlv_1, grammarAccess.getMappingDefinitionAccess().getMappingKeyword_1()); | ||
2813 | |||
2814 | // InternalCftLanguage.g:1035:3: ( ( ruleQualifiedName ) ) | ||
2815 | // InternalCftLanguage.g:1036:4: ( ruleQualifiedName ) | ||
2816 | { | ||
2817 | // InternalCftLanguage.g:1036:4: ( ruleQualifiedName ) | ||
2818 | // InternalCftLanguage.g:1037:5: ruleQualifiedName | ||
2819 | { | ||
2820 | |||
2821 | if (current==null) { | ||
2822 | current = createModelElement(grammarAccess.getMappingDefinitionRule()); | ||
2823 | } | ||
2824 | |||
2825 | |||
2826 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getPatternPatternCrossReference_2_0()); | ||
2827 | |||
2828 | pushFollow(FOLLOW_24); | ||
2829 | ruleQualifiedName(); | ||
2830 | |||
2831 | state._fsp--; | ||
2832 | |||
2833 | |||
2834 | afterParserOrEnumRuleCall(); | ||
2835 | |||
2836 | |||
2837 | } | ||
2838 | |||
2839 | |||
2840 | } | ||
2841 | |||
2842 | otherlv_3=(Token)match(input,31,FOLLOW_3); | ||
2843 | |||
2844 | newLeafNode(otherlv_3, grammarAccess.getMappingDefinitionAccess().getLeftParenthesisKeyword_3()); | ||
2845 | |||
2846 | // InternalCftLanguage.g:1055:3: ( (lv_parameters_4_0= ruleMappingParameter ) ) | ||
2847 | // InternalCftLanguage.g:1056:4: (lv_parameters_4_0= ruleMappingParameter ) | ||
2848 | { | ||
2849 | // InternalCftLanguage.g:1056:4: (lv_parameters_4_0= ruleMappingParameter ) | ||
2850 | // InternalCftLanguage.g:1057:5: lv_parameters_4_0= ruleMappingParameter | ||
2851 | { | ||
2852 | |||
2853 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_4_0()); | ||
2854 | |||
2855 | pushFollow(FOLLOW_25); | ||
2856 | lv_parameters_4_0=ruleMappingParameter(); | ||
2857 | |||
2858 | state._fsp--; | ||
2859 | |||
2860 | |||
2861 | if (current==null) { | ||
2862 | current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
2863 | } | ||
2864 | add( | ||
2865 | current, | ||
2866 | "parameters", | ||
2867 | lv_parameters_4_0, | ||
2868 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingParameter"); | ||
2869 | afterParserOrEnumRuleCall(); | ||
2870 | |||
2871 | |||
2872 | } | ||
2873 | |||
2874 | |||
2875 | } | ||
2876 | |||
2877 | // InternalCftLanguage.g:1074:3: (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* | ||
2878 | loop19: | ||
2879 | do { | ||
2880 | int alt19=2; | ||
2881 | int LA19_0 = input.LA(1); | ||
2882 | |||
2883 | if ( (LA19_0==32) ) { | ||
2884 | alt19=1; | ||
2885 | } | ||
2886 | |||
2887 | |||
2888 | switch (alt19) { | ||
2889 | case 1 : | ||
2890 | // InternalCftLanguage.g:1075:4: otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) | ||
2891 | { | ||
2892 | otherlv_5=(Token)match(input,32,FOLLOW_3); | ||
2893 | |||
2894 | newLeafNode(otherlv_5, grammarAccess.getMappingDefinitionAccess().getCommaKeyword_5_0()); | ||
2895 | |||
2896 | // InternalCftLanguage.g:1079:4: ( (lv_parameters_6_0= ruleMappingParameter ) ) | ||
2897 | // InternalCftLanguage.g:1080:5: (lv_parameters_6_0= ruleMappingParameter ) | ||
2898 | { | ||
2899 | // InternalCftLanguage.g:1080:5: (lv_parameters_6_0= ruleMappingParameter ) | ||
2900 | // InternalCftLanguage.g:1081:6: lv_parameters_6_0= ruleMappingParameter | ||
2901 | { | ||
2902 | |||
2903 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_5_1_0()); | ||
2904 | |||
2905 | pushFollow(FOLLOW_25); | ||
2906 | lv_parameters_6_0=ruleMappingParameter(); | ||
2907 | |||
2908 | state._fsp--; | ||
2909 | |||
2910 | |||
2911 | if (current==null) { | ||
2912 | current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
2913 | } | ||
2914 | add( | ||
2915 | current, | ||
2916 | "parameters", | ||
2917 | lv_parameters_6_0, | ||
2918 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingParameter"); | ||
2919 | afterParserOrEnumRuleCall(); | ||
2920 | |||
2921 | |||
2922 | } | ||
2923 | |||
2924 | |||
2925 | } | ||
2926 | |||
2927 | |||
2928 | } | ||
2929 | break; | ||
2930 | |||
2931 | default : | ||
2932 | break loop19; | ||
2933 | } | ||
2934 | } while (true); | ||
2935 | |||
2936 | otherlv_7=(Token)match(input,33,FOLLOW_26); | ||
2937 | |||
2938 | newLeafNode(otherlv_7, grammarAccess.getMappingDefinitionAccess().getRightParenthesisKeyword_6()); | ||
2939 | |||
2940 | // InternalCftLanguage.g:1103:3: ( (lv_componentInstance_8_0= ruleComponentInstance ) )? | ||
2941 | int alt20=2; | ||
2942 | int LA20_0 = input.LA(1); | ||
2943 | |||
2944 | if ( (LA20_0==39) ) { | ||
2945 | alt20=1; | ||
2946 | } | ||
2947 | switch (alt20) { | ||
2948 | case 1 : | ||
2949 | // InternalCftLanguage.g:1104:4: (lv_componentInstance_8_0= ruleComponentInstance ) | ||
2950 | { | ||
2951 | // InternalCftLanguage.g:1104:4: (lv_componentInstance_8_0= ruleComponentInstance ) | ||
2952 | // InternalCftLanguage.g:1105:5: lv_componentInstance_8_0= ruleComponentInstance | ||
2953 | { | ||
2954 | |||
2955 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getComponentInstanceComponentInstanceParserRuleCall_7_0()); | ||
2956 | |||
2957 | pushFollow(FOLLOW_27); | ||
2958 | lv_componentInstance_8_0=ruleComponentInstance(); | ||
2959 | |||
2960 | state._fsp--; | ||
2961 | |||
2962 | |||
2963 | if (current==null) { | ||
2964 | current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
2965 | } | ||
2966 | set( | ||
2967 | current, | ||
2968 | "componentInstance", | ||
2969 | lv_componentInstance_8_0, | ||
2970 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentInstance"); | ||
2971 | afterParserOrEnumRuleCall(); | ||
2972 | |||
2973 | |||
2974 | } | ||
2975 | |||
2976 | |||
2977 | } | ||
2978 | break; | ||
2979 | |||
2980 | } | ||
2981 | |||
2982 | // InternalCftLanguage.g:1122:3: (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? | ||
2983 | int alt23=2; | ||
2984 | int LA23_0 = input.LA(1); | ||
2985 | |||
2986 | if ( (LA23_0==17) ) { | ||
2987 | alt23=1; | ||
2988 | } | ||
2989 | switch (alt23) { | ||
2990 | case 1 : | ||
2991 | // InternalCftLanguage.g:1123:4: otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' | ||
2992 | { | ||
2993 | otherlv_9=(Token)match(input,17,FOLLOW_28); | ||
2994 | |||
2995 | newLeafNode(otherlv_9, grammarAccess.getMappingDefinitionAccess().getLeftCurlyBracketKeyword_8_0()); | ||
2996 | |||
2997 | // InternalCftLanguage.g:1127:4: ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* | ||
2998 | loop22: | ||
2999 | do { | ||
3000 | int alt22=2; | ||
3001 | int LA22_0 = input.LA(1); | ||
3002 | |||
3003 | if ( ((LA22_0>=RULE_OF_INT && LA22_0<=RULE_ID)||LA22_0==34) ) { | ||
3004 | alt22=1; | ||
3005 | } | ||
3006 | |||
3007 | |||
3008 | switch (alt22) { | ||
3009 | case 1 : | ||
3010 | // InternalCftLanguage.g:1128:5: ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' | ||
3011 | { | ||
3012 | // InternalCftLanguage.g:1128:5: ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) | ||
3013 | int alt21=2; | ||
3014 | int LA21_0 = input.LA(1); | ||
3015 | |||
3016 | if ( (LA21_0==34) ) { | ||
3017 | alt21=1; | ||
3018 | } | ||
3019 | else if ( ((LA21_0>=RULE_OF_INT && LA21_0<=RULE_ID)) ) { | ||
3020 | alt21=2; | ||
3021 | } | ||
3022 | else { | ||
3023 | NoViableAltException nvae = | ||
3024 | new NoViableAltException("", 21, 0, input); | ||
3025 | |||
3026 | throw nvae; | ||
3027 | } | ||
3028 | switch (alt21) { | ||
3029 | case 1 : | ||
3030 | // InternalCftLanguage.g:1129:6: ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ||
3031 | { | ||
3032 | // InternalCftLanguage.g:1129:6: ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ||
3033 | // InternalCftLanguage.g:1130:7: (lv_lookupDefinitions_10_0= ruleLookupDefinition ) | ||
3034 | { | ||
3035 | // InternalCftLanguage.g:1130:7: (lv_lookupDefinitions_10_0= ruleLookupDefinition ) | ||
3036 | // InternalCftLanguage.g:1131:8: lv_lookupDefinitions_10_0= ruleLookupDefinition | ||
3037 | { | ||
3038 | |||
3039 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0()); | ||
3040 | |||
3041 | pushFollow(FOLLOW_11); | ||
3042 | lv_lookupDefinitions_10_0=ruleLookupDefinition(); | ||
3043 | |||
3044 | state._fsp--; | ||
3045 | |||
3046 | |||
3047 | if (current==null) { | ||
3048 | current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
3049 | } | ||
3050 | add( | ||
3051 | current, | ||
3052 | "lookupDefinitions", | ||
3053 | lv_lookupDefinitions_10_0, | ||
3054 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.LookupDefinition"); | ||
3055 | afterParserOrEnumRuleCall(); | ||
3056 | |||
3057 | |||
3058 | } | ||
3059 | |||
3060 | |||
3061 | } | ||
3062 | |||
3063 | |||
3064 | } | ||
3065 | break; | ||
3066 | case 2 : | ||
3067 | // InternalCftLanguage.g:1149:6: ( (lv_assignments_11_0= ruleAssignment ) ) | ||
3068 | { | ||
3069 | // InternalCftLanguage.g:1149:6: ( (lv_assignments_11_0= ruleAssignment ) ) | ||
3070 | // InternalCftLanguage.g:1150:7: (lv_assignments_11_0= ruleAssignment ) | ||
3071 | { | ||
3072 | // InternalCftLanguage.g:1150:7: (lv_assignments_11_0= ruleAssignment ) | ||
3073 | // InternalCftLanguage.g:1151:8: lv_assignments_11_0= ruleAssignment | ||
3074 | { | ||
3075 | |||
3076 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getAssignmentsAssignmentParserRuleCall_8_1_0_1_0()); | ||
3077 | |||
3078 | pushFollow(FOLLOW_11); | ||
3079 | lv_assignments_11_0=ruleAssignment(); | ||
3080 | |||
3081 | state._fsp--; | ||
3082 | |||
3083 | |||
3084 | if (current==null) { | ||
3085 | current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
3086 | } | ||
3087 | add( | ||
3088 | current, | ||
3089 | "assignments", | ||
3090 | lv_assignments_11_0, | ||
3091 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Assignment"); | ||
3092 | afterParserOrEnumRuleCall(); | ||
3093 | |||
3094 | |||
3095 | } | ||
3096 | |||
3097 | |||
3098 | } | ||
3099 | |||
3100 | |||
3101 | } | ||
3102 | break; | ||
3103 | |||
3104 | } | ||
3105 | |||
3106 | otherlv_12=(Token)match(input,14,FOLLOW_28); | ||
3107 | |||
3108 | newLeafNode(otherlv_12, grammarAccess.getMappingDefinitionAccess().getSemicolonKeyword_8_1_1()); | ||
3109 | |||
3110 | |||
3111 | } | ||
3112 | break; | ||
3113 | |||
3114 | default : | ||
3115 | break loop22; | ||
3116 | } | ||
3117 | } while (true); | ||
3118 | |||
3119 | otherlv_13=(Token)match(input,20,FOLLOW_2); | ||
3120 | |||
3121 | newLeafNode(otherlv_13, grammarAccess.getMappingDefinitionAccess().getRightCurlyBracketKeyword_8_2()); | ||
3122 | |||
3123 | |||
3124 | } | ||
3125 | break; | ||
3126 | |||
3127 | } | ||
3128 | |||
3129 | |||
3130 | } | ||
3131 | |||
3132 | |||
3133 | } | ||
3134 | |||
3135 | |||
3136 | leaveRule(); | ||
3137 | |||
3138 | } | ||
3139 | |||
3140 | catch (RecognitionException re) { | ||
3141 | recover(input,re); | ||
3142 | appendSkippedTokens(); | ||
3143 | } | ||
3144 | finally { | ||
3145 | } | ||
3146 | return current; | ||
3147 | } | ||
3148 | // $ANTLR end "ruleMappingDefinition" | ||
3149 | |||
3150 | |||
3151 | // $ANTLR start "entryRuleMappingParameter" | ||
3152 | // InternalCftLanguage.g:1183:1: entryRuleMappingParameter returns [EObject current=null] : iv_ruleMappingParameter= ruleMappingParameter EOF ; | ||
3153 | public final EObject entryRuleMappingParameter() throws RecognitionException { | ||
3154 | EObject current = null; | ||
3155 | |||
3156 | EObject iv_ruleMappingParameter = null; | ||
3157 | |||
3158 | |||
3159 | try { | ||
3160 | // InternalCftLanguage.g:1183:57: (iv_ruleMappingParameter= ruleMappingParameter EOF ) | ||
3161 | // InternalCftLanguage.g:1184:2: iv_ruleMappingParameter= ruleMappingParameter EOF | ||
3162 | { | ||
3163 | newCompositeNode(grammarAccess.getMappingParameterRule()); | ||
3164 | pushFollow(FOLLOW_1); | ||
3165 | iv_ruleMappingParameter=ruleMappingParameter(); | ||
3166 | |||
3167 | state._fsp--; | ||
3168 | |||
3169 | current =iv_ruleMappingParameter; | ||
3170 | match(input,EOF,FOLLOW_2); | ||
3171 | |||
3172 | } | ||
3173 | |||
3174 | } | ||
3175 | |||
3176 | catch (RecognitionException re) { | ||
3177 | recover(input,re); | ||
3178 | appendSkippedTokens(); | ||
3179 | } | ||
3180 | finally { | ||
3181 | } | ||
3182 | return current; | ||
3183 | } | ||
3184 | // $ANTLR end "entryRuleMappingParameter" | ||
3185 | |||
3186 | |||
3187 | // $ANTLR start "ruleMappingParameter" | ||
3188 | // InternalCftLanguage.g:1190:1: ruleMappingParameter returns [EObject current=null] : ( (lv_name_0_0= ruleValidId ) ) ; | ||
3189 | public final EObject ruleMappingParameter() throws RecognitionException { | ||
3190 | EObject current = null; | ||
3191 | |||
3192 | AntlrDatatypeRuleToken lv_name_0_0 = null; | ||
3193 | |||
3194 | |||
3195 | |||
3196 | enterRule(); | ||
3197 | |||
3198 | try { | ||
3199 | // InternalCftLanguage.g:1196:2: ( ( (lv_name_0_0= ruleValidId ) ) ) | ||
3200 | // InternalCftLanguage.g:1197:2: ( (lv_name_0_0= ruleValidId ) ) | ||
3201 | { | ||
3202 | // InternalCftLanguage.g:1197:2: ( (lv_name_0_0= ruleValidId ) ) | ||
3203 | // InternalCftLanguage.g:1198:3: (lv_name_0_0= ruleValidId ) | ||
3204 | { | ||
3205 | // InternalCftLanguage.g:1198:3: (lv_name_0_0= ruleValidId ) | ||
3206 | // InternalCftLanguage.g:1199:4: lv_name_0_0= ruleValidId | ||
3207 | { | ||
3208 | |||
3209 | newCompositeNode(grammarAccess.getMappingParameterAccess().getNameValidIdParserRuleCall_0()); | ||
3210 | |||
3211 | pushFollow(FOLLOW_2); | ||
3212 | lv_name_0_0=ruleValidId(); | ||
3213 | |||
3214 | state._fsp--; | ||
3215 | |||
3216 | |||
3217 | if (current==null) { | ||
3218 | current = createModelElementForParent(grammarAccess.getMappingParameterRule()); | ||
3219 | } | ||
3220 | set( | ||
3221 | current, | ||
3222 | "name", | ||
3223 | lv_name_0_0, | ||
3224 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
3225 | afterParserOrEnumRuleCall(); | ||
3226 | |||
3227 | |||
3228 | } | ||
3229 | |||
3230 | |||
3231 | } | ||
3232 | |||
3233 | |||
3234 | } | ||
3235 | |||
3236 | |||
3237 | leaveRule(); | ||
3238 | |||
3239 | } | ||
3240 | |||
3241 | catch (RecognitionException re) { | ||
3242 | recover(input,re); | ||
3243 | appendSkippedTokens(); | ||
3244 | } | ||
3245 | finally { | ||
3246 | } | ||
3247 | return current; | ||
3248 | } | ||
3249 | // $ANTLR end "ruleMappingParameter" | ||
3250 | |||
3251 | |||
3252 | // $ANTLR start "entryRuleLookupDefinition" | ||
3253 | // InternalCftLanguage.g:1219:1: entryRuleLookupDefinition returns [EObject current=null] : iv_ruleLookupDefinition= ruleLookupDefinition EOF ; | ||
3254 | public final EObject entryRuleLookupDefinition() throws RecognitionException { | ||
3255 | EObject current = null; | ||
3256 | |||
3257 | EObject iv_ruleLookupDefinition = null; | ||
3258 | |||
3259 | |||
3260 | try { | ||
3261 | // InternalCftLanguage.g:1219:57: (iv_ruleLookupDefinition= ruleLookupDefinition EOF ) | ||
3262 | // InternalCftLanguage.g:1220:2: iv_ruleLookupDefinition= ruleLookupDefinition EOF | ||
3263 | { | ||
3264 | newCompositeNode(grammarAccess.getLookupDefinitionRule()); | ||
3265 | pushFollow(FOLLOW_1); | ||
3266 | iv_ruleLookupDefinition=ruleLookupDefinition(); | ||
3267 | |||
3268 | state._fsp--; | ||
3269 | |||
3270 | current =iv_ruleLookupDefinition; | ||
3271 | match(input,EOF,FOLLOW_2); | ||
3272 | |||
3273 | } | ||
3274 | |||
3275 | } | ||
3276 | |||
3277 | catch (RecognitionException re) { | ||
3278 | recover(input,re); | ||
3279 | appendSkippedTokens(); | ||
3280 | } | ||
3281 | finally { | ||
3282 | } | ||
3283 | return current; | ||
3284 | } | ||
3285 | // $ANTLR end "entryRuleLookupDefinition" | ||
3286 | |||
3287 | |||
3288 | // $ANTLR start "ruleLookupDefinition" | ||
3289 | // InternalCftLanguage.g:1226:1: ruleLookupDefinition returns [EObject current=null] : (otherlv_0= 'lookup' ( ( ruleQualifiedName ) ) otherlv_2= '(' ( ( ruleValidId ) ) (otherlv_4= ',' ( ( ruleValidId ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= ruleValidId ) ) ) ; | ||
3290 | public final EObject ruleLookupDefinition() throws RecognitionException { | ||
3291 | EObject current = null; | ||
3292 | |||
3293 | Token otherlv_0=null; | ||
3294 | Token otherlv_2=null; | ||
3295 | Token otherlv_4=null; | ||
3296 | Token otherlv_6=null; | ||
3297 | Token otherlv_7=null; | ||
3298 | AntlrDatatypeRuleToken lv_name_8_0 = null; | ||
3299 | |||
3300 | |||
3301 | |||
3302 | enterRule(); | ||
3303 | |||
3304 | try { | ||
3305 | // InternalCftLanguage.g:1232:2: ( (otherlv_0= 'lookup' ( ( ruleQualifiedName ) ) otherlv_2= '(' ( ( ruleValidId ) ) (otherlv_4= ',' ( ( ruleValidId ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= ruleValidId ) ) ) ) | ||
3306 | // InternalCftLanguage.g:1233:2: (otherlv_0= 'lookup' ( ( ruleQualifiedName ) ) otherlv_2= '(' ( ( ruleValidId ) ) (otherlv_4= ',' ( ( ruleValidId ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= ruleValidId ) ) ) | ||
3307 | { | ||
3308 | // InternalCftLanguage.g:1233:2: (otherlv_0= 'lookup' ( ( ruleQualifiedName ) ) otherlv_2= '(' ( ( ruleValidId ) ) (otherlv_4= ',' ( ( ruleValidId ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= ruleValidId ) ) ) | ||
3309 | // InternalCftLanguage.g:1234:3: otherlv_0= 'lookup' ( ( ruleQualifiedName ) ) otherlv_2= '(' ( ( ruleValidId ) ) (otherlv_4= ',' ( ( ruleValidId ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= ruleValidId ) ) | ||
3310 | { | ||
3311 | otherlv_0=(Token)match(input,34,FOLLOW_3); | ||
3312 | |||
3313 | newLeafNode(otherlv_0, grammarAccess.getLookupDefinitionAccess().getLookupKeyword_0()); | ||
3314 | |||
3315 | // InternalCftLanguage.g:1238:3: ( ( ruleQualifiedName ) ) | ||
3316 | // InternalCftLanguage.g:1239:4: ( ruleQualifiedName ) | ||
3317 | { | ||
3318 | // InternalCftLanguage.g:1239:4: ( ruleQualifiedName ) | ||
3319 | // InternalCftLanguage.g:1240:5: ruleQualifiedName | ||
3320 | { | ||
3321 | |||
3322 | if (current==null) { | ||
3323 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
3324 | } | ||
3325 | |||
3326 | |||
3327 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionCrossReference_1_0()); | ||
3328 | |||
3329 | pushFollow(FOLLOW_24); | ||
3330 | ruleQualifiedName(); | ||
3331 | |||
3332 | state._fsp--; | ||
3333 | |||
3334 | |||
3335 | afterParserOrEnumRuleCall(); | ||
3336 | |||
3337 | |||
3338 | } | ||
3339 | |||
3340 | |||
3341 | } | ||
3342 | |||
3343 | otherlv_2=(Token)match(input,31,FOLLOW_3); | ||
3344 | |||
3345 | newLeafNode(otherlv_2, grammarAccess.getLookupDefinitionAccess().getLeftParenthesisKeyword_2()); | ||
3346 | |||
3347 | // InternalCftLanguage.g:1258:3: ( ( ruleValidId ) ) | ||
3348 | // InternalCftLanguage.g:1259:4: ( ruleValidId ) | ||
3349 | { | ||
3350 | // InternalCftLanguage.g:1259:4: ( ruleValidId ) | ||
3351 | // InternalCftLanguage.g:1260:5: ruleValidId | ||
3352 | { | ||
3353 | |||
3354 | if (current==null) { | ||
3355 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
3356 | } | ||
3357 | |||
3358 | |||
3359 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_3_0()); | ||
3360 | |||
3361 | pushFollow(FOLLOW_25); | ||
3362 | ruleValidId(); | ||
3363 | |||
3364 | state._fsp--; | ||
3365 | |||
3366 | |||
3367 | afterParserOrEnumRuleCall(); | ||
3368 | |||
3369 | |||
3370 | } | ||
3371 | |||
3372 | |||
3373 | } | ||
3374 | |||
3375 | // InternalCftLanguage.g:1274:3: (otherlv_4= ',' ( ( ruleValidId ) ) )* | ||
3376 | loop24: | ||
3377 | do { | ||
3378 | int alt24=2; | ||
3379 | int LA24_0 = input.LA(1); | ||
3380 | |||
3381 | if ( (LA24_0==32) ) { | ||
3382 | alt24=1; | ||
3383 | } | ||
3384 | |||
3385 | |||
3386 | switch (alt24) { | ||
3387 | case 1 : | ||
3388 | // InternalCftLanguage.g:1275:4: otherlv_4= ',' ( ( ruleValidId ) ) | ||
3389 | { | ||
3390 | otherlv_4=(Token)match(input,32,FOLLOW_3); | ||
3391 | |||
3392 | newLeafNode(otherlv_4, grammarAccess.getLookupDefinitionAccess().getCommaKeyword_4_0()); | ||
3393 | |||
3394 | // InternalCftLanguage.g:1279:4: ( ( ruleValidId ) ) | ||
3395 | // InternalCftLanguage.g:1280:5: ( ruleValidId ) | ||
3396 | { | ||
3397 | // InternalCftLanguage.g:1280:5: ( ruleValidId ) | ||
3398 | // InternalCftLanguage.g:1281:6: ruleValidId | ||
3399 | { | ||
3400 | |||
3401 | if (current==null) { | ||
3402 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
3403 | } | ||
3404 | |||
3405 | |||
3406 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_4_1_0()); | ||
3407 | |||
3408 | pushFollow(FOLLOW_25); | ||
3409 | ruleValidId(); | ||
3410 | |||
3411 | state._fsp--; | ||
3412 | |||
3413 | |||
3414 | afterParserOrEnumRuleCall(); | ||
3415 | |||
3416 | |||
3417 | } | ||
3418 | |||
3419 | |||
3420 | } | ||
3421 | |||
3422 | |||
3423 | } | ||
3424 | break; | ||
3425 | |||
3426 | default : | ||
3427 | break loop24; | ||
3428 | } | ||
3429 | } while (true); | ||
3430 | |||
3431 | otherlv_6=(Token)match(input,33,FOLLOW_29); | ||
3432 | |||
3433 | newLeafNode(otherlv_6, grammarAccess.getLookupDefinitionAccess().getRightParenthesisKeyword_5()); | ||
3434 | |||
3435 | otherlv_7=(Token)match(input,35,FOLLOW_3); | ||
3436 | |||
3437 | newLeafNode(otherlv_7, grammarAccess.getLookupDefinitionAccess().getAsKeyword_6()); | ||
3438 | |||
3439 | // InternalCftLanguage.g:1304:3: ( (lv_name_8_0= ruleValidId ) ) | ||
3440 | // InternalCftLanguage.g:1305:4: (lv_name_8_0= ruleValidId ) | ||
3441 | { | ||
3442 | // InternalCftLanguage.g:1305:4: (lv_name_8_0= ruleValidId ) | ||
3443 | // InternalCftLanguage.g:1306:5: lv_name_8_0= ruleValidId | ||
3444 | { | ||
3445 | |||
3446 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getNameValidIdParserRuleCall_7_0()); | ||
3447 | |||
3448 | pushFollow(FOLLOW_2); | ||
3449 | lv_name_8_0=ruleValidId(); | ||
3450 | |||
3451 | state._fsp--; | ||
3452 | |||
3453 | |||
3454 | if (current==null) { | ||
3455 | current = createModelElementForParent(grammarAccess.getLookupDefinitionRule()); | ||
3456 | } | ||
3457 | set( | ||
3458 | current, | ||
3459 | "name", | ||
3460 | lv_name_8_0, | ||
3461 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
3462 | afterParserOrEnumRuleCall(); | ||
3463 | |||
3464 | |||
3465 | } | ||
3466 | |||
3467 | |||
3468 | } | ||
3469 | |||
3470 | |||
3471 | } | ||
3472 | |||
3473 | |||
3474 | } | ||
3475 | |||
3476 | |||
3477 | leaveRule(); | ||
3478 | |||
3479 | } | ||
3480 | |||
3481 | catch (RecognitionException re) { | ||
3482 | recover(input,re); | ||
3483 | appendSkippedTokens(); | ||
3484 | } | ||
3485 | finally { | ||
3486 | } | ||
3487 | return current; | ||
3488 | } | ||
3489 | // $ANTLR end "ruleLookupDefinition" | ||
3490 | |||
3491 | |||
3492 | // $ANTLR start "entryRuleAssignment" | ||
3493 | // InternalCftLanguage.g:1327:1: entryRuleAssignment returns [EObject current=null] : iv_ruleAssignment= ruleAssignment EOF ; | ||
3494 | public final EObject entryRuleAssignment() throws RecognitionException { | ||
3495 | EObject current = null; | ||
3496 | |||
3497 | EObject iv_ruleAssignment = null; | ||
3498 | |||
3499 | |||
3500 | try { | ||
3501 | // InternalCftLanguage.g:1327:51: (iv_ruleAssignment= ruleAssignment EOF ) | ||
3502 | // InternalCftLanguage.g:1328:2: iv_ruleAssignment= ruleAssignment EOF | ||
3503 | { | ||
3504 | newCompositeNode(grammarAccess.getAssignmentRule()); | ||
3505 | pushFollow(FOLLOW_1); | ||
3506 | iv_ruleAssignment=ruleAssignment(); | ||
3507 | |||
3508 | state._fsp--; | ||
3509 | |||
3510 | current =iv_ruleAssignment; | ||
3511 | match(input,EOF,FOLLOW_2); | ||
3512 | |||
3513 | } | ||
3514 | |||
3515 | } | ||
3516 | |||
3517 | catch (RecognitionException re) { | ||
3518 | recover(input,re); | ||
3519 | appendSkippedTokens(); | ||
3520 | } | ||
3521 | finally { | ||
3522 | } | ||
3523 | return current; | ||
3524 | } | ||
3525 | // $ANTLR end "entryRuleAssignment" | ||
3526 | |||
3527 | |||
3528 | // $ANTLR start "ruleAssignment" | ||
3529 | // InternalCftLanguage.g:1334:1: ruleAssignment returns [EObject current=null] : ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) ; | ||
3530 | public final EObject ruleAssignment() throws RecognitionException { | ||
3531 | EObject current = null; | ||
3532 | |||
3533 | Token lv_multiple_1_0=null; | ||
3534 | Token otherlv_2=null; | ||
3535 | EObject lv_input_0_0 = null; | ||
3536 | |||
3537 | EObject lv_output_3_0 = null; | ||
3538 | |||
3539 | |||
3540 | |||
3541 | enterRule(); | ||
3542 | |||
3543 | try { | ||
3544 | // InternalCftLanguage.g:1340:2: ( ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) ) | ||
3545 | // InternalCftLanguage.g:1341:2: ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) | ||
3546 | { | ||
3547 | // InternalCftLanguage.g:1341:2: ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) | ||
3548 | // InternalCftLanguage.g:1342:3: ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) | ||
3549 | { | ||
3550 | // InternalCftLanguage.g:1342:3: ( (lv_input_0_0= ruleEventReference ) ) | ||
3551 | // InternalCftLanguage.g:1343:4: (lv_input_0_0= ruleEventReference ) | ||
3552 | { | ||
3553 | // InternalCftLanguage.g:1343:4: (lv_input_0_0= ruleEventReference ) | ||
3554 | // InternalCftLanguage.g:1344:5: lv_input_0_0= ruleEventReference | ||
3555 | { | ||
3556 | |||
3557 | newCompositeNode(grammarAccess.getAssignmentAccess().getInputEventReferenceParserRuleCall_0_0()); | ||
3558 | |||
3559 | pushFollow(FOLLOW_30); | ||
3560 | lv_input_0_0=ruleEventReference(); | ||
3561 | |||
3562 | state._fsp--; | ||
3563 | |||
3564 | |||
3565 | if (current==null) { | ||
3566 | current = createModelElementForParent(grammarAccess.getAssignmentRule()); | ||
3567 | } | ||
3568 | set( | ||
3569 | current, | ||
3570 | "input", | ||
3571 | lv_input_0_0, | ||
3572 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventReference"); | ||
3573 | afterParserOrEnumRuleCall(); | ||
3574 | |||
3575 | |||
3576 | } | ||
3577 | |||
3578 | |||
3579 | } | ||
3580 | |||
3581 | // InternalCftLanguage.g:1361:3: ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) | ||
3582 | int alt25=2; | ||
3583 | int LA25_0 = input.LA(1); | ||
3584 | |||
3585 | if ( (LA25_0==36) ) { | ||
3586 | alt25=1; | ||
3587 | } | ||
3588 | else if ( (LA25_0==37) ) { | ||
3589 | alt25=2; | ||
3590 | } | ||
3591 | else { | ||
3592 | NoViableAltException nvae = | ||
3593 | new NoViableAltException("", 25, 0, input); | ||
3594 | |||
3595 | throw nvae; | ||
3596 | } | ||
3597 | switch (alt25) { | ||
3598 | case 1 : | ||
3599 | // InternalCftLanguage.g:1362:4: ( (lv_multiple_1_0= '+=' ) ) | ||
3600 | { | ||
3601 | // InternalCftLanguage.g:1362:4: ( (lv_multiple_1_0= '+=' ) ) | ||
3602 | // InternalCftLanguage.g:1363:5: (lv_multiple_1_0= '+=' ) | ||
3603 | { | ||
3604 | // InternalCftLanguage.g:1363:5: (lv_multiple_1_0= '+=' ) | ||
3605 | // InternalCftLanguage.g:1364:6: lv_multiple_1_0= '+=' | ||
3606 | { | ||
3607 | lv_multiple_1_0=(Token)match(input,36,FOLLOW_31); | ||
3608 | |||
3609 | newLeafNode(lv_multiple_1_0, grammarAccess.getAssignmentAccess().getMultiplePlusSignEqualsSignKeyword_1_0_0()); | ||
3610 | |||
3611 | |||
3612 | if (current==null) { | ||
3613 | current = createModelElement(grammarAccess.getAssignmentRule()); | ||
3614 | } | ||
3615 | setWithLastConsumed(current, "multiple", true, "+="); | ||
3616 | |||
3617 | |||
3618 | } | ||
3619 | |||
3620 | |||
3621 | } | ||
3622 | |||
3623 | |||
3624 | } | ||
3625 | break; | ||
3626 | case 2 : | ||
3627 | // InternalCftLanguage.g:1377:4: otherlv_2= ':=' | ||
3628 | { | ||
3629 | otherlv_2=(Token)match(input,37,FOLLOW_31); | ||
3630 | |||
3631 | newLeafNode(otherlv_2, grammarAccess.getAssignmentAccess().getColonEqualsSignKeyword_1_1()); | ||
3632 | |||
3633 | |||
3634 | } | ||
3635 | break; | ||
3636 | |||
3637 | } | ||
3638 | |||
3639 | // InternalCftLanguage.g:1382:3: ( (lv_output_3_0= ruleEventReference ) ) | ||
3640 | // InternalCftLanguage.g:1383:4: (lv_output_3_0= ruleEventReference ) | ||
3641 | { | ||
3642 | // InternalCftLanguage.g:1383:4: (lv_output_3_0= ruleEventReference ) | ||
3643 | // InternalCftLanguage.g:1384:5: lv_output_3_0= ruleEventReference | ||
3644 | { | ||
3645 | |||
3646 | newCompositeNode(grammarAccess.getAssignmentAccess().getOutputEventReferenceParserRuleCall_2_0()); | ||
3647 | |||
3648 | pushFollow(FOLLOW_2); | ||
3649 | lv_output_3_0=ruleEventReference(); | ||
3650 | |||
3651 | state._fsp--; | ||
3652 | |||
3653 | |||
3654 | if (current==null) { | ||
3655 | current = createModelElementForParent(grammarAccess.getAssignmentRule()); | ||
3656 | } | ||
3657 | set( | ||
3658 | current, | ||
3659 | "output", | ||
3660 | lv_output_3_0, | ||
3661 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventReference"); | ||
3662 | afterParserOrEnumRuleCall(); | ||
3663 | |||
3664 | |||
3665 | } | ||
3666 | |||
3667 | |||
3668 | } | ||
3669 | |||
3670 | |||
3671 | } | ||
3672 | |||
3673 | |||
3674 | } | ||
3675 | |||
3676 | |||
3677 | leaveRule(); | ||
3678 | |||
3679 | } | ||
3680 | |||
3681 | catch (RecognitionException re) { | ||
3682 | recover(input,re); | ||
3683 | appendSkippedTokens(); | ||
3684 | } | ||
3685 | finally { | ||
3686 | } | ||
3687 | return current; | ||
3688 | } | ||
3689 | // $ANTLR end "ruleAssignment" | ||
3690 | |||
3691 | |||
3692 | // $ANTLR start "entryRuleEventReference" | ||
3693 | // InternalCftLanguage.g:1405:1: entryRuleEventReference returns [EObject current=null] : iv_ruleEventReference= ruleEventReference EOF ; | ||
3694 | public final EObject entryRuleEventReference() throws RecognitionException { | ||
3695 | EObject current = null; | ||
3696 | |||
3697 | EObject iv_ruleEventReference = null; | ||
3698 | |||
3699 | |||
3700 | try { | ||
3701 | // InternalCftLanguage.g:1405:55: (iv_ruleEventReference= ruleEventReference EOF ) | ||
3702 | // InternalCftLanguage.g:1406:2: iv_ruleEventReference= ruleEventReference EOF | ||
3703 | { | ||
3704 | newCompositeNode(grammarAccess.getEventReferenceRule()); | ||
3705 | pushFollow(FOLLOW_1); | ||
3706 | iv_ruleEventReference=ruleEventReference(); | ||
3707 | |||
3708 | state._fsp--; | ||
3709 | |||
3710 | current =iv_ruleEventReference; | ||
3711 | match(input,EOF,FOLLOW_2); | ||
3712 | |||
3713 | } | ||
3714 | |||
3715 | } | ||
3716 | |||
3717 | catch (RecognitionException re) { | ||
3718 | recover(input,re); | ||
3719 | appendSkippedTokens(); | ||
3720 | } | ||
3721 | finally { | ||
3722 | } | ||
3723 | return current; | ||
3724 | } | ||
3725 | // $ANTLR end "entryRuleEventReference" | ||
3726 | |||
3727 | |||
3728 | // $ANTLR start "ruleEventReference" | ||
3729 | // InternalCftLanguage.g:1412:1: ruleEventReference returns [EObject current=null] : ( ( ( ruleValidId ) ) otherlv_1= '.' ( ( ruleValidId ) ) ) ; | ||
3730 | public final EObject ruleEventReference() throws RecognitionException { | ||
3731 | EObject current = null; | ||
3732 | |||
3733 | Token otherlv_1=null; | ||
3734 | |||
3735 | |||
3736 | enterRule(); | ||
3737 | |||
3738 | try { | ||
3739 | // InternalCftLanguage.g:1418:2: ( ( ( ( ruleValidId ) ) otherlv_1= '.' ( ( ruleValidId ) ) ) ) | ||
3740 | // InternalCftLanguage.g:1419:2: ( ( ( ruleValidId ) ) otherlv_1= '.' ( ( ruleValidId ) ) ) | ||
3741 | { | ||
3742 | // InternalCftLanguage.g:1419:2: ( ( ( ruleValidId ) ) otherlv_1= '.' ( ( ruleValidId ) ) ) | ||
3743 | // InternalCftLanguage.g:1420:3: ( ( ruleValidId ) ) otherlv_1= '.' ( ( ruleValidId ) ) | ||
3744 | { | ||
3745 | // InternalCftLanguage.g:1420:3: ( ( ruleValidId ) ) | ||
3746 | // InternalCftLanguage.g:1421:4: ( ruleValidId ) | ||
3747 | { | ||
3748 | // InternalCftLanguage.g:1421:4: ( ruleValidId ) | ||
3749 | // InternalCftLanguage.g:1422:5: ruleValidId | ||
3750 | { | ||
3751 | |||
3752 | if (current==null) { | ||
3753 | current = createModelElement(grammarAccess.getEventReferenceRule()); | ||
3754 | } | ||
3755 | |||
3756 | |||
3757 | newCompositeNode(grammarAccess.getEventReferenceAccess().getComponentVariableCrossReference_0_0()); | ||
3758 | |||
3759 | pushFollow(FOLLOW_32); | ||
3760 | ruleValidId(); | ||
3761 | |||
3762 | state._fsp--; | ||
3763 | |||
3764 | |||
3765 | afterParserOrEnumRuleCall(); | ||
3766 | |||
3767 | |||
3768 | } | ||
3769 | |||
3770 | |||
3771 | } | ||
3772 | |||
3773 | otherlv_1=(Token)match(input,38,FOLLOW_3); | ||
3774 | |||
3775 | newLeafNode(otherlv_1, grammarAccess.getEventReferenceAccess().getFullStopKeyword_1()); | ||
3776 | |||
3777 | // InternalCftLanguage.g:1440:3: ( ( ruleValidId ) ) | ||
3778 | // InternalCftLanguage.g:1441:4: ( ruleValidId ) | ||
3779 | { | ||
3780 | // InternalCftLanguage.g:1441:4: ( ruleValidId ) | ||
3781 | // InternalCftLanguage.g:1442:5: ruleValidId | ||
3782 | { | ||
3783 | |||
3784 | if (current==null) { | ||
3785 | current = createModelElement(grammarAccess.getEventReferenceRule()); | ||
3786 | } | ||
3787 | |||
3788 | |||
3789 | newCompositeNode(grammarAccess.getEventReferenceAccess().getEventEventDeclarationCrossReference_2_0()); | ||
3790 | |||
3791 | pushFollow(FOLLOW_2); | ||
3792 | ruleValidId(); | ||
3793 | |||
3794 | state._fsp--; | ||
3795 | |||
3796 | |||
3797 | afterParserOrEnumRuleCall(); | ||
3798 | |||
3799 | |||
3800 | } | ||
3801 | |||
3802 | |||
3803 | } | ||
3804 | |||
3805 | |||
3806 | } | ||
3807 | |||
3808 | |||
3809 | } | ||
3810 | |||
3811 | |||
3812 | leaveRule(); | ||
3813 | |||
3814 | } | ||
3815 | |||
3816 | catch (RecognitionException re) { | ||
3817 | recover(input,re); | ||
3818 | appendSkippedTokens(); | ||
3819 | } | ||
3820 | finally { | ||
3821 | } | ||
3822 | return current; | ||
3823 | } | ||
3824 | // $ANTLR end "ruleEventReference" | ||
3825 | |||
3826 | |||
3827 | // $ANTLR start "entryRuleComponentInstance" | ||
3828 | // InternalCftLanguage.g:1460:1: entryRuleComponentInstance returns [EObject current=null] : iv_ruleComponentInstance= ruleComponentInstance EOF ; | ||
3829 | public final EObject entryRuleComponentInstance() throws RecognitionException { | ||
3830 | EObject current = null; | ||
3831 | |||
3832 | EObject iv_ruleComponentInstance = null; | ||
3833 | |||
3834 | |||
3835 | try { | ||
3836 | // InternalCftLanguage.g:1460:58: (iv_ruleComponentInstance= ruleComponentInstance EOF ) | ||
3837 | // InternalCftLanguage.g:1461:2: iv_ruleComponentInstance= ruleComponentInstance EOF | ||
3838 | { | ||
3839 | newCompositeNode(grammarAccess.getComponentInstanceRule()); | ||
3840 | pushFollow(FOLLOW_1); | ||
3841 | iv_ruleComponentInstance=ruleComponentInstance(); | ||
3842 | |||
3843 | state._fsp--; | ||
3844 | |||
3845 | current =iv_ruleComponentInstance; | ||
3846 | match(input,EOF,FOLLOW_2); | ||
3847 | |||
3848 | } | ||
3849 | |||
3850 | } | ||
3851 | |||
3852 | catch (RecognitionException re) { | ||
3853 | recover(input,re); | ||
3854 | appendSkippedTokens(); | ||
3855 | } | ||
3856 | finally { | ||
3857 | } | ||
3858 | return current; | ||
3859 | } | ||
3860 | // $ANTLR end "entryRuleComponentInstance" | ||
3861 | |||
3862 | |||
3863 | // $ANTLR start "ruleComponentInstance" | ||
3864 | // InternalCftLanguage.g:1467:1: ruleComponentInstance returns [EObject current=null] : (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= ruleValidId ) )? ) ; | ||
3865 | public final EObject ruleComponentInstance() throws RecognitionException { | ||
3866 | EObject current = null; | ||
3867 | |||
3868 | Token otherlv_0=null; | ||
3869 | AntlrDatatypeRuleToken lv_name_2_0 = null; | ||
3870 | |||
3871 | |||
3872 | |||
3873 | enterRule(); | ||
3874 | |||
3875 | try { | ||
3876 | // InternalCftLanguage.g:1473:2: ( (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= ruleValidId ) )? ) ) | ||
3877 | // InternalCftLanguage.g:1474:2: (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= ruleValidId ) )? ) | ||
3878 | { | ||
3879 | // InternalCftLanguage.g:1474:2: (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= ruleValidId ) )? ) | ||
3880 | // InternalCftLanguage.g:1475:3: otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= ruleValidId ) )? | ||
3881 | { | ||
3882 | otherlv_0=(Token)match(input,39,FOLLOW_3); | ||
3883 | |||
3884 | newLeafNode(otherlv_0, grammarAccess.getComponentInstanceAccess().getEqualsSignGreaterThanSignKeyword_0()); | ||
3885 | |||
3886 | // InternalCftLanguage.g:1479:3: ( ( ruleQualifiedName ) ) | ||
3887 | // InternalCftLanguage.g:1480:4: ( ruleQualifiedName ) | ||
3888 | { | ||
3889 | // InternalCftLanguage.g:1480:4: ( ruleQualifiedName ) | ||
3890 | // InternalCftLanguage.g:1481:5: ruleQualifiedName | ||
3891 | { | ||
3892 | |||
3893 | if (current==null) { | ||
3894 | current = createModelElement(grammarAccess.getComponentInstanceRule()); | ||
3895 | } | ||
3896 | |||
3897 | |||
3898 | newCompositeNode(grammarAccess.getComponentInstanceAccess().getComponentTypeComponentDefinitionCrossReference_1_0()); | ||
3899 | |||
3900 | pushFollow(FOLLOW_18); | ||
3901 | ruleQualifiedName(); | ||
3902 | |||
3903 | state._fsp--; | ||
3904 | |||
3905 | |||
3906 | afterParserOrEnumRuleCall(); | ||
3907 | |||
3908 | |||
3909 | } | ||
3910 | |||
3911 | |||
3912 | } | ||
3913 | |||
3914 | // InternalCftLanguage.g:1495:3: ( (lv_name_2_0= ruleValidId ) )? | ||
3915 | int alt26=2; | ||
3916 | int LA26_0 = input.LA(1); | ||
3917 | |||
3918 | if ( ((LA26_0>=RULE_OF_INT && LA26_0<=RULE_ID)) ) { | ||
3919 | alt26=1; | ||
3920 | } | ||
3921 | switch (alt26) { | ||
3922 | case 1 : | ||
3923 | // InternalCftLanguage.g:1496:4: (lv_name_2_0= ruleValidId ) | ||
3924 | { | ||
3925 | // InternalCftLanguage.g:1496:4: (lv_name_2_0= ruleValidId ) | ||
3926 | // InternalCftLanguage.g:1497:5: lv_name_2_0= ruleValidId | ||
3927 | { | ||
3928 | |||
3929 | newCompositeNode(grammarAccess.getComponentInstanceAccess().getNameValidIdParserRuleCall_2_0()); | ||
3930 | |||
3931 | pushFollow(FOLLOW_2); | ||
3932 | lv_name_2_0=ruleValidId(); | ||
3933 | |||
3934 | state._fsp--; | ||
3935 | |||
3936 | |||
3937 | if (current==null) { | ||
3938 | current = createModelElementForParent(grammarAccess.getComponentInstanceRule()); | ||
3939 | } | ||
3940 | set( | ||
3941 | current, | ||
3942 | "name", | ||
3943 | lv_name_2_0, | ||
3944 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
3945 | afterParserOrEnumRuleCall(); | ||
3946 | |||
3947 | |||
3948 | } | ||
3949 | |||
3950 | |||
3951 | } | ||
3952 | break; | ||
3953 | |||
3954 | } | ||
3955 | |||
3956 | |||
3957 | } | ||
3958 | |||
3959 | |||
3960 | } | ||
3961 | |||
3962 | |||
3963 | leaveRule(); | ||
3964 | |||
3965 | } | ||
3966 | |||
3967 | catch (RecognitionException re) { | ||
3968 | recover(input,re); | ||
3969 | appendSkippedTokens(); | ||
3970 | } | ||
3971 | finally { | ||
3972 | } | ||
3973 | return current; | ||
3974 | } | ||
3975 | // $ANTLR end "ruleComponentInstance" | ||
3976 | |||
3977 | |||
3978 | // $ANTLR start "entryRuleQualifiedName" | ||
3979 | // InternalCftLanguage.g:1518:1: entryRuleQualifiedName returns [String current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ; | ||
3980 | public final String entryRuleQualifiedName() throws RecognitionException { | ||
3981 | String current = null; | ||
3982 | |||
3983 | AntlrDatatypeRuleToken iv_ruleQualifiedName = null; | ||
3984 | |||
3985 | |||
3986 | try { | ||
3987 | // InternalCftLanguage.g:1518:53: (iv_ruleQualifiedName= ruleQualifiedName EOF ) | ||
3988 | // InternalCftLanguage.g:1519:2: iv_ruleQualifiedName= ruleQualifiedName EOF | ||
3989 | { | ||
3990 | newCompositeNode(grammarAccess.getQualifiedNameRule()); | ||
3991 | pushFollow(FOLLOW_1); | ||
3992 | iv_ruleQualifiedName=ruleQualifiedName(); | ||
3993 | |||
3994 | state._fsp--; | ||
3995 | |||
3996 | current =iv_ruleQualifiedName.getText(); | ||
3997 | match(input,EOF,FOLLOW_2); | ||
3998 | |||
3999 | } | ||
4000 | |||
4001 | } | ||
4002 | |||
4003 | catch (RecognitionException re) { | ||
4004 | recover(input,re); | ||
4005 | appendSkippedTokens(); | ||
4006 | } | ||
4007 | finally { | ||
4008 | } | ||
4009 | return current; | ||
4010 | } | ||
4011 | // $ANTLR end "entryRuleQualifiedName" | ||
4012 | |||
4013 | |||
4014 | // $ANTLR start "ruleQualifiedName" | ||
4015 | // InternalCftLanguage.g:1525:1: ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ValidId_0= ruleValidId (kw= '.' this_ValidId_2= ruleValidId )* ) ; | ||
4016 | public final AntlrDatatypeRuleToken ruleQualifiedName() throws RecognitionException { | ||
4017 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); | ||
4018 | |||
4019 | Token kw=null; | ||
4020 | AntlrDatatypeRuleToken this_ValidId_0 = null; | ||
4021 | |||
4022 | AntlrDatatypeRuleToken this_ValidId_2 = null; | ||
4023 | |||
4024 | |||
4025 | |||
4026 | enterRule(); | ||
4027 | |||
4028 | try { | ||
4029 | // InternalCftLanguage.g:1531:2: ( (this_ValidId_0= ruleValidId (kw= '.' this_ValidId_2= ruleValidId )* ) ) | ||
4030 | // InternalCftLanguage.g:1532:2: (this_ValidId_0= ruleValidId (kw= '.' this_ValidId_2= ruleValidId )* ) | ||
4031 | { | ||
4032 | // InternalCftLanguage.g:1532:2: (this_ValidId_0= ruleValidId (kw= '.' this_ValidId_2= ruleValidId )* ) | ||
4033 | // InternalCftLanguage.g:1533:3: this_ValidId_0= ruleValidId (kw= '.' this_ValidId_2= ruleValidId )* | ||
4034 | { | ||
4035 | |||
4036 | newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIdParserRuleCall_0()); | ||
4037 | |||
4038 | pushFollow(FOLLOW_33); | ||
4039 | this_ValidId_0=ruleValidId(); | ||
4040 | |||
4041 | state._fsp--; | ||
4042 | |||
4043 | |||
4044 | current.merge(this_ValidId_0); | ||
4045 | |||
4046 | |||
4047 | afterParserOrEnumRuleCall(); | ||
4048 | |||
4049 | // InternalCftLanguage.g:1543:3: (kw= '.' this_ValidId_2= ruleValidId )* | ||
4050 | loop27: | ||
4051 | do { | ||
4052 | int alt27=2; | ||
4053 | int LA27_0 = input.LA(1); | ||
4054 | |||
4055 | if ( (LA27_0==38) ) { | ||
4056 | int LA27_2 = input.LA(2); | ||
4057 | |||
4058 | if ( ((LA27_2>=RULE_OF_INT && LA27_2<=RULE_ID)) ) { | ||
4059 | alt27=1; | ||
4060 | } | ||
4061 | |||
4062 | |||
4063 | } | ||
4064 | |||
4065 | |||
4066 | switch (alt27) { | ||
4067 | case 1 : | ||
4068 | // InternalCftLanguage.g:1544:4: kw= '.' this_ValidId_2= ruleValidId | ||
4069 | { | ||
4070 | kw=(Token)match(input,38,FOLLOW_3); | ||
4071 | |||
4072 | current.merge(kw); | ||
4073 | newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); | ||
4074 | |||
4075 | |||
4076 | newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIdParserRuleCall_1_1()); | ||
4077 | |||
4078 | pushFollow(FOLLOW_33); | ||
4079 | this_ValidId_2=ruleValidId(); | ||
4080 | |||
4081 | state._fsp--; | ||
4082 | |||
4083 | |||
4084 | current.merge(this_ValidId_2); | ||
4085 | |||
4086 | |||
4087 | afterParserOrEnumRuleCall(); | ||
4088 | |||
4089 | |||
4090 | } | ||
4091 | break; | ||
4092 | |||
4093 | default : | ||
4094 | break loop27; | ||
4095 | } | ||
4096 | } while (true); | ||
4097 | |||
4098 | |||
4099 | } | ||
4100 | |||
4101 | |||
4102 | } | ||
4103 | |||
4104 | |||
4105 | leaveRule(); | ||
4106 | |||
4107 | } | ||
4108 | |||
4109 | catch (RecognitionException re) { | ||
4110 | recover(input,re); | ||
4111 | appendSkippedTokens(); | ||
4112 | } | ||
4113 | finally { | ||
4114 | } | ||
4115 | return current; | ||
4116 | } | ||
4117 | // $ANTLR end "ruleQualifiedName" | ||
4118 | |||
4119 | |||
4120 | // $ANTLR start "entryRuleQualifiedNameWithWildcard" | ||
4121 | // InternalCftLanguage.g:1564:1: entryRuleQualifiedNameWithWildcard returns [String current=null] : iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ; | ||
4122 | public final String entryRuleQualifiedNameWithWildcard() throws RecognitionException { | ||
4123 | String current = null; | ||
4124 | |||
4125 | AntlrDatatypeRuleToken iv_ruleQualifiedNameWithWildcard = null; | ||
4126 | |||
4127 | |||
4128 | try { | ||
4129 | // InternalCftLanguage.g:1564:65: (iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ) | ||
4130 | // InternalCftLanguage.g:1565:2: iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF | ||
4131 | { | ||
4132 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardRule()); | ||
4133 | pushFollow(FOLLOW_1); | ||
4134 | iv_ruleQualifiedNameWithWildcard=ruleQualifiedNameWithWildcard(); | ||
4135 | |||
4136 | state._fsp--; | ||
4137 | |||
4138 | current =iv_ruleQualifiedNameWithWildcard.getText(); | ||
4139 | match(input,EOF,FOLLOW_2); | ||
4140 | |||
4141 | } | ||
4142 | |||
4143 | } | ||
4144 | |||
4145 | catch (RecognitionException re) { | ||
4146 | recover(input,re); | ||
4147 | appendSkippedTokens(); | ||
4148 | } | ||
4149 | finally { | ||
4150 | } | ||
4151 | return current; | ||
4152 | } | ||
4153 | // $ANTLR end "entryRuleQualifiedNameWithWildcard" | ||
4154 | |||
4155 | |||
4156 | // $ANTLR start "ruleQualifiedNameWithWildcard" | ||
4157 | // InternalCftLanguage.g:1571:1: ruleQualifiedNameWithWildcard returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) ; | ||
4158 | public final AntlrDatatypeRuleToken ruleQualifiedNameWithWildcard() throws RecognitionException { | ||
4159 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); | ||
4160 | |||
4161 | Token kw=null; | ||
4162 | AntlrDatatypeRuleToken this_QualifiedName_0 = null; | ||
4163 | |||
4164 | |||
4165 | |||
4166 | enterRule(); | ||
4167 | |||
4168 | try { | ||
4169 | // InternalCftLanguage.g:1577:2: ( (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) ) | ||
4170 | // InternalCftLanguage.g:1578:2: (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) | ||
4171 | { | ||
4172 | // InternalCftLanguage.g:1578:2: (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) | ||
4173 | // InternalCftLanguage.g:1579:3: this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? | ||
4174 | { | ||
4175 | |||
4176 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); | ||
4177 | |||
4178 | pushFollow(FOLLOW_33); | ||
4179 | this_QualifiedName_0=ruleQualifiedName(); | ||
4180 | |||
4181 | state._fsp--; | ||
4182 | |||
4183 | |||
4184 | current.merge(this_QualifiedName_0); | ||
4185 | |||
4186 | |||
4187 | afterParserOrEnumRuleCall(); | ||
4188 | |||
4189 | // InternalCftLanguage.g:1589:3: (kw= '.' kw= '*' )? | ||
4190 | int alt28=2; | ||
4191 | int LA28_0 = input.LA(1); | ||
4192 | |||
4193 | if ( (LA28_0==38) ) { | ||
4194 | alt28=1; | ||
4195 | } | ||
4196 | switch (alt28) { | ||
4197 | case 1 : | ||
4198 | // InternalCftLanguage.g:1590:4: kw= '.' kw= '*' | ||
4199 | { | ||
4200 | kw=(Token)match(input,38,FOLLOW_34); | ||
4201 | |||
4202 | current.merge(kw); | ||
4203 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1_0()); | ||
4204 | |||
4205 | kw=(Token)match(input,40,FOLLOW_2); | ||
4206 | |||
4207 | current.merge(kw); | ||
4208 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_1_1()); | ||
4209 | |||
4210 | |||
4211 | } | ||
4212 | break; | ||
4213 | |||
4214 | } | ||
4215 | |||
4216 | |||
4217 | } | ||
4218 | |||
4219 | |||
4220 | } | ||
4221 | |||
4222 | |||
4223 | leaveRule(); | ||
4224 | |||
4225 | } | ||
4226 | |||
4227 | catch (RecognitionException re) { | ||
4228 | recover(input,re); | ||
4229 | appendSkippedTokens(); | ||
4230 | } | ||
4231 | finally { | ||
4232 | } | ||
4233 | return current; | ||
4234 | } | ||
4235 | // $ANTLR end "ruleQualifiedNameWithWildcard" | ||
4236 | |||
4237 | |||
4238 | // $ANTLR start "entryRuleValidId" | ||
4239 | // InternalCftLanguage.g:1605:1: entryRuleValidId returns [String current=null] : iv_ruleValidId= ruleValidId EOF ; | ||
4240 | public final String entryRuleValidId() throws RecognitionException { | ||
4241 | String current = null; | ||
4242 | |||
4243 | AntlrDatatypeRuleToken iv_ruleValidId = null; | ||
4244 | |||
4245 | |||
4246 | try { | ||
4247 | // InternalCftLanguage.g:1605:47: (iv_ruleValidId= ruleValidId EOF ) | ||
4248 | // InternalCftLanguage.g:1606:2: iv_ruleValidId= ruleValidId EOF | ||
4249 | { | ||
4250 | newCompositeNode(grammarAccess.getValidIdRule()); | ||
4251 | pushFollow(FOLLOW_1); | ||
4252 | iv_ruleValidId=ruleValidId(); | ||
4253 | |||
4254 | state._fsp--; | ||
4255 | |||
4256 | current =iv_ruleValidId.getText(); | ||
4257 | match(input,EOF,FOLLOW_2); | ||
4258 | |||
4259 | } | ||
4260 | |||
4261 | } | ||
4262 | |||
4263 | catch (RecognitionException re) { | ||
4264 | recover(input,re); | ||
4265 | appendSkippedTokens(); | ||
4266 | } | ||
4267 | finally { | ||
4268 | } | ||
4269 | return current; | ||
4270 | } | ||
4271 | // $ANTLR end "entryRuleValidId" | ||
4272 | |||
4273 | |||
4274 | // $ANTLR start "ruleValidId" | ||
4275 | // InternalCftLanguage.g:1612:1: ruleValidId returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ID_0= RULE_ID | this_OF_INT_1= RULE_OF_INT ) ; | ||
4276 | public final AntlrDatatypeRuleToken ruleValidId() throws RecognitionException { | ||
4277 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); | ||
4278 | |||
4279 | Token this_ID_0=null; | ||
4280 | Token this_OF_INT_1=null; | ||
4281 | |||
4282 | |||
4283 | enterRule(); | ||
4284 | |||
4285 | try { | ||
4286 | // InternalCftLanguage.g:1618:2: ( (this_ID_0= RULE_ID | this_OF_INT_1= RULE_OF_INT ) ) | ||
4287 | // InternalCftLanguage.g:1619:2: (this_ID_0= RULE_ID | this_OF_INT_1= RULE_OF_INT ) | ||
4288 | { | ||
4289 | // InternalCftLanguage.g:1619:2: (this_ID_0= RULE_ID | this_OF_INT_1= RULE_OF_INT ) | ||
4290 | int alt29=2; | ||
4291 | int LA29_0 = input.LA(1); | ||
4292 | |||
4293 | if ( (LA29_0==RULE_ID) ) { | ||
4294 | alt29=1; | ||
4295 | } | ||
4296 | else if ( (LA29_0==RULE_OF_INT) ) { | ||
4297 | alt29=2; | ||
4298 | } | ||
4299 | else { | ||
4300 | NoViableAltException nvae = | ||
4301 | new NoViableAltException("", 29, 0, input); | ||
4302 | |||
4303 | throw nvae; | ||
4304 | } | ||
4305 | switch (alt29) { | ||
4306 | case 1 : | ||
4307 | // InternalCftLanguage.g:1620:3: this_ID_0= RULE_ID | ||
4308 | { | ||
4309 | this_ID_0=(Token)match(input,RULE_ID,FOLLOW_2); | ||
4310 | |||
4311 | current.merge(this_ID_0); | ||
4312 | |||
4313 | |||
4314 | newLeafNode(this_ID_0, grammarAccess.getValidIdAccess().getIDTerminalRuleCall_0()); | ||
4315 | |||
4316 | |||
4317 | } | ||
4318 | break; | ||
4319 | case 2 : | ||
4320 | // InternalCftLanguage.g:1628:3: this_OF_INT_1= RULE_OF_INT | ||
4321 | { | ||
4322 | this_OF_INT_1=(Token)match(input,RULE_OF_INT,FOLLOW_2); | ||
4323 | |||
4324 | current.merge(this_OF_INT_1); | ||
4325 | |||
4326 | |||
4327 | newLeafNode(this_OF_INT_1, grammarAccess.getValidIdAccess().getOF_INTTerminalRuleCall_1()); | ||
4328 | |||
4329 | |||
4330 | } | ||
4331 | break; | ||
4332 | |||
4333 | } | ||
4334 | |||
4335 | |||
4336 | } | ||
4337 | |||
4338 | |||
4339 | leaveRule(); | ||
4340 | |||
4341 | } | ||
4342 | |||
4343 | catch (RecognitionException re) { | ||
4344 | recover(input,re); | ||
4345 | appendSkippedTokens(); | ||
4346 | } | ||
4347 | finally { | ||
4348 | } | ||
4349 | return current; | ||
4350 | } | ||
4351 | // $ANTLR end "ruleValidId" | ||
4352 | |||
4353 | |||
4354 | // $ANTLR start "entryRuleDouble" | ||
4355 | // InternalCftLanguage.g:1639:1: entryRuleDouble returns [String current=null] : iv_ruleDouble= ruleDouble EOF ; | ||
4356 | public final String entryRuleDouble() throws RecognitionException { | ||
4357 | String current = null; | ||
4358 | |||
4359 | AntlrDatatypeRuleToken iv_ruleDouble = null; | ||
4360 | |||
4361 | |||
4362 | try { | ||
4363 | // InternalCftLanguage.g:1639:46: (iv_ruleDouble= ruleDouble EOF ) | ||
4364 | // InternalCftLanguage.g:1640:2: iv_ruleDouble= ruleDouble EOF | ||
4365 | { | ||
4366 | newCompositeNode(grammarAccess.getDoubleRule()); | ||
4367 | pushFollow(FOLLOW_1); | ||
4368 | iv_ruleDouble=ruleDouble(); | ||
4369 | |||
4370 | state._fsp--; | ||
4371 | |||
4372 | current =iv_ruleDouble.getText(); | ||
4373 | match(input,EOF,FOLLOW_2); | ||
4374 | |||
4375 | } | ||
4376 | |||
4377 | } | ||
4378 | |||
4379 | catch (RecognitionException re) { | ||
4380 | recover(input,re); | ||
4381 | appendSkippedTokens(); | ||
4382 | } | ||
4383 | finally { | ||
4384 | } | ||
4385 | return current; | ||
4386 | } | ||
4387 | // $ANTLR end "entryRuleDouble" | ||
4388 | |||
4389 | |||
4390 | // $ANTLR start "ruleDouble" | ||
4391 | // InternalCftLanguage.g:1646:1: ruleDouble returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_INT_0= RULE_INT | this_T_DOUBLE_1= RULE_T_DOUBLE ) ; | ||
4392 | public final AntlrDatatypeRuleToken ruleDouble() throws RecognitionException { | ||
4393 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); | ||
4394 | |||
4395 | Token this_INT_0=null; | ||
4396 | Token this_T_DOUBLE_1=null; | ||
4397 | |||
4398 | |||
4399 | enterRule(); | ||
4400 | |||
4401 | try { | ||
4402 | // InternalCftLanguage.g:1652:2: ( (this_INT_0= RULE_INT | this_T_DOUBLE_1= RULE_T_DOUBLE ) ) | ||
4403 | // InternalCftLanguage.g:1653:2: (this_INT_0= RULE_INT | this_T_DOUBLE_1= RULE_T_DOUBLE ) | ||
4404 | { | ||
4405 | // InternalCftLanguage.g:1653:2: (this_INT_0= RULE_INT | this_T_DOUBLE_1= RULE_T_DOUBLE ) | ||
4406 | int alt30=2; | ||
4407 | int LA30_0 = input.LA(1); | ||
4408 | |||
4409 | if ( (LA30_0==RULE_INT) ) { | ||
4410 | alt30=1; | ||
4411 | } | ||
4412 | else if ( (LA30_0==RULE_T_DOUBLE) ) { | ||
4413 | alt30=2; | ||
4414 | } | ||
4415 | else { | ||
4416 | NoViableAltException nvae = | ||
4417 | new NoViableAltException("", 30, 0, input); | ||
4418 | |||
4419 | throw nvae; | ||
4420 | } | ||
4421 | switch (alt30) { | ||
4422 | case 1 : | ||
4423 | // InternalCftLanguage.g:1654:3: this_INT_0= RULE_INT | ||
4424 | { | ||
4425 | this_INT_0=(Token)match(input,RULE_INT,FOLLOW_2); | ||
4426 | |||
4427 | current.merge(this_INT_0); | ||
4428 | |||
4429 | |||
4430 | newLeafNode(this_INT_0, grammarAccess.getDoubleAccess().getINTTerminalRuleCall_0()); | ||
4431 | |||
4432 | |||
4433 | } | ||
4434 | break; | ||
4435 | case 2 : | ||
4436 | // InternalCftLanguage.g:1662:3: this_T_DOUBLE_1= RULE_T_DOUBLE | ||
4437 | { | ||
4438 | this_T_DOUBLE_1=(Token)match(input,RULE_T_DOUBLE,FOLLOW_2); | ||
4439 | |||
4440 | current.merge(this_T_DOUBLE_1); | ||
4441 | |||
4442 | |||
4443 | newLeafNode(this_T_DOUBLE_1, grammarAccess.getDoubleAccess().getT_DOUBLETerminalRuleCall_1()); | ||
4444 | |||
4445 | |||
4446 | } | ||
4447 | break; | ||
4448 | |||
4449 | } | ||
4450 | |||
4451 | |||
4452 | } | ||
4453 | |||
4454 | |||
4455 | leaveRule(); | ||
4456 | |||
4457 | } | ||
4458 | |||
4459 | catch (RecognitionException re) { | ||
4460 | recover(input,re); | ||
4461 | appendSkippedTokens(); | ||
4462 | } | ||
4463 | finally { | ||
4464 | } | ||
4465 | return current; | ||
4466 | } | ||
4467 | // $ANTLR end "ruleDouble" | ||
4468 | |||
4469 | // Delegated rules | ||
4470 | |||
4471 | |||
4472 | |||
4473 | |||
4474 | public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L}); | ||
4475 | public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L}); | ||
4476 | public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x0000000000000060L}); | ||
4477 | public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x000000001001C002L}); | ||
4478 | public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000010018002L}); | ||
4479 | public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000010010002L}); | ||
4480 | public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000004002L}); | ||
4481 | public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000020000L}); | ||
4482 | public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x00000000001C0060L}); | ||
4483 | public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000004060L}); | ||
4484 | public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000004000L}); | ||
4485 | public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000100060L}); | ||
4486 | public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000000200002L}); | ||
4487 | public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000001400000L}); | ||
4488 | public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000000800000L}); | ||
4489 | public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000000000090L}); | ||
4490 | public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000002000000L}); | ||
4491 | public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000000000062L}); | ||
4492 | public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000000004000000L}); | ||
4493 | public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x0000000000000010L}); | ||
4494 | public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000008000020L}); | ||
4495 | public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000000060100000L}); | ||
4496 | public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000000040000000L}); | ||
4497 | public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000000080000000L}); | ||
4498 | public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000000300000000L}); | ||
4499 | public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000008000020002L}); | ||
4500 | public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0000000000020002L}); | ||
4501 | public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000000400100060L}); | ||
4502 | public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000000800000000L}); | ||
4503 | public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x0000003000000000L}); | ||
4504 | public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000000400000060L}); | ||
4505 | public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0000004000000000L}); | ||
4506 | public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x0000004000000002L}); | ||
4507 | public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x0000010000000000L}); | ||
4508 | |||
4509 | } | ||
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 deleted file mode 100644 index def0ebe9..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/AbstractCftLanguageScopeProvider.java +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
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 deleted file mode 100644 index fe329903..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSemanticSequencer.java +++ /dev/null | |||
@@ -1,383 +0,0 @@ | |||
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.Assignment; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance; | ||
11 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference; | ||
12 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration; | ||
13 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition; | ||
14 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition; | ||
15 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter; | ||
16 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition; | ||
17 | import hu.bme.mit.inf.dslreasoner.faulttree.components.services.CftLanguageGrammarAccess; | ||
18 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.AndGateDefinition; | ||
19 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.BasicEventDefinition; | ||
20 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; | ||
21 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition; | ||
22 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent; | ||
23 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition; | ||
24 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.OrGateDefinition; | ||
25 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantDistribution; | ||
26 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ExponentialDistribution; | ||
27 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; | ||
28 | import java.util.Set; | ||
29 | import org.eclipse.emf.ecore.EObject; | ||
30 | import org.eclipse.emf.ecore.EPackage; | ||
31 | import org.eclipse.xtext.Action; | ||
32 | import org.eclipse.xtext.Parameter; | ||
33 | import org.eclipse.xtext.ParserRule; | ||
34 | import org.eclipse.xtext.serializer.ISerializationContext; | ||
35 | import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; | ||
36 | import org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer; | ||
37 | import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient; | ||
38 | |||
39 | @SuppressWarnings("all") | ||
40 | public class CftLanguageSemanticSequencer extends AbstractDelegatingSemanticSequencer { | ||
41 | |||
42 | @Inject | ||
43 | private CftLanguageGrammarAccess grammarAccess; | ||
44 | |||
45 | @Override | ||
46 | public void sequence(ISerializationContext context, EObject semanticObject) { | ||
47 | EPackage epackage = semanticObject.eClass().getEPackage(); | ||
48 | ParserRule rule = context.getParserRule(); | ||
49 | Action action = context.getAssignedAction(); | ||
50 | Set<Parameter> parameters = context.getEnabledBooleanParameters(); | ||
51 | if (epackage == CftPackage.eINSTANCE) | ||
52 | switch (semanticObject.eClass().getClassifierID()) { | ||
53 | case CftPackage.AND_GATE_DEFINITION: | ||
54 | sequence_AndGateDefinition(context, (AndGateDefinition) semanticObject); | ||
55 | return; | ||
56 | case CftPackage.BASIC_EVENT_DEFINITION: | ||
57 | sequence_BasicEventDefinition(context, (BasicEventDefinition) semanticObject); | ||
58 | return; | ||
59 | case CftPackage.COMPONENT_DEFINITION: | ||
60 | sequence_ComponentDefinition(context, (ComponentDefinition) semanticObject); | ||
61 | return; | ||
62 | case CftPackage.INPUT_EVENT: | ||
63 | sequence_InputEvent(context, (InputEvent) semanticObject); | ||
64 | return; | ||
65 | case CftPackage.KOF_MGATE_DEFINITION: | ||
66 | sequence_KOfMGateDefinition(context, (KOfMGateDefinition) semanticObject); | ||
67 | return; | ||
68 | case CftPackage.OR_GATE_DEFINITION: | ||
69 | sequence_OrGateDefinition(context, (OrGateDefinition) semanticObject); | ||
70 | return; | ||
71 | } | ||
72 | else if (epackage == CftLanguagePackage.eINSTANCE) | ||
73 | switch (semanticObject.eClass().getClassifierID()) { | ||
74 | case CftLanguagePackage.ASSIGNMENT: | ||
75 | sequence_Assignment(context, (Assignment) semanticObject); | ||
76 | return; | ||
77 | case CftLanguagePackage.CFT_MODEL: | ||
78 | sequence_CftModel(context, (CftModel) semanticObject); | ||
79 | return; | ||
80 | case CftLanguagePackage.COMPONENT_INSTANCE: | ||
81 | sequence_ComponentInstance(context, (ComponentInstance) semanticObject); | ||
82 | return; | ||
83 | case CftLanguagePackage.EVENT_REFERENCE: | ||
84 | sequence_EventReference(context, (EventReference) semanticObject); | ||
85 | return; | ||
86 | case CftLanguagePackage.IMPORT_DECLARATION: | ||
87 | sequence_ImportDeclaration(context, (ImportDeclaration) semanticObject); | ||
88 | return; | ||
89 | case CftLanguagePackage.LOOKUP_DEFINITION: | ||
90 | sequence_LookupDefinition(context, (LookupDefinition) semanticObject); | ||
91 | return; | ||
92 | case CftLanguagePackage.MAPPING_DEFINITION: | ||
93 | sequence_MappingDefinition(context, (MappingDefinition) semanticObject); | ||
94 | return; | ||
95 | case CftLanguagePackage.MAPPING_PARAMETER: | ||
96 | sequence_MappingParameter(context, (MappingParameter) semanticObject); | ||
97 | return; | ||
98 | case CftLanguagePackage.TRANSFORMATION_DEFINITION: | ||
99 | sequence_TransformationDefinition(context, (TransformationDefinition) semanticObject); | ||
100 | return; | ||
101 | } | ||
102 | else if (epackage == FtPackage.eINSTANCE) | ||
103 | switch (semanticObject.eClass().getClassifierID()) { | ||
104 | case FtPackage.CONSTANT_DISTRIBUTION: | ||
105 | sequence_ConstantDistribution(context, (ConstantDistribution) semanticObject); | ||
106 | return; | ||
107 | case FtPackage.EXPONENTIAL_DISTRIBUTION: | ||
108 | sequence_ExponentialDistribution(context, (ExponentialDistribution) semanticObject); | ||
109 | return; | ||
110 | } | ||
111 | if (errorAcceptor != null) | ||
112 | errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * Contexts: | ||
117 | * EventDefinition returns AndGateDefinition | ||
118 | * GateDefinition returns AndGateDefinition | ||
119 | * AndGateDefinition returns AndGateDefinition | ||
120 | * | ||
121 | * Constraint: | ||
122 | * (name=ValidId inputEvents+=[EventDeclaration|ValidId]*) | ||
123 | */ | ||
124 | protected void sequence_AndGateDefinition(ISerializationContext context, AndGateDefinition semanticObject) { | ||
125 | genericSequencer.createSequence(context, semanticObject); | ||
126 | } | ||
127 | |||
128 | |||
129 | /** | ||
130 | * Contexts: | ||
131 | * Assignment returns Assignment | ||
132 | * | ||
133 | * Constraint: | ||
134 | * (input=EventReference multiple?='+='? output=EventReference) | ||
135 | */ | ||
136 | protected void sequence_Assignment(ISerializationContext context, Assignment semanticObject) { | ||
137 | genericSequencer.createSequence(context, semanticObject); | ||
138 | } | ||
139 | |||
140 | |||
141 | /** | ||
142 | * Contexts: | ||
143 | * EventDefinition returns BasicEventDefinition | ||
144 | * BasicEventDefinition returns BasicEventDefinition | ||
145 | * | ||
146 | * Constraint: | ||
147 | * (name=ValidId distribution=Distribution) | ||
148 | */ | ||
149 | protected void sequence_BasicEventDefinition(ISerializationContext context, BasicEventDefinition semanticObject) { | ||
150 | if (errorAcceptor != null) { | ||
151 | if (transientValues.isValueTransient(semanticObject, CftPackage.Literals.EVENT_DECLARATION__NAME) == ValueTransient.YES) | ||
152 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftPackage.Literals.EVENT_DECLARATION__NAME)); | ||
153 | if (transientValues.isValueTransient(semanticObject, CftPackage.Literals.BASIC_EVENT_DEFINITION__DISTRIBUTION) == ValueTransient.YES) | ||
154 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftPackage.Literals.BASIC_EVENT_DEFINITION__DISTRIBUTION)); | ||
155 | } | ||
156 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | ||
157 | feeder.accept(grammarAccess.getBasicEventDefinitionAccess().getNameValidIdParserRuleCall_0_0(), semanticObject.getName()); | ||
158 | feeder.accept(grammarAccess.getBasicEventDefinitionAccess().getDistributionDistributionParserRuleCall_1_0(), semanticObject.getDistribution()); | ||
159 | feeder.finish(); | ||
160 | } | ||
161 | |||
162 | |||
163 | /** | ||
164 | * Contexts: | ||
165 | * CftModel returns CftModel | ||
166 | * | ||
167 | * Constraint: | ||
168 | * ( | ||
169 | * packageName=QualifiedName | ||
170 | * imports+=ImportDeclaration* | ||
171 | * (componentDefinitions+=ComponentDefinition | transformationDefinitions+=TransformationDefinition)* | ||
172 | * ) | ||
173 | */ | ||
174 | protected void sequence_CftModel(ISerializationContext context, CftModel semanticObject) { | ||
175 | genericSequencer.createSequence(context, semanticObject); | ||
176 | } | ||
177 | |||
178 | |||
179 | /** | ||
180 | * Contexts: | ||
181 | * ComponentDefinition returns ComponentDefinition | ||
182 | * | ||
183 | * Constraint: | ||
184 | * (name=ValidId (inputEvents+=InputEvent | outputEvents+=[EventDeclaration|ValidId])* eventDefinitions+=EventDefinition*) | ||
185 | */ | ||
186 | protected void sequence_ComponentDefinition(ISerializationContext context, ComponentDefinition semanticObject) { | ||
187 | genericSequencer.createSequence(context, semanticObject); | ||
188 | } | ||
189 | |||
190 | |||
191 | /** | ||
192 | * Contexts: | ||
193 | * Variable returns ComponentInstance | ||
194 | * ComponentInstance returns ComponentInstance | ||
195 | * | ||
196 | * Constraint: | ||
197 | * (componentType=[ComponentDefinition|QualifiedName] name=ValidId?) | ||
198 | */ | ||
199 | protected void sequence_ComponentInstance(ISerializationContext context, ComponentInstance semanticObject) { | ||
200 | genericSequencer.createSequence(context, semanticObject); | ||
201 | } | ||
202 | |||
203 | |||
204 | /** | ||
205 | * Contexts: | ||
206 | * Distribution returns ConstantDistribution | ||
207 | * ConstantDistribution returns ConstantDistribution | ||
208 | * | ||
209 | * Constraint: | ||
210 | * p=Double | ||
211 | */ | ||
212 | protected void sequence_ConstantDistribution(ISerializationContext context, ConstantDistribution semanticObject) { | ||
213 | if (errorAcceptor != null) { | ||
214 | if (transientValues.isValueTransient(semanticObject, FtPackage.Literals.CONSTANT_DISTRIBUTION__P) == ValueTransient.YES) | ||
215 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FtPackage.Literals.CONSTANT_DISTRIBUTION__P)); | ||
216 | } | ||
217 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | ||
218 | feeder.accept(grammarAccess.getConstantDistributionAccess().getPDoubleParserRuleCall_2_0(), semanticObject.getP()); | ||
219 | feeder.finish(); | ||
220 | } | ||
221 | |||
222 | |||
223 | /** | ||
224 | * Contexts: | ||
225 | * EventReference returns EventReference | ||
226 | * | ||
227 | * Constraint: | ||
228 | * (component=[Variable|ValidId] event=[EventDeclaration|ValidId]) | ||
229 | */ | ||
230 | protected void sequence_EventReference(ISerializationContext context, EventReference semanticObject) { | ||
231 | if (errorAcceptor != null) { | ||
232 | if (transientValues.isValueTransient(semanticObject, CftLanguagePackage.Literals.EVENT_REFERENCE__COMPONENT) == ValueTransient.YES) | ||
233 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.EVENT_REFERENCE__COMPONENT)); | ||
234 | if (transientValues.isValueTransient(semanticObject, CftLanguagePackage.Literals.EVENT_REFERENCE__EVENT) == ValueTransient.YES) | ||
235 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.EVENT_REFERENCE__EVENT)); | ||
236 | } | ||
237 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | ||
238 | feeder.accept(grammarAccess.getEventReferenceAccess().getComponentVariableValidIdParserRuleCall_0_0_1(), semanticObject.eGet(CftLanguagePackage.Literals.EVENT_REFERENCE__COMPONENT, false)); | ||
239 | feeder.accept(grammarAccess.getEventReferenceAccess().getEventEventDeclarationValidIdParserRuleCall_2_0_1(), semanticObject.eGet(CftLanguagePackage.Literals.EVENT_REFERENCE__EVENT, false)); | ||
240 | feeder.finish(); | ||
241 | } | ||
242 | |||
243 | |||
244 | /** | ||
245 | * Contexts: | ||
246 | * Distribution returns ExponentialDistribution | ||
247 | * ExponentialDistribution returns ExponentialDistribution | ||
248 | * | ||
249 | * Constraint: | ||
250 | * lambda=Double | ||
251 | */ | ||
252 | protected void sequence_ExponentialDistribution(ISerializationContext context, ExponentialDistribution semanticObject) { | ||
253 | if (errorAcceptor != null) { | ||
254 | if (transientValues.isValueTransient(semanticObject, FtPackage.Literals.EXPONENTIAL_DISTRIBUTION__LAMBDA) == ValueTransient.YES) | ||
255 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FtPackage.Literals.EXPONENTIAL_DISTRIBUTION__LAMBDA)); | ||
256 | } | ||
257 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | ||
258 | feeder.accept(grammarAccess.getExponentialDistributionAccess().getLambdaDoubleParserRuleCall_2_0(), semanticObject.getLambda()); | ||
259 | feeder.finish(); | ||
260 | } | ||
261 | |||
262 | |||
263 | /** | ||
264 | * Contexts: | ||
265 | * ImportDeclaration returns ImportDeclaration | ||
266 | * | ||
267 | * Constraint: | ||
268 | * importedNamespace=QualifiedNameWithWildcard | ||
269 | */ | ||
270 | protected void sequence_ImportDeclaration(ISerializationContext context, ImportDeclaration semanticObject) { | ||
271 | if (errorAcceptor != null) { | ||
272 | if (transientValues.isValueTransient(semanticObject, CftLanguagePackage.Literals.IMPORT_DECLARATION__IMPORTED_NAMESPACE) == ValueTransient.YES) | ||
273 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.IMPORT_DECLARATION__IMPORTED_NAMESPACE)); | ||
274 | } | ||
275 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | ||
276 | feeder.accept(grammarAccess.getImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_0(), semanticObject.getImportedNamespace()); | ||
277 | feeder.finish(); | ||
278 | } | ||
279 | |||
280 | |||
281 | /** | ||
282 | * Contexts: | ||
283 | * InputEvent returns InputEvent | ||
284 | * | ||
285 | * Constraint: | ||
286 | * (name=ValidId multiple?='[]'?) | ||
287 | */ | ||
288 | protected void sequence_InputEvent(ISerializationContext context, InputEvent semanticObject) { | ||
289 | genericSequencer.createSequence(context, semanticObject); | ||
290 | } | ||
291 | |||
292 | |||
293 | /** | ||
294 | * Contexts: | ||
295 | * EventDefinition returns KOfMGateDefinition | ||
296 | * GateDefinition returns KOfMGateDefinition | ||
297 | * KOfMGateDefinition returns KOfMGateDefinition | ||
298 | * | ||
299 | * Constraint: | ||
300 | * (name=ValidId k=INT (m=INT | m=OF_INT) inputEvents+=[EventDeclaration|ValidId]*) | ||
301 | */ | ||
302 | protected void sequence_KOfMGateDefinition(ISerializationContext context, KOfMGateDefinition semanticObject) { | ||
303 | genericSequencer.createSequence(context, semanticObject); | ||
304 | } | ||
305 | |||
306 | |||
307 | /** | ||
308 | * Contexts: | ||
309 | * LookupDefinition returns LookupDefinition | ||
310 | * Variable returns LookupDefinition | ||
311 | * | ||
312 | * Constraint: | ||
313 | * (mapping=[MappingDefinition|QualifiedName] arguments+=[MappingParameter|ValidId] arguments+=[MappingParameter|ValidId]* name=ValidId) | ||
314 | */ | ||
315 | protected void sequence_LookupDefinition(ISerializationContext context, LookupDefinition semanticObject) { | ||
316 | genericSequencer.createSequence(context, semanticObject); | ||
317 | } | ||
318 | |||
319 | |||
320 | /** | ||
321 | * Contexts: | ||
322 | * MappingDefinition returns MappingDefinition | ||
323 | * | ||
324 | * Constraint: | ||
325 | * ( | ||
326 | * topLevel?='toplevel'? | ||
327 | * pattern=[Pattern|QualifiedName] | ||
328 | * parameters+=MappingParameter | ||
329 | * parameters+=MappingParameter* | ||
330 | * componentInstance=ComponentInstance? | ||
331 | * (lookupDefinitions+=LookupDefinition | assignments+=Assignment)* | ||
332 | * ) | ||
333 | */ | ||
334 | protected void sequence_MappingDefinition(ISerializationContext context, MappingDefinition semanticObject) { | ||
335 | genericSequencer.createSequence(context, semanticObject); | ||
336 | } | ||
337 | |||
338 | |||
339 | /** | ||
340 | * Contexts: | ||
341 | * MappingParameter returns MappingParameter | ||
342 | * | ||
343 | * Constraint: | ||
344 | * name=ValidId | ||
345 | */ | ||
346 | protected void sequence_MappingParameter(ISerializationContext context, MappingParameter semanticObject) { | ||
347 | if (errorAcceptor != null) { | ||
348 | if (transientValues.isValueTransient(semanticObject, CftLanguagePackage.Literals.MAPPING_PARAMETER__NAME) == ValueTransient.YES) | ||
349 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.MAPPING_PARAMETER__NAME)); | ||
350 | } | ||
351 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | ||
352 | feeder.accept(grammarAccess.getMappingParameterAccess().getNameValidIdParserRuleCall_0(), semanticObject.getName()); | ||
353 | feeder.finish(); | ||
354 | } | ||
355 | |||
356 | |||
357 | /** | ||
358 | * Contexts: | ||
359 | * EventDefinition returns OrGateDefinition | ||
360 | * GateDefinition returns OrGateDefinition | ||
361 | * OrGateDefinition returns OrGateDefinition | ||
362 | * | ||
363 | * Constraint: | ||
364 | * (name=ValidId inputEvents+=[EventDeclaration|ValidId]*) | ||
365 | */ | ||
366 | protected void sequence_OrGateDefinition(ISerializationContext context, OrGateDefinition semanticObject) { | ||
367 | genericSequencer.createSequence(context, semanticObject); | ||
368 | } | ||
369 | |||
370 | |||
371 | /** | ||
372 | * Contexts: | ||
373 | * TransformationDefinition returns TransformationDefinition | ||
374 | * | ||
375 | * Constraint: | ||
376 | * (name=ValidId mappingDefinitions+=MappingDefinition*) | ||
377 | */ | ||
378 | protected void sequence_TransformationDefinition(ISerializationContext context, TransformationDefinition semanticObject) { | ||
379 | genericSequencer.createSequence(context, semanticObject); | ||
380 | } | ||
381 | |||
382 | |||
383 | } | ||
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 deleted file mode 100644 index 62a80a00..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSyntacticSequencer.java +++ /dev/null | |||
@@ -1,242 +0,0 @@ | |||
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|ValidId] | ||
127 | * name=ValidId '{' (ambiguity) 'out' (';' (ambiguity) 'out')* outputEvents+=[EventDeclaration|ValidId] | ||
128 | * outputEvents+=[EventDeclaration|ValidId] ';' (ambiguity) ('out' ';' (ambiguity))* '}' (rule end) | ||
129 | * outputEvents+=[EventDeclaration|ValidId] ';' (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|ValidId] ';' ('in' ';')* (ambiguity) '}' (rule end) | ||
141 | * outputEvents+=[EventDeclaration|ValidId] ';' ('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=ValidId '{' (ambiguity) 'in' (';' (ambiguity) 'in')* inputEvents+=InputEvent | ||
155 | * outputEvents+=[EventDeclaration|ValidId] ';' (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=ValidId '{' ('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=ValidId '{' ('in' ';')* 'out' (ambiguity) outputEvents+=[EventDeclaration|ValidId] | ||
179 | * outputEvents+=[EventDeclaration|ValidId] (ambiguity) outputEvents+=[EventDeclaration|ValidId] | ||
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=ValidId '{' (ambiguity) '}' (rule end) | ||
191 | * name=ValidId '{' (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|ValidId] ';' ('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|ValidId] | ||
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 deleted file mode 100644 index 2b9632b7..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/services/CftLanguageGrammarAccess.java +++ /dev/null | |||
@@ -1,1412 +0,0 @@ | |||
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 cNameValidIdParserRuleCall_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 cOutputEventsEventDeclarationValidIdParserRuleCall_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 cft::ComponentDefinition: | ||
138 | // "cft" name=ValidId "{" (("in" inputEvents+=InputEvent* ";")? & ("out" outputEvents+=[cft::EventDeclaration|ValidId]* | ||
139 | // ";")?) (eventDefinitions+=EventDefinition ";")* | ||
140 | // "}"; | ||
141 | @Override public ParserRule getRule() { return rule; } | ||
142 | |||
143 | //"cft" name=ValidId "{" (("in" inputEvents+=InputEvent* ";")? & ("out" outputEvents+=[cft::EventDeclaration|ValidId]* | ||
144 | //";")?) (eventDefinitions+=EventDefinition ";")* "}" | ||
145 | public Group getGroup() { return cGroup; } | ||
146 | |||
147 | //"cft" | ||
148 | public Keyword getCftKeyword_0() { return cCftKeyword_0; } | ||
149 | |||
150 | //name=ValidId | ||
151 | public Assignment getNameAssignment_1() { return cNameAssignment_1; } | ||
152 | |||
153 | //ValidId | ||
154 | public RuleCall getNameValidIdParserRuleCall_1_0() { return cNameValidIdParserRuleCall_1_0; } | ||
155 | |||
156 | //"{" | ||
157 | public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; } | ||
158 | |||
159 | //("in" inputEvents+=InputEvent* ";")? & ("out" outputEvents+=[cft::EventDeclaration|ValidId]* ";")? | ||
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+=[cft::EventDeclaration|ValidId]* ";")? | ||
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+=[cft::EventDeclaration|ValidId]* | ||
184 | public Assignment getOutputEventsAssignment_3_1_1() { return cOutputEventsAssignment_3_1_1; } | ||
185 | |||
186 | //[cft::EventDeclaration|ValidId] | ||
187 | public CrossReference getOutputEventsEventDeclarationCrossReference_3_1_1_0() { return cOutputEventsEventDeclarationCrossReference_3_1_1_0; } | ||
188 | |||
189 | //ValidId | ||
190 | public RuleCall getOutputEventsEventDeclarationValidIdParserRuleCall_3_1_1_0_1() { return cOutputEventsEventDeclarationValidIdParserRuleCall_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 InputEventElements extends AbstractParserRuleElementFinder { | ||
211 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.InputEvent"); | ||
212 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
213 | private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
214 | private final RuleCall cNameValidIdParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); | ||
215 | private final Assignment cMultipleAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
216 | private final Keyword cMultipleLeftSquareBracketRightSquareBracketKeyword_1_0 = (Keyword)cMultipleAssignment_1.eContents().get(0); | ||
217 | |||
218 | //InputEvent cft::InputEvent: | ||
219 | // name=ValidId multiple?="[]"?; | ||
220 | @Override public ParserRule getRule() { return rule; } | ||
221 | |||
222 | //name=ValidId multiple?="[]"? | ||
223 | public Group getGroup() { return cGroup; } | ||
224 | |||
225 | //name=ValidId | ||
226 | public Assignment getNameAssignment_0() { return cNameAssignment_0; } | ||
227 | |||
228 | //ValidId | ||
229 | public RuleCall getNameValidIdParserRuleCall_0_0() { return cNameValidIdParserRuleCall_0_0; } | ||
230 | |||
231 | //multiple?="[]"? | ||
232 | public Assignment getMultipleAssignment_1() { return cMultipleAssignment_1; } | ||
233 | |||
234 | //"[]" | ||
235 | public Keyword getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0() { return cMultipleLeftSquareBracketRightSquareBracketKeyword_1_0; } | ||
236 | } | ||
237 | public class EventDefinitionElements extends AbstractParserRuleElementFinder { | ||
238 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventDefinition"); | ||
239 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
240 | private final RuleCall cBasicEventDefinitionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
241 | private final RuleCall cGateDefinitionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
242 | |||
243 | //EventDefinition cft::EventDefinition: | ||
244 | // BasicEventDefinition | GateDefinition; | ||
245 | @Override public ParserRule getRule() { return rule; } | ||
246 | |||
247 | //BasicEventDefinition | GateDefinition | ||
248 | public Alternatives getAlternatives() { return cAlternatives; } | ||
249 | |||
250 | //BasicEventDefinition | ||
251 | public RuleCall getBasicEventDefinitionParserRuleCall_0() { return cBasicEventDefinitionParserRuleCall_0; } | ||
252 | |||
253 | //GateDefinition | ||
254 | public RuleCall getGateDefinitionParserRuleCall_1() { return cGateDefinitionParserRuleCall_1; } | ||
255 | } | ||
256 | public class BasicEventDefinitionElements extends AbstractParserRuleElementFinder { | ||
257 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.BasicEventDefinition"); | ||
258 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
259 | private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
260 | private final RuleCall cNameValidIdParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); | ||
261 | private final Assignment cDistributionAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
262 | private final RuleCall cDistributionDistributionParserRuleCall_1_0 = (RuleCall)cDistributionAssignment_1.eContents().get(0); | ||
263 | |||
264 | //BasicEventDefinition cft::BasicEventDefinition: | ||
265 | // name=ValidId distribution=Distribution; | ||
266 | @Override public ParserRule getRule() { return rule; } | ||
267 | |||
268 | //name=ValidId distribution=Distribution | ||
269 | public Group getGroup() { return cGroup; } | ||
270 | |||
271 | //name=ValidId | ||
272 | public Assignment getNameAssignment_0() { return cNameAssignment_0; } | ||
273 | |||
274 | //ValidId | ||
275 | public RuleCall getNameValidIdParserRuleCall_0_0() { return cNameValidIdParserRuleCall_0_0; } | ||
276 | |||
277 | //distribution=Distribution | ||
278 | public Assignment getDistributionAssignment_1() { return cDistributionAssignment_1; } | ||
279 | |||
280 | //Distribution | ||
281 | public RuleCall getDistributionDistributionParserRuleCall_1_0() { return cDistributionDistributionParserRuleCall_1_0; } | ||
282 | } | ||
283 | public class DistributionElements extends AbstractParserRuleElementFinder { | ||
284 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Distribution"); | ||
285 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
286 | private final RuleCall cConstantDistributionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
287 | private final RuleCall cExponentialDistributionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
288 | |||
289 | //Distribution ft::Distribution: | ||
290 | // ConstantDistribution | ExponentialDistribution; | ||
291 | @Override public ParserRule getRule() { return rule; } | ||
292 | |||
293 | //ConstantDistribution | ExponentialDistribution | ||
294 | public Alternatives getAlternatives() { return cAlternatives; } | ||
295 | |||
296 | //ConstantDistribution | ||
297 | public RuleCall getConstantDistributionParserRuleCall_0() { return cConstantDistributionParserRuleCall_0; } | ||
298 | |||
299 | //ExponentialDistribution | ||
300 | public RuleCall getExponentialDistributionParserRuleCall_1() { return cExponentialDistributionParserRuleCall_1; } | ||
301 | } | ||
302 | public class ConstantDistributionElements extends AbstractParserRuleElementFinder { | ||
303 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ConstantDistribution"); | ||
304 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
305 | private final Keyword cProbKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
306 | private final Keyword cEqualsSignKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
307 | private final Assignment cPAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
308 | private final RuleCall cPDoubleParserRuleCall_2_0 = (RuleCall)cPAssignment_2.eContents().get(0); | ||
309 | |||
310 | //ConstantDistribution ft::ConstantDistribution: | ||
311 | // "prob" "=" p=Double; | ||
312 | @Override public ParserRule getRule() { return rule; } | ||
313 | |||
314 | //"prob" "=" p=Double | ||
315 | public Group getGroup() { return cGroup; } | ||
316 | |||
317 | //"prob" | ||
318 | public Keyword getProbKeyword_0() { return cProbKeyword_0; } | ||
319 | |||
320 | //"=" | ||
321 | public Keyword getEqualsSignKeyword_1() { return cEqualsSignKeyword_1; } | ||
322 | |||
323 | //p=Double | ||
324 | public Assignment getPAssignment_2() { return cPAssignment_2; } | ||
325 | |||
326 | //Double | ||
327 | public RuleCall getPDoubleParserRuleCall_2_0() { return cPDoubleParserRuleCall_2_0; } | ||
328 | } | ||
329 | public class ExponentialDistributionElements extends AbstractParserRuleElementFinder { | ||
330 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ExponentialDistribution"); | ||
331 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
332 | private final Keyword cLambdaKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
333 | private final Keyword cEqualsSignKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
334 | private final Assignment cLambdaAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
335 | private final RuleCall cLambdaDoubleParserRuleCall_2_0 = (RuleCall)cLambdaAssignment_2.eContents().get(0); | ||
336 | |||
337 | //ExponentialDistribution ft::ExponentialDistribution: | ||
338 | // "lambda" "=" lambda=Double; | ||
339 | @Override public ParserRule getRule() { return rule; } | ||
340 | |||
341 | //"lambda" "=" lambda=Double | ||
342 | public Group getGroup() { return cGroup; } | ||
343 | |||
344 | //"lambda" | ||
345 | public Keyword getLambdaKeyword_0() { return cLambdaKeyword_0; } | ||
346 | |||
347 | //"=" | ||
348 | public Keyword getEqualsSignKeyword_1() { return cEqualsSignKeyword_1; } | ||
349 | |||
350 | //lambda=Double | ||
351 | public Assignment getLambdaAssignment_2() { return cLambdaAssignment_2; } | ||
352 | |||
353 | //Double | ||
354 | public RuleCall getLambdaDoubleParserRuleCall_2_0() { return cLambdaDoubleParserRuleCall_2_0; } | ||
355 | } | ||
356 | public class GateDefinitionElements extends AbstractParserRuleElementFinder { | ||
357 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.GateDefinition"); | ||
358 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
359 | private final RuleCall cAndGateDefinitionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
360 | private final RuleCall cOrGateDefinitionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
361 | private final RuleCall cKOfMGateDefinitionParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2); | ||
362 | |||
363 | //GateDefinition cft::GateDefinition: | ||
364 | // AndGateDefinition | OrGateDefinition | KOfMGateDefinition; | ||
365 | @Override public ParserRule getRule() { return rule; } | ||
366 | |||
367 | //AndGateDefinition | OrGateDefinition | KOfMGateDefinition | ||
368 | public Alternatives getAlternatives() { return cAlternatives; } | ||
369 | |||
370 | //AndGateDefinition | ||
371 | public RuleCall getAndGateDefinitionParserRuleCall_0() { return cAndGateDefinitionParserRuleCall_0; } | ||
372 | |||
373 | //OrGateDefinition | ||
374 | public RuleCall getOrGateDefinitionParserRuleCall_1() { return cOrGateDefinitionParserRuleCall_1; } | ||
375 | |||
376 | //KOfMGateDefinition | ||
377 | public RuleCall getKOfMGateDefinitionParserRuleCall_2() { return cKOfMGateDefinitionParserRuleCall_2; } | ||
378 | } | ||
379 | public class AndGateDefinitionElements extends AbstractParserRuleElementFinder { | ||
380 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.AndGateDefinition"); | ||
381 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
382 | private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
383 | private final RuleCall cNameValidIdParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); | ||
384 | private final Keyword cAndKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
385 | private final Assignment cInputEventsAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
386 | private final CrossReference cInputEventsEventDeclarationCrossReference_2_0 = (CrossReference)cInputEventsAssignment_2.eContents().get(0); | ||
387 | private final RuleCall cInputEventsEventDeclarationValidIdParserRuleCall_2_0_1 = (RuleCall)cInputEventsEventDeclarationCrossReference_2_0.eContents().get(1); | ||
388 | |||
389 | //AndGateDefinition cft::AndGateDefinition: | ||
390 | // name=ValidId "and" inputEvents+=[cft::EventDeclaration|ValidId]*; | ||
391 | @Override public ParserRule getRule() { return rule; } | ||
392 | |||
393 | //name=ValidId "and" inputEvents+=[cft::EventDeclaration|ValidId]* | ||
394 | public Group getGroup() { return cGroup; } | ||
395 | |||
396 | //name=ValidId | ||
397 | public Assignment getNameAssignment_0() { return cNameAssignment_0; } | ||
398 | |||
399 | //ValidId | ||
400 | public RuleCall getNameValidIdParserRuleCall_0_0() { return cNameValidIdParserRuleCall_0_0; } | ||
401 | |||
402 | //"and" | ||
403 | public Keyword getAndKeyword_1() { return cAndKeyword_1; } | ||
404 | |||
405 | //inputEvents+=[cft::EventDeclaration|ValidId]* | ||
406 | public Assignment getInputEventsAssignment_2() { return cInputEventsAssignment_2; } | ||
407 | |||
408 | //[cft::EventDeclaration|ValidId] | ||
409 | public CrossReference getInputEventsEventDeclarationCrossReference_2_0() { return cInputEventsEventDeclarationCrossReference_2_0; } | ||
410 | |||
411 | //ValidId | ||
412 | public RuleCall getInputEventsEventDeclarationValidIdParserRuleCall_2_0_1() { return cInputEventsEventDeclarationValidIdParserRuleCall_2_0_1; } | ||
413 | } | ||
414 | public class OrGateDefinitionElements extends AbstractParserRuleElementFinder { | ||
415 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.OrGateDefinition"); | ||
416 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
417 | private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
418 | private final RuleCall cNameValidIdParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); | ||
419 | private final Keyword cOrKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
420 | private final Assignment cInputEventsAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
421 | private final CrossReference cInputEventsEventDeclarationCrossReference_2_0 = (CrossReference)cInputEventsAssignment_2.eContents().get(0); | ||
422 | private final RuleCall cInputEventsEventDeclarationValidIdParserRuleCall_2_0_1 = (RuleCall)cInputEventsEventDeclarationCrossReference_2_0.eContents().get(1); | ||
423 | |||
424 | //OrGateDefinition cft::OrGateDefinition: | ||
425 | // name=ValidId "or" inputEvents+=[cft::EventDeclaration|ValidId]*; | ||
426 | @Override public ParserRule getRule() { return rule; } | ||
427 | |||
428 | //name=ValidId "or" inputEvents+=[cft::EventDeclaration|ValidId]* | ||
429 | public Group getGroup() { return cGroup; } | ||
430 | |||
431 | //name=ValidId | ||
432 | public Assignment getNameAssignment_0() { return cNameAssignment_0; } | ||
433 | |||
434 | //ValidId | ||
435 | public RuleCall getNameValidIdParserRuleCall_0_0() { return cNameValidIdParserRuleCall_0_0; } | ||
436 | |||
437 | //"or" | ||
438 | public Keyword getOrKeyword_1() { return cOrKeyword_1; } | ||
439 | |||
440 | //inputEvents+=[cft::EventDeclaration|ValidId]* | ||
441 | public Assignment getInputEventsAssignment_2() { return cInputEventsAssignment_2; } | ||
442 | |||
443 | //[cft::EventDeclaration|ValidId] | ||
444 | public CrossReference getInputEventsEventDeclarationCrossReference_2_0() { return cInputEventsEventDeclarationCrossReference_2_0; } | ||
445 | |||
446 | //ValidId | ||
447 | public RuleCall getInputEventsEventDeclarationValidIdParserRuleCall_2_0_1() { return cInputEventsEventDeclarationValidIdParserRuleCall_2_0_1; } | ||
448 | } | ||
449 | public class KOfMGateDefinitionElements extends AbstractParserRuleElementFinder { | ||
450 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.KOfMGateDefinition"); | ||
451 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
452 | private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
453 | private final RuleCall cNameValidIdParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); | ||
454 | private final Assignment cKAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
455 | private final RuleCall cKINTTerminalRuleCall_1_0 = (RuleCall)cKAssignment_1.eContents().get(0); | ||
456 | private final Alternatives cAlternatives_2 = (Alternatives)cGroup.eContents().get(2); | ||
457 | private final Group cGroup_2_0 = (Group)cAlternatives_2.eContents().get(0); | ||
458 | private final Keyword cOfKeyword_2_0_0 = (Keyword)cGroup_2_0.eContents().get(0); | ||
459 | private final Assignment cMAssignment_2_0_1 = (Assignment)cGroup_2_0.eContents().get(1); | ||
460 | private final RuleCall cMINTTerminalRuleCall_2_0_1_0 = (RuleCall)cMAssignment_2_0_1.eContents().get(0); | ||
461 | private final Assignment cMAssignment_2_1 = (Assignment)cAlternatives_2.eContents().get(1); | ||
462 | private final RuleCall cMOF_INTTerminalRuleCall_2_1_0 = (RuleCall)cMAssignment_2_1.eContents().get(0); | ||
463 | private final Assignment cInputEventsAssignment_3 = (Assignment)cGroup.eContents().get(3); | ||
464 | private final CrossReference cInputEventsEventDeclarationCrossReference_3_0 = (CrossReference)cInputEventsAssignment_3.eContents().get(0); | ||
465 | private final RuleCall cInputEventsEventDeclarationValidIdParserRuleCall_3_0_1 = (RuleCall)cInputEventsEventDeclarationCrossReference_3_0.eContents().get(1); | ||
466 | |||
467 | //KOfMGateDefinition cft::KOfMGateDefinition: | ||
468 | // name=ValidId k=INT ("of" m=INT | m=OF_INT) inputEvents+=[cft::EventDeclaration|ValidId]*; | ||
469 | @Override public ParserRule getRule() { return rule; } | ||
470 | |||
471 | //name=ValidId k=INT ("of" m=INT | m=OF_INT) inputEvents+=[cft::EventDeclaration|ValidId]* | ||
472 | public Group getGroup() { return cGroup; } | ||
473 | |||
474 | //name=ValidId | ||
475 | public Assignment getNameAssignment_0() { return cNameAssignment_0; } | ||
476 | |||
477 | //ValidId | ||
478 | public RuleCall getNameValidIdParserRuleCall_0_0() { return cNameValidIdParserRuleCall_0_0; } | ||
479 | |||
480 | //k=INT | ||
481 | public Assignment getKAssignment_1() { return cKAssignment_1; } | ||
482 | |||
483 | //INT | ||
484 | public RuleCall getKINTTerminalRuleCall_1_0() { return cKINTTerminalRuleCall_1_0; } | ||
485 | |||
486 | //"of" m=INT | m=OF_INT | ||
487 | public Alternatives getAlternatives_2() { return cAlternatives_2; } | ||
488 | |||
489 | //"of" m=INT | ||
490 | public Group getGroup_2_0() { return cGroup_2_0; } | ||
491 | |||
492 | //"of" | ||
493 | public Keyword getOfKeyword_2_0_0() { return cOfKeyword_2_0_0; } | ||
494 | |||
495 | //m=INT | ||
496 | public Assignment getMAssignment_2_0_1() { return cMAssignment_2_0_1; } | ||
497 | |||
498 | //INT | ||
499 | public RuleCall getMINTTerminalRuleCall_2_0_1_0() { return cMINTTerminalRuleCall_2_0_1_0; } | ||
500 | |||
501 | //m=OF_INT | ||
502 | public Assignment getMAssignment_2_1() { return cMAssignment_2_1; } | ||
503 | |||
504 | //OF_INT | ||
505 | public RuleCall getMOF_INTTerminalRuleCall_2_1_0() { return cMOF_INTTerminalRuleCall_2_1_0; } | ||
506 | |||
507 | //inputEvents+=[cft::EventDeclaration|ValidId]* | ||
508 | public Assignment getInputEventsAssignment_3() { return cInputEventsAssignment_3; } | ||
509 | |||
510 | //[cft::EventDeclaration|ValidId] | ||
511 | public CrossReference getInputEventsEventDeclarationCrossReference_3_0() { return cInputEventsEventDeclarationCrossReference_3_0; } | ||
512 | |||
513 | //ValidId | ||
514 | public RuleCall getInputEventsEventDeclarationValidIdParserRuleCall_3_0_1() { return cInputEventsEventDeclarationValidIdParserRuleCall_3_0_1; } | ||
515 | } | ||
516 | public class TransformationDefinitionElements extends AbstractParserRuleElementFinder { | ||
517 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.TransformationDefinition"); | ||
518 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
519 | private final Keyword cTransformationKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
520 | private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
521 | private final RuleCall cNameValidIdParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0); | ||
522 | private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2); | ||
523 | private final Assignment cMappingDefinitionsAssignment_3 = (Assignment)cGroup.eContents().get(3); | ||
524 | private final RuleCall cMappingDefinitionsMappingDefinitionParserRuleCall_3_0 = (RuleCall)cMappingDefinitionsAssignment_3.eContents().get(0); | ||
525 | private final Keyword cRightCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4); | ||
526 | |||
527 | //TransformationDefinition: | ||
528 | // "transformation" name=ValidId "{" | ||
529 | // mappingDefinitions+=MappingDefinition* | ||
530 | // "}"; | ||
531 | @Override public ParserRule getRule() { return rule; } | ||
532 | |||
533 | //"transformation" name=ValidId "{" mappingDefinitions+=MappingDefinition* "}" | ||
534 | public Group getGroup() { return cGroup; } | ||
535 | |||
536 | //"transformation" | ||
537 | public Keyword getTransformationKeyword_0() { return cTransformationKeyword_0; } | ||
538 | |||
539 | //name=ValidId | ||
540 | public Assignment getNameAssignment_1() { return cNameAssignment_1; } | ||
541 | |||
542 | //ValidId | ||
543 | public RuleCall getNameValidIdParserRuleCall_1_0() { return cNameValidIdParserRuleCall_1_0; } | ||
544 | |||
545 | //"{" | ||
546 | public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; } | ||
547 | |||
548 | //mappingDefinitions+=MappingDefinition* | ||
549 | public Assignment getMappingDefinitionsAssignment_3() { return cMappingDefinitionsAssignment_3; } | ||
550 | |||
551 | //MappingDefinition | ||
552 | public RuleCall getMappingDefinitionsMappingDefinitionParserRuleCall_3_0() { return cMappingDefinitionsMappingDefinitionParserRuleCall_3_0; } | ||
553 | |||
554 | //"}" | ||
555 | public Keyword getRightCurlyBracketKeyword_4() { return cRightCurlyBracketKeyword_4; } | ||
556 | } | ||
557 | public class MappingDefinitionElements extends AbstractParserRuleElementFinder { | ||
558 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingDefinition"); | ||
559 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
560 | private final Assignment cTopLevelAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
561 | private final Keyword cTopLevelToplevelKeyword_0_0 = (Keyword)cTopLevelAssignment_0.eContents().get(0); | ||
562 | private final Keyword cMappingKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
563 | private final Assignment cPatternAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
564 | private final CrossReference cPatternPatternCrossReference_2_0 = (CrossReference)cPatternAssignment_2.eContents().get(0); | ||
565 | private final RuleCall cPatternPatternQualifiedNameParserRuleCall_2_0_1 = (RuleCall)cPatternPatternCrossReference_2_0.eContents().get(1); | ||
566 | private final Keyword cLeftParenthesisKeyword_3 = (Keyword)cGroup.eContents().get(3); | ||
567 | private final Assignment cParametersAssignment_4 = (Assignment)cGroup.eContents().get(4); | ||
568 | private final RuleCall cParametersMappingParameterParserRuleCall_4_0 = (RuleCall)cParametersAssignment_4.eContents().get(0); | ||
569 | private final Group cGroup_5 = (Group)cGroup.eContents().get(5); | ||
570 | private final Keyword cCommaKeyword_5_0 = (Keyword)cGroup_5.eContents().get(0); | ||
571 | private final Assignment cParametersAssignment_5_1 = (Assignment)cGroup_5.eContents().get(1); | ||
572 | private final RuleCall cParametersMappingParameterParserRuleCall_5_1_0 = (RuleCall)cParametersAssignment_5_1.eContents().get(0); | ||
573 | private final Keyword cRightParenthesisKeyword_6 = (Keyword)cGroup.eContents().get(6); | ||
574 | private final Assignment cComponentInstanceAssignment_7 = (Assignment)cGroup.eContents().get(7); | ||
575 | private final RuleCall cComponentInstanceComponentInstanceParserRuleCall_7_0 = (RuleCall)cComponentInstanceAssignment_7.eContents().get(0); | ||
576 | private final Group cGroup_8 = (Group)cGroup.eContents().get(8); | ||
577 | private final Keyword cLeftCurlyBracketKeyword_8_0 = (Keyword)cGroup_8.eContents().get(0); | ||
578 | private final Group cGroup_8_1 = (Group)cGroup_8.eContents().get(1); | ||
579 | private final Alternatives cAlternatives_8_1_0 = (Alternatives)cGroup_8_1.eContents().get(0); | ||
580 | private final Assignment cLookupDefinitionsAssignment_8_1_0_0 = (Assignment)cAlternatives_8_1_0.eContents().get(0); | ||
581 | private final RuleCall cLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0 = (RuleCall)cLookupDefinitionsAssignment_8_1_0_0.eContents().get(0); | ||
582 | private final Assignment cAssignmentsAssignment_8_1_0_1 = (Assignment)cAlternatives_8_1_0.eContents().get(1); | ||
583 | private final RuleCall cAssignmentsAssignmentParserRuleCall_8_1_0_1_0 = (RuleCall)cAssignmentsAssignment_8_1_0_1.eContents().get(0); | ||
584 | private final Keyword cSemicolonKeyword_8_1_1 = (Keyword)cGroup_8_1.eContents().get(1); | ||
585 | private final Keyword cRightCurlyBracketKeyword_8_2 = (Keyword)cGroup_8.eContents().get(2); | ||
586 | |||
587 | //MappingDefinition: | ||
588 | // topLevel?="toplevel"? "mapping" pattern=[vql::Pattern|QualifiedName] | ||
589 | // "(" parameters+=MappingParameter ("," parameters+=MappingParameter)* ")" | ||
590 | // componentInstance=ComponentInstance? ("{" ((lookupDefinitions+=LookupDefinition | assignments+=Assignment) ";")* | ||
591 | // "}")?; | ||
592 | @Override public ParserRule getRule() { return rule; } | ||
593 | |||
594 | //topLevel?="toplevel"? "mapping" pattern=[vql::Pattern|QualifiedName] "(" parameters+=MappingParameter ("," | ||
595 | //parameters+=MappingParameter)* ")" componentInstance=ComponentInstance? ("{" ((lookupDefinitions+=LookupDefinition | | ||
596 | //assignments+=Assignment) ";")* "}")? | ||
597 | public Group getGroup() { return cGroup; } | ||
598 | |||
599 | //topLevel?="toplevel"? | ||
600 | public Assignment getTopLevelAssignment_0() { return cTopLevelAssignment_0; } | ||
601 | |||
602 | //"toplevel" | ||
603 | public Keyword getTopLevelToplevelKeyword_0_0() { return cTopLevelToplevelKeyword_0_0; } | ||
604 | |||
605 | //"mapping" | ||
606 | public Keyword getMappingKeyword_1() { return cMappingKeyword_1; } | ||
607 | |||
608 | //pattern=[vql::Pattern|QualifiedName] | ||
609 | public Assignment getPatternAssignment_2() { return cPatternAssignment_2; } | ||
610 | |||
611 | //[vql::Pattern|QualifiedName] | ||
612 | public CrossReference getPatternPatternCrossReference_2_0() { return cPatternPatternCrossReference_2_0; } | ||
613 | |||
614 | //QualifiedName | ||
615 | public RuleCall getPatternPatternQualifiedNameParserRuleCall_2_0_1() { return cPatternPatternQualifiedNameParserRuleCall_2_0_1; } | ||
616 | |||
617 | //"(" | ||
618 | public Keyword getLeftParenthesisKeyword_3() { return cLeftParenthesisKeyword_3; } | ||
619 | |||
620 | //parameters+=MappingParameter | ||
621 | public Assignment getParametersAssignment_4() { return cParametersAssignment_4; } | ||
622 | |||
623 | //MappingParameter | ||
624 | public RuleCall getParametersMappingParameterParserRuleCall_4_0() { return cParametersMappingParameterParserRuleCall_4_0; } | ||
625 | |||
626 | //("," parameters+=MappingParameter)* | ||
627 | public Group getGroup_5() { return cGroup_5; } | ||
628 | |||
629 | //"," | ||
630 | public Keyword getCommaKeyword_5_0() { return cCommaKeyword_5_0; } | ||
631 | |||
632 | //parameters+=MappingParameter | ||
633 | public Assignment getParametersAssignment_5_1() { return cParametersAssignment_5_1; } | ||
634 | |||
635 | //MappingParameter | ||
636 | public RuleCall getParametersMappingParameterParserRuleCall_5_1_0() { return cParametersMappingParameterParserRuleCall_5_1_0; } | ||
637 | |||
638 | //")" | ||
639 | public Keyword getRightParenthesisKeyword_6() { return cRightParenthesisKeyword_6; } | ||
640 | |||
641 | //componentInstance=ComponentInstance? | ||
642 | public Assignment getComponentInstanceAssignment_7() { return cComponentInstanceAssignment_7; } | ||
643 | |||
644 | //ComponentInstance | ||
645 | public RuleCall getComponentInstanceComponentInstanceParserRuleCall_7_0() { return cComponentInstanceComponentInstanceParserRuleCall_7_0; } | ||
646 | |||
647 | //("{" ((lookupDefinitions+=LookupDefinition | assignments+=Assignment) ";")* "}")? | ||
648 | public Group getGroup_8() { return cGroup_8; } | ||
649 | |||
650 | //"{" | ||
651 | public Keyword getLeftCurlyBracketKeyword_8_0() { return cLeftCurlyBracketKeyword_8_0; } | ||
652 | |||
653 | //((lookupDefinitions+=LookupDefinition | assignments+=Assignment) ";")* | ||
654 | public Group getGroup_8_1() { return cGroup_8_1; } | ||
655 | |||
656 | //lookupDefinitions+=LookupDefinition | assignments+=Assignment | ||
657 | public Alternatives getAlternatives_8_1_0() { return cAlternatives_8_1_0; } | ||
658 | |||
659 | //lookupDefinitions+=LookupDefinition | ||
660 | public Assignment getLookupDefinitionsAssignment_8_1_0_0() { return cLookupDefinitionsAssignment_8_1_0_0; } | ||
661 | |||
662 | //LookupDefinition | ||
663 | public RuleCall getLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0() { return cLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0; } | ||
664 | |||
665 | //assignments+=Assignment | ||
666 | public Assignment getAssignmentsAssignment_8_1_0_1() { return cAssignmentsAssignment_8_1_0_1; } | ||
667 | |||
668 | //Assignment | ||
669 | public RuleCall getAssignmentsAssignmentParserRuleCall_8_1_0_1_0() { return cAssignmentsAssignmentParserRuleCall_8_1_0_1_0; } | ||
670 | |||
671 | //";" | ||
672 | public Keyword getSemicolonKeyword_8_1_1() { return cSemicolonKeyword_8_1_1; } | ||
673 | |||
674 | //"}" | ||
675 | public Keyword getRightCurlyBracketKeyword_8_2() { return cRightCurlyBracketKeyword_8_2; } | ||
676 | } | ||
677 | public class MappingParameterElements extends AbstractParserRuleElementFinder { | ||
678 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingParameter"); | ||
679 | private final Assignment cNameAssignment = (Assignment)rule.eContents().get(1); | ||
680 | private final RuleCall cNameValidIdParserRuleCall_0 = (RuleCall)cNameAssignment.eContents().get(0); | ||
681 | |||
682 | //MappingParameter: | ||
683 | // name=ValidId; | ||
684 | @Override public ParserRule getRule() { return rule; } | ||
685 | |||
686 | //name=ValidId | ||
687 | public Assignment getNameAssignment() { return cNameAssignment; } | ||
688 | |||
689 | //ValidId | ||
690 | public RuleCall getNameValidIdParserRuleCall_0() { return cNameValidIdParserRuleCall_0; } | ||
691 | } | ||
692 | public class LookupDefinitionElements extends AbstractParserRuleElementFinder { | ||
693 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.LookupDefinition"); | ||
694 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
695 | private final Keyword cLookupKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
696 | private final Assignment cMappingAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
697 | private final CrossReference cMappingMappingDefinitionCrossReference_1_0 = (CrossReference)cMappingAssignment_1.eContents().get(0); | ||
698 | private final RuleCall cMappingMappingDefinitionQualifiedNameParserRuleCall_1_0_1 = (RuleCall)cMappingMappingDefinitionCrossReference_1_0.eContents().get(1); | ||
699 | private final Keyword cLeftParenthesisKeyword_2 = (Keyword)cGroup.eContents().get(2); | ||
700 | private final Assignment cArgumentsAssignment_3 = (Assignment)cGroup.eContents().get(3); | ||
701 | private final CrossReference cArgumentsMappingParameterCrossReference_3_0 = (CrossReference)cArgumentsAssignment_3.eContents().get(0); | ||
702 | private final RuleCall cArgumentsMappingParameterValidIdParserRuleCall_3_0_1 = (RuleCall)cArgumentsMappingParameterCrossReference_3_0.eContents().get(1); | ||
703 | private final Group cGroup_4 = (Group)cGroup.eContents().get(4); | ||
704 | private final Keyword cCommaKeyword_4_0 = (Keyword)cGroup_4.eContents().get(0); | ||
705 | private final Assignment cArgumentsAssignment_4_1 = (Assignment)cGroup_4.eContents().get(1); | ||
706 | private final CrossReference cArgumentsMappingParameterCrossReference_4_1_0 = (CrossReference)cArgumentsAssignment_4_1.eContents().get(0); | ||
707 | private final RuleCall cArgumentsMappingParameterValidIdParserRuleCall_4_1_0_1 = (RuleCall)cArgumentsMappingParameterCrossReference_4_1_0.eContents().get(1); | ||
708 | private final Keyword cRightParenthesisKeyword_5 = (Keyword)cGroup.eContents().get(5); | ||
709 | private final Keyword cAsKeyword_6 = (Keyword)cGroup.eContents().get(6); | ||
710 | private final Assignment cNameAssignment_7 = (Assignment)cGroup.eContents().get(7); | ||
711 | private final RuleCall cNameValidIdParserRuleCall_7_0 = (RuleCall)cNameAssignment_7.eContents().get(0); | ||
712 | |||
713 | //LookupDefinition: | ||
714 | // "lookup" mapping=[MappingDefinition|QualifiedName] | ||
715 | // "(" arguments+=[MappingParameter|ValidId] ("," arguments+=[MappingParameter|ValidId])* ")" | ||
716 | // "as" name=ValidId; | ||
717 | @Override public ParserRule getRule() { return rule; } | ||
718 | |||
719 | //"lookup" mapping=[MappingDefinition|QualifiedName] "(" arguments+=[MappingParameter|ValidId] ("," | ||
720 | //arguments+=[MappingParameter|ValidId])* ")" "as" name=ValidId | ||
721 | public Group getGroup() { return cGroup; } | ||
722 | |||
723 | //"lookup" | ||
724 | public Keyword getLookupKeyword_0() { return cLookupKeyword_0; } | ||
725 | |||
726 | //mapping=[MappingDefinition|QualifiedName] | ||
727 | public Assignment getMappingAssignment_1() { return cMappingAssignment_1; } | ||
728 | |||
729 | //[MappingDefinition|QualifiedName] | ||
730 | public CrossReference getMappingMappingDefinitionCrossReference_1_0() { return cMappingMappingDefinitionCrossReference_1_0; } | ||
731 | |||
732 | //QualifiedName | ||
733 | public RuleCall getMappingMappingDefinitionQualifiedNameParserRuleCall_1_0_1() { return cMappingMappingDefinitionQualifiedNameParserRuleCall_1_0_1; } | ||
734 | |||
735 | //"(" | ||
736 | public Keyword getLeftParenthesisKeyword_2() { return cLeftParenthesisKeyword_2; } | ||
737 | |||
738 | //arguments+=[MappingParameter|ValidId] | ||
739 | public Assignment getArgumentsAssignment_3() { return cArgumentsAssignment_3; } | ||
740 | |||
741 | //[MappingParameter|ValidId] | ||
742 | public CrossReference getArgumentsMappingParameterCrossReference_3_0() { return cArgumentsMappingParameterCrossReference_3_0; } | ||
743 | |||
744 | //ValidId | ||
745 | public RuleCall getArgumentsMappingParameterValidIdParserRuleCall_3_0_1() { return cArgumentsMappingParameterValidIdParserRuleCall_3_0_1; } | ||
746 | |||
747 | //("," arguments+=[MappingParameter|ValidId])* | ||
748 | public Group getGroup_4() { return cGroup_4; } | ||
749 | |||
750 | //"," | ||
751 | public Keyword getCommaKeyword_4_0() { return cCommaKeyword_4_0; } | ||
752 | |||
753 | //arguments+=[MappingParameter|ValidId] | ||
754 | public Assignment getArgumentsAssignment_4_1() { return cArgumentsAssignment_4_1; } | ||
755 | |||
756 | //[MappingParameter|ValidId] | ||
757 | public CrossReference getArgumentsMappingParameterCrossReference_4_1_0() { return cArgumentsMappingParameterCrossReference_4_1_0; } | ||
758 | |||
759 | //ValidId | ||
760 | public RuleCall getArgumentsMappingParameterValidIdParserRuleCall_4_1_0_1() { return cArgumentsMappingParameterValidIdParserRuleCall_4_1_0_1; } | ||
761 | |||
762 | //")" | ||
763 | public Keyword getRightParenthesisKeyword_5() { return cRightParenthesisKeyword_5; } | ||
764 | |||
765 | //"as" | ||
766 | public Keyword getAsKeyword_6() { return cAsKeyword_6; } | ||
767 | |||
768 | //name=ValidId | ||
769 | public Assignment getNameAssignment_7() { return cNameAssignment_7; } | ||
770 | |||
771 | //ValidId | ||
772 | public RuleCall getNameValidIdParserRuleCall_7_0() { return cNameValidIdParserRuleCall_7_0; } | ||
773 | } | ||
774 | public class VariableElements extends AbstractParserRuleElementFinder { | ||
775 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Variable"); | ||
776 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
777 | private final RuleCall cComponentInstanceParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
778 | private final RuleCall cLookupDefinitionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
779 | |||
780 | //Variable: | ||
781 | // ComponentInstance | LookupDefinition; | ||
782 | @Override public ParserRule getRule() { return rule; } | ||
783 | |||
784 | //ComponentInstance | LookupDefinition | ||
785 | public Alternatives getAlternatives() { return cAlternatives; } | ||
786 | |||
787 | //ComponentInstance | ||
788 | public RuleCall getComponentInstanceParserRuleCall_0() { return cComponentInstanceParserRuleCall_0; } | ||
789 | |||
790 | //LookupDefinition | ||
791 | public RuleCall getLookupDefinitionParserRuleCall_1() { return cLookupDefinitionParserRuleCall_1; } | ||
792 | } | ||
793 | public class AssignmentElements extends AbstractParserRuleElementFinder { | ||
794 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Assignment"); | ||
795 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
796 | private final Assignment cInputAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
797 | private final RuleCall cInputEventReferenceParserRuleCall_0_0 = (RuleCall)cInputAssignment_0.eContents().get(0); | ||
798 | private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1); | ||
799 | private final Assignment cMultipleAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0); | ||
800 | private final Keyword cMultiplePlusSignEqualsSignKeyword_1_0_0 = (Keyword)cMultipleAssignment_1_0.eContents().get(0); | ||
801 | private final Keyword cColonEqualsSignKeyword_1_1 = (Keyword)cAlternatives_1.eContents().get(1); | ||
802 | private final Assignment cOutputAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
803 | private final RuleCall cOutputEventReferenceParserRuleCall_2_0 = (RuleCall)cOutputAssignment_2.eContents().get(0); | ||
804 | |||
805 | //Assignment: | ||
806 | // input=EventReference (multiple?="+=" | ":=") output=EventReference; | ||
807 | @Override public ParserRule getRule() { return rule; } | ||
808 | |||
809 | //input=EventReference (multiple?="+=" | ":=") output=EventReference | ||
810 | public Group getGroup() { return cGroup; } | ||
811 | |||
812 | //input=EventReference | ||
813 | public Assignment getInputAssignment_0() { return cInputAssignment_0; } | ||
814 | |||
815 | //EventReference | ||
816 | public RuleCall getInputEventReferenceParserRuleCall_0_0() { return cInputEventReferenceParserRuleCall_0_0; } | ||
817 | |||
818 | //multiple?="+=" | ":=" | ||
819 | public Alternatives getAlternatives_1() { return cAlternatives_1; } | ||
820 | |||
821 | //multiple?="+=" | ||
822 | public Assignment getMultipleAssignment_1_0() { return cMultipleAssignment_1_0; } | ||
823 | |||
824 | //"+=" | ||
825 | public Keyword getMultiplePlusSignEqualsSignKeyword_1_0_0() { return cMultiplePlusSignEqualsSignKeyword_1_0_0; } | ||
826 | |||
827 | //":=" | ||
828 | public Keyword getColonEqualsSignKeyword_1_1() { return cColonEqualsSignKeyword_1_1; } | ||
829 | |||
830 | //output=EventReference | ||
831 | public Assignment getOutputAssignment_2() { return cOutputAssignment_2; } | ||
832 | |||
833 | //EventReference | ||
834 | public RuleCall getOutputEventReferenceParserRuleCall_2_0() { return cOutputEventReferenceParserRuleCall_2_0; } | ||
835 | } | ||
836 | public class EventReferenceElements extends AbstractParserRuleElementFinder { | ||
837 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventReference"); | ||
838 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
839 | private final Assignment cComponentAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
840 | private final CrossReference cComponentVariableCrossReference_0_0 = (CrossReference)cComponentAssignment_0.eContents().get(0); | ||
841 | private final RuleCall cComponentVariableValidIdParserRuleCall_0_0_1 = (RuleCall)cComponentVariableCrossReference_0_0.eContents().get(1); | ||
842 | private final Keyword cFullStopKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
843 | private final Assignment cEventAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
844 | private final CrossReference cEventEventDeclarationCrossReference_2_0 = (CrossReference)cEventAssignment_2.eContents().get(0); | ||
845 | private final RuleCall cEventEventDeclarationValidIdParserRuleCall_2_0_1 = (RuleCall)cEventEventDeclarationCrossReference_2_0.eContents().get(1); | ||
846 | |||
847 | //EventReference: | ||
848 | // component=[Variable|ValidId] "." event=[cft::EventDeclaration|ValidId]; | ||
849 | @Override public ParserRule getRule() { return rule; } | ||
850 | |||
851 | //component=[Variable|ValidId] "." event=[cft::EventDeclaration|ValidId] | ||
852 | public Group getGroup() { return cGroup; } | ||
853 | |||
854 | //component=[Variable|ValidId] | ||
855 | public Assignment getComponentAssignment_0() { return cComponentAssignment_0; } | ||
856 | |||
857 | //[Variable|ValidId] | ||
858 | public CrossReference getComponentVariableCrossReference_0_0() { return cComponentVariableCrossReference_0_0; } | ||
859 | |||
860 | //ValidId | ||
861 | public RuleCall getComponentVariableValidIdParserRuleCall_0_0_1() { return cComponentVariableValidIdParserRuleCall_0_0_1; } | ||
862 | |||
863 | //"." | ||
864 | public Keyword getFullStopKeyword_1() { return cFullStopKeyword_1; } | ||
865 | |||
866 | //event=[cft::EventDeclaration|ValidId] | ||
867 | public Assignment getEventAssignment_2() { return cEventAssignment_2; } | ||
868 | |||
869 | //[cft::EventDeclaration|ValidId] | ||
870 | public CrossReference getEventEventDeclarationCrossReference_2_0() { return cEventEventDeclarationCrossReference_2_0; } | ||
871 | |||
872 | //ValidId | ||
873 | public RuleCall getEventEventDeclarationValidIdParserRuleCall_2_0_1() { return cEventEventDeclarationValidIdParserRuleCall_2_0_1; } | ||
874 | } | ||
875 | public class ComponentInstanceElements extends AbstractParserRuleElementFinder { | ||
876 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentInstance"); | ||
877 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
878 | private final Keyword cEqualsSignGreaterThanSignKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
879 | private final Assignment cComponentTypeAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
880 | private final CrossReference cComponentTypeComponentDefinitionCrossReference_1_0 = (CrossReference)cComponentTypeAssignment_1.eContents().get(0); | ||
881 | private final RuleCall cComponentTypeComponentDefinitionQualifiedNameParserRuleCall_1_0_1 = (RuleCall)cComponentTypeComponentDefinitionCrossReference_1_0.eContents().get(1); | ||
882 | private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
883 | private final RuleCall cNameValidIdParserRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0); | ||
884 | |||
885 | //ComponentInstance: | ||
886 | // "=>" componentType=[cft::ComponentDefinition|QualifiedName] name=ValidId?; | ||
887 | @Override public ParserRule getRule() { return rule; } | ||
888 | |||
889 | //"=>" componentType=[cft::ComponentDefinition|QualifiedName] name=ValidId? | ||
890 | public Group getGroup() { return cGroup; } | ||
891 | |||
892 | //"=>" | ||
893 | public Keyword getEqualsSignGreaterThanSignKeyword_0() { return cEqualsSignGreaterThanSignKeyword_0; } | ||
894 | |||
895 | //componentType=[cft::ComponentDefinition|QualifiedName] | ||
896 | public Assignment getComponentTypeAssignment_1() { return cComponentTypeAssignment_1; } | ||
897 | |||
898 | //[cft::ComponentDefinition|QualifiedName] | ||
899 | public CrossReference getComponentTypeComponentDefinitionCrossReference_1_0() { return cComponentTypeComponentDefinitionCrossReference_1_0; } | ||
900 | |||
901 | //QualifiedName | ||
902 | public RuleCall getComponentTypeComponentDefinitionQualifiedNameParserRuleCall_1_0_1() { return cComponentTypeComponentDefinitionQualifiedNameParserRuleCall_1_0_1; } | ||
903 | |||
904 | //name=ValidId? | ||
905 | public Assignment getNameAssignment_2() { return cNameAssignment_2; } | ||
906 | |||
907 | //ValidId | ||
908 | public RuleCall getNameValidIdParserRuleCall_2_0() { return cNameValidIdParserRuleCall_2_0; } | ||
909 | } | ||
910 | public class QualifiedNameElements extends AbstractParserRuleElementFinder { | ||
911 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedName"); | ||
912 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
913 | private final RuleCall cValidIdParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0); | ||
914 | private final Group cGroup_1 = (Group)cGroup.eContents().get(1); | ||
915 | private final Keyword cFullStopKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0); | ||
916 | private final RuleCall cValidIdParserRuleCall_1_1 = (RuleCall)cGroup_1.eContents().get(1); | ||
917 | |||
918 | //QualifiedName: | ||
919 | // ValidId ("." ValidId)*; | ||
920 | @Override public ParserRule getRule() { return rule; } | ||
921 | |||
922 | //ValidId ("." ValidId)* | ||
923 | public Group getGroup() { return cGroup; } | ||
924 | |||
925 | //ValidId | ||
926 | public RuleCall getValidIdParserRuleCall_0() { return cValidIdParserRuleCall_0; } | ||
927 | |||
928 | //("." ValidId)* | ||
929 | public Group getGroup_1() { return cGroup_1; } | ||
930 | |||
931 | //"." | ||
932 | public Keyword getFullStopKeyword_1_0() { return cFullStopKeyword_1_0; } | ||
933 | |||
934 | //ValidId | ||
935 | public RuleCall getValidIdParserRuleCall_1_1() { return cValidIdParserRuleCall_1_1; } | ||
936 | } | ||
937 | public class QualifiedNameWithWildcardElements extends AbstractParserRuleElementFinder { | ||
938 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedNameWithWildcard"); | ||
939 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
940 | private final RuleCall cQualifiedNameParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0); | ||
941 | private final Group cGroup_1 = (Group)cGroup.eContents().get(1); | ||
942 | private final Keyword cFullStopKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0); | ||
943 | private final Keyword cAsteriskKeyword_1_1 = (Keyword)cGroup_1.eContents().get(1); | ||
944 | |||
945 | //QualifiedNameWithWildcard: | ||
946 | // QualifiedName ("." "*")?; | ||
947 | @Override public ParserRule getRule() { return rule; } | ||
948 | |||
949 | //QualifiedName ("." "*")? | ||
950 | public Group getGroup() { return cGroup; } | ||
951 | |||
952 | //QualifiedName | ||
953 | public RuleCall getQualifiedNameParserRuleCall_0() { return cQualifiedNameParserRuleCall_0; } | ||
954 | |||
955 | //("." "*")? | ||
956 | public Group getGroup_1() { return cGroup_1; } | ||
957 | |||
958 | //"." | ||
959 | public Keyword getFullStopKeyword_1_0() { return cFullStopKeyword_1_0; } | ||
960 | |||
961 | //"*" | ||
962 | public Keyword getAsteriskKeyword_1_1() { return cAsteriskKeyword_1_1; } | ||
963 | } | ||
964 | public class ValidIdElements extends AbstractParserRuleElementFinder { | ||
965 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
966 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
967 | private final RuleCall cIDTerminalRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
968 | private final RuleCall cOF_INTTerminalRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
969 | |||
970 | //ValidId: | ||
971 | // ID | OF_INT; | ||
972 | @Override public ParserRule getRule() { return rule; } | ||
973 | |||
974 | //ID | OF_INT | ||
975 | public Alternatives getAlternatives() { return cAlternatives; } | ||
976 | |||
977 | //ID | ||
978 | public RuleCall getIDTerminalRuleCall_0() { return cIDTerminalRuleCall_0; } | ||
979 | |||
980 | //OF_INT | ||
981 | public RuleCall getOF_INTTerminalRuleCall_1() { return cOF_INTTerminalRuleCall_1; } | ||
982 | } | ||
983 | public class DoubleElements extends AbstractParserRuleElementFinder { | ||
984 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Double"); | ||
985 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
986 | private final RuleCall cINTTerminalRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
987 | private final RuleCall cT_DOUBLETerminalRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
988 | |||
989 | //Double ecore::EDouble: | ||
990 | // INT | T_DOUBLE; | ||
991 | @Override public ParserRule getRule() { return rule; } | ||
992 | |||
993 | //INT | T_DOUBLE | ||
994 | public Alternatives getAlternatives() { return cAlternatives; } | ||
995 | |||
996 | //INT | ||
997 | public RuleCall getINTTerminalRuleCall_0() { return cINTTerminalRuleCall_0; } | ||
998 | |||
999 | //T_DOUBLE | ||
1000 | public RuleCall getT_DOUBLETerminalRuleCall_1() { return cT_DOUBLETerminalRuleCall_1; } | ||
1001 | } | ||
1002 | |||
1003 | |||
1004 | private final CftModelElements pCftModel; | ||
1005 | private final ImportDeclarationElements pImportDeclaration; | ||
1006 | private final ComponentDefinitionElements pComponentDefinition; | ||
1007 | private final InputEventElements pInputEvent; | ||
1008 | private final EventDefinitionElements pEventDefinition; | ||
1009 | private final BasicEventDefinitionElements pBasicEventDefinition; | ||
1010 | private final DistributionElements pDistribution; | ||
1011 | private final ConstantDistributionElements pConstantDistribution; | ||
1012 | private final ExponentialDistributionElements pExponentialDistribution; | ||
1013 | private final GateDefinitionElements pGateDefinition; | ||
1014 | private final AndGateDefinitionElements pAndGateDefinition; | ||
1015 | private final OrGateDefinitionElements pOrGateDefinition; | ||
1016 | private final KOfMGateDefinitionElements pKOfMGateDefinition; | ||
1017 | private final TransformationDefinitionElements pTransformationDefinition; | ||
1018 | private final MappingDefinitionElements pMappingDefinition; | ||
1019 | private final MappingParameterElements pMappingParameter; | ||
1020 | private final LookupDefinitionElements pLookupDefinition; | ||
1021 | private final VariableElements pVariable; | ||
1022 | private final AssignmentElements pAssignment; | ||
1023 | private final EventReferenceElements pEventReference; | ||
1024 | private final ComponentInstanceElements pComponentInstance; | ||
1025 | private final QualifiedNameElements pQualifiedName; | ||
1026 | private final QualifiedNameWithWildcardElements pQualifiedNameWithWildcard; | ||
1027 | private final ValidIdElements pValidId; | ||
1028 | private final DoubleElements pDouble; | ||
1029 | private final TerminalRule tOF_INT; | ||
1030 | private final TerminalRule tT_DOUBLE; | ||
1031 | |||
1032 | private final Grammar grammar; | ||
1033 | |||
1034 | private final TerminalsGrammarAccess gaTerminals; | ||
1035 | |||
1036 | @Inject | ||
1037 | public CftLanguageGrammarAccess(GrammarProvider grammarProvider, | ||
1038 | TerminalsGrammarAccess gaTerminals) { | ||
1039 | this.grammar = internalFindGrammar(grammarProvider); | ||
1040 | this.gaTerminals = gaTerminals; | ||
1041 | this.pCftModel = new CftModelElements(); | ||
1042 | this.pImportDeclaration = new ImportDeclarationElements(); | ||
1043 | this.pComponentDefinition = new ComponentDefinitionElements(); | ||
1044 | this.pInputEvent = new InputEventElements(); | ||
1045 | this.pEventDefinition = new EventDefinitionElements(); | ||
1046 | this.pBasicEventDefinition = new BasicEventDefinitionElements(); | ||
1047 | this.pDistribution = new DistributionElements(); | ||
1048 | this.pConstantDistribution = new ConstantDistributionElements(); | ||
1049 | this.pExponentialDistribution = new ExponentialDistributionElements(); | ||
1050 | this.pGateDefinition = new GateDefinitionElements(); | ||
1051 | this.pAndGateDefinition = new AndGateDefinitionElements(); | ||
1052 | this.pOrGateDefinition = new OrGateDefinitionElements(); | ||
1053 | this.pKOfMGateDefinition = new KOfMGateDefinitionElements(); | ||
1054 | this.pTransformationDefinition = new TransformationDefinitionElements(); | ||
1055 | this.pMappingDefinition = new MappingDefinitionElements(); | ||
1056 | this.pMappingParameter = new MappingParameterElements(); | ||
1057 | this.pLookupDefinition = new LookupDefinitionElements(); | ||
1058 | this.pVariable = new VariableElements(); | ||
1059 | this.pAssignment = new AssignmentElements(); | ||
1060 | this.pEventReference = new EventReferenceElements(); | ||
1061 | this.pComponentInstance = new ComponentInstanceElements(); | ||
1062 | this.pQualifiedName = new QualifiedNameElements(); | ||
1063 | this.pQualifiedNameWithWildcard = new QualifiedNameWithWildcardElements(); | ||
1064 | this.pValidId = new ValidIdElements(); | ||
1065 | this.pDouble = new DoubleElements(); | ||
1066 | this.tOF_INT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.OF_INT"); | ||
1067 | this.tT_DOUBLE = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.T_DOUBLE"); | ||
1068 | } | ||
1069 | |||
1070 | protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { | ||
1071 | Grammar grammar = grammarProvider.getGrammar(this); | ||
1072 | while (grammar != null) { | ||
1073 | if ("hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage".equals(grammar.getName())) { | ||
1074 | return grammar; | ||
1075 | } | ||
1076 | List<Grammar> grammars = grammar.getUsedGrammars(); | ||
1077 | if (!grammars.isEmpty()) { | ||
1078 | grammar = grammars.iterator().next(); | ||
1079 | } else { | ||
1080 | return null; | ||
1081 | } | ||
1082 | } | ||
1083 | return grammar; | ||
1084 | } | ||
1085 | |||
1086 | @Override | ||
1087 | public Grammar getGrammar() { | ||
1088 | return grammar; | ||
1089 | } | ||
1090 | |||
1091 | |||
1092 | public TerminalsGrammarAccess getTerminalsGrammarAccess() { | ||
1093 | return gaTerminals; | ||
1094 | } | ||
1095 | |||
1096 | |||
1097 | //CftModel: | ||
1098 | // "package" packageName=QualifiedName ";"? | ||
1099 | // imports+=ImportDeclaration* (componentDefinitions+=ComponentDefinition | | ||
1100 | // transformationDefinitions+=TransformationDefinition)*; | ||
1101 | public CftModelElements getCftModelAccess() { | ||
1102 | return pCftModel; | ||
1103 | } | ||
1104 | |||
1105 | public ParserRule getCftModelRule() { | ||
1106 | return getCftModelAccess().getRule(); | ||
1107 | } | ||
1108 | |||
1109 | //ImportDeclaration: | ||
1110 | // "import" importedNamespace=QualifiedNameWithWildcard ";"?; | ||
1111 | public ImportDeclarationElements getImportDeclarationAccess() { | ||
1112 | return pImportDeclaration; | ||
1113 | } | ||
1114 | |||
1115 | public ParserRule getImportDeclarationRule() { | ||
1116 | return getImportDeclarationAccess().getRule(); | ||
1117 | } | ||
1118 | |||
1119 | //ComponentDefinition cft::ComponentDefinition: | ||
1120 | // "cft" name=ValidId "{" (("in" inputEvents+=InputEvent* ";")? & ("out" outputEvents+=[cft::EventDeclaration|ValidId]* | ||
1121 | // ";")?) (eventDefinitions+=EventDefinition ";")* | ||
1122 | // "}"; | ||
1123 | public ComponentDefinitionElements getComponentDefinitionAccess() { | ||
1124 | return pComponentDefinition; | ||
1125 | } | ||
1126 | |||
1127 | public ParserRule getComponentDefinitionRule() { | ||
1128 | return getComponentDefinitionAccess().getRule(); | ||
1129 | } | ||
1130 | |||
1131 | //InputEvent cft::InputEvent: | ||
1132 | // name=ValidId multiple?="[]"?; | ||
1133 | public InputEventElements getInputEventAccess() { | ||
1134 | return pInputEvent; | ||
1135 | } | ||
1136 | |||
1137 | public ParserRule getInputEventRule() { | ||
1138 | return getInputEventAccess().getRule(); | ||
1139 | } | ||
1140 | |||
1141 | //EventDefinition cft::EventDefinition: | ||
1142 | // BasicEventDefinition | GateDefinition; | ||
1143 | public EventDefinitionElements getEventDefinitionAccess() { | ||
1144 | return pEventDefinition; | ||
1145 | } | ||
1146 | |||
1147 | public ParserRule getEventDefinitionRule() { | ||
1148 | return getEventDefinitionAccess().getRule(); | ||
1149 | } | ||
1150 | |||
1151 | //BasicEventDefinition cft::BasicEventDefinition: | ||
1152 | // name=ValidId distribution=Distribution; | ||
1153 | public BasicEventDefinitionElements getBasicEventDefinitionAccess() { | ||
1154 | return pBasicEventDefinition; | ||
1155 | } | ||
1156 | |||
1157 | public ParserRule getBasicEventDefinitionRule() { | ||
1158 | return getBasicEventDefinitionAccess().getRule(); | ||
1159 | } | ||
1160 | |||
1161 | //Distribution ft::Distribution: | ||
1162 | // ConstantDistribution | ExponentialDistribution; | ||
1163 | public DistributionElements getDistributionAccess() { | ||
1164 | return pDistribution; | ||
1165 | } | ||
1166 | |||
1167 | public ParserRule getDistributionRule() { | ||
1168 | return getDistributionAccess().getRule(); | ||
1169 | } | ||
1170 | |||
1171 | //ConstantDistribution ft::ConstantDistribution: | ||
1172 | // "prob" "=" p=Double; | ||
1173 | public ConstantDistributionElements getConstantDistributionAccess() { | ||
1174 | return pConstantDistribution; | ||
1175 | } | ||
1176 | |||
1177 | public ParserRule getConstantDistributionRule() { | ||
1178 | return getConstantDistributionAccess().getRule(); | ||
1179 | } | ||
1180 | |||
1181 | //ExponentialDistribution ft::ExponentialDistribution: | ||
1182 | // "lambda" "=" lambda=Double; | ||
1183 | public ExponentialDistributionElements getExponentialDistributionAccess() { | ||
1184 | return pExponentialDistribution; | ||
1185 | } | ||
1186 | |||
1187 | public ParserRule getExponentialDistributionRule() { | ||
1188 | return getExponentialDistributionAccess().getRule(); | ||
1189 | } | ||
1190 | |||
1191 | //GateDefinition cft::GateDefinition: | ||
1192 | // AndGateDefinition | OrGateDefinition | KOfMGateDefinition; | ||
1193 | public GateDefinitionElements getGateDefinitionAccess() { | ||
1194 | return pGateDefinition; | ||
1195 | } | ||
1196 | |||
1197 | public ParserRule getGateDefinitionRule() { | ||
1198 | return getGateDefinitionAccess().getRule(); | ||
1199 | } | ||
1200 | |||
1201 | //AndGateDefinition cft::AndGateDefinition: | ||
1202 | // name=ValidId "and" inputEvents+=[cft::EventDeclaration|ValidId]*; | ||
1203 | public AndGateDefinitionElements getAndGateDefinitionAccess() { | ||
1204 | return pAndGateDefinition; | ||
1205 | } | ||
1206 | |||
1207 | public ParserRule getAndGateDefinitionRule() { | ||
1208 | return getAndGateDefinitionAccess().getRule(); | ||
1209 | } | ||
1210 | |||
1211 | //OrGateDefinition cft::OrGateDefinition: | ||
1212 | // name=ValidId "or" inputEvents+=[cft::EventDeclaration|ValidId]*; | ||
1213 | public OrGateDefinitionElements getOrGateDefinitionAccess() { | ||
1214 | return pOrGateDefinition; | ||
1215 | } | ||
1216 | |||
1217 | public ParserRule getOrGateDefinitionRule() { | ||
1218 | return getOrGateDefinitionAccess().getRule(); | ||
1219 | } | ||
1220 | |||
1221 | //KOfMGateDefinition cft::KOfMGateDefinition: | ||
1222 | // name=ValidId k=INT ("of" m=INT | m=OF_INT) inputEvents+=[cft::EventDeclaration|ValidId]*; | ||
1223 | public KOfMGateDefinitionElements getKOfMGateDefinitionAccess() { | ||
1224 | return pKOfMGateDefinition; | ||
1225 | } | ||
1226 | |||
1227 | public ParserRule getKOfMGateDefinitionRule() { | ||
1228 | return getKOfMGateDefinitionAccess().getRule(); | ||
1229 | } | ||
1230 | |||
1231 | //TransformationDefinition: | ||
1232 | // "transformation" name=ValidId "{" | ||
1233 | // mappingDefinitions+=MappingDefinition* | ||
1234 | // "}"; | ||
1235 | public TransformationDefinitionElements getTransformationDefinitionAccess() { | ||
1236 | return pTransformationDefinition; | ||
1237 | } | ||
1238 | |||
1239 | public ParserRule getTransformationDefinitionRule() { | ||
1240 | return getTransformationDefinitionAccess().getRule(); | ||
1241 | } | ||
1242 | |||
1243 | //MappingDefinition: | ||
1244 | // topLevel?="toplevel"? "mapping" pattern=[vql::Pattern|QualifiedName] | ||
1245 | // "(" parameters+=MappingParameter ("," parameters+=MappingParameter)* ")" | ||
1246 | // componentInstance=ComponentInstance? ("{" ((lookupDefinitions+=LookupDefinition | assignments+=Assignment) ";")* | ||
1247 | // "}")?; | ||
1248 | public MappingDefinitionElements getMappingDefinitionAccess() { | ||
1249 | return pMappingDefinition; | ||
1250 | } | ||
1251 | |||
1252 | public ParserRule getMappingDefinitionRule() { | ||
1253 | return getMappingDefinitionAccess().getRule(); | ||
1254 | } | ||
1255 | |||
1256 | //MappingParameter: | ||
1257 | // name=ValidId; | ||
1258 | public MappingParameterElements getMappingParameterAccess() { | ||
1259 | return pMappingParameter; | ||
1260 | } | ||
1261 | |||
1262 | public ParserRule getMappingParameterRule() { | ||
1263 | return getMappingParameterAccess().getRule(); | ||
1264 | } | ||
1265 | |||
1266 | //LookupDefinition: | ||
1267 | // "lookup" mapping=[MappingDefinition|QualifiedName] | ||
1268 | // "(" arguments+=[MappingParameter|ValidId] ("," arguments+=[MappingParameter|ValidId])* ")" | ||
1269 | // "as" name=ValidId; | ||
1270 | public LookupDefinitionElements getLookupDefinitionAccess() { | ||
1271 | return pLookupDefinition; | ||
1272 | } | ||
1273 | |||
1274 | public ParserRule getLookupDefinitionRule() { | ||
1275 | return getLookupDefinitionAccess().getRule(); | ||
1276 | } | ||
1277 | |||
1278 | //Variable: | ||
1279 | // ComponentInstance | LookupDefinition; | ||
1280 | public VariableElements getVariableAccess() { | ||
1281 | return pVariable; | ||
1282 | } | ||
1283 | |||
1284 | public ParserRule getVariableRule() { | ||
1285 | return getVariableAccess().getRule(); | ||
1286 | } | ||
1287 | |||
1288 | //Assignment: | ||
1289 | // input=EventReference (multiple?="+=" | ":=") output=EventReference; | ||
1290 | public AssignmentElements getAssignmentAccess() { | ||
1291 | return pAssignment; | ||
1292 | } | ||
1293 | |||
1294 | public ParserRule getAssignmentRule() { | ||
1295 | return getAssignmentAccess().getRule(); | ||
1296 | } | ||
1297 | |||
1298 | //EventReference: | ||
1299 | // component=[Variable|ValidId] "." event=[cft::EventDeclaration|ValidId]; | ||
1300 | public EventReferenceElements getEventReferenceAccess() { | ||
1301 | return pEventReference; | ||
1302 | } | ||
1303 | |||
1304 | public ParserRule getEventReferenceRule() { | ||
1305 | return getEventReferenceAccess().getRule(); | ||
1306 | } | ||
1307 | |||
1308 | //ComponentInstance: | ||
1309 | // "=>" componentType=[cft::ComponentDefinition|QualifiedName] name=ValidId?; | ||
1310 | public ComponentInstanceElements getComponentInstanceAccess() { | ||
1311 | return pComponentInstance; | ||
1312 | } | ||
1313 | |||
1314 | public ParserRule getComponentInstanceRule() { | ||
1315 | return getComponentInstanceAccess().getRule(); | ||
1316 | } | ||
1317 | |||
1318 | //QualifiedName: | ||
1319 | // ValidId ("." ValidId)*; | ||
1320 | public QualifiedNameElements getQualifiedNameAccess() { | ||
1321 | return pQualifiedName; | ||
1322 | } | ||
1323 | |||
1324 | public ParserRule getQualifiedNameRule() { | ||
1325 | return getQualifiedNameAccess().getRule(); | ||
1326 | } | ||
1327 | |||
1328 | //QualifiedNameWithWildcard: | ||
1329 | // QualifiedName ("." "*")?; | ||
1330 | public QualifiedNameWithWildcardElements getQualifiedNameWithWildcardAccess() { | ||
1331 | return pQualifiedNameWithWildcard; | ||
1332 | } | ||
1333 | |||
1334 | public ParserRule getQualifiedNameWithWildcardRule() { | ||
1335 | return getQualifiedNameWithWildcardAccess().getRule(); | ||
1336 | } | ||
1337 | |||
1338 | //ValidId: | ||
1339 | // ID | OF_INT; | ||
1340 | public ValidIdElements getValidIdAccess() { | ||
1341 | return pValidId; | ||
1342 | } | ||
1343 | |||
1344 | public ParserRule getValidIdRule() { | ||
1345 | return getValidIdAccess().getRule(); | ||
1346 | } | ||
1347 | |||
1348 | //Double ecore::EDouble: | ||
1349 | // INT | T_DOUBLE; | ||
1350 | public DoubleElements getDoubleAccess() { | ||
1351 | return pDouble; | ||
1352 | } | ||
1353 | |||
1354 | public ParserRule getDoubleRule() { | ||
1355 | return getDoubleAccess().getRule(); | ||
1356 | } | ||
1357 | |||
1358 | //terminal OF_INT returns ecore::EInt: | ||
1359 | // "o" "f" '0'..'9'+; | ||
1360 | public TerminalRule getOF_INTRule() { | ||
1361 | return tOF_INT; | ||
1362 | } | ||
1363 | |||
1364 | //terminal T_DOUBLE: | ||
1365 | // '0'..'9'+ ("." '0'..'9'+ | ("." '0'..'9'+)? ("e" | "E") ("+" | "-")? '0'..'9'+); | ||
1366 | public TerminalRule getT_DOUBLERule() { | ||
1367 | return tT_DOUBLE; | ||
1368 | } | ||
1369 | |||
1370 | //terminal ID: | ||
1371 | // '^'? ('a'..'z' | 'A'..'Z' | '_') ('a'..'z' | 'A'..'Z' | '_' | '0'..'9')*; | ||
1372 | public TerminalRule getIDRule() { | ||
1373 | return gaTerminals.getIDRule(); | ||
1374 | } | ||
1375 | |||
1376 | //terminal INT returns ecore::EInt: | ||
1377 | // '0'..'9'+; | ||
1378 | public TerminalRule getINTRule() { | ||
1379 | return gaTerminals.getINTRule(); | ||
1380 | } | ||
1381 | |||
1382 | //terminal STRING: | ||
1383 | // '"' ('\\' . | !('\\' | '"'))* '"' | | ||
1384 | // "'" ('\\' . | !('\\' | "'"))* "'"; | ||
1385 | public TerminalRule getSTRINGRule() { | ||
1386 | return gaTerminals.getSTRINGRule(); | ||
1387 | } | ||
1388 | |||
1389 | //terminal ML_COMMENT: | ||
1390 | // '/*'->'*/'; | ||
1391 | public TerminalRule getML_COMMENTRule() { | ||
1392 | return gaTerminals.getML_COMMENTRule(); | ||
1393 | } | ||
1394 | |||
1395 | //terminal SL_COMMENT: | ||
1396 | // '//' !('\n' | '\r')* ('\r'? '\n')?; | ||
1397 | public TerminalRule getSL_COMMENTRule() { | ||
1398 | return gaTerminals.getSL_COMMENTRule(); | ||
1399 | } | ||
1400 | |||
1401 | //terminal WS: | ||
1402 | // ' ' | '\t' | '\r' | '\n'+; | ||
1403 | public TerminalRule getWSRule() { | ||
1404 | return gaTerminals.getWSRule(); | ||
1405 | } | ||
1406 | |||
1407 | //terminal ANY_OTHER: | ||
1408 | // .; | ||
1409 | public TerminalRule getANY_OTHERRule() { | ||
1410 | return gaTerminals.getANY_OTHERRule(); | ||
1411 | } | ||
1412 | } | ||
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 deleted file mode 100644 index 1c5dbdee..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/AbstractCftLanguageValidator.java +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
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 | result.add(EPackage.Registry.INSTANCE.getEPackage("http://www.bme.hu/mit/inf/dslreasoner/faulttree/model/cft")); | ||
18 | result.add(EPackage.Registry.INSTANCE.getEPackage("http://www.bme.hu/mit/inf/dslreasoner/faulttree/model/ft")); | ||
19 | return result; | ||
20 | } | ||
21 | } | ||
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 deleted file mode 100644 index 642dcb1d..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/CftLanguageConfigurableIssueCodesProvider.java +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
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 | } | ||