diff options
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer')
2 files changed, 557 insertions, 0 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSemanticSequencer.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSemanticSequencer.java new file mode 100644 index 00000000..18682f69 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSemanticSequencer.java | |||
@@ -0,0 +1,315 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.serializer; | ||
5 | |||
6 | import com.google.inject.Inject; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.AndGate; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
11 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel; | ||
12 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition; | ||
13 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance; | ||
14 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference; | ||
15 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration; | ||
16 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent; | ||
17 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition; | ||
18 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition; | ||
19 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter; | ||
20 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.OrGate; | ||
21 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition; | ||
22 | import hu.bme.mit.inf.dslreasoner.faulttree.components.services.CftLanguageGrammarAccess; | ||
23 | import java.util.Set; | ||
24 | import org.eclipse.emf.ecore.EObject; | ||
25 | import org.eclipse.emf.ecore.EPackage; | ||
26 | import org.eclipse.xtext.Action; | ||
27 | import org.eclipse.xtext.Parameter; | ||
28 | import org.eclipse.xtext.ParserRule; | ||
29 | import org.eclipse.xtext.serializer.ISerializationContext; | ||
30 | import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; | ||
31 | import org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer; | ||
32 | import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient; | ||
33 | |||
34 | @SuppressWarnings("all") | ||
35 | public class CftLanguageSemanticSequencer extends AbstractDelegatingSemanticSequencer { | ||
36 | |||
37 | @Inject | ||
38 | private CftLanguageGrammarAccess grammarAccess; | ||
39 | |||
40 | @Override | ||
41 | public void sequence(ISerializationContext context, EObject semanticObject) { | ||
42 | EPackage epackage = semanticObject.eClass().getEPackage(); | ||
43 | ParserRule rule = context.getParserRule(); | ||
44 | Action action = context.getAssignedAction(); | ||
45 | Set<Parameter> parameters = context.getEnabledBooleanParameters(); | ||
46 | if (epackage == CftLanguagePackage.eINSTANCE) | ||
47 | switch (semanticObject.eClass().getClassifierID()) { | ||
48 | case CftLanguagePackage.AND_GATE: | ||
49 | sequence_AndGate(context, (AndGate) semanticObject); | ||
50 | return; | ||
51 | case CftLanguagePackage.ASSIGNMENT: | ||
52 | sequence_Assignment(context, (Assignment) semanticObject); | ||
53 | return; | ||
54 | case CftLanguagePackage.BASIC_EVENT_DEFINITION: | ||
55 | sequence_BasicEventDefinition(context, (BasicEventDefinition) semanticObject); | ||
56 | return; | ||
57 | case CftLanguagePackage.CFT_MODEL: | ||
58 | sequence_CftModel(context, (CftModel) semanticObject); | ||
59 | return; | ||
60 | case CftLanguagePackage.COMPONENT_DEFINITION: | ||
61 | sequence_ComponentDefinition(context, (ComponentDefinition) semanticObject); | ||
62 | return; | ||
63 | case CftLanguagePackage.COMPONENT_INSTANCE: | ||
64 | sequence_ComponentInstance(context, (ComponentInstance) semanticObject); | ||
65 | return; | ||
66 | case CftLanguagePackage.EVENT_REFERENCE: | ||
67 | sequence_EventReference(context, (EventReference) semanticObject); | ||
68 | return; | ||
69 | case CftLanguagePackage.IMPORT_DECLARATION: | ||
70 | sequence_ImportDeclaration(context, (ImportDeclaration) semanticObject); | ||
71 | return; | ||
72 | case CftLanguagePackage.INPUT_EVENT: | ||
73 | sequence_InputEvent(context, (InputEvent) semanticObject); | ||
74 | return; | ||
75 | case CftLanguagePackage.LOOKUP_DEFINITION: | ||
76 | sequence_LookupDefinition(context, (LookupDefinition) semanticObject); | ||
77 | return; | ||
78 | case CftLanguagePackage.MAPPING_DEFINITION: | ||
79 | sequence_MappingDefinition(context, (MappingDefinition) semanticObject); | ||
80 | return; | ||
81 | case CftLanguagePackage.MAPPING_PARAMETER: | ||
82 | sequence_MappingParameter(context, (MappingParameter) semanticObject); | ||
83 | return; | ||
84 | case CftLanguagePackage.OR_GATE: | ||
85 | sequence_OrGate(context, (OrGate) semanticObject); | ||
86 | return; | ||
87 | case CftLanguagePackage.TRANSFORMATION_DEFINITION: | ||
88 | sequence_TransformationDefinition(context, (TransformationDefinition) semanticObject); | ||
89 | return; | ||
90 | } | ||
91 | if (errorAcceptor != null) | ||
92 | errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * Contexts: | ||
97 | * EventDeclaration returns AndGate | ||
98 | * EventDefinition returns AndGate | ||
99 | * GateDefinition returns AndGate | ||
100 | * AndGate returns AndGate | ||
101 | * | ||
102 | * Constraint: | ||
103 | * (name=ID inputEvents+=[EventDeclaration|ID]*) | ||
104 | */ | ||
105 | protected void sequence_AndGate(ISerializationContext context, AndGate semanticObject) { | ||
106 | genericSequencer.createSequence(context, semanticObject); | ||
107 | } | ||
108 | |||
109 | |||
110 | /** | ||
111 | * Contexts: | ||
112 | * Assignment returns Assignment | ||
113 | * | ||
114 | * Constraint: | ||
115 | * (input=EventReference multiple?='+='? output=EventReference) | ||
116 | */ | ||
117 | protected void sequence_Assignment(ISerializationContext context, Assignment semanticObject) { | ||
118 | genericSequencer.createSequence(context, semanticObject); | ||
119 | } | ||
120 | |||
121 | |||
122 | /** | ||
123 | * Contexts: | ||
124 | * EventDeclaration returns BasicEventDefinition | ||
125 | * EventDefinition returns BasicEventDefinition | ||
126 | * BasicEventDefinition returns BasicEventDefinition | ||
127 | * | ||
128 | * Constraint: | ||
129 | * (name=ID rate=DOULBE) | ||
130 | */ | ||
131 | protected void sequence_BasicEventDefinition(ISerializationContext context, BasicEventDefinition semanticObject) { | ||
132 | if (errorAcceptor != null) { | ||
133 | if (transientValues.isValueTransient(semanticObject, CftLanguagePackage.Literals.EVENT_DECLARATION__NAME) == ValueTransient.YES) | ||
134 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.EVENT_DECLARATION__NAME)); | ||
135 | if (transientValues.isValueTransient(semanticObject, CftLanguagePackage.Literals.BASIC_EVENT_DEFINITION__RATE) == ValueTransient.YES) | ||
136 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.BASIC_EVENT_DEFINITION__RATE)); | ||
137 | } | ||
138 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | ||
139 | feeder.accept(grammarAccess.getBasicEventDefinitionAccess().getNameIDTerminalRuleCall_0_0(), semanticObject.getName()); | ||
140 | feeder.accept(grammarAccess.getBasicEventDefinitionAccess().getRateDOULBETerminalRuleCall_3_0(), semanticObject.getRate()); | ||
141 | feeder.finish(); | ||
142 | } | ||
143 | |||
144 | |||
145 | /** | ||
146 | * Contexts: | ||
147 | * CftModel returns CftModel | ||
148 | * | ||
149 | * Constraint: | ||
150 | * ( | ||
151 | * packageName=QualifiedName | ||
152 | * imports+=ImportDeclaration* | ||
153 | * (componentDefinitions+=ComponentDefinition | transformationDefinitions+=TransformationDefinition)* | ||
154 | * ) | ||
155 | */ | ||
156 | protected void sequence_CftModel(ISerializationContext context, CftModel semanticObject) { | ||
157 | genericSequencer.createSequence(context, semanticObject); | ||
158 | } | ||
159 | |||
160 | |||
161 | /** | ||
162 | * Contexts: | ||
163 | * ComponentDefinition returns ComponentDefinition | ||
164 | * | ||
165 | * Constraint: | ||
166 | * (name=ID (inputEvents+=InputEvent | outputEvents+=[EventDeclaration|ID])* eventDefinitions+=EventDefinition*) | ||
167 | */ | ||
168 | protected void sequence_ComponentDefinition(ISerializationContext context, ComponentDefinition semanticObject) { | ||
169 | genericSequencer.createSequence(context, semanticObject); | ||
170 | } | ||
171 | |||
172 | |||
173 | /** | ||
174 | * Contexts: | ||
175 | * Variable returns ComponentInstance | ||
176 | * ComponentInstance returns ComponentInstance | ||
177 | * | ||
178 | * Constraint: | ||
179 | * (componentType=[ComponentDefinition|QualifiedName] name=ID?) | ||
180 | */ | ||
181 | protected void sequence_ComponentInstance(ISerializationContext context, ComponentInstance semanticObject) { | ||
182 | genericSequencer.createSequence(context, semanticObject); | ||
183 | } | ||
184 | |||
185 | |||
186 | /** | ||
187 | * Contexts: | ||
188 | * EventReference returns EventReference | ||
189 | * | ||
190 | * Constraint: | ||
191 | * (component=[Variable|ID] event=[EventDeclaration|ID]) | ||
192 | */ | ||
193 | protected void sequence_EventReference(ISerializationContext context, EventReference semanticObject) { | ||
194 | if (errorAcceptor != null) { | ||
195 | if (transientValues.isValueTransient(semanticObject, CftLanguagePackage.Literals.EVENT_REFERENCE__COMPONENT) == ValueTransient.YES) | ||
196 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.EVENT_REFERENCE__COMPONENT)); | ||
197 | if (transientValues.isValueTransient(semanticObject, CftLanguagePackage.Literals.EVENT_REFERENCE__EVENT) == ValueTransient.YES) | ||
198 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.EVENT_REFERENCE__EVENT)); | ||
199 | } | ||
200 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | ||
201 | feeder.accept(grammarAccess.getEventReferenceAccess().getComponentVariableIDTerminalRuleCall_0_0_1(), semanticObject.eGet(CftLanguagePackage.Literals.EVENT_REFERENCE__COMPONENT, false)); | ||
202 | feeder.accept(grammarAccess.getEventReferenceAccess().getEventEventDeclarationIDTerminalRuleCall_2_0_1(), semanticObject.eGet(CftLanguagePackage.Literals.EVENT_REFERENCE__EVENT, false)); | ||
203 | feeder.finish(); | ||
204 | } | ||
205 | |||
206 | |||
207 | /** | ||
208 | * Contexts: | ||
209 | * ImportDeclaration returns ImportDeclaration | ||
210 | * | ||
211 | * Constraint: | ||
212 | * importedNamespace=QualifiedNameWithWildcard | ||
213 | */ | ||
214 | protected void sequence_ImportDeclaration(ISerializationContext context, ImportDeclaration semanticObject) { | ||
215 | if (errorAcceptor != null) { | ||
216 | if (transientValues.isValueTransient(semanticObject, CftLanguagePackage.Literals.IMPORT_DECLARATION__IMPORTED_NAMESPACE) == ValueTransient.YES) | ||
217 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.IMPORT_DECLARATION__IMPORTED_NAMESPACE)); | ||
218 | } | ||
219 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | ||
220 | feeder.accept(grammarAccess.getImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_0(), semanticObject.getImportedNamespace()); | ||
221 | feeder.finish(); | ||
222 | } | ||
223 | |||
224 | |||
225 | /** | ||
226 | * Contexts: | ||
227 | * EventDeclaration returns InputEvent | ||
228 | * InputEvent returns InputEvent | ||
229 | * | ||
230 | * Constraint: | ||
231 | * (name=ID multiple?='[]'?) | ||
232 | */ | ||
233 | protected void sequence_InputEvent(ISerializationContext context, InputEvent semanticObject) { | ||
234 | genericSequencer.createSequence(context, semanticObject); | ||
235 | } | ||
236 | |||
237 | |||
238 | /** | ||
239 | * Contexts: | ||
240 | * LookupDefinition returns LookupDefinition | ||
241 | * Variable returns LookupDefinition | ||
242 | * | ||
243 | * Constraint: | ||
244 | * (mapping=[MappingDefinition|ID] arguments+=[MappingParameter|ID] arguments+=[MappingParameter|ID]* name=ID) | ||
245 | */ | ||
246 | protected void sequence_LookupDefinition(ISerializationContext context, LookupDefinition semanticObject) { | ||
247 | genericSequencer.createSequence(context, semanticObject); | ||
248 | } | ||
249 | |||
250 | |||
251 | /** | ||
252 | * Contexts: | ||
253 | * MappingDefinition returns MappingDefinition | ||
254 | * | ||
255 | * Constraint: | ||
256 | * ( | ||
257 | * topLevel?='toplevel'? | ||
258 | * pattern=[Pattern|QualifiedName] | ||
259 | * parameters+=MappingParameter | ||
260 | * parameters+=MappingParameter* | ||
261 | * componentInstance=ComponentInstance? | ||
262 | * (lookupDefinitions+=LookupDefinition | assignments+=Assignment)* | ||
263 | * ) | ||
264 | */ | ||
265 | protected void sequence_MappingDefinition(ISerializationContext context, MappingDefinition semanticObject) { | ||
266 | genericSequencer.createSequence(context, semanticObject); | ||
267 | } | ||
268 | |||
269 | |||
270 | /** | ||
271 | * Contexts: | ||
272 | * MappingParameter returns MappingParameter | ||
273 | * | ||
274 | * Constraint: | ||
275 | * name=ID | ||
276 | */ | ||
277 | protected void sequence_MappingParameter(ISerializationContext context, MappingParameter semanticObject) { | ||
278 | if (errorAcceptor != null) { | ||
279 | if (transientValues.isValueTransient(semanticObject, CftLanguagePackage.Literals.MAPPING_PARAMETER__NAME) == ValueTransient.YES) | ||
280 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.MAPPING_PARAMETER__NAME)); | ||
281 | } | ||
282 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | ||
283 | feeder.accept(grammarAccess.getMappingParameterAccess().getNameIDTerminalRuleCall_0(), semanticObject.getName()); | ||
284 | feeder.finish(); | ||
285 | } | ||
286 | |||
287 | |||
288 | /** | ||
289 | * Contexts: | ||
290 | * EventDeclaration returns OrGate | ||
291 | * EventDefinition returns OrGate | ||
292 | * GateDefinition returns OrGate | ||
293 | * OrGate returns OrGate | ||
294 | * | ||
295 | * Constraint: | ||
296 | * (name=ID inputEvents+=[EventDeclaration|ID]*) | ||
297 | */ | ||
298 | protected void sequence_OrGate(ISerializationContext context, OrGate semanticObject) { | ||
299 | genericSequencer.createSequence(context, semanticObject); | ||
300 | } | ||
301 | |||
302 | |||
303 | /** | ||
304 | * Contexts: | ||
305 | * TransformationDefinition returns TransformationDefinition | ||
306 | * | ||
307 | * Constraint: | ||
308 | * (name=ID mappingDefinitions+=MappingDefinition*) | ||
309 | */ | ||
310 | protected void sequence_TransformationDefinition(ISerializationContext context, TransformationDefinition semanticObject) { | ||
311 | genericSequencer.createSequence(context, semanticObject); | ||
312 | } | ||
313 | |||
314 | |||
315 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSyntacticSequencer.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSyntacticSequencer.java new file mode 100644 index 00000000..65b39fb2 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSyntacticSequencer.java | |||
@@ -0,0 +1,242 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.serializer; | ||
5 | |||
6 | import com.google.inject.Inject; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.services.CftLanguageGrammarAccess; | ||
8 | import java.util.List; | ||
9 | import org.eclipse.emf.ecore.EObject; | ||
10 | import org.eclipse.xtext.IGrammarAccess; | ||
11 | import org.eclipse.xtext.RuleCall; | ||
12 | import org.eclipse.xtext.nodemodel.INode; | ||
13 | import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; | ||
14 | import org.eclipse.xtext.serializer.analysis.GrammarAlias.AlternativeAlias; | ||
15 | import org.eclipse.xtext.serializer.analysis.GrammarAlias.GroupAlias; | ||
16 | import org.eclipse.xtext.serializer.analysis.GrammarAlias.TokenAlias; | ||
17 | import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable; | ||
18 | import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; | ||
19 | import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer; | ||
20 | |||
21 | @SuppressWarnings("all") | ||
22 | public class CftLanguageSyntacticSequencer extends AbstractSyntacticSequencer { | ||
23 | |||
24 | protected CftLanguageGrammarAccess grammarAccess; | ||
25 | protected AbstractElementAlias match_CftModel_SemicolonKeyword_2_q; | ||
26 | protected AbstractElementAlias match_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a__a; | ||
27 | protected AbstractElementAlias match_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a; | ||
28 | protected AbstractElementAlias match_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a__a; | ||
29 | protected AbstractElementAlias match_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a; | ||
30 | protected AbstractElementAlias match_ComponentDefinition___SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a_InKeyword_3_0_0__a; | ||
31 | protected AbstractElementAlias match_ComponentDefinition___SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a_OutKeyword_3_1_0__a; | ||
32 | protected AbstractElementAlias match_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2___or___OutKeyword_3_1_0_SemicolonKeyword_3_1_2____a; | ||
33 | protected AbstractElementAlias match_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2__q___InKeyword_3_0_0_SemicolonKeyword_3_0_2_OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q__p; | ||
34 | protected AbstractElementAlias match_ComponentDefinition_____OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q___OutKeyword_3_1_0_SemicolonKeyword_3_1_2_InKeyword_3_0_0_SemicolonKeyword_3_0_2__q__p; | ||
35 | protected AbstractElementAlias match_ImportDeclaration_SemicolonKeyword_2_q; | ||
36 | protected AbstractElementAlias match_MappingDefinition___LeftCurlyBracketKeyword_8_0_RightCurlyBracketKeyword_8_2__q; | ||
37 | |||
38 | @Inject | ||
39 | protected void init(IGrammarAccess access) { | ||
40 | grammarAccess = (CftLanguageGrammarAccess) access; | ||
41 | match_CftModel_SemicolonKeyword_2_q = new TokenAlias(false, true, grammarAccess.getCftModelAccess().getSemicolonKeyword_2()); | ||
42 | match_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a__a = new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()), new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()))); | ||
43 | match_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a = new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2())); | ||
44 | match_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a__a = new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()), new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()))); | ||
45 | match_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a = new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2())); | ||
46 | match_ComponentDefinition___SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a_InKeyword_3_0_0__a = new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()), new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2())), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0())); | ||
47 | match_ComponentDefinition___SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a_OutKeyword_3_1_0__a = new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()), new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2())), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0())); | ||
48 | match_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2___or___OutKeyword_3_1_0_SemicolonKeyword_3_1_2____a = new AlternativeAlias(true, true, new GroupAlias(false, false, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2())), new GroupAlias(false, false, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()))); | ||
49 | match_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2__q___InKeyword_3_0_0_SemicolonKeyword_3_0_2_OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q__p = new GroupAlias(true, false, new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2())), new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()))); | ||
50 | match_ComponentDefinition_____OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q___OutKeyword_3_1_0_SemicolonKeyword_3_1_2_InKeyword_3_0_0_SemicolonKeyword_3_0_2__q__p = new GroupAlias(true, false, new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2())), new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()))); | ||
51 | match_ImportDeclaration_SemicolonKeyword_2_q = new TokenAlias(false, true, grammarAccess.getImportDeclarationAccess().getSemicolonKeyword_2()); | ||
52 | match_MappingDefinition___LeftCurlyBracketKeyword_8_0_RightCurlyBracketKeyword_8_2__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getMappingDefinitionAccess().getLeftCurlyBracketKeyword_8_0()), new TokenAlias(false, false, grammarAccess.getMappingDefinitionAccess().getRightCurlyBracketKeyword_8_2())); | ||
53 | } | ||
54 | |||
55 | @Override | ||
56 | protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) { | ||
57 | return ""; | ||
58 | } | ||
59 | |||
60 | |||
61 | @Override | ||
62 | protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) { | ||
63 | if (transition.getAmbiguousSyntaxes().isEmpty()) return; | ||
64 | List<INode> transitionNodes = collectNodes(fromNode, toNode); | ||
65 | for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) { | ||
66 | List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax); | ||
67 | if (match_CftModel_SemicolonKeyword_2_q.equals(syntax)) | ||
68 | emit_CftModel_SemicolonKeyword_2_q(semanticObject, getLastNavigableState(), syntaxNodes); | ||
69 | else if (match_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a__a.equals(syntax)) | ||
70 | emit_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a__a(semanticObject, getLastNavigableState(), syntaxNodes); | ||
71 | else if (match_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a.equals(syntax)) | ||
72 | emit_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a(semanticObject, getLastNavigableState(), syntaxNodes); | ||
73 | else if (match_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a__a.equals(syntax)) | ||
74 | emit_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a__a(semanticObject, getLastNavigableState(), syntaxNodes); | ||
75 | else if (match_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a.equals(syntax)) | ||
76 | emit_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a(semanticObject, getLastNavigableState(), syntaxNodes); | ||
77 | else if (match_ComponentDefinition___SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a_InKeyword_3_0_0__a.equals(syntax)) | ||
78 | emit_ComponentDefinition___SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a_InKeyword_3_0_0__a(semanticObject, getLastNavigableState(), syntaxNodes); | ||
79 | else if (match_ComponentDefinition___SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a_OutKeyword_3_1_0__a.equals(syntax)) | ||
80 | emit_ComponentDefinition___SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a_OutKeyword_3_1_0__a(semanticObject, getLastNavigableState(), syntaxNodes); | ||
81 | else if (match_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2___or___OutKeyword_3_1_0_SemicolonKeyword_3_1_2____a.equals(syntax)) | ||
82 | emit_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2___or___OutKeyword_3_1_0_SemicolonKeyword_3_1_2____a(semanticObject, getLastNavigableState(), syntaxNodes); | ||
83 | else if (match_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2__q___InKeyword_3_0_0_SemicolonKeyword_3_0_2_OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q__p.equals(syntax)) | ||
84 | emit_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2__q___InKeyword_3_0_0_SemicolonKeyword_3_0_2_OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q__p(semanticObject, getLastNavigableState(), syntaxNodes); | ||
85 | else if (match_ComponentDefinition_____OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q___OutKeyword_3_1_0_SemicolonKeyword_3_1_2_InKeyword_3_0_0_SemicolonKeyword_3_0_2__q__p.equals(syntax)) | ||
86 | emit_ComponentDefinition_____OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q___OutKeyword_3_1_0_SemicolonKeyword_3_1_2_InKeyword_3_0_0_SemicolonKeyword_3_0_2__q__p(semanticObject, getLastNavigableState(), syntaxNodes); | ||
87 | else if (match_ImportDeclaration_SemicolonKeyword_2_q.equals(syntax)) | ||
88 | emit_ImportDeclaration_SemicolonKeyword_2_q(semanticObject, getLastNavigableState(), syntaxNodes); | ||
89 | else if (match_MappingDefinition___LeftCurlyBracketKeyword_8_0_RightCurlyBracketKeyword_8_2__q.equals(syntax)) | ||
90 | emit_MappingDefinition___LeftCurlyBracketKeyword_8_0_RightCurlyBracketKeyword_8_2__q(semanticObject, getLastNavigableState(), syntaxNodes); | ||
91 | else acceptNodes(getLastNavigableState(), syntaxNodes); | ||
92 | } | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * Ambiguous syntax: | ||
97 | * ';'? | ||
98 | * | ||
99 | * This ambiguous syntax occurs at: | ||
100 | * packageName=QualifiedName (ambiguity) (rule end) | ||
101 | * packageName=QualifiedName (ambiguity) componentDefinitions+=ComponentDefinition | ||
102 | * packageName=QualifiedName (ambiguity) imports+=ImportDeclaration | ||
103 | * packageName=QualifiedName (ambiguity) transformationDefinitions+=TransformationDefinition | ||
104 | */ | ||
105 | protected void emit_CftModel_SemicolonKeyword_2_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
106 | acceptNodes(transition, nodes); | ||
107 | } | ||
108 | |||
109 | /** | ||
110 | * Ambiguous syntax: | ||
111 | * ('in' ';' ('out' ';')*)* | ||
112 | * | ||
113 | * This ambiguous syntax occurs at: | ||
114 | * inputEvents+=InputEvent ';' ('out' ';')* (ambiguity) '}' (rule end) | ||
115 | * inputEvents+=InputEvent ';' ('out' ';')* (ambiguity) eventDefinitions+=EventDefinition | ||
116 | */ | ||
117 | protected void emit_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
118 | acceptNodes(transition, nodes); | ||
119 | } | ||
120 | |||
121 | /** | ||
122 | * Ambiguous syntax: | ||
123 | * ('in' ';')* | ||
124 | * | ||
125 | * This ambiguous syntax occurs at: | ||
126 | * inputEvents+=InputEvent ';' (ambiguity) (('out' ';')? ('out' ';' 'in' ';')?)+ 'out' outputEvents+=[EventDeclaration|ID] | ||
127 | * name=ID '{' (ambiguity) 'out' (';' (ambiguity) 'out')* outputEvents+=[EventDeclaration|ID] | ||
128 | * outputEvents+=[EventDeclaration|ID] ';' (ambiguity) ('out' ';' (ambiguity))* '}' (rule end) | ||
129 | * outputEvents+=[EventDeclaration|ID] ';' (ambiguity) ('out' ';' (ambiguity))* eventDefinitions+=EventDefinition | ||
130 | */ | ||
131 | protected void emit_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
132 | acceptNodes(transition, nodes); | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * Ambiguous syntax: | ||
137 | * ('out' ';' ('in' ';')*)* | ||
138 | * | ||
139 | * This ambiguous syntax occurs at: | ||
140 | * outputEvents+=[EventDeclaration|ID] ';' ('in' ';')* (ambiguity) '}' (rule end) | ||
141 | * outputEvents+=[EventDeclaration|ID] ';' ('in' ';')* (ambiguity) eventDefinitions+=EventDefinition | ||
142 | */ | ||
143 | protected void emit_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
144 | acceptNodes(transition, nodes); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * Ambiguous syntax: | ||
149 | * ('out' ';')* | ||
150 | * | ||
151 | * This ambiguous syntax occurs at: | ||
152 | * inputEvents+=InputEvent ';' (ambiguity) ('in' ';' (ambiguity))* '}' (rule end) | ||
153 | * inputEvents+=InputEvent ';' (ambiguity) ('in' ';' (ambiguity))* eventDefinitions+=EventDefinition | ||
154 | * name=ID '{' (ambiguity) 'in' (';' (ambiguity) 'in')* inputEvents+=InputEvent | ||
155 | * outputEvents+=[EventDeclaration|ID] ';' (ambiguity) (('in' ';')? ('in' ';' 'out' ';')?)+ 'in' inputEvents+=InputEvent | ||
156 | */ | ||
157 | protected void emit_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
158 | acceptNodes(transition, nodes); | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * Ambiguous syntax: | ||
163 | * (';' ('out' ';')* 'in')* | ||
164 | * | ||
165 | * This ambiguous syntax occurs at: | ||
166 | * inputEvents+=InputEvent (ambiguity) inputEvents+=InputEvent | ||
167 | * name=ID '{' ('out' ';')* 'in' (ambiguity) inputEvents+=InputEvent | ||
168 | */ | ||
169 | protected void emit_ComponentDefinition___SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a_InKeyword_3_0_0__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
170 | acceptNodes(transition, nodes); | ||
171 | } | ||
172 | |||
173 | /** | ||
174 | * Ambiguous syntax: | ||
175 | * (';' ('in' ';')* 'out')* | ||
176 | * | ||
177 | * This ambiguous syntax occurs at: | ||
178 | * name=ID '{' ('in' ';')* 'out' (ambiguity) outputEvents+=[EventDeclaration|ID] | ||
179 | * outputEvents+=[EventDeclaration|ID] (ambiguity) outputEvents+=[EventDeclaration|ID] | ||
180 | */ | ||
181 | protected void emit_ComponentDefinition___SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a_OutKeyword_3_1_0__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
182 | acceptNodes(transition, nodes); | ||
183 | } | ||
184 | |||
185 | /** | ||
186 | * Ambiguous syntax: | ||
187 | * (('in' ';') | ('out' ';'))* | ||
188 | * | ||
189 | * This ambiguous syntax occurs at: | ||
190 | * name=ID '{' (ambiguity) '}' (rule end) | ||
191 | * name=ID '{' (ambiguity) eventDefinitions+=EventDefinition | ||
192 | */ | ||
193 | protected void emit_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2___or___OutKeyword_3_1_0_SemicolonKeyword_3_1_2____a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
194 | acceptNodes(transition, nodes); | ||
195 | } | ||
196 | |||
197 | /** | ||
198 | * Ambiguous syntax: | ||
199 | * (('in' ';')? ('in' ';' 'out' ';')?)+ | ||
200 | * | ||
201 | * This ambiguous syntax occurs at: | ||
202 | * outputEvents+=[EventDeclaration|ID] ';' ('out' ';')* (ambiguity) 'in' inputEvents+=InputEvent | ||
203 | */ | ||
204 | protected void emit_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2__q___InKeyword_3_0_0_SemicolonKeyword_3_0_2_OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q__p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
205 | acceptNodes(transition, nodes); | ||
206 | } | ||
207 | |||
208 | /** | ||
209 | * Ambiguous syntax: | ||
210 | * (('out' ';')? ('out' ';' 'in' ';')?)+ | ||
211 | * | ||
212 | * This ambiguous syntax occurs at: | ||
213 | * inputEvents+=InputEvent ';' ('in' ';')* (ambiguity) 'out' outputEvents+=[EventDeclaration|ID] | ||
214 | */ | ||
215 | protected void emit_ComponentDefinition_____OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q___OutKeyword_3_1_0_SemicolonKeyword_3_1_2_InKeyword_3_0_0_SemicolonKeyword_3_0_2__q__p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
216 | acceptNodes(transition, nodes); | ||
217 | } | ||
218 | |||
219 | /** | ||
220 | * Ambiguous syntax: | ||
221 | * ';'? | ||
222 | * | ||
223 | * This ambiguous syntax occurs at: | ||
224 | * importedNamespace=QualifiedNameWithWildcard (ambiguity) (rule end) | ||
225 | */ | ||
226 | protected void emit_ImportDeclaration_SemicolonKeyword_2_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
227 | acceptNodes(transition, nodes); | ||
228 | } | ||
229 | |||
230 | /** | ||
231 | * Ambiguous syntax: | ||
232 | * ('{' '}')? | ||
233 | * | ||
234 | * This ambiguous syntax occurs at: | ||
235 | * componentInstance=ComponentInstance (ambiguity) (rule end) | ||
236 | * parameters+=MappingParameter ')' (ambiguity) (rule end) | ||
237 | */ | ||
238 | protected void emit_MappingDefinition___LeftCurlyBracketKeyword_8_0_RightCurlyBracketKeyword_8_2__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
239 | acceptNodes(transition, nodes); | ||
240 | } | ||
241 | |||
242 | } | ||