| package org.eclipse.ocl.xtext.completeocl.serializer; |
| |
| import com.google.inject.Inject; |
| import com.google.inject.Provider; |
| import org.eclipse.emf.ecore.EObject; |
| import org.eclipse.ocl.xtext.basecs.BaseCSPackage; |
| import org.eclipse.ocl.xtext.basecs.ConstraintCS; |
| import org.eclipse.ocl.xtext.basecs.ImportCS; |
| import org.eclipse.ocl.xtext.basecs.LibraryCS; |
| import org.eclipse.ocl.xtext.basecs.MultiplicityBoundsCS; |
| import org.eclipse.ocl.xtext.basecs.MultiplicityStringCS; |
| import org.eclipse.ocl.xtext.basecs.ParameterCS; |
| import org.eclipse.ocl.xtext.basecs.PathElementCS; |
| import org.eclipse.ocl.xtext.basecs.PathElementWithURICS; |
| import org.eclipse.ocl.xtext.basecs.PathNameCS; |
| import org.eclipse.ocl.xtext.basecs.PrimitiveTypeRefCS; |
| import org.eclipse.ocl.xtext.basecs.TemplateBindingCS; |
| import org.eclipse.ocl.xtext.basecs.TemplateParameterSubstitutionCS; |
| import org.eclipse.ocl.xtext.basecs.TemplateSignatureCS; |
| import org.eclipse.ocl.xtext.basecs.TuplePartCS; |
| import org.eclipse.ocl.xtext.basecs.TupleTypeCS; |
| import org.eclipse.ocl.xtext.basecs.TypeParameterCS; |
| import org.eclipse.ocl.xtext.basecs.TypedTypeRefCS; |
| import org.eclipse.ocl.xtext.basecs.WildcardTypeRefCS; |
| import org.eclipse.ocl.xtext.completeocl.services.CompleteOCLGrammarAccess; |
| import org.eclipse.ocl.xtext.completeoclcs.ClassifierContextDeclCS; |
| import org.eclipse.ocl.xtext.completeoclcs.CompleteOCLCSPackage; |
| import org.eclipse.ocl.xtext.completeoclcs.CompleteOCLDocumentCS; |
| import org.eclipse.ocl.xtext.completeoclcs.DefOperationCS; |
| import org.eclipse.ocl.xtext.completeoclcs.DefPropertyCS; |
| import org.eclipse.ocl.xtext.completeoclcs.IncludeCS; |
| import org.eclipse.ocl.xtext.completeoclcs.OCLMessageArgCS; |
| import org.eclipse.ocl.xtext.completeoclcs.OperationContextDeclCS; |
| import org.eclipse.ocl.xtext.completeoclcs.PackageDeclarationCS; |
| import org.eclipse.ocl.xtext.completeoclcs.PropertyContextDeclCS; |
| import org.eclipse.ocl.xtext.essentialocl.serializer.EssentialOCLSemanticSequencer; |
| import org.eclipse.ocl.xtext.essentialoclcs.BooleanLiteralExpCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.CollectionLiteralExpCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.CollectionLiteralPartCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.CollectionPatternCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.CollectionTypeCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.ConstructorPartCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.ContextCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.CurlyBracketedClauseCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.EssentialOCLCSPackage; |
| import org.eclipse.ocl.xtext.essentialoclcs.ExpSpecificationCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.IfExpCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.IfThenExpCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.InfixExpCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.InvalidLiteralExpCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.LambdaLiteralExpCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.LetExpCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.LetVariableCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.NameExpCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.NavigatingArgCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.NestedExpCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.NullLiteralExpCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.NumberLiteralExpCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.PatternExpCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.PrefixExpCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.RoundBracketedClauseCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.SelfExpCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.SquareBracketedClauseCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.StringLiteralExpCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.TupleLiteralExpCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.TupleLiteralPartCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.TypeLiteralExpCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.TypeNameExpCS; |
| import org.eclipse.ocl.xtext.essentialoclcs.UnlimitedNaturalLiteralExpCS; |
| import org.eclipse.xtext.serializer.acceptor.ISemanticSequenceAcceptor; |
| import org.eclipse.xtext.serializer.diagnostic.ISemanticSequencerDiagnosticProvider; |
| import org.eclipse.xtext.serializer.diagnostic.ISerializationDiagnostic.Acceptor; |
| import org.eclipse.xtext.serializer.sequencer.GenericSequencer; |
| import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer; |
| import org.eclipse.xtext.serializer.sequencer.ITransientValueService; |
| |
| @SuppressWarnings("all") |
| public abstract class AbstractCompleteOCLSemanticSequencer extends EssentialOCLSemanticSequencer { |
| |
| @Inject |
| private CompleteOCLGrammarAccess grammarAccess; |
| |
| public void createSequence(EObject context, EObject semanticObject) { |
| if(semanticObject.eClass().getEPackage() == BaseCSPackage.eINSTANCE) switch(semanticObject.eClass().getClassifierID()) { |
| case BaseCSPackage.CONSTRAINT_CS: |
| if(context == grammarAccess.getConstraintCSRule()) { |
| sequence_ConstraintCS(context, (ConstraintCS) semanticObject); |
| return; |
| } |
| else break; |
| case BaseCSPackage.IMPORT_CS: |
| if(context == grammarAccess.getImportCSRule()) { |
| sequence_ImportCS(context, (ImportCS) semanticObject); |
| return; |
| } |
| else break; |
| case BaseCSPackage.LIBRARY_CS: |
| if(context == grammarAccess.getLibraryCSRule()) { |
| sequence_LibraryCS(context, (LibraryCS) semanticObject); |
| return; |
| } |
| else break; |
| case BaseCSPackage.MULTIPLICITY_BOUNDS_CS: |
| if(context == grammarAccess.getMultiplicityBoundsCSRule() || |
| context == grammarAccess.getMultiplicityCSRule()) { |
| sequence_MultiplicityBoundsCS(context, (MultiplicityBoundsCS) semanticObject); |
| return; |
| } |
| else break; |
| case BaseCSPackage.MULTIPLICITY_STRING_CS: |
| if(context == grammarAccess.getMultiplicityCSRule() || |
| context == grammarAccess.getMultiplicityStringCSRule()) { |
| sequence_MultiplicityStringCS(context, (MultiplicityStringCS) semanticObject); |
| return; |
| } |
| else break; |
| case BaseCSPackage.PARAMETER_CS: |
| if(context == grammarAccess.getDefParameterCSRule()) { |
| sequence_DefParameterCS(context, (ParameterCS) semanticObject); |
| return; |
| } |
| else if(context == grammarAccess.getParameterCSRule()) { |
| sequence_ParameterCS(context, (ParameterCS) semanticObject); |
| return; |
| } |
| else break; |
| case BaseCSPackage.PATH_ELEMENT_CS: |
| if(context == grammarAccess.getFirstPathElementCSRule()) { |
| sequence_FirstPathElementCS(context, (PathElementCS) semanticObject); |
| return; |
| } |
| else if(context == grammarAccess.getNextPathElementCSRule()) { |
| sequence_NextPathElementCS(context, (PathElementCS) semanticObject); |
| return; |
| } |
| else if(context == grammarAccess.getURIFirstPathElementCSRule()) { |
| sequence_URIFirstPathElementCS(context, (PathElementCS) semanticObject); |
| return; |
| } |
| else break; |
| case BaseCSPackage.PATH_ELEMENT_WITH_URICS: |
| if(context == grammarAccess.getURIFirstPathElementCSRule()) { |
| sequence_URIFirstPathElementCS(context, (PathElementWithURICS) semanticObject); |
| return; |
| } |
| else break; |
| case BaseCSPackage.PATH_NAME_CS: |
| if(context == grammarAccess.getPathNameCSRule()) { |
| sequence_PathNameCS(context, (PathNameCS) semanticObject); |
| return; |
| } |
| else if(context == grammarAccess.getURIPathNameCSRule()) { |
| sequence_URIPathNameCS(context, (PathNameCS) semanticObject); |
| return; |
| } |
| else break; |
| case BaseCSPackage.PRIMITIVE_TYPE_REF_CS: |
| if(context == grammarAccess.getPrimitiveTypeCSRule() || |
| context == grammarAccess.getTypeLiteralCSRule() || |
| context == grammarAccess.getTypeRefCSRule() || |
| context == grammarAccess.getTypedRefCSRule()) { |
| sequence_PrimitiveTypeCS(context, (PrimitiveTypeRefCS) semanticObject); |
| return; |
| } |
| else if(context == grammarAccess.getTypeExpCSRule()) { |
| sequence_PrimitiveTypeCS_TypeExpCS(context, (PrimitiveTypeRefCS) semanticObject); |
| return; |
| } |
| else if(context == grammarAccess.getTypeLiteralWithMultiplicityCSRule()) { |
| sequence_PrimitiveTypeCS_TypeLiteralWithMultiplicityCS(context, (PrimitiveTypeRefCS) semanticObject); |
| return; |
| } |
| else break; |
| case BaseCSPackage.TEMPLATE_BINDING_CS: |
| if(context == grammarAccess.getTemplateBindingCSRule()) { |
| sequence_TemplateBindingCS(context, (TemplateBindingCS) semanticObject); |
| return; |
| } |
| else break; |
| case BaseCSPackage.TEMPLATE_PARAMETER_SUBSTITUTION_CS: |
| if(context == grammarAccess.getTemplateParameterSubstitutionCSRule()) { |
| sequence_TemplateParameterSubstitutionCS(context, (TemplateParameterSubstitutionCS) semanticObject); |
| return; |
| } |
| else break; |
| case BaseCSPackage.TEMPLATE_SIGNATURE_CS: |
| if(context == grammarAccess.getTemplateSignatureCSRule()) { |
| sequence_TemplateSignatureCS(context, (TemplateSignatureCS) semanticObject); |
| return; |
| } |
| else break; |
| case BaseCSPackage.TUPLE_PART_CS: |
| if(context == grammarAccess.getTuplePartCSRule()) { |
| sequence_TuplePartCS(context, (TuplePartCS) semanticObject); |
| return; |
| } |
| else break; |
| case BaseCSPackage.TUPLE_TYPE_CS: |
| if(context == grammarAccess.getTupleTypeCSRule() || |
| context == grammarAccess.getTypeLiteralCSRule() || |
| context == grammarAccess.getTypeRefCSRule() || |
| context == grammarAccess.getTypedRefCSRule()) { |
| sequence_TupleTypeCS(context, (TupleTypeCS) semanticObject); |
| return; |
| } |
| else if(context == grammarAccess.getTypeExpCSRule()) { |
| sequence_TupleTypeCS_TypeExpCS(context, (TupleTypeCS) semanticObject); |
| return; |
| } |
| else if(context == grammarAccess.getTypeLiteralWithMultiplicityCSRule()) { |
| sequence_TupleTypeCS_TypeLiteralWithMultiplicityCS(context, (TupleTypeCS) semanticObject); |
| return; |
| } |
| else break; |
| case BaseCSPackage.TYPE_PARAMETER_CS: |
| if(context == grammarAccess.getTypeParameterCSRule()) { |
| sequence_TypeParameterCS(context, (TypeParameterCS) semanticObject); |
| return; |
| } |
| else break; |
| case BaseCSPackage.TYPED_TYPE_REF_CS: |
| if(context == grammarAccess.getTypeRefCSRule() || |
| context == grammarAccess.getTypedRefCSRule() || |
| context == grammarAccess.getTypedTypeRefCSRule()) { |
| sequence_TypedTypeRefCS(context, (TypedTypeRefCS) semanticObject); |
| return; |
| } |
| else break; |
| case BaseCSPackage.WILDCARD_TYPE_REF_CS: |
| if(context == grammarAccess.getTypeRefCSRule() || |
| context == grammarAccess.getWildcardTypeRefCSRule()) { |
| sequence_WildcardTypeRefCS(context, (WildcardTypeRefCS) semanticObject); |
| return; |
| } |
| else break; |
| } |
| else if(semanticObject.eClass().getEPackage() == CompleteOCLCSPackage.eINSTANCE) switch(semanticObject.eClass().getClassifierID()) { |
| case CompleteOCLCSPackage.CLASSIFIER_CONTEXT_DECL_CS: |
| if(context == grammarAccess.getClassifierContextDeclCSRule() || |
| context == grammarAccess.getContextDeclCSRule()) { |
| sequence_ClassifierContextDeclCS(context, (ClassifierContextDeclCS) semanticObject); |
| return; |
| } |
| else break; |
| case CompleteOCLCSPackage.COMPLETE_OCL_DOCUMENT_CS: |
| if(context == grammarAccess.getCompleteOCLDocumentCSRule()) { |
| sequence_CompleteOCLDocumentCS(context, (CompleteOCLDocumentCS) semanticObject); |
| return; |
| } |
| else break; |
| case CompleteOCLCSPackage.DEF_OPERATION_CS: |
| if(context == grammarAccess.getDefCSRule() || |
| context == grammarAccess.getDefOperationCSRule()) { |
| sequence_DefOperationCS(context, (DefOperationCS) semanticObject); |
| return; |
| } |
| else break; |
| case CompleteOCLCSPackage.DEF_PROPERTY_CS: |
| if(context == grammarAccess.getDefCSRule() || |
| context == grammarAccess.getDefPropertyCSRule()) { |
| sequence_DefPropertyCS(context, (DefPropertyCS) semanticObject); |
| return; |
| } |
| else break; |
| case CompleteOCLCSPackage.INCLUDE_CS: |
| if(context == grammarAccess.getIncludeCSRule()) { |
| sequence_IncludeCS(context, (IncludeCS) semanticObject); |
| return; |
| } |
| else break; |
| case CompleteOCLCSPackage.OCL_MESSAGE_ARG_CS: |
| if(context == grammarAccess.getNavigatingArgExpCSRule()) { |
| sequence_NavigatingArgExpCS(context, (OCLMessageArgCS) semanticObject); |
| return; |
| } |
| else break; |
| case CompleteOCLCSPackage.OPERATION_CONTEXT_DECL_CS: |
| if(context == grammarAccess.getContextDeclCSRule() || |
| context == grammarAccess.getOperationContextDeclCSRule()) { |
| sequence_OperationContextDeclCS(context, (OperationContextDeclCS) semanticObject); |
| return; |
| } |
| else break; |
| case CompleteOCLCSPackage.PACKAGE_DECLARATION_CS: |
| if(context == grammarAccess.getPackageDeclarationCSRule()) { |
| sequence_PackageDeclarationCS(context, (PackageDeclarationCS) semanticObject); |
| return; |
| } |
| else break; |
| case CompleteOCLCSPackage.PROPERTY_CONTEXT_DECL_CS: |
| if(context == grammarAccess.getContextDeclCSRule() || |
| context == grammarAccess.getPropertyContextDeclCSRule()) { |
| sequence_PropertyContextDeclCS(context, (PropertyContextDeclCS) semanticObject); |
| return; |
| } |
| else break; |
| } |
| else if(semanticObject.eClass().getEPackage() == EssentialOCLCSPackage.eINSTANCE) switch(semanticObject.eClass().getClassifierID()) { |
| case EssentialOCLCSPackage.BOOLEAN_LITERAL_EXP_CS: |
| if(context == grammarAccess.getBooleanLiteralExpCSRule() || |
| context == grammarAccess.getExpCSRule() || |
| context == grammarAccess.getExpCSAccess().getInfixExpCSOwnedLeftAction_0_1_0() || |
| context == grammarAccess.getNavigatingArgExpCSRule() || |
| context == grammarAccess.getPrefixedPrimaryExpCSRule() || |
| context == grammarAccess.getPrimaryExpCSRule() || |
| context == grammarAccess.getPrimitiveLiteralExpCSRule()) { |
| sequence_BooleanLiteralExpCS(context, (BooleanLiteralExpCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.COLLECTION_LITERAL_EXP_CS: |
| if(context == grammarAccess.getCollectionLiteralExpCSRule() || |
| context == grammarAccess.getExpCSRule() || |
| context == grammarAccess.getExpCSAccess().getInfixExpCSOwnedLeftAction_0_1_0() || |
| context == grammarAccess.getNavigatingArgExpCSRule() || |
| context == grammarAccess.getPrefixedPrimaryExpCSRule() || |
| context == grammarAccess.getPrimaryExpCSRule()) { |
| sequence_CollectionLiteralExpCS(context, (CollectionLiteralExpCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.COLLECTION_LITERAL_PART_CS: |
| if(context == grammarAccess.getCollectionLiteralPartCSRule()) { |
| sequence_CollectionLiteralPartCS(context, (CollectionLiteralPartCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.COLLECTION_PATTERN_CS: |
| if(context == grammarAccess.getCollectionPatternCSRule()) { |
| sequence_CollectionPatternCS(context, (CollectionPatternCS) semanticObject); |
| return; |
| } |
| else if(context == grammarAccess.getTypeExpCSRule()) { |
| sequence_CollectionPatternCS_TypeExpCS(context, (CollectionPatternCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.COLLECTION_TYPE_CS: |
| if(context == grammarAccess.getCollectionTypeCSRule() || |
| context == grammarAccess.getTypeLiteralCSRule() || |
| context == grammarAccess.getTypeRefCSRule() || |
| context == grammarAccess.getTypedRefCSRule()) { |
| sequence_CollectionTypeCS(context, (CollectionTypeCS) semanticObject); |
| return; |
| } |
| else if(context == grammarAccess.getTypeExpCSRule()) { |
| sequence_CollectionTypeCS_TypeExpCS(context, (CollectionTypeCS) semanticObject); |
| return; |
| } |
| else if(context == grammarAccess.getTypeLiteralWithMultiplicityCSRule()) { |
| sequence_CollectionTypeCS_TypeLiteralWithMultiplicityCS(context, (CollectionTypeCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.CONSTRUCTOR_PART_CS: |
| if(context == grammarAccess.getConstructorPartCSRule()) { |
| sequence_ConstructorPartCS(context, (ConstructorPartCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.CONTEXT_CS: |
| if(context == grammarAccess.getModelRule()) { |
| sequence_Model(context, (ContextCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.CURLY_BRACKETED_CLAUSE_CS: |
| if(context == grammarAccess.getCurlyBracketedClauseCSRule()) { |
| sequence_CurlyBracketedClauseCS(context, (CurlyBracketedClauseCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.EXP_SPECIFICATION_CS: |
| if(context == grammarAccess.getSpecificationCSRule()) { |
| sequence_SpecificationCS(context, (ExpSpecificationCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.IF_EXP_CS: |
| if(context == grammarAccess.getExpCSRule() || |
| context == grammarAccess.getExpCSAccess().getInfixExpCSOwnedLeftAction_0_1_0() || |
| context == grammarAccess.getIfExpCSRule() || |
| context == grammarAccess.getNavigatingArgExpCSRule() || |
| context == grammarAccess.getPrefixedPrimaryExpCSRule() || |
| context == grammarAccess.getPrimaryExpCSRule()) { |
| sequence_IfExpCS(context, (IfExpCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.IF_THEN_EXP_CS: |
| if(context == grammarAccess.getElseIfThenExpCSRule()) { |
| sequence_ElseIfThenExpCS(context, (IfThenExpCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.INFIX_EXP_CS: |
| if(context == grammarAccess.getExpCSRule() || |
| context == grammarAccess.getNavigatingArgExpCSRule()) { |
| sequence_ExpCS(context, (InfixExpCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.INVALID_LITERAL_EXP_CS: |
| if(context == grammarAccess.getExpCSRule() || |
| context == grammarAccess.getExpCSAccess().getInfixExpCSOwnedLeftAction_0_1_0() || |
| context == grammarAccess.getInvalidLiteralExpCSRule() || |
| context == grammarAccess.getNavigatingArgExpCSRule() || |
| context == grammarAccess.getPrefixedPrimaryExpCSRule() || |
| context == grammarAccess.getPrimaryExpCSRule() || |
| context == grammarAccess.getPrimitiveLiteralExpCSRule()) { |
| sequence_InvalidLiteralExpCS(context, (InvalidLiteralExpCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.LAMBDA_LITERAL_EXP_CS: |
| if(context == grammarAccess.getExpCSRule() || |
| context == grammarAccess.getExpCSAccess().getInfixExpCSOwnedLeftAction_0_1_0() || |
| context == grammarAccess.getLambdaLiteralExpCSRule() || |
| context == grammarAccess.getNavigatingArgExpCSRule() || |
| context == grammarAccess.getPrefixedPrimaryExpCSRule() || |
| context == grammarAccess.getPrimaryExpCSRule()) { |
| sequence_LambdaLiteralExpCS(context, (LambdaLiteralExpCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.LET_EXP_CS: |
| if(context == grammarAccess.getExpCSRule() || |
| context == grammarAccess.getLetExpCSRule() || |
| context == grammarAccess.getNavigatingArgExpCSRule() || |
| context == grammarAccess.getPrefixedLetExpCSRule()) { |
| sequence_LetExpCS(context, (LetExpCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.LET_VARIABLE_CS: |
| if(context == grammarAccess.getLetVariableCSRule()) { |
| sequence_LetVariableCS(context, (LetVariableCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.NAME_EXP_CS: |
| if(context == grammarAccess.getExpCSRule() || |
| context == grammarAccess.getExpCSAccess().getInfixExpCSOwnedLeftAction_0_1_0() || |
| context == grammarAccess.getNameExpCSRule() || |
| context == grammarAccess.getNavigatingArgExpCSRule() || |
| context == grammarAccess.getPrefixedPrimaryExpCSRule() || |
| context == grammarAccess.getPrimaryExpCSRule()) { |
| sequence_NameExpCS(context, (NameExpCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.NAVIGATING_ARG_CS: |
| if(context == grammarAccess.getNavigatingArgCSRule()) { |
| sequence_NavigatingArgCS(context, (NavigatingArgCS) semanticObject); |
| return; |
| } |
| else if(context == grammarAccess.getNavigatingBarArgCSRule()) { |
| sequence_NavigatingBarArgCS(context, (NavigatingArgCS) semanticObject); |
| return; |
| } |
| else if(context == grammarAccess.getNavigatingCommaArgCSRule()) { |
| sequence_NavigatingCommaArgCS(context, (NavigatingArgCS) semanticObject); |
| return; |
| } |
| else if(context == grammarAccess.getNavigatingSemiArgCSRule()) { |
| sequence_NavigatingSemiArgCS(context, (NavigatingArgCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.NESTED_EXP_CS: |
| if(context == grammarAccess.getExpCSRule() || |
| context == grammarAccess.getExpCSAccess().getInfixExpCSOwnedLeftAction_0_1_0() || |
| context == grammarAccess.getNavigatingArgExpCSRule() || |
| context == grammarAccess.getNestedExpCSRule() || |
| context == grammarAccess.getPrefixedPrimaryExpCSRule() || |
| context == grammarAccess.getPrimaryExpCSRule()) { |
| sequence_NestedExpCS(context, (NestedExpCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.NULL_LITERAL_EXP_CS: |
| if(context == grammarAccess.getExpCSRule() || |
| context == grammarAccess.getExpCSAccess().getInfixExpCSOwnedLeftAction_0_1_0() || |
| context == grammarAccess.getNavigatingArgExpCSRule() || |
| context == grammarAccess.getNullLiteralExpCSRule() || |
| context == grammarAccess.getPrefixedPrimaryExpCSRule() || |
| context == grammarAccess.getPrimaryExpCSRule() || |
| context == grammarAccess.getPrimitiveLiteralExpCSRule()) { |
| sequence_NullLiteralExpCS(context, (NullLiteralExpCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.NUMBER_LITERAL_EXP_CS: |
| if(context == grammarAccess.getExpCSRule() || |
| context == grammarAccess.getExpCSAccess().getInfixExpCSOwnedLeftAction_0_1_0() || |
| context == grammarAccess.getNavigatingArgExpCSRule() || |
| context == grammarAccess.getNumberLiteralExpCSRule() || |
| context == grammarAccess.getPrefixedPrimaryExpCSRule() || |
| context == grammarAccess.getPrimaryExpCSRule() || |
| context == grammarAccess.getPrimitiveLiteralExpCSRule()) { |
| sequence_NumberLiteralExpCS(context, (NumberLiteralExpCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.PATTERN_EXP_CS: |
| if(context == grammarAccess.getPatternExpCSRule()) { |
| sequence_PatternExpCS(context, (PatternExpCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.PREFIX_EXP_CS: |
| if(context == grammarAccess.getPrefixedLetExpCSRule()) { |
| sequence_PrefixedLetExpCS(context, (PrefixExpCS) semanticObject); |
| return; |
| } |
| else if(context == grammarAccess.getExpCSRule() || |
| context == grammarAccess.getNavigatingArgExpCSRule()) { |
| sequence_PrefixedLetExpCS_PrefixedPrimaryExpCS(context, (PrefixExpCS) semanticObject); |
| return; |
| } |
| else if(context == grammarAccess.getExpCSAccess().getInfixExpCSOwnedLeftAction_0_1_0() || |
| context == grammarAccess.getPrefixedPrimaryExpCSRule()) { |
| sequence_PrefixedPrimaryExpCS(context, (PrefixExpCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.ROUND_BRACKETED_CLAUSE_CS: |
| if(context == grammarAccess.getRoundBracketedClauseCSRule()) { |
| sequence_RoundBracketedClauseCS(context, (RoundBracketedClauseCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.SELF_EXP_CS: |
| if(context == grammarAccess.getExpCSRule() || |
| context == grammarAccess.getExpCSAccess().getInfixExpCSOwnedLeftAction_0_1_0() || |
| context == grammarAccess.getNavigatingArgExpCSRule() || |
| context == grammarAccess.getPrefixedPrimaryExpCSRule() || |
| context == grammarAccess.getPrimaryExpCSRule() || |
| context == grammarAccess.getSelfExpCSRule()) { |
| sequence_SelfExpCS(context, (SelfExpCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.SQUARE_BRACKETED_CLAUSE_CS: |
| if(context == grammarAccess.getSquareBracketedClauseCSRule()) { |
| sequence_SquareBracketedClauseCS(context, (SquareBracketedClauseCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.STRING_LITERAL_EXP_CS: |
| if(context == grammarAccess.getExpCSRule() || |
| context == grammarAccess.getExpCSAccess().getInfixExpCSOwnedLeftAction_0_1_0() || |
| context == grammarAccess.getNavigatingArgExpCSRule() || |
| context == grammarAccess.getPrefixedPrimaryExpCSRule() || |
| context == grammarAccess.getPrimaryExpCSRule() || |
| context == grammarAccess.getPrimitiveLiteralExpCSRule() || |
| context == grammarAccess.getStringLiteralExpCSRule()) { |
| sequence_StringLiteralExpCS(context, (StringLiteralExpCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.TUPLE_LITERAL_EXP_CS: |
| if(context == grammarAccess.getExpCSRule() || |
| context == grammarAccess.getExpCSAccess().getInfixExpCSOwnedLeftAction_0_1_0() || |
| context == grammarAccess.getNavigatingArgExpCSRule() || |
| context == grammarAccess.getPrefixedPrimaryExpCSRule() || |
| context == grammarAccess.getPrimaryExpCSRule() || |
| context == grammarAccess.getTupleLiteralExpCSRule()) { |
| sequence_TupleLiteralExpCS(context, (TupleLiteralExpCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.TUPLE_LITERAL_PART_CS: |
| if(context == grammarAccess.getTupleLiteralPartCSRule()) { |
| sequence_TupleLiteralPartCS(context, (TupleLiteralPartCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.TYPE_LITERAL_EXP_CS: |
| if(context == grammarAccess.getExpCSRule() || |
| context == grammarAccess.getExpCSAccess().getInfixExpCSOwnedLeftAction_0_1_0() || |
| context == grammarAccess.getNavigatingArgExpCSRule() || |
| context == grammarAccess.getPrefixedPrimaryExpCSRule() || |
| context == grammarAccess.getPrimaryExpCSRule() || |
| context == grammarAccess.getTypeLiteralExpCSRule()) { |
| sequence_TypeLiteralExpCS(context, (TypeLiteralExpCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.TYPE_NAME_EXP_CS: |
| if(context == grammarAccess.getTypeExpCSRule()) { |
| sequence_TypeExpCS_TypeNameExpCS(context, (TypeNameExpCS) semanticObject); |
| return; |
| } |
| else if(context == grammarAccess.getTypeNameExpCSRule()) { |
| sequence_TypeNameExpCS(context, (TypeNameExpCS) semanticObject); |
| return; |
| } |
| else break; |
| case EssentialOCLCSPackage.UNLIMITED_NATURAL_LITERAL_EXP_CS: |
| if(context == grammarAccess.getExpCSRule() || |
| context == grammarAccess.getExpCSAccess().getInfixExpCSOwnedLeftAction_0_1_0() || |
| context == grammarAccess.getNavigatingArgExpCSRule() || |
| context == grammarAccess.getPrefixedPrimaryExpCSRule() || |
| context == grammarAccess.getPrimaryExpCSRule() || |
| context == grammarAccess.getPrimitiveLiteralExpCSRule() || |
| context == grammarAccess.getUnlimitedNaturalLiteralExpCSRule()) { |
| sequence_UnlimitedNaturalLiteralExpCS(context, (UnlimitedNaturalLiteralExpCS) semanticObject); |
| return; |
| } |
| else break; |
| } |
| if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); |
| } |
| |
| /** |
| * Constraint: |
| * ( |
| * ownedSignature=TemplateSignatureCS? |
| * selfName=UnrestrictedName? |
| * ownedPathName=PathNameCS |
| * (ownedInvariants+=ConstraintCS | ownedDefinitions+=DefCS)+ |
| * ) |
| */ |
| protected void sequence_ClassifierContextDeclCS(EObject context, ClassifierContextDeclCS semanticObject) { |
| genericSequencer.createSequence(context, semanticObject); |
| } |
| |
| |
| /** |
| * Constraint: |
| * ( |
| * (ownedImports+=ImportCS | ownedIncludes+=IncludeCS | ownedLibraries+=LibraryCS)* |
| * (ownedPackages+=PackageDeclarationCS | ownedContexts+=ContextDeclCS)* |
| * ) |
| */ |
| protected void sequence_CompleteOCLDocumentCS(EObject context, CompleteOCLDocumentCS semanticObject) { |
| genericSequencer.createSequence(context, semanticObject); |
| } |
| |
| |
| /** |
| * Constraint: |
| * ((name=UnrestrictedName ownedMessageSpecification=SpecificationCS?)? ownedSpecification=SpecificationCS) |
| */ |
| protected void sequence_ConstraintCS(EObject context, ConstraintCS semanticObject) { |
| genericSequencer.createSequence(context, semanticObject); |
| } |
| |
| |
| /** |
| * Constraint: |
| * ( |
| * isStatic?='static'? |
| * ownedSignature=TemplateSignatureCS? |
| * name=UnrestrictedName |
| * (ownedParameters+=DefParameterCS ownedParameters+=DefParameterCS*)? |
| * ownedType=TypeExpCS? |
| * ownedSpecification=SpecificationCS |
| * ) |
| */ |
| protected void sequence_DefOperationCS(EObject context, DefOperationCS semanticObject) { |
| genericSequencer.createSequence(context, semanticObject); |
| } |
| |
| |
| /** |
| * Constraint: |
| * (name=UnrestrictedName ownedType=TypeExpCS) |
| */ |
| protected void sequence_DefParameterCS(EObject context, ParameterCS semanticObject) { |
| genericSequencer.createSequence(context, semanticObject); |
| } |
| |
| |
| /** |
| * Constraint: |
| * (isStatic?='static'? name=UnrestrictedName ownedType=TypeExpCS ownedSpecification=SpecificationCS) |
| */ |
| protected void sequence_DefPropertyCS(EObject context, DefPropertyCS semanticObject) { |
| genericSequencer.createSequence(context, semanticObject); |
| } |
| |
| |
| /** |
| * Constraint: |
| * (name=Identifier? ownedPathName=URIPathNameCS isAll?='::*'?) |
| */ |
| protected void sequence_ImportCS(EObject context, ImportCS semanticObject) { |
| genericSequencer.createSequence(context, semanticObject); |
| } |
| |
| |
| /** |
| * Constraint: |
| * referredNamespace=[Namespace|URI] |
| */ |
| protected void sequence_IncludeCS(EObject context, IncludeCS semanticObject) { |
| genericSequencer.createSequence(context, semanticObject); |
| } |
| |
| |
| /** |
| * Constraint: |
| * referredPackage=[Package|URI] |
| */ |
| protected void sequence_LibraryCS(EObject context, LibraryCS semanticObject) { |
| genericSequencer.createSequence(context, semanticObject); |
| } |
| |
| |
| /** |
| * Constraint: |
| * {OCLMessageArgCS} |
| */ |
| protected void sequence_NavigatingArgExpCS(EObject context, OCLMessageArgCS semanticObject) { |
| genericSequencer.createSequence(context, semanticObject); |
| } |
| |
| |
| /** |
| * Constraint: |
| * ( |
| * ownedSignature=TemplateSignatureCS? |
| * ownedPathName=PathNameCS |
| * (ownedParameters+=ParameterCS ownedParameters+=ParameterCS*)? |
| * ownedType=TypeExpCS? |
| * (ownedPreconditions+=ConstraintCS | ownedPostconditions+=ConstraintCS | ownedBodies+=SpecificationCS)* |
| * ) |
| */ |
| protected void sequence_OperationContextDeclCS(EObject context, OperationContextDeclCS semanticObject) { |
| genericSequencer.createSequence(context, semanticObject); |
| } |
| |
| |
| /** |
| * Constraint: |
| * (ownedPathName=PathNameCS ownedInvariants+=ConstraintCS* ownedContexts+=ContextDeclCS*) |
| */ |
| protected void sequence_PackageDeclarationCS(EObject context, PackageDeclarationCS semanticObject) { |
| genericSequencer.createSequence(context, semanticObject); |
| } |
| |
| |
| /** |
| * Constraint: |
| * (name=UnrestrictedName? ownedType=TypeExpCS) |
| */ |
| protected void sequence_ParameterCS(EObject context, ParameterCS semanticObject) { |
| genericSequencer.createSequence(context, semanticObject); |
| } |
| |
| |
| /** |
| * Constraint: |
| * (ownedPathName=PathNameCS ownedType=TypeExpCS? (ownedDerivedInvariants+=ConstraintCS | ownedDefaultExpressions+=SpecificationCS)*) |
| */ |
| protected void sequence_PropertyContextDeclCS(EObject context, PropertyContextDeclCS semanticObject) { |
| genericSequencer.createSequence(context, semanticObject); |
| } |
| |
| |
| /** |
| * Constraint: |
| * (ownedExpression=ExpCS | exprString=UNQUOTED_STRING) |
| */ |
| protected void sequence_SpecificationCS(EObject context, ExpSpecificationCS semanticObject) { |
| genericSequencer.createSequence(context, semanticObject); |
| } |
| |
| |
| /** |
| * Constraint: |
| * ((ownedParameters+=TypeParameterCS ownedParameters+=TypeParameterCS*) | (ownedParameters+=TypeParameterCS ownedParameters+=TypeParameterCS*)) |
| */ |
| protected void sequence_TemplateSignatureCS(EObject context, TemplateSignatureCS semanticObject) { |
| genericSequencer.createSequence(context, semanticObject); |
| } |
| } |