Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/Alf.xmi2198
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/serializer/AbstractAlfSemanticSequencer.java1865
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/serializer/AbstractAlfSyntacticSequencer.java55
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext/src-gen/org/eclipse/papyrus/uml/textedit/collaborationuse/xtext/UmlCollaborationUse.xmi331
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext/src-gen/org/eclipse/papyrus/uml/textedit/collaborationuse/xtext/serializer/AbstractUmlCollaborationUseSemanticSequencer.java137
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext/src-gen/org/eclipse/papyrus/uml/textedit/collaborationuse/xtext/serializer/AbstractUmlCollaborationUseSyntacticSequencer.java42
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/UmlCommon.xmi285
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/serializer/AbstractUmlCommonSemanticSequencer.java121
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/serializer/AbstractUmlCommonSyntacticSequencer.java42
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/AbstractUMLConnectionPointReferenceProposalProvider.java4
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.tokens15
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReferenceLexer.java1085
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReferenceParser.java45
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/UMLConnectionPointReference.xmi215
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/serializer/AbstractUMLConnectionPointReferenceSemanticSequencer.java63
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/serializer/AbstractUMLConnectionPointReferenceSyntacticSequencer.java42
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/uMLConnectionPointReference/impl/UMLConnectionPointReferencePackageImpl.java372
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext/src-gen/org/eclipse/papyrus/uml/textedit/message/xtext/UmlMessage.xmi256
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext/src-gen/org/eclipse/papyrus/uml/textedit/message/xtext/serializer/AbstractUmlMessageSemanticSequencer.java92
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext/src-gen/org/eclipse/papyrus/uml/textedit/message/xtext/serializer/AbstractUmlMessageSyntacticSequencer.java55
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext/src-gen/org/eclipse/papyrus/uml/textedit/parameter/xtext/UmlParameter.xmi413
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext/src-gen/org/eclipse/papyrus/uml/textedit/parameter/xtext/serializer/AbstractUmlParameterSemanticSequencer.java210
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext/src-gen/org/eclipse/papyrus/uml/textedit/parameter/xtext/serializer/AbstractUmlParameterSyntacticSequencer.java42
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contribution/PortPopupEditorConfigurationContribution.java329
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/UmlPort.xmi397
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src/org/eclipse/papyrus/uml/textedit/port/xtext/validation/SemanticValidator.java32
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contributions/PropertyPopupEditorConfigurationContribution.java324
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.xmi394
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/serializer/AbstractUmlPropertySemanticSequencer.java259
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/serializer/AbstractUmlPropertySyntacticSequencer.java55
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src/org/eclipse/papyrus/uml/textedit/property/xtext/validation/SemanticValidator.java31
-rwxr-xr-xplugins/uml/textedit/org.eclipse.papyrus.uml.textedit.state.xtext/src-gen/org/eclipse/papyrus/uml/textedit/state/xtext/UmlState.xmi289
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.state.xtext/src/org/eclipse/papyrus/uml/textedit/state/xtext/validation/SemanticValidator.java26
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/AppliedStereotypeProperty.xmi2241
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/serializer/AbstractAppliedStereotypePropertySemanticSequencer.java1685
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/serializer/AbstractAppliedStereotypePropertySyntacticSequencer.java55
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.transition.xtext/src-gen/org/eclipse/papyrus/uml/textedit/transition/xtext/UmlTransition.xmi307
37 files changed, 963 insertions, 13446 deletions
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/Alf.xmi b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/Alf.xmi
deleted file mode 100644
index 68a40a02359..00000000000
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/Alf.xmi
+++ /dev/null
@@ -1,2198 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:xtext="http://www.eclipse.org/2008/Xtext">
- <xtext:Grammar name="org.eclipse.papyrus.uml.alf.Alf" usedGrammars="/1">
- <metamodelDeclarations xsi:type="xtext:GeneratedMetamodel" name="alf">
- <ePackage href="http://www.eclipse.org/papyrus/alf/Alf#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:ParserRule" name="Test">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//Test"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value="testExpression"/>
- <elements xsi:type="xtext:Assignment" feature="expression" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.17"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value="testAssignmentExpression"/>
- <elements xsi:type="xtext:Assignment" feature="assignExpression" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.108"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value="testStatement"/>
- <elements xsi:type="xtext:Assignment" feature="statements" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.69"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="testBlock"/>
- <elements xsi:type="xtext:Assignment" feature="block" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.64"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="LITERAL">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//LITERAL"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.2"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.4"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.8"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="BOOLEAN_LITERAL">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//BOOLEAN_LITERAL"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" feature="value" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.3"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="BooleanValue">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/alf/Alf#//BooleanValue"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//BooleanValue/TRUE"/>
- <literal value="true"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//BooleanValue/FALSE"/>
- <literal value="false"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="NUMBER_LITERAL">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//NUMBER_LITERAL"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.5"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.6"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="INTEGER_LITERAL">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//INTEGER_LITERAL"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" feature="value" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.7"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="UNLIMITED_LITERAL">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//UNLIMITED_LITERAL"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" feature="value" operator="=">
- <terminal xsi:type="xtext:Keyword" value="*"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="IntegerValue">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="0"/>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:CharacterRange">
- <left value="1"/>
- <right value="9"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="_"/>
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="9"/>
- </elements>
- </elements>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="0b"/>
- <elements xsi:type="xtext:Keyword" value="0B"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="1"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="_"/>
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="1"/>
- </elements>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="0x"/>
- <elements xsi:type="xtext:Keyword" value="0X"/>
- </elements>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="9"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="f"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="F"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="_"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="9"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="f"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="F"/>
- </elements>
- </elements>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="0"/>
- <elements xsi:type="xtext:Keyword" cardinality="?" value="_"/>
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="7"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="_"/>
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="7"/>
- </elements>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="STRING_LITERAL">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//STRING_LITERAL"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" feature="value" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.111"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="NameExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//NameExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="prefixOp" operator="=">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="++"/>
- <elements xsi:type="xtext:Keyword" value="--"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="path" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.10"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="id" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.110"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="path" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.10"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="id" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Alternatives" cardinality="?">
- <elements xsi:type="xtext:Assignment" feature="invocationCompletion" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.15"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="sequenceConstructionCompletion" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.58"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="postfixOp" operator="=">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="++"/>
- <elements xsi:type="xtext:Keyword" value="--"/>
- </terminal>
- </elements>
- </elements>
- </elements>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="suffix" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.32"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="QualifiedNamePath">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//QualifiedNamePath"/>
- </type>
- <alternatives xsi:type="xtext:Group" cardinality="+">
- <elements xsi:type="xtext:Assignment" feature="namespace" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.11"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="::"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="UnqualifiedName">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//UnqualifiedName"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="name" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="templateBinding" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.12"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="TemplateBinding">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//TemplateBinding"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="&lt;"/>
- <elements xsi:type="xtext:Assignment" feature="bindings" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.13"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value=","/>
- <elements xsi:type="xtext:Assignment" feature="bindings" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.13"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value=">"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="NamedTemplateBinding">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//NamedTemplateBinding"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="formal" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="=>"/>
- <elements xsi:type="xtext:Assignment" feature="actual" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.14"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="QualifiedNameWithBinding">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//QualifiedNameWithBinding"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="id" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="binding" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.12"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" value="::"/>
- <elements xsi:type="xtext:Assignment" feature="remaining" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.14"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="Tuple">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//Tuple"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Action">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//Tuple"/>
- </type>
- </elements>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Assignment" feature="tupleElements" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.16"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value=","/>
- <elements xsi:type="xtext:Assignment" feature="tupleElements" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.16"/>
- </elements>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="TupleElement">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//TupleElement"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" feature="argument" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.17"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="Expression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//Expression"/>
- </type>
- <alternatives xsi:type="xtext:RuleCall" rule="/0/@rules.18"/>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ConditionalTestExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ConditionalTestExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="exp" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.19"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" value="?"/>
- <elements xsi:type="xtext:Assignment" feature="whenTrue" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.18"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=":"/>
- <elements xsi:type="xtext:Assignment" feature="whenFalse" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.18"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ConditionalOrExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ConditionalOrExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.20"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value="||"/>
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.20"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ConditionalAndExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ConditionalAndExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.21"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value="&amp;&amp;"/>
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.21"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="InclusiveOrExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//InclusiveOrExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.22"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value="|"/>
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.22"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ExclusiveOrExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ExclusiveOrExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.23"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value="^"/>
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.23"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="AndExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//AndExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.24"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value="&amp;"/>
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.24"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="EqualityExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//EqualityExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.25"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Assignment" feature="op" operator="+=">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="=="/>
- <elements xsi:type="xtext:Keyword" value="!="/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.25"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ClassificationExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ClassificationExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="exp" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.26"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Assignment" feature="op" operator="=">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="instanceof"/>
- <elements xsi:type="xtext:Keyword" value="hastype"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="typeName" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.9"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="RelationalExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//RelationalExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="left" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.27"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Assignment" feature="op" operator="=">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="&lt;"/>
- <elements xsi:type="xtext:Keyword" value=">"/>
- <elements xsi:type="xtext:Keyword" value="&lt;="/>
- <elements xsi:type="xtext:Keyword" value=">="/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="right" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.27"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ShiftExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ShiftExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.28"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Assignment" feature="op" operator="=">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="&lt;&lt;"/>
- <elements xsi:type="xtext:Keyword" value=">>"/>
- <elements xsi:type="xtext:Keyword" value=">>>"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.28"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="AdditiveExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//AdditiveExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.29"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Assignment" feature="op" operator="+=">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="+"/>
- <elements xsi:type="xtext:Keyword" value="-"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.29"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="MultiplicativeExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//MultiplicativeExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.30"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Assignment" feature="op" operator="+=">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="*"/>
- <elements xsi:type="xtext:Keyword" value="/"/>
- <elements xsi:type="xtext:Keyword" value="%"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.30"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="UnaryExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//UnaryExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="op" operator="=">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="!"/>
- <elements xsi:type="xtext:Keyword" value="-"/>
- <elements xsi:type="xtext:Keyword" value="+"/>
- <elements xsi:type="xtext:Keyword" value="$"/>
- <elements xsi:type="xtext:Keyword" value="~"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="exp" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.31"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="PrimaryExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//PrimaryExpression"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" feature="prefix" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.49"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SuffixExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SuffixExpression"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.33"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.34"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.35"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.39"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.40"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.41"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.63"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="OperationCallExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//OperationCallExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="."/>
- <elements xsi:type="xtext:Assignment" feature="operationName" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="tuple" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.15"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="suffix" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.32"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="PropertyCallExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//PropertyCallExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="."/>
- <elements xsi:type="xtext:Assignment" feature="propertyName" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" value="["/>
- <elements xsi:type="xtext:Assignment" feature="index" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="]"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="suffix" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.32"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="LinkOperationExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//LinkOperationExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="."/>
- <elements xsi:type="xtext:Assignment" feature="kind" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.38"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="tuple" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.36"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="LinkOperationTuple">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//LinkOperationTuple"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Assignment" feature="linkOperationTupleElement" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.37"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value=","/>
- <elements xsi:type="xtext:Assignment" feature="linkOperationTupleElement" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.37"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="LinkOperationTupleElement">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//LinkOperationTupleElement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="role" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" value="["/>
- <elements xsi:type="xtext:Assignment" feature="roleIndex" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="]"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="=>"/>
- <elements xsi:type="xtext:Assignment" feature="object" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.17"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="LinkOperationKind">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/alf/Alf#//LinkOperationKind"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//LinkOperationKind/CREATE"/>
- <literal value="createLink"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//LinkOperationKind/DESTROY"/>
- <literal value="destroyLink"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//LinkOperationKind/CLEAR"/>
- <literal value="clearAssoc"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SequenceOperationExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SequenceOperationExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="->"/>
- <elements xsi:type="xtext:Assignment" feature="operationName" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.14"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="tuple" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.15"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="suffix" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.32"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SequenceReductionExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SequenceReductionExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="->"/>
- <elements xsi:type="xtext:Keyword" value="reduce"/>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="isOrdered" operator="?=">
- <terminal xsi:type="xtext:Keyword" value="ordered"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="behavior" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.14"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="suffix" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.32"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SequenceExpansionExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SequenceExpansionExpression"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.42"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.44"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.46"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.48"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SelectOrRejectOperation">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SelectOrRejectOperation"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="->"/>
- <elements xsi:type="xtext:Assignment" feature="op" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.43"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="name" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Assignment" feature="expr" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="suffix" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.32"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="SelectOrRejectOperator">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/alf/Alf#//SelectOrRejectOperator"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//SelectOrRejectOperator/SELECT"/>
- <literal value="select"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//SelectOrRejectOperator/REJECT"/>
- <literal value="reject"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="CollectOrIterateOperation">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//CollectOrIterateOperation"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="->"/>
- <elements xsi:type="xtext:Assignment" feature="op" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.45"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="name" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Assignment" feature="expr" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="suffix" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.32"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="CollectOrIterateOperator">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/alf/Alf#//CollectOrIterateOperator"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//CollectOrIterateOperator/COLLECT"/>
- <literal value="collect"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//CollectOrIterateOperator/ITERATE"/>
- <literal value="iterate"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ForAllOrExistsOrOneOperation">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ForAllOrExistsOrOneOperation"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="->"/>
- <elements xsi:type="xtext:Assignment" feature="op" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.47"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="name" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Assignment" feature="expr" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="suffix" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.32"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="ForAllOrExistsOrOneOperator">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/alf/Alf#//ForAllOrExistsOrOneOperator"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//ForAllOrExistsOrOneOperator/FORALL"/>
- <literal value="forAll"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//ForAllOrExistsOrOneOperator/EXISTS"/>
- <literal value="exists"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//ForAllOrExistsOrOneOperator/ONE"/>
- <literal value="one"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="IsUniqueOperation">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//IsUniqueOperation"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="->"/>
- <elements xsi:type="xtext:Keyword" value="isUnique"/>
- <elements xsi:type="xtext:Assignment" feature="name" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Assignment" feature="expr" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="suffix" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.32"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ValueSpecification">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ValueSpecification"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.9"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.1"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.53"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.54"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.55"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.51"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.52"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="NonLiteralValueSpecification">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//NonLiteralValueSpecification"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.9"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.51"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.55"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.53"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.54"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ParenthesizedExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ParenthesizedExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Assignment" feature="expOrTypeCast" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- <elements xsi:type="xtext:Alternatives" cardinality="?">
- <elements xsi:type="xtext:Assignment" feature="casted" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.50"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="suffix" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.32"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="NullExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//NullExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Action">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//NullExpression"/>
- </type>
- </elements>
- <elements xsi:type="xtext:Keyword" value="null"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ThisExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ThisExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Action">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ThisExpression"/>
- </type>
- </elements>
- <elements xsi:type="xtext:Keyword" value="this"/>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="suffix" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.32"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SuperInvocationExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SuperInvocationExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="super"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Assignment" feature="tuple" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.15"/>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="."/>
- <elements xsi:type="xtext:Assignment" feature="operationName" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.14"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="tuple" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.15"/>
- </elements>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="InstanceCreationExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//InstanceCreationExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="new"/>
- <elements xsi:type="xtext:Assignment" feature="constructor" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.14"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="tuple" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.56"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="suffix" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.32"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="InstanceCreationTuple">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//InstanceCreationTuple"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Action">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//InstanceCreationTuple"/>
- </type>
- </elements>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Assignment" feature="instanceCreationTupleElement" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.57"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value=","/>
- <elements xsi:type="xtext:Assignment" feature="instanceCreationTupleElement" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.57"/>
- </elements>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="InstanceCreationTupleElement">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//InstanceCreationTupleElement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="role" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="=>"/>
- <elements xsi:type="xtext:Assignment" feature="object" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.17"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SequenceConstructionOrAccessCompletion">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SequenceConstructionOrAccessCompletion"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="multiplicityIndicator" operator="?=">
- <terminal xsi:type="xtext:Keyword" value="["/>
- </elements>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Assignment" feature="accessCompletion" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.59"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="sequenceCompletion" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.60"/>
- </elements>
- </elements>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="expression" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.61"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="AccessCompletion">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//AccessCompletion"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="accessIndex" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="]"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="PartialSequenceConstructionCompletion">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//PartialSequenceConstructionCompletion"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="]"/>
- <elements xsi:type="xtext:Assignment" feature="expression" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.61"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SequenceConstructionExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SequenceConstructionExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="{"/>
- <elements xsi:type="xtext:Assignment" feature="sequenceElement" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.62"/>
- </elements>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value=","/>
- <elements xsi:type="xtext:Assignment" feature="sequenceElement" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.62"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value=".."/>
- <elements xsi:type="xtext:Assignment" feature="rangeUpper" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.17"/>
- </elements>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="}"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SequenceElement">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SequenceElement"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.17"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.61"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ClassExtentExpression">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ClassExtentExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Action">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ClassExtentExpression"/>
- </type>
- </elements>
- <elements xsi:type="xtext:Keyword" value="."/>
- <elements xsi:type="xtext:Keyword" value="allInstances"/>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Keyword" value=")"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="Block">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//Block"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="{"/>
- <elements xsi:type="xtext:Action">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//Block"/>
- </type>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="sequence" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.65"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="}"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="StatementSequence">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//StatementSequence"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" cardinality="+" feature="statements" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.66"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="DocumentedStatement">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//DocumentedStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="comment" operator="=">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.112"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.113"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="statement" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.69"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="InlineStatement">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//InlineStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="/*@"/>
- <elements xsi:type="xtext:Keyword" value="inline"/>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Assignment" feature="langageName" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- <elements xsi:type="xtext:Assignment" feature="body" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.111"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="*/"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="AnnotatedStatement">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//AnnotatedStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="//@"/>
- <elements xsi:type="xtext:Assignment" feature="annotation" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.70"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="statement" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.69"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="Statement">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//Statement"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.68"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.67"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.72"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.73"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.74"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.75"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.80"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.85"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.86"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.87"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.90"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.91"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.92"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.97"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.103"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.104"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.105"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.106"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="Annotation">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//Annotation"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="kind" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.71"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Assignment" feature="args" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value=","/>
- <elements xsi:type="xtext:Assignment" feature="args" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.110"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="AnnotationKind">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/alf/Alf#//AnnotationKind"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AnnotationKind/ISOLATED"/>
- <literal value="isolated"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AnnotationKind/DETERMINED"/>
- <literal value="determined"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AnnotationKind/ASSURED"/>
- <literal value="assured"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AnnotationKind/PARALLEL"/>
- <literal value="parallel"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="BlockStatement">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//BlockStatement"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" feature="block" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.64"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="EmptyStatement">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//EmptyStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Action">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//EmptyStatement"/>
- </type>
- </elements>
- <elements xsi:type="xtext:Keyword" value=";"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="LocalNameDeclarationStatement">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//LocalNameDeclarationStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="let"/>
- <elements xsi:type="xtext:Assignment" feature="varName" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=":"/>
- <elements xsi:type="xtext:Assignment" feature="type" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.14"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Assignment" feature="multiplicityIndicator" operator="?=">
- <terminal xsi:type="xtext:Keyword" value="["/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="]"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="="/>
- <elements xsi:type="xtext:Assignment" feature="init" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.62"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=";"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="IfStatement">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//IfStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="if"/>
- <elements xsi:type="xtext:Assignment" feature="sequentialClausses" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.76"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="finalClause" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.79"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SequentialClauses">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SequentialClauses"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="conccurentClauses" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.77"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value="else"/>
- <elements xsi:type="xtext:Keyword" value="if"/>
- <elements xsi:type="xtext:Assignment" feature="conccurentClauses" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.77"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ConcurrentClauses">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ConcurrentClauses"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="nonFinalClause" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.78"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value="or"/>
- <elements xsi:type="xtext:Keyword" value="if"/>
- <elements xsi:type="xtext:Assignment" feature="nonFinalClause" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.78"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="NonFinalClause">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//NonFinalClause"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Assignment" feature="condition" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- <elements xsi:type="xtext:Assignment" feature="block" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.64"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="FinalClause">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//FinalClause"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="else"/>
- <elements xsi:type="xtext:Assignment" feature="block" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.64"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SwitchStatement">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SwitchStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="switch"/>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Assignment" feature="expression" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- <elements xsi:type="xtext:Keyword" value="{"/>
- <elements xsi:type="xtext:Assignment" cardinality="*" feature="switchClause" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.81"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="defaultClause" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.83"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="}"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SwitchClause">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SwitchClause"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="switchCase" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.82"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="*" feature="switchCase" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.82"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="statementSequence" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.84"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SwitchCase">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SwitchCase"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="case"/>
- <elements xsi:type="xtext:Assignment" feature="expression" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=":"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SwitchDefaultClause">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SwitchDefaultClause"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="default"/>
- <elements xsi:type="xtext:Keyword" value=":"/>
- <elements xsi:type="xtext:Assignment" feature="statementSequence" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.84"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="NonEmptyStatementSequence">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//NonEmptyStatementSequence"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" cardinality="+" feature="statement" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.66"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="WhileStatement">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//WhileStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="while"/>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Assignment" feature="condition" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- <elements xsi:type="xtext:Assignment" feature="block" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.64"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="DoStatement">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//DoStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="do"/>
- <elements xsi:type="xtext:Assignment" feature="block" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.64"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="while"/>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Assignment" feature="condition" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- <elements xsi:type="xtext:Keyword" value=";"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ForStatement">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ForStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="for"/>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Assignment" feature="control" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.88"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- <elements xsi:type="xtext:Assignment" feature="block" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.64"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ForControl">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ForControl"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="loopVariableDefinition" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.89"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value=","/>
- <elements xsi:type="xtext:Assignment" feature="loopVariableDefinition" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.89"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="LoopVariableDefinition">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//LoopVariableDefinition"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="name" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="in"/>
- <elements xsi:type="xtext:Assignment" feature="expression1" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" value=".."/>
- <elements xsi:type="xtext:Assignment" feature="expression2" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.17"/>
- </elements>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="type" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.14"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="name" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=":"/>
- <elements xsi:type="xtext:Assignment" feature="expression" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.17"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="BreakStatement">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//BreakStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Action">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//BreakStatement"/>
- </type>
- </elements>
- <elements xsi:type="xtext:Keyword" value="break"/>
- <elements xsi:type="xtext:Keyword" value=";"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ReturnStatement">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ReturnStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="return"/>
- <elements xsi:type="xtext:Assignment" feature="expression" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=";"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="AcceptStatement">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//AcceptStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="clause" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.96"/>
- </elements>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Assignment" feature="simpleAccept" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.93"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="compoundAccept" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.94"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SimpleAcceptStatementCompletion">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SimpleAcceptStatementCompletion"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Action">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SimpleAcceptStatementCompletion"/>
- </type>
- </elements>
- <elements xsi:type="xtext:Keyword" value=";"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="CompoundAcceptStatementCompletion">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//CompoundAcceptStatementCompletion"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="block" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.64"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value="or"/>
- <elements xsi:type="xtext:Assignment" feature="acceptBlock" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.95"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="AcceptBlock">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//AcceptBlock"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="clause" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.96"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="block" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.64"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="AcceptClause">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//AcceptClause"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="accept"/>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Assignment" feature="name" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=":"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="qualifiedNameList" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.102"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ClassifyStatement">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ClassifyStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="classify"/>
- <elements xsi:type="xtext:Assignment" feature="expression" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="clause" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.98"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=";"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ClassificationClause">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ClassificationClause"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="classifyFromClause" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.99"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="classifyToClause" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.100"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="reclassyAllClause" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.101"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="classifyToClause" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.100"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ClassificationFromClause">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ClassificationFromClause"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="from"/>
- <elements xsi:type="xtext:Assignment" feature="qualifiedNameList" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.102"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ClassificationToClause">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ClassificationToClause"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="to"/>
- <elements xsi:type="xtext:Assignment" feature="qualifiedNameList" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.102"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ReclassifyAllClause">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ReclassifyAllClause"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Action">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ReclassifyAllClause"/>
- </type>
- </elements>
- <elements xsi:type="xtext:Keyword" value="from"/>
- <elements xsi:type="xtext:Keyword" value="*"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="QualifiedNameList">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//QualifiedNameList"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="qualifiedName" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.14"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value=","/>
- <elements xsi:type="xtext:Assignment" feature="qualifiedName" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.14"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="InvocationOrAssignementOrDeclarationStatement">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//InvocationOrAssignementOrDeclarationStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="typePart_OR_assignedPart_OR_invocationPart" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.9"/>
- </elements>
- <elements xsi:type="xtext:Alternatives" cardinality="?">
- <elements xsi:type="xtext:Assignment" feature="variableDeclarationCompletion" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.107"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="assignmentCompletion" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.108"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value=";"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SuperInvocationStatement">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SuperInvocationStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="_super" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.54"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=";"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ThisInvocationStatement">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ThisInvocationStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="_this" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.53"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="assignmentCompletion" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.108"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=";"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="InstanceCreationInvocationStatement">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//InstanceCreationInvocationStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="_new" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.55"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=";"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="VariableDeclarationCompletion">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//VariableDeclarationCompletion"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Assignment" feature="multiplicityIndicator" operator="?=">
- <terminal xsi:type="xtext:Keyword" value="["/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="]"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="variableName" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="initValue" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.108"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="AssignmentCompletion">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentCompletion"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="op" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.109"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="rightHandSide" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.62"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="AssignmentOperator">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentOperator"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentOperator/ASSIGN"/>
- <literal value="="/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentOperator/PLUSASSIGN"/>
- <literal value="+="/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentOperator/MINUSASSIGN"/>
- <literal value="-="/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentOperator/MULTASSIGN"/>
- <literal value="*="/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentOperator/MODASSIGN"/>
- <literal value="%="/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentOperator/DIVASSIGN"/>
- <literal value="/="/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentOperator/ANDASSIGN"/>
- <literal value="&amp;="/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentOperator/ORASSIGN"/>
- <literal value="|="/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentOperator/XORASSIGN"/>
- <literal value="^="/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentOperator/LSHIFTASSIGN"/>
- <literal value="&lt;&lt;="/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentOperator/RSHIFTASSIGN"/>
- <literal value=">>="/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentOperator/URSHIFTASSIGN"/>
- <literal value=">>>="/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ID">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- </elements>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="9"/>
- </elements>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:UntilToken">
- <terminal xsi:type="xtext:Keyword" value="'"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="STRING">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="b"/>
- <elements xsi:type="xtext:Keyword" value="t"/>
- <elements xsi:type="xtext:Keyword" value="n"/>
- <elements xsi:type="xtext:Keyword" value="f"/>
- <elements xsi:type="xtext:Keyword" value="r"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Keyword" value="\"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- </terminal>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ML_COMMENT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="/*"/>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Keyword" value="@"/>
- </elements>
- <elements xsi:type="xtext:UntilToken">
- <terminal xsi:type="xtext:Keyword" value="*/"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="SL_COMMENT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="//"/>
- <elements xsi:type="xtext:NegatedToken" cardinality="*">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- <elements xsi:type="xtext:Keyword" value="&#xD;"/>
- <elements xsi:type="xtext:Keyword" value="@"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="&#xD;"/>
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- </elements>
- </alternatives>
- </rules>
- </xtext:Grammar>
- <xtext:Grammar name="org.eclipse.xtext.common.Terminals" definesHiddenTokens="true" hiddenTokens="/1/@rules.5 /0/@rules.112 /0/@rules.113">
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="ecore">
- <ePackage href="http://www.eclipse.org/emf/2002/Ecore#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:TerminalRule" name="ID">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="^"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- </elements>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="9"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="INT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
- </type>
- <alternatives xsi:type="xtext:CharacterRange" cardinality="+">
- <left value="0"/>
- <right value="9"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="STRING">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="b"/>
- <elements xsi:type="xtext:Keyword" value="t"/>
- <elements xsi:type="xtext:Keyword" value="n"/>
- <elements xsi:type="xtext:Keyword" value="f"/>
- <elements xsi:type="xtext:Keyword" value="r"/>
- <elements xsi:type="xtext:Keyword" value="u"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Keyword" value="\"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- </terminal>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="b"/>
- <elements xsi:type="xtext:Keyword" value="t"/>
- <elements xsi:type="xtext:Keyword" value="n"/>
- <elements xsi:type="xtext:Keyword" value="f"/>
- <elements xsi:type="xtext:Keyword" value="r"/>
- <elements xsi:type="xtext:Keyword" value="u"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Keyword" value="\"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- </terminal>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="'"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ML_COMMENT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="/*"/>
- <elements xsi:type="xtext:UntilToken">
- <terminal xsi:type="xtext:Keyword" value="*/"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="SL_COMMENT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="//"/>
- <elements xsi:type="xtext:NegatedToken" cardinality="*">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- <elements xsi:type="xtext:Keyword" value="&#xD;"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="&#xD;"/>
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="WS">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives" cardinality="+">
- <elements xsi:type="xtext:Keyword" value=" "/>
- <elements xsi:type="xtext:Keyword" value="&#x9;"/>
- <elements xsi:type="xtext:Keyword" value="&#xD;"/>
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ANY_OTHER">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Wildcard"/>
- </rules>
- </xtext:Grammar>
-</xmi:XMI>
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/serializer/AbstractAlfSemanticSequencer.java b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/serializer/AbstractAlfSemanticSequencer.java
deleted file mode 100644
index 1c30d07e71a..00000000000
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/serializer/AbstractAlfSemanticSequencer.java
+++ /dev/null
@@ -1,1865 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.uml.alf.serializer;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.uml.alf.alf.AcceptBlock;
-import org.eclipse.papyrus.uml.alf.alf.AcceptClause;
-import org.eclipse.papyrus.uml.alf.alf.AcceptStatement;
-import org.eclipse.papyrus.uml.alf.alf.AccessCompletion;
-import org.eclipse.papyrus.uml.alf.alf.AdditiveExpression;
-import org.eclipse.papyrus.uml.alf.alf.AlfPackage;
-import org.eclipse.papyrus.uml.alf.alf.AndExpression;
-import org.eclipse.papyrus.uml.alf.alf.AnnotatedStatement;
-import org.eclipse.papyrus.uml.alf.alf.Annotation;
-import org.eclipse.papyrus.uml.alf.alf.AssignmentCompletion;
-import org.eclipse.papyrus.uml.alf.alf.BOOLEAN_LITERAL;
-import org.eclipse.papyrus.uml.alf.alf.Block;
-import org.eclipse.papyrus.uml.alf.alf.BlockStatement;
-import org.eclipse.papyrus.uml.alf.alf.BreakStatement;
-import org.eclipse.papyrus.uml.alf.alf.ClassExtentExpression;
-import org.eclipse.papyrus.uml.alf.alf.ClassificationClause;
-import org.eclipse.papyrus.uml.alf.alf.ClassificationExpression;
-import org.eclipse.papyrus.uml.alf.alf.ClassificationFromClause;
-import org.eclipse.papyrus.uml.alf.alf.ClassificationToClause;
-import org.eclipse.papyrus.uml.alf.alf.ClassifyStatement;
-import org.eclipse.papyrus.uml.alf.alf.CollectOrIterateOperation;
-import org.eclipse.papyrus.uml.alf.alf.CompoundAcceptStatementCompletion;
-import org.eclipse.papyrus.uml.alf.alf.ConcurrentClauses;
-import org.eclipse.papyrus.uml.alf.alf.ConditionalAndExpression;
-import org.eclipse.papyrus.uml.alf.alf.ConditionalOrExpression;
-import org.eclipse.papyrus.uml.alf.alf.ConditionalTestExpression;
-import org.eclipse.papyrus.uml.alf.alf.DoStatement;
-import org.eclipse.papyrus.uml.alf.alf.DocumentedStatement;
-import org.eclipse.papyrus.uml.alf.alf.EmptyStatement;
-import org.eclipse.papyrus.uml.alf.alf.EqualityExpression;
-import org.eclipse.papyrus.uml.alf.alf.ExclusiveOrExpression;
-import org.eclipse.papyrus.uml.alf.alf.FinalClause;
-import org.eclipse.papyrus.uml.alf.alf.ForAllOrExistsOrOneOperation;
-import org.eclipse.papyrus.uml.alf.alf.ForControl;
-import org.eclipse.papyrus.uml.alf.alf.ForStatement;
-import org.eclipse.papyrus.uml.alf.alf.INTEGER_LITERAL;
-import org.eclipse.papyrus.uml.alf.alf.IfStatement;
-import org.eclipse.papyrus.uml.alf.alf.InclusiveOrExpression;
-import org.eclipse.papyrus.uml.alf.alf.InlineStatement;
-import org.eclipse.papyrus.uml.alf.alf.InstanceCreationExpression;
-import org.eclipse.papyrus.uml.alf.alf.InstanceCreationInvocationStatement;
-import org.eclipse.papyrus.uml.alf.alf.InstanceCreationTuple;
-import org.eclipse.papyrus.uml.alf.alf.InstanceCreationTupleElement;
-import org.eclipse.papyrus.uml.alf.alf.InvocationOrAssignementOrDeclarationStatement;
-import org.eclipse.papyrus.uml.alf.alf.IsUniqueOperation;
-import org.eclipse.papyrus.uml.alf.alf.LinkOperationExpression;
-import org.eclipse.papyrus.uml.alf.alf.LinkOperationTuple;
-import org.eclipse.papyrus.uml.alf.alf.LinkOperationTupleElement;
-import org.eclipse.papyrus.uml.alf.alf.LocalNameDeclarationStatement;
-import org.eclipse.papyrus.uml.alf.alf.LoopVariableDefinition;
-import org.eclipse.papyrus.uml.alf.alf.MultiplicativeExpression;
-import org.eclipse.papyrus.uml.alf.alf.NameExpression;
-import org.eclipse.papyrus.uml.alf.alf.NamedTemplateBinding;
-import org.eclipse.papyrus.uml.alf.alf.NonEmptyStatementSequence;
-import org.eclipse.papyrus.uml.alf.alf.NonFinalClause;
-import org.eclipse.papyrus.uml.alf.alf.NullExpression;
-import org.eclipse.papyrus.uml.alf.alf.OperationCallExpression;
-import org.eclipse.papyrus.uml.alf.alf.ParenthesizedExpression;
-import org.eclipse.papyrus.uml.alf.alf.PartialSequenceConstructionCompletion;
-import org.eclipse.papyrus.uml.alf.alf.PrimaryExpression;
-import org.eclipse.papyrus.uml.alf.alf.PropertyCallExpression;
-import org.eclipse.papyrus.uml.alf.alf.QualifiedNameList;
-import org.eclipse.papyrus.uml.alf.alf.QualifiedNamePath;
-import org.eclipse.papyrus.uml.alf.alf.QualifiedNameWithBinding;
-import org.eclipse.papyrus.uml.alf.alf.ReclassifyAllClause;
-import org.eclipse.papyrus.uml.alf.alf.RelationalExpression;
-import org.eclipse.papyrus.uml.alf.alf.ReturnStatement;
-import org.eclipse.papyrus.uml.alf.alf.STRING_LITERAL;
-import org.eclipse.papyrus.uml.alf.alf.SelectOrRejectOperation;
-import org.eclipse.papyrus.uml.alf.alf.SequenceConstructionExpression;
-import org.eclipse.papyrus.uml.alf.alf.SequenceConstructionOrAccessCompletion;
-import org.eclipse.papyrus.uml.alf.alf.SequenceOperationExpression;
-import org.eclipse.papyrus.uml.alf.alf.SequenceReductionExpression;
-import org.eclipse.papyrus.uml.alf.alf.SequentialClauses;
-import org.eclipse.papyrus.uml.alf.alf.ShiftExpression;
-import org.eclipse.papyrus.uml.alf.alf.SimpleAcceptStatementCompletion;
-import org.eclipse.papyrus.uml.alf.alf.StatementSequence;
-import org.eclipse.papyrus.uml.alf.alf.SuperInvocationExpression;
-import org.eclipse.papyrus.uml.alf.alf.SuperInvocationStatement;
-import org.eclipse.papyrus.uml.alf.alf.SwitchCase;
-import org.eclipse.papyrus.uml.alf.alf.SwitchClause;
-import org.eclipse.papyrus.uml.alf.alf.SwitchDefaultClause;
-import org.eclipse.papyrus.uml.alf.alf.SwitchStatement;
-import org.eclipse.papyrus.uml.alf.alf.TemplateBinding;
-import org.eclipse.papyrus.uml.alf.alf.Test;
-import org.eclipse.papyrus.uml.alf.alf.ThisExpression;
-import org.eclipse.papyrus.uml.alf.alf.ThisInvocationStatement;
-import org.eclipse.papyrus.uml.alf.alf.Tuple;
-import org.eclipse.papyrus.uml.alf.alf.TupleElement;
-import org.eclipse.papyrus.uml.alf.alf.UNLIMITED_LITERAL;
-import org.eclipse.papyrus.uml.alf.alf.UnaryExpression;
-import org.eclipse.papyrus.uml.alf.alf.UnqualifiedName;
-import org.eclipse.papyrus.uml.alf.alf.VariableDeclarationCompletion;
-import org.eclipse.papyrus.uml.alf.alf.WhileStatement;
-import org.eclipse.papyrus.uml.alf.services.AlfGrammarAccess;
-import org.eclipse.xtext.serializer.acceptor.ISemanticSequenceAcceptor;
-import org.eclipse.xtext.serializer.acceptor.SequenceFeeder;
-import org.eclipse.xtext.serializer.diagnostic.ISemanticSequencerDiagnosticProvider;
-import org.eclipse.xtext.serializer.diagnostic.ISerializationDiagnostic.Acceptor;
-import org.eclipse.xtext.serializer.sequencer.AbstractSemanticSequencer;
-import org.eclipse.xtext.serializer.sequencer.GenericSequencer;
-import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider;
-import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer;
-import org.eclipse.xtext.serializer.sequencer.ITransientValueService;
-import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient;
-
-import com.google.inject.Inject;
-import com.google.inject.Provider;
-
-@SuppressWarnings("restriction")
-public class AbstractAlfSemanticSequencer extends AbstractSemanticSequencer {
-
- @Inject
- protected AlfGrammarAccess grammarAccess;
-
- @Inject
- protected ISemanticSequencerDiagnosticProvider diagnosticProvider;
-
- @Inject
- protected ITransientValueService transientValues;
-
- @Inject
- @GenericSequencer
- protected Provider<ISemanticSequencer> genericSequencerProvider;
-
- protected ISemanticSequencer genericSequencer;
-
-
- @Override
- public void init(ISemanticSequencer sequencer, ISemanticSequenceAcceptor sequenceAcceptor, Acceptor errorAcceptor) {
- super.init(sequencer, sequenceAcceptor, errorAcceptor);
- this.genericSequencer = genericSequencerProvider.get();
- this.genericSequencer.init(sequencer, sequenceAcceptor, errorAcceptor);
- }
-
- public void createSequence(EObject context, EObject semanticObject) {
- if(semanticObject.eClass().getEPackage() == AlfPackage.eINSTANCE) switch(semanticObject.eClass().getClassifierID()) {
- case AlfPackage.ACCEPT_BLOCK:
- if(context == grammarAccess.getAcceptBlockRule()) {
- sequence_AcceptBlock(context, (AcceptBlock) semanticObject);
- return;
- }
- else break;
- case AlfPackage.ACCEPT_CLAUSE:
- if(context == grammarAccess.getAcceptClauseRule()) {
- sequence_AcceptClause(context, (AcceptClause) semanticObject);
- return;
- }
- else break;
- case AlfPackage.ACCEPT_STATEMENT:
- if(context == grammarAccess.getAcceptStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_AcceptStatement(context, (AcceptStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.ACCESS_COMPLETION:
- if(context == grammarAccess.getAccessCompletionRule()) {
- sequence_AccessCompletion(context, (AccessCompletion) semanticObject);
- return;
- }
- else break;
- case AlfPackage.ADDITIVE_EXPRESSION:
- if(context == grammarAccess.getAdditiveExpressionRule()) {
- sequence_AdditiveExpression(context, (AdditiveExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.AND_EXPRESSION:
- if(context == grammarAccess.getAndExpressionRule()) {
- sequence_AndExpression(context, (AndExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.ANNOTATED_STATEMENT:
- if(context == grammarAccess.getAnnotatedStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_AnnotatedStatement(context, (AnnotatedStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.ANNOTATION:
- if(context == grammarAccess.getAnnotationRule()) {
- sequence_Annotation(context, (Annotation) semanticObject);
- return;
- }
- else break;
- case AlfPackage.ASSIGNMENT_COMPLETION:
- if(context == grammarAccess.getAssignmentCompletionRule()) {
- sequence_AssignmentCompletion(context, (AssignmentCompletion) semanticObject);
- return;
- }
- else break;
- case AlfPackage.BOOLEAN_LITERAL:
- if(context == grammarAccess.getBOOLEAN_LITERALRule() ||
- context == grammarAccess.getLITERALRule() ||
- context == grammarAccess.getValueSpecificationRule()) {
- sequence_BOOLEAN_LITERAL(context, (BOOLEAN_LITERAL) semanticObject);
- return;
- }
- else break;
- case AlfPackage.BLOCK:
- if(context == grammarAccess.getBlockRule()) {
- sequence_Block(context, (Block) semanticObject);
- return;
- }
- else break;
- case AlfPackage.BLOCK_STATEMENT:
- if(context == grammarAccess.getBlockStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_BlockStatement(context, (BlockStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.BREAK_STATEMENT:
- if(context == grammarAccess.getBreakStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_Statement(context, (BreakStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.CLASS_EXTENT_EXPRESSION:
- if(context == grammarAccess.getClassExtentExpressionRule() ||
- context == grammarAccess.getSuffixExpressionRule()) {
- sequence_SuffixExpression(context, (ClassExtentExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.CLASSIFICATION_CLAUSE:
- if(context == grammarAccess.getClassificationClauseRule()) {
- sequence_ClassificationClause(context, (ClassificationClause) semanticObject);
- return;
- }
- else break;
- case AlfPackage.CLASSIFICATION_EXPRESSION:
- if(context == grammarAccess.getClassificationExpressionRule()) {
- sequence_ClassificationExpression(context, (ClassificationExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.CLASSIFICATION_FROM_CLAUSE:
- if(context == grammarAccess.getClassificationFromClauseRule()) {
- sequence_ClassificationFromClause(context, (ClassificationFromClause) semanticObject);
- return;
- }
- else break;
- case AlfPackage.CLASSIFICATION_TO_CLAUSE:
- if(context == grammarAccess.getClassificationToClauseRule()) {
- sequence_ClassificationToClause(context, (ClassificationToClause) semanticObject);
- return;
- }
- else break;
- case AlfPackage.CLASSIFY_STATEMENT:
- if(context == grammarAccess.getClassifyStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_ClassifyStatement(context, (ClassifyStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.COLLECT_OR_ITERATE_OPERATION:
- if(context == grammarAccess.getCollectOrIterateOperationRule() ||
- context == grammarAccess.getSequenceExpansionExpressionRule() ||
- context == grammarAccess.getSuffixExpressionRule()) {
- sequence_CollectOrIterateOperation(context, (CollectOrIterateOperation) semanticObject);
- return;
- }
- else break;
- case AlfPackage.COMPOUND_ACCEPT_STATEMENT_COMPLETION:
- if(context == grammarAccess.getCompoundAcceptStatementCompletionRule()) {
- sequence_CompoundAcceptStatementCompletion(context, (CompoundAcceptStatementCompletion) semanticObject);
- return;
- }
- else break;
- case AlfPackage.CONCURRENT_CLAUSES:
- if(context == grammarAccess.getConcurrentClausesRule()) {
- sequence_ConcurrentClauses(context, (ConcurrentClauses) semanticObject);
- return;
- }
- else break;
- case AlfPackage.CONDITIONAL_AND_EXPRESSION:
- if(context == grammarAccess.getConditionalAndExpressionRule()) {
- sequence_ConditionalAndExpression(context, (ConditionalAndExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.CONDITIONAL_OR_EXPRESSION:
- if(context == grammarAccess.getConditionalOrExpressionRule()) {
- sequence_ConditionalOrExpression(context, (ConditionalOrExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.CONDITIONAL_TEST_EXPRESSION:
- if(context == grammarAccess.getConditionalTestExpressionRule() ||
- context == grammarAccess.getExpressionRule() ||
- context == grammarAccess.getSequenceElementRule()) {
- sequence_ConditionalTestExpression(context, (ConditionalTestExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.DO_STATEMENT:
- if(context == grammarAccess.getDoStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_DoStatement(context, (DoStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.DOCUMENTED_STATEMENT:
- if(context == grammarAccess.getDocumentedStatementRule()) {
- sequence_DocumentedStatement(context, (DocumentedStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.EMPTY_STATEMENT:
- if(context == grammarAccess.getEmptyStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_Statement(context, (EmptyStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.EQUALITY_EXPRESSION:
- if(context == grammarAccess.getEqualityExpressionRule()) {
- sequence_EqualityExpression(context, (EqualityExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.EXCLUSIVE_OR_EXPRESSION:
- if(context == grammarAccess.getExclusiveOrExpressionRule()) {
- sequence_ExclusiveOrExpression(context, (ExclusiveOrExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.FINAL_CLAUSE:
- if(context == grammarAccess.getFinalClauseRule()) {
- sequence_FinalClause(context, (FinalClause) semanticObject);
- return;
- }
- else break;
- case AlfPackage.FOR_ALL_OR_EXISTS_OR_ONE_OPERATION:
- if(context == grammarAccess.getForAllOrExistsOrOneOperationRule() ||
- context == grammarAccess.getSequenceExpansionExpressionRule() ||
- context == grammarAccess.getSuffixExpressionRule()) {
- sequence_ForAllOrExistsOrOneOperation(context, (ForAllOrExistsOrOneOperation) semanticObject);
- return;
- }
- else break;
- case AlfPackage.FOR_CONTROL:
- if(context == grammarAccess.getForControlRule()) {
- sequence_ForControl(context, (ForControl) semanticObject);
- return;
- }
- else break;
- case AlfPackage.FOR_STATEMENT:
- if(context == grammarAccess.getForStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_ForStatement(context, (ForStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.INTEGER_LITERAL:
- if(context == grammarAccess.getINTEGER_LITERALRule() ||
- context == grammarAccess.getLITERALRule() ||
- context == grammarAccess.getNUMBER_LITERALRule() ||
- context == grammarAccess.getValueSpecificationRule()) {
- sequence_INTEGER_LITERAL(context, (INTEGER_LITERAL) semanticObject);
- return;
- }
- else break;
- case AlfPackage.IF_STATEMENT:
- if(context == grammarAccess.getIfStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_IfStatement(context, (IfStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.INCLUSIVE_OR_EXPRESSION:
- if(context == grammarAccess.getInclusiveOrExpressionRule()) {
- sequence_InclusiveOrExpression(context, (InclusiveOrExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.INLINE_STATEMENT:
- if(context == grammarAccess.getInlineStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_InlineStatement(context, (InlineStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.INSTANCE_CREATION_EXPRESSION:
- if(context == grammarAccess.getInstanceCreationExpressionRule() ||
- context == grammarAccess.getNonLiteralValueSpecificationRule() ||
- context == grammarAccess.getValueSpecificationRule()) {
- sequence_InstanceCreationExpression(context, (InstanceCreationExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.INSTANCE_CREATION_INVOCATION_STATEMENT:
- if(context == grammarAccess.getInstanceCreationInvocationStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_InstanceCreationInvocationStatement(context, (InstanceCreationInvocationStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.INSTANCE_CREATION_TUPLE:
- if(context == grammarAccess.getInstanceCreationTupleRule()) {
- sequence_InstanceCreationTuple(context, (InstanceCreationTuple) semanticObject);
- return;
- }
- else break;
- case AlfPackage.INSTANCE_CREATION_TUPLE_ELEMENT:
- if(context == grammarAccess.getInstanceCreationTupleElementRule()) {
- sequence_InstanceCreationTupleElement(context, (InstanceCreationTupleElement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.INVOCATION_OR_ASSIGNEMENT_OR_DECLARATION_STATEMENT:
- if(context == grammarAccess.getInvocationOrAssignementOrDeclarationStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_InvocationOrAssignementOrDeclarationStatement(context, (InvocationOrAssignementOrDeclarationStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.IS_UNIQUE_OPERATION:
- if(context == grammarAccess.getIsUniqueOperationRule() ||
- context == grammarAccess.getSequenceExpansionExpressionRule() ||
- context == grammarAccess.getSuffixExpressionRule()) {
- sequence_IsUniqueOperation(context, (IsUniqueOperation) semanticObject);
- return;
- }
- else break;
- case AlfPackage.LINK_OPERATION_EXPRESSION:
- if(context == grammarAccess.getLinkOperationExpressionRule() ||
- context == grammarAccess.getSuffixExpressionRule()) {
- sequence_LinkOperationExpression(context, (LinkOperationExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.LINK_OPERATION_TUPLE:
- if(context == grammarAccess.getLinkOperationTupleRule()) {
- sequence_LinkOperationTuple(context, (LinkOperationTuple) semanticObject);
- return;
- }
- else break;
- case AlfPackage.LINK_OPERATION_TUPLE_ELEMENT:
- if(context == grammarAccess.getLinkOperationTupleElementRule()) {
- sequence_LinkOperationTupleElement(context, (LinkOperationTupleElement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.LOCAL_NAME_DECLARATION_STATEMENT:
- if(context == grammarAccess.getLocalNameDeclarationStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_LocalNameDeclarationStatement(context, (LocalNameDeclarationStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.LOOP_VARIABLE_DEFINITION:
- if(context == grammarAccess.getLoopVariableDefinitionRule()) {
- sequence_LoopVariableDefinition(context, (LoopVariableDefinition) semanticObject);
- return;
- }
- else break;
- case AlfPackage.MULTIPLICATIVE_EXPRESSION:
- if(context == grammarAccess.getMultiplicativeExpressionRule()) {
- sequence_MultiplicativeExpression(context, (MultiplicativeExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.NAME_EXPRESSION:
- if(context == grammarAccess.getNameExpressionRule() ||
- context == grammarAccess.getNonLiteralValueSpecificationRule() ||
- context == grammarAccess.getValueSpecificationRule()) {
- sequence_NameExpression(context, (NameExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.NAMED_TEMPLATE_BINDING:
- if(context == grammarAccess.getNamedTemplateBindingRule()) {
- sequence_NamedTemplateBinding(context, (NamedTemplateBinding) semanticObject);
- return;
- }
- else break;
- case AlfPackage.NON_EMPTY_STATEMENT_SEQUENCE:
- if(context == grammarAccess.getNonEmptyStatementSequenceRule()) {
- sequence_NonEmptyStatementSequence(context, (NonEmptyStatementSequence) semanticObject);
- return;
- }
- else break;
- case AlfPackage.NON_FINAL_CLAUSE:
- if(context == grammarAccess.getNonFinalClauseRule()) {
- sequence_NonFinalClause(context, (NonFinalClause) semanticObject);
- return;
- }
- else break;
- case AlfPackage.NULL_EXPRESSION:
- if(context == grammarAccess.getNullExpressionRule() ||
- context == grammarAccess.getValueSpecificationRule()) {
- sequence_ValueSpecification(context, (NullExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.OPERATION_CALL_EXPRESSION:
- if(context == grammarAccess.getOperationCallExpressionRule() ||
- context == grammarAccess.getSuffixExpressionRule()) {
- sequence_OperationCallExpression(context, (OperationCallExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.PARENTHESIZED_EXPRESSION:
- if(context == grammarAccess.getNonLiteralValueSpecificationRule() ||
- context == grammarAccess.getParenthesizedExpressionRule() ||
- context == grammarAccess.getValueSpecificationRule()) {
- sequence_ParenthesizedExpression(context, (ParenthesizedExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.PARTIAL_SEQUENCE_CONSTRUCTION_COMPLETION:
- if(context == grammarAccess.getPartialSequenceConstructionCompletionRule()) {
- sequence_PartialSequenceConstructionCompletion(context, (PartialSequenceConstructionCompletion) semanticObject);
- return;
- }
- else break;
- case AlfPackage.PRIMARY_EXPRESSION:
- if(context == grammarAccess.getPrimaryExpressionRule()) {
- sequence_PrimaryExpression(context, (PrimaryExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.PROPERTY_CALL_EXPRESSION:
- if(context == grammarAccess.getPropertyCallExpressionRule() ||
- context == grammarAccess.getSuffixExpressionRule()) {
- sequence_PropertyCallExpression(context, (PropertyCallExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.QUALIFIED_NAME_LIST:
- if(context == grammarAccess.getQualifiedNameListRule()) {
- sequence_QualifiedNameList(context, (QualifiedNameList) semanticObject);
- return;
- }
- else break;
- case AlfPackage.QUALIFIED_NAME_PATH:
- if(context == grammarAccess.getQualifiedNamePathRule()) {
- sequence_QualifiedNamePath(context, (QualifiedNamePath) semanticObject);
- return;
- }
- else break;
- case AlfPackage.QUALIFIED_NAME_WITH_BINDING:
- if(context == grammarAccess.getQualifiedNameWithBindingRule()) {
- sequence_QualifiedNameWithBinding(context, (QualifiedNameWithBinding) semanticObject);
- return;
- }
- else break;
- case AlfPackage.RECLASSIFY_ALL_CLAUSE:
- if(context == grammarAccess.getReclassifyAllClauseRule()) {
- sequence_ReclassifyAllClause(context, (ReclassifyAllClause) semanticObject);
- return;
- }
- else break;
- case AlfPackage.RELATIONAL_EXPRESSION:
- if(context == grammarAccess.getRelationalExpressionRule()) {
- sequence_RelationalExpression(context, (RelationalExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.RETURN_STATEMENT:
- if(context == grammarAccess.getReturnStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_ReturnStatement(context, (ReturnStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.STRING_LITERAL:
- if(context == grammarAccess.getLITERALRule() ||
- context == grammarAccess.getSTRING_LITERALRule() ||
- context == grammarAccess.getValueSpecificationRule()) {
- sequence_STRING_LITERAL(context, (STRING_LITERAL) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SELECT_OR_REJECT_OPERATION:
- if(context == grammarAccess.getSelectOrRejectOperationRule() ||
- context == grammarAccess.getSequenceExpansionExpressionRule() ||
- context == grammarAccess.getSuffixExpressionRule()) {
- sequence_SelectOrRejectOperation(context, (SelectOrRejectOperation) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SEQUENCE_CONSTRUCTION_EXPRESSION:
- if(context == grammarAccess.getSequenceConstructionExpressionRule() ||
- context == grammarAccess.getSequenceElementRule()) {
- sequence_SequenceConstructionExpression(context, (SequenceConstructionExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SEQUENCE_CONSTRUCTION_OR_ACCESS_COMPLETION:
- if(context == grammarAccess.getSequenceConstructionOrAccessCompletionRule()) {
- sequence_SequenceConstructionOrAccessCompletion(context, (SequenceConstructionOrAccessCompletion) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SEQUENCE_OPERATION_EXPRESSION:
- if(context == grammarAccess.getSequenceOperationExpressionRule() ||
- context == grammarAccess.getSuffixExpressionRule()) {
- sequence_SequenceOperationExpression(context, (SequenceOperationExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SEQUENCE_REDUCTION_EXPRESSION:
- if(context == grammarAccess.getSequenceReductionExpressionRule() ||
- context == grammarAccess.getSuffixExpressionRule()) {
- sequence_SequenceReductionExpression(context, (SequenceReductionExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SEQUENTIAL_CLAUSES:
- if(context == grammarAccess.getSequentialClausesRule()) {
- sequence_SequentialClauses(context, (SequentialClauses) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SHIFT_EXPRESSION:
- if(context == grammarAccess.getShiftExpressionRule()) {
- sequence_ShiftExpression(context, (ShiftExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SIMPLE_ACCEPT_STATEMENT_COMPLETION:
- if(context == grammarAccess.getSimpleAcceptStatementCompletionRule()) {
- sequence_SimpleAcceptStatementCompletion(context, (SimpleAcceptStatementCompletion) semanticObject);
- return;
- }
- else break;
- case AlfPackage.STATEMENT_SEQUENCE:
- if(context == grammarAccess.getStatementSequenceRule()) {
- sequence_StatementSequence(context, (StatementSequence) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SUPER_INVOCATION_EXPRESSION:
- if(context == grammarAccess.getNonLiteralValueSpecificationRule() ||
- context == grammarAccess.getSuperInvocationExpressionRule() ||
- context == grammarAccess.getValueSpecificationRule()) {
- sequence_SuperInvocationExpression(context, (SuperInvocationExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SUPER_INVOCATION_STATEMENT:
- if(context == grammarAccess.getStatementRule() ||
- context == grammarAccess.getSuperInvocationStatementRule()) {
- sequence_SuperInvocationStatement(context, (SuperInvocationStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SWITCH_CASE:
- if(context == grammarAccess.getSwitchCaseRule()) {
- sequence_SwitchCase(context, (SwitchCase) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SWITCH_CLAUSE:
- if(context == grammarAccess.getSwitchClauseRule()) {
- sequence_SwitchClause(context, (SwitchClause) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SWITCH_DEFAULT_CLAUSE:
- if(context == grammarAccess.getSwitchDefaultClauseRule()) {
- sequence_SwitchDefaultClause(context, (SwitchDefaultClause) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SWITCH_STATEMENT:
- if(context == grammarAccess.getStatementRule() ||
- context == grammarAccess.getSwitchStatementRule()) {
- sequence_SwitchStatement(context, (SwitchStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.TEMPLATE_BINDING:
- if(context == grammarAccess.getTemplateBindingRule()) {
- sequence_TemplateBinding(context, (TemplateBinding) semanticObject);
- return;
- }
- else break;
- case AlfPackage.TEST:
- if(context == grammarAccess.getTestRule()) {
- sequence_Test(context, (Test) semanticObject);
- return;
- }
- else break;
- case AlfPackage.THIS_EXPRESSION:
- if(context == grammarAccess.getNonLiteralValueSpecificationRule() ||
- context == grammarAccess.getThisExpressionRule() ||
- context == grammarAccess.getValueSpecificationRule()) {
- sequence_ThisExpression(context, (ThisExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.THIS_INVOCATION_STATEMENT:
- if(context == grammarAccess.getStatementRule() ||
- context == grammarAccess.getThisInvocationStatementRule()) {
- sequence_ThisInvocationStatement(context, (ThisInvocationStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.TUPLE:
- if(context == grammarAccess.getTupleRule()) {
- sequence_Tuple(context, (Tuple) semanticObject);
- return;
- }
- else break;
- case AlfPackage.TUPLE_ELEMENT:
- if(context == grammarAccess.getTupleElementRule()) {
- sequence_TupleElement(context, (TupleElement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.UNLIMITED_LITERAL:
- if(context == grammarAccess.getLITERALRule() ||
- context == grammarAccess.getNUMBER_LITERALRule() ||
- context == grammarAccess.getUNLIMITED_LITERALRule() ||
- context == grammarAccess.getValueSpecificationRule()) {
- sequence_UNLIMITED_LITERAL(context, (UNLIMITED_LITERAL) semanticObject);
- return;
- }
- else break;
- case AlfPackage.UNARY_EXPRESSION:
- if(context == grammarAccess.getUnaryExpressionRule()) {
- sequence_UnaryExpression(context, (UnaryExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.UNQUALIFIED_NAME:
- if(context == grammarAccess.getUnqualifiedNameRule()) {
- sequence_UnqualifiedName(context, (UnqualifiedName) semanticObject);
- return;
- }
- else break;
- case AlfPackage.VARIABLE_DECLARATION_COMPLETION:
- if(context == grammarAccess.getVariableDeclarationCompletionRule()) {
- sequence_VariableDeclarationCompletion(context, (VariableDeclarationCompletion) semanticObject);
- return;
- }
- else break;
- case AlfPackage.WHILE_STATEMENT:
- if(context == grammarAccess.getStatementRule() ||
- context == grammarAccess.getWhileStatementRule()) {
- sequence_WhileStatement(context, (WhileStatement) semanticObject);
- return;
- }
- else break;
- }
- if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
- }
-
- /**
- * Constraint:
- * (clause=AcceptClause block=Block)
- */
- protected void sequence_AcceptBlock(EObject context, AcceptBlock semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.ACCEPT_BLOCK__CLAUSE) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.ACCEPT_BLOCK__CLAUSE));
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.ACCEPT_BLOCK__BLOCK) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.ACCEPT_BLOCK__BLOCK));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getAcceptBlockAccess().getClauseAcceptClauseParserRuleCall_0_0(), semanticObject.getClause());
- feeder.accept(grammarAccess.getAcceptBlockAccess().getBlockBlockParserRuleCall_1_0(), semanticObject.getBlock());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (name=ID? qualifiedNameList=QualifiedNameList)
- */
- protected void sequence_AcceptClause(EObject context, AcceptClause semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (clause=AcceptClause (simpleAccept=SimpleAcceptStatementCompletion | compoundAccept=CompoundAcceptStatementCompletion))
- */
- protected void sequence_AcceptStatement(EObject context, AcceptStatement semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * accessIndex=Expression
- */
- protected void sequence_AccessCompletion(EObject context, AccessCompletion semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.ACCESS_COMPLETION__ACCESS_INDEX) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.ACCESS_COMPLETION__ACCESS_INDEX));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getAccessCompletionAccess().getAccessIndexExpressionParserRuleCall_0_0(), semanticObject.getAccessIndex());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (exp+=MultiplicativeExpression ((op+='+' | op+='-') exp+=MultiplicativeExpression)*)
- */
- protected void sequence_AdditiveExpression(EObject context, AdditiveExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (exp+=EqualityExpression exp+=EqualityExpression*)
- */
- protected void sequence_AndExpression(EObject context, AndExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (annotation=Annotation statement=Statement)
- */
- protected void sequence_AnnotatedStatement(EObject context, AnnotatedStatement semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.ANNOTATED_STATEMENT__ANNOTATION) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.ANNOTATED_STATEMENT__ANNOTATION));
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.ANNOTATED_STATEMENT__STATEMENT) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.ANNOTATED_STATEMENT__STATEMENT));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getAnnotatedStatementAccess().getAnnotationAnnotationParserRuleCall_1_0(), semanticObject.getAnnotation());
- feeder.accept(grammarAccess.getAnnotatedStatementAccess().getStatementStatementParserRuleCall_2_0(), semanticObject.getStatement());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (kind=AnnotationKind (args+=ID args+=ID*)?)
- */
- protected void sequence_Annotation(EObject context, Annotation semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (op=AssignmentOperator rightHandSide=SequenceElement)
- */
- protected void sequence_AssignmentCompletion(EObject context, AssignmentCompletion semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.ASSIGNMENT_COMPLETION__OP) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.ASSIGNMENT_COMPLETION__OP));
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.ASSIGNMENT_COMPLETION__RIGHT_HAND_SIDE) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.ASSIGNMENT_COMPLETION__RIGHT_HAND_SIDE));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getAssignmentCompletionAccess().getOpAssignmentOperatorEnumRuleCall_0_0(), semanticObject.getOp());
- feeder.accept(grammarAccess.getAssignmentCompletionAccess().getRightHandSideSequenceElementParserRuleCall_1_0(), semanticObject.getRightHandSide());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * value=BooleanValue
- */
- protected void sequence_BOOLEAN_LITERAL(EObject context, BOOLEAN_LITERAL semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.BOOLEAN_LITERAL__VALUE) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.BOOLEAN_LITERAL__VALUE));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getBOOLEAN_LITERALAccess().getValueBooleanValueEnumRuleCall_0(), semanticObject.getValue());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * block=Block
- */
- protected void sequence_BlockStatement(EObject context, BlockStatement semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.BLOCK_STATEMENT__BLOCK) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.BLOCK_STATEMENT__BLOCK));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getBlockStatementAccess().getBlockBlockParserRuleCall_0(), semanticObject.getBlock());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (sequence=StatementSequence?)
- */
- protected void sequence_Block(EObject context, Block semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (
- * (classifyFromClause=ClassificationFromClause classifyToClause=ClassificationToClause?) |
- * (reclassyAllClause=ReclassifyAllClause? classifyToClause=ClassificationToClause)
- * )
- */
- protected void sequence_ClassificationClause(EObject context, ClassificationClause semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (exp=RelationalExpression ((op='instanceof' | op='hastype') typeName=NameExpression)?)
- */
- protected void sequence_ClassificationExpression(EObject context, ClassificationExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * qualifiedNameList=QualifiedNameList
- */
- protected void sequence_ClassificationFromClause(EObject context, ClassificationFromClause semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.CLASSIFICATION_FROM_CLAUSE__QUALIFIED_NAME_LIST) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.CLASSIFICATION_FROM_CLAUSE__QUALIFIED_NAME_LIST));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getClassificationFromClauseAccess().getQualifiedNameListQualifiedNameListParserRuleCall_1_0(), semanticObject.getQualifiedNameList());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * qualifiedNameList=QualifiedNameList
- */
- protected void sequence_ClassificationToClause(EObject context, ClassificationToClause semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.CLASSIFICATION_TO_CLAUSE__QUALIFIED_NAME_LIST) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.CLASSIFICATION_TO_CLAUSE__QUALIFIED_NAME_LIST));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getClassificationToClauseAccess().getQualifiedNameListQualifiedNameListParserRuleCall_1_0(), semanticObject.getQualifiedNameList());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (expression=Expression clause=ClassificationClause)
- */
- protected void sequence_ClassifyStatement(EObject context, ClassifyStatement semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.CLASSIFY_STATEMENT__EXPRESSION) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.CLASSIFY_STATEMENT__EXPRESSION));
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.CLASSIFY_STATEMENT__CLAUSE) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.CLASSIFY_STATEMENT__CLAUSE));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getClassifyStatementAccess().getExpressionExpressionParserRuleCall_1_0(), semanticObject.getExpression());
- feeder.accept(grammarAccess.getClassifyStatementAccess().getClauseClassificationClauseParserRuleCall_2_0(), semanticObject.getClause());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (op=CollectOrIterateOperator name=ID expr=Expression suffix=SuffixExpression?)
- */
- protected void sequence_CollectOrIterateOperation(EObject context, CollectOrIterateOperation semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (block=Block acceptBlock+=AcceptBlock*)
- */
- protected void sequence_CompoundAcceptStatementCompletion(EObject context, CompoundAcceptStatementCompletion semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (nonFinalClause+=NonFinalClause nonFinalClause+=NonFinalClause*)
- */
- protected void sequence_ConcurrentClauses(EObject context, ConcurrentClauses semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (exp+=InclusiveOrExpression exp+=InclusiveOrExpression*)
- */
- protected void sequence_ConditionalAndExpression(EObject context, ConditionalAndExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (exp+=ConditionalAndExpression exp+=ConditionalAndExpression*)
- */
- protected void sequence_ConditionalOrExpression(EObject context, ConditionalOrExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (exp=ConditionalOrExpression (whenTrue=ConditionalTestExpression whenFalse=ConditionalTestExpression)?)
- */
- protected void sequence_ConditionalTestExpression(EObject context, ConditionalTestExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (block=Block condition=Expression)
- */
- protected void sequence_DoStatement(EObject context, DoStatement semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.DO_STATEMENT__BLOCK) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.DO_STATEMENT__BLOCK));
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.DO_STATEMENT__CONDITION) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.DO_STATEMENT__CONDITION));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getDoStatementAccess().getBlockBlockParserRuleCall_1_0(), semanticObject.getBlock());
- feeder.accept(grammarAccess.getDoStatementAccess().getConditionExpressionParserRuleCall_4_0(), semanticObject.getCondition());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * ((comment=ML_COMMENT | comment=SL_COMMENT)? statement=Statement)
- */
- protected void sequence_DocumentedStatement(EObject context, DocumentedStatement semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (exp+=ClassificationExpression ((op+='==' | op+='!=') exp+=ClassificationExpression)*)
- */
- protected void sequence_EqualityExpression(EObject context, EqualityExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (exp+=AndExpression exp+=AndExpression*)
- */
- protected void sequence_ExclusiveOrExpression(EObject context, ExclusiveOrExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * block=Block
- */
- protected void sequence_FinalClause(EObject context, FinalClause semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.FINAL_CLAUSE__BLOCK) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.FINAL_CLAUSE__BLOCK));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getFinalClauseAccess().getBlockBlockParserRuleCall_1_0(), semanticObject.getBlock());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (op=ForAllOrExistsOrOneOperator name=ID expr=Expression suffix=SuffixExpression?)
- */
- protected void sequence_ForAllOrExistsOrOneOperation(EObject context, ForAllOrExistsOrOneOperation semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (loopVariableDefinition+=LoopVariableDefinition loopVariableDefinition+=LoopVariableDefinition*)
- */
- protected void sequence_ForControl(EObject context, ForControl semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (control=ForControl block=Block)
- */
- protected void sequence_ForStatement(EObject context, ForStatement semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.FOR_STATEMENT__CONTROL) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.FOR_STATEMENT__CONTROL));
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.FOR_STATEMENT__BLOCK) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.FOR_STATEMENT__BLOCK));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getForStatementAccess().getControlForControlParserRuleCall_2_0(), semanticObject.getControl());
- feeder.accept(grammarAccess.getForStatementAccess().getBlockBlockParserRuleCall_4_0(), semanticObject.getBlock());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * value=IntegerValue
- */
- protected void sequence_INTEGER_LITERAL(EObject context, INTEGER_LITERAL semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.NUMBER_LITERAL__VALUE) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.NUMBER_LITERAL__VALUE));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getINTEGER_LITERALAccess().getValueIntegerValueTerminalRuleCall_0(), semanticObject.getValue());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (sequentialClausses=SequentialClauses finalClause=FinalClause?)
- */
- protected void sequence_IfStatement(EObject context, IfStatement semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (exp+=ExclusiveOrExpression exp+=ExclusiveOrExpression*)
- */
- protected void sequence_InclusiveOrExpression(EObject context, InclusiveOrExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (langageName=ID body=STRING)
- */
- protected void sequence_InlineStatement(EObject context, InlineStatement semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.INLINE_STATEMENT__LANGAGE_NAME) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.INLINE_STATEMENT__LANGAGE_NAME));
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.INLINE_STATEMENT__BODY) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.INLINE_STATEMENT__BODY));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getInlineStatementAccess().getLangageNameIDTerminalRuleCall_3_0(), semanticObject.getLangageName());
- feeder.accept(grammarAccess.getInlineStatementAccess().getBodySTRINGTerminalRuleCall_5_0(), semanticObject.getBody());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (constructor=QualifiedNameWithBinding tuple=InstanceCreationTuple suffix=SuffixExpression?)
- */
- protected void sequence_InstanceCreationExpression(EObject context, InstanceCreationExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * _new=InstanceCreationExpression
- */
- protected void sequence_InstanceCreationInvocationStatement(EObject context, InstanceCreationInvocationStatement semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.INSTANCE_CREATION_INVOCATION_STATEMENT__NEW) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.INSTANCE_CREATION_INVOCATION_STATEMENT__NEW));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getInstanceCreationInvocationStatementAccess().get_newInstanceCreationExpressionParserRuleCall_0_0(), semanticObject.get_new());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (role=ID object=Expression)
- */
- protected void sequence_InstanceCreationTupleElement(EObject context, InstanceCreationTupleElement semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.INSTANCE_CREATION_TUPLE_ELEMENT__ROLE) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.INSTANCE_CREATION_TUPLE_ELEMENT__ROLE));
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.INSTANCE_CREATION_TUPLE_ELEMENT__OBJECT) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.INSTANCE_CREATION_TUPLE_ELEMENT__OBJECT));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getInstanceCreationTupleElementAccess().getRoleIDTerminalRuleCall_0_0(), semanticObject.getRole());
- feeder.accept(grammarAccess.getInstanceCreationTupleElementAccess().getObjectExpressionParserRuleCall_2_0(), semanticObject.getObject());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * ((instanceCreationTupleElement+=InstanceCreationTupleElement instanceCreationTupleElement+=InstanceCreationTupleElement*)?)
- */
- protected void sequence_InstanceCreationTuple(EObject context, InstanceCreationTuple semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (
- * typePart_OR_assignedPart_OR_invocationPart=NameExpression
- * (variableDeclarationCompletion=VariableDeclarationCompletion | assignmentCompletion=AssignmentCompletion)?
- * )
- */
- protected void sequence_InvocationOrAssignementOrDeclarationStatement(EObject context, InvocationOrAssignementOrDeclarationStatement semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (name=ID expr=Expression suffix=SuffixExpression?)
- */
- protected void sequence_IsUniqueOperation(EObject context, IsUniqueOperation semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (kind=LinkOperationKind tuple=LinkOperationTuple)
- */
- protected void sequence_LinkOperationExpression(EObject context, LinkOperationExpression semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.LINK_OPERATION_EXPRESSION__KIND) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.LINK_OPERATION_EXPRESSION__KIND));
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.LINK_OPERATION_EXPRESSION__TUPLE) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.LINK_OPERATION_EXPRESSION__TUPLE));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getLinkOperationExpressionAccess().getKindLinkOperationKindEnumRuleCall_1_0(), semanticObject.getKind());
- feeder.accept(grammarAccess.getLinkOperationExpressionAccess().getTupleLinkOperationTupleParserRuleCall_2_0(), semanticObject.getTuple());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (role=ID roleIndex=Expression? object=Expression)
- */
- protected void sequence_LinkOperationTupleElement(EObject context, LinkOperationTupleElement semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (linkOperationTupleElement+=LinkOperationTupleElement linkOperationTupleElement+=LinkOperationTupleElement*)
- */
- protected void sequence_LinkOperationTuple(EObject context, LinkOperationTuple semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (varName=ID type=QualifiedNameWithBinding multiplicityIndicator?='['? init=SequenceElement)
- */
- protected void sequence_LocalNameDeclarationStatement(EObject context, LocalNameDeclarationStatement semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * ((name=ID expression1=Expression expression2=Expression?) | (type=QualifiedNameWithBinding name=ID expression=Expression))
- */
- protected void sequence_LoopVariableDefinition(EObject context, LoopVariableDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (exp+=UnaryExpression ((op+='*' | op+='/' | op+='%') exp+=UnaryExpression)*)
- */
- protected void sequence_MultiplicativeExpression(EObject context, MultiplicativeExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (
- * (
- * ((prefixOp='++' | prefixOp='--') path=QualifiedNamePath? id=ID) |
- * (
- * path=QualifiedNamePath?
- * id=ID
- * (invocationCompletion=Tuple | sequenceConstructionCompletion=SequenceConstructionOrAccessCompletion | postfixOp='++' | postfixOp='--')?
- * )
- * )
- * suffix=SuffixExpression?
- * )
- */
- protected void sequence_NameExpression(EObject context, NameExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (formal=ID actual=QualifiedNameWithBinding)
- */
- protected void sequence_NamedTemplateBinding(EObject context, NamedTemplateBinding semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.NAMED_TEMPLATE_BINDING__FORMAL) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.NAMED_TEMPLATE_BINDING__FORMAL));
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.NAMED_TEMPLATE_BINDING__ACTUAL) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.NAMED_TEMPLATE_BINDING__ACTUAL));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getNamedTemplateBindingAccess().getFormalIDTerminalRuleCall_0_0(), semanticObject.getFormal());
- feeder.accept(grammarAccess.getNamedTemplateBindingAccess().getActualQualifiedNameWithBindingParserRuleCall_2_0(), semanticObject.getActual());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * statement+=DocumentedStatement+
- */
- protected void sequence_NonEmptyStatementSequence(EObject context, NonEmptyStatementSequence semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (condition=Expression block=Block)
- */
- protected void sequence_NonFinalClause(EObject context, NonFinalClause semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.NON_FINAL_CLAUSE__CONDITION) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.NON_FINAL_CLAUSE__CONDITION));
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.NON_FINAL_CLAUSE__BLOCK) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.NON_FINAL_CLAUSE__BLOCK));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getNonFinalClauseAccess().getConditionExpressionParserRuleCall_1_0(), semanticObject.getCondition());
- feeder.accept(grammarAccess.getNonFinalClauseAccess().getBlockBlockParserRuleCall_3_0(), semanticObject.getBlock());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (operationName=ID tuple=Tuple suffix=SuffixExpression?)
- */
- protected void sequence_OperationCallExpression(EObject context, OperationCallExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (expOrTypeCast=Expression (casted=NonLiteralValueSpecification | suffix=SuffixExpression)?)
- */
- protected void sequence_ParenthesizedExpression(EObject context, ParenthesizedExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * expression=SequenceConstructionExpression
- */
- protected void sequence_PartialSequenceConstructionCompletion(EObject context, PartialSequenceConstructionCompletion semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.PARTIAL_SEQUENCE_CONSTRUCTION_COMPLETION__EXPRESSION) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.PARTIAL_SEQUENCE_CONSTRUCTION_COMPLETION__EXPRESSION));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getPartialSequenceConstructionCompletionAccess().getExpressionSequenceConstructionExpressionParserRuleCall_1_0(), semanticObject.getExpression());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * prefix=ValueSpecification
- */
- protected void sequence_PrimaryExpression(EObject context, PrimaryExpression semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.PRIMARY_EXPRESSION__PREFIX) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.PRIMARY_EXPRESSION__PREFIX));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getPrimaryExpressionAccess().getPrefixValueSpecificationParserRuleCall_0(), semanticObject.getPrefix());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (propertyName=ID index=Expression? suffix=SuffixExpression?)
- */
- protected void sequence_PropertyCallExpression(EObject context, PropertyCallExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (qualifiedName+=QualifiedNameWithBinding qualifiedName+=QualifiedNameWithBinding*)
- */
- protected void sequence_QualifiedNameList(EObject context, QualifiedNameList semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * namespace+=UnqualifiedName+
- */
- protected void sequence_QualifiedNamePath(EObject context, QualifiedNamePath semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (id=ID binding=TemplateBinding? remaining=QualifiedNameWithBinding?)
- */
- protected void sequence_QualifiedNameWithBinding(EObject context, QualifiedNameWithBinding semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * {ReclassifyAllClause}
- */
- protected void sequence_ReclassifyAllClause(EObject context, ReclassifyAllClause semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (left=ShiftExpression ((op='<' | op='>' | op='<=' | op='>=') right=ShiftExpression)?)
- */
- protected void sequence_RelationalExpression(EObject context, RelationalExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * expression=Expression
- */
- protected void sequence_ReturnStatement(EObject context, ReturnStatement semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.RETURN_STATEMENT__EXPRESSION) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.RETURN_STATEMENT__EXPRESSION));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getReturnStatementAccess().getExpressionExpressionParserRuleCall_1_0(), semanticObject.getExpression());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * value=STRING
- */
- protected void sequence_STRING_LITERAL(EObject context, STRING_LITERAL semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.STRING_LITERAL__VALUE) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.STRING_LITERAL__VALUE));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getSTRING_LITERALAccess().getValueSTRINGTerminalRuleCall_0(), semanticObject.getValue());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (op=SelectOrRejectOperator name=ID expr=Expression suffix=SuffixExpression?)
- */
- protected void sequence_SelectOrRejectOperation(EObject context, SelectOrRejectOperation semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (sequenceElement+=SequenceElement (sequenceElement+=SequenceElement* | rangeUpper=Expression))
- */
- protected void sequence_SequenceConstructionExpression(EObject context, SequenceConstructionExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (
- * (multiplicityIndicator?='[' (accessCompletion=AccessCompletion | sequenceCompletion=PartialSequenceConstructionCompletion)) |
- * expression=SequenceConstructionExpression
- * )
- */
- protected void sequence_SequenceConstructionOrAccessCompletion(EObject context, SequenceConstructionOrAccessCompletion semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (operationName=QualifiedNameWithBinding tuple=Tuple suffix=SuffixExpression?)
- */
- protected void sequence_SequenceOperationExpression(EObject context, SequenceOperationExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (isOrdered?='ordered'? behavior=QualifiedNameWithBinding suffix=SuffixExpression?)
- */
- protected void sequence_SequenceReductionExpression(EObject context, SequenceReductionExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (conccurentClauses+=ConcurrentClauses conccurentClauses+=ConcurrentClauses*)
- */
- protected void sequence_SequentialClauses(EObject context, SequentialClauses semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (exp+=AdditiveExpression ((op='<<' | op='>>' | op='>>>') exp+=AdditiveExpression)?)
- */
- protected void sequence_ShiftExpression(EObject context, ShiftExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * {SimpleAcceptStatementCompletion}
- */
- protected void sequence_SimpleAcceptStatementCompletion(EObject context, SimpleAcceptStatementCompletion semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * statements+=DocumentedStatement+
- */
- protected void sequence_StatementSequence(EObject context, StatementSequence semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * {BreakStatement}
- */
- protected void sequence_Statement(EObject context, BreakStatement semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * {EmptyStatement}
- */
- protected void sequence_Statement(EObject context, EmptyStatement semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * {ClassExtentExpression}
- */
- protected void sequence_SuffixExpression(EObject context, ClassExtentExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (tuple=Tuple | (operationName=QualifiedNameWithBinding tuple=Tuple))
- */
- protected void sequence_SuperInvocationExpression(EObject context, SuperInvocationExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * _super=SuperInvocationExpression
- */
- protected void sequence_SuperInvocationStatement(EObject context, SuperInvocationStatement semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.SUPER_INVOCATION_STATEMENT__SUPER) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.SUPER_INVOCATION_STATEMENT__SUPER));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getSuperInvocationStatementAccess().get_superSuperInvocationExpressionParserRuleCall_0_0(), semanticObject.get_super());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * expression=Expression
- */
- protected void sequence_SwitchCase(EObject context, SwitchCase semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.SWITCH_CASE__EXPRESSION) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.SWITCH_CASE__EXPRESSION));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getSwitchCaseAccess().getExpressionExpressionParserRuleCall_1_0(), semanticObject.getExpression());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (switchCase+=SwitchCase switchCase+=SwitchCase* statementSequence=NonEmptyStatementSequence)
- */
- protected void sequence_SwitchClause(EObject context, SwitchClause semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * statementSequence=NonEmptyStatementSequence
- */
- protected void sequence_SwitchDefaultClause(EObject context, SwitchDefaultClause semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.SWITCH_DEFAULT_CLAUSE__STATEMENT_SEQUENCE) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.SWITCH_DEFAULT_CLAUSE__STATEMENT_SEQUENCE));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getSwitchDefaultClauseAccess().getStatementSequenceNonEmptyStatementSequenceParserRuleCall_2_0(), semanticObject.getStatementSequence());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (expression=Expression switchClause+=SwitchClause* defaultClause=SwitchDefaultClause?)
- */
- protected void sequence_SwitchStatement(EObject context, SwitchStatement semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (bindings+=NamedTemplateBinding bindings+=NamedTemplateBinding*)
- */
- protected void sequence_TemplateBinding(EObject context, TemplateBinding semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (expression+=Expression* assignExpression+=AssignmentCompletion* statements+=Statement* block=Block)
- */
- protected void sequence_Test(EObject context, Test semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (suffix=SuffixExpression?)
- */
- protected void sequence_ThisExpression(EObject context, ThisExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (_this=ThisExpression assignmentCompletion=AssignmentCompletion?)
- */
- protected void sequence_ThisInvocationStatement(EObject context, ThisInvocationStatement semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * argument=Expression
- */
- protected void sequence_TupleElement(EObject context, TupleElement semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.TUPLE_ELEMENT__ARGUMENT) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.TUPLE_ELEMENT__ARGUMENT));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getTupleElementAccess().getArgumentExpressionParserRuleCall_0(), semanticObject.getArgument());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * ((tupleElements+=TupleElement tupleElements+=TupleElement*)?)
- */
- protected void sequence_Tuple(EObject context, Tuple semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * value='*'
- */
- protected void sequence_UNLIMITED_LITERAL(EObject context, UNLIMITED_LITERAL semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.NUMBER_LITERAL__VALUE) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.NUMBER_LITERAL__VALUE));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getUNLIMITED_LITERALAccess().getValueAsteriskKeyword_0(), semanticObject.getValue());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * ((op='!' | op='-' | op='+' | op='$' | op='~')? exp=PrimaryExpression)
- */
- protected void sequence_UnaryExpression(EObject context, UnaryExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (name=ID templateBinding=TemplateBinding?)
- */
- protected void sequence_UnqualifiedName(EObject context, UnqualifiedName semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * {NullExpression}
- */
- protected void sequence_ValueSpecification(EObject context, NullExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (multiplicityIndicator?='['? variableName=ID initValue=AssignmentCompletion)
- */
- protected void sequence_VariableDeclarationCompletion(EObject context, VariableDeclarationCompletion semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (condition=Expression block=Block)
- */
- protected void sequence_WhileStatement(EObject context, WhileStatement semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.WHILE_STATEMENT__CONDITION) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.WHILE_STATEMENT__CONDITION));
- if(transientValues.isValueTransient(semanticObject, AlfPackage.Literals.WHILE_STATEMENT__BLOCK) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.Literals.WHILE_STATEMENT__BLOCK));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getWhileStatementAccess().getConditionExpressionParserRuleCall_2_0(), semanticObject.getCondition());
- feeder.accept(grammarAccess.getWhileStatementAccess().getBlockBlockParserRuleCall_4_0(), semanticObject.getBlock());
- feeder.finish();
- }
-}
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/serializer/AbstractAlfSyntacticSequencer.java b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/serializer/AbstractAlfSyntacticSequencer.java
deleted file mode 100644
index 23ce9974e86..00000000000
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/serializer/AbstractAlfSyntacticSequencer.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.uml.alf.serializer;
-
-import java.util.List;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.uml.alf.services.AlfGrammarAccess;
-import org.eclipse.xtext.IGrammarAccess;
-import org.eclipse.xtext.RuleCall;
-import org.eclipse.xtext.nodemodel.INode;
-import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias;
-import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition;
-import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer;
-
-import com.google.inject.Inject;
-
-@SuppressWarnings("restriction")
-public class AbstractAlfSyntacticSequencer extends AbstractSyntacticSequencer {
-
- protected AlfGrammarAccess grammarAccess;
-
- @Inject
- protected void init(IGrammarAccess access) {
- grammarAccess = (AlfGrammarAccess) access;
- }
-
- @Override
- protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) {
- return "";
- }
-
-
- @Override
- protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
- if (transition.getAmbiguousSyntaxes().isEmpty()) return;
- List<INode> transitionNodes = collectNodes(fromNode, toNode);
- for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
- List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
- acceptNodes(getLastNavigableState(), syntaxNodes);
- }
- }
-
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext/src-gen/org/eclipse/papyrus/uml/textedit/collaborationuse/xtext/UmlCollaborationUse.xmi b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext/src-gen/org/eclipse/papyrus/uml/textedit/collaborationuse/xtext/UmlCollaborationUse.xmi
deleted file mode 100644
index f0c245fea18..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext/src-gen/org/eclipse/papyrus/uml/textedit/collaborationuse/xtext/UmlCollaborationUse.xmi
+++ /dev/null
@@ -1,331 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:xtext="http://www.eclipse.org/2008/Xtext">
- <xtext:Grammar name="org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.UmlCollaborationUse" usedGrammars="/1">
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="uml">
- <ePackage href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
- </metamodelDeclarations>
- <metamodelDeclarations xsi:type="xtext:GeneratedMetamodel" name="umlCollaborationUse">
- <ePackage href="http://www.eclipse.org/papyrus/uml/textedit/collaborationuse/xtext/UmlCollaborationUse#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:ParserRule" name="CollaborationUseRule">
- <type metamodel="/0/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/collaborationuse/xtext/UmlCollaborationUse#//CollaborationUseRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="visibility" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.2"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="name" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/2/@rules.0"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=":"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Assignment" feature="type" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.1"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="&lt;Undefined>"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="TypeRule">
- <type metamodel="/0/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/collaborationuse/xtext/UmlCollaborationUse#//TypeRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="path" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="type" operator="=">
- <terminal xsi:type="xtext:CrossReference">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Collaboration"/>
- </type>
- <terminal xsi:type="xtext:RuleCall" rule="/2/@rules.0"/>
- </terminal>
- </elements>
- </alternatives>
- </rules>
- </xtext:Grammar>
- <xtext:Grammar name="org.eclipse.papyrus.uml.textedit.common.xtext.UmlCommon" usedGrammars="/2">
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="uml">
- <ePackage href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
- </metamodelDeclarations>
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="ecore">
- <ePackage href="http://www.eclipse.org/emf/2002/Ecore#/"/>
- </metamodelDeclarations>
- <metamodelDeclarations xsi:type="xtext:GeneratedMetamodel" name="umlCommon">
- <ePackage href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:ParserRule" name="QualifiedName">
- <type metamodel="/1/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//QualifiedName"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="path" operator="=">
- <terminal xsi:type="xtext:CrossReference">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Namespace"/>
- </type>
- <terminal xsi:type="xtext:RuleCall" rule="/2/@rules.0"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Keyword" value="::"/>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="remaining" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="TypeRule">
- <type metamodel="/1/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//TypeRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="path" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="type" operator="=">
- <terminal xsi:type="xtext:CrossReference">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Type"/>
- </type>
- <terminal xsi:type="xtext:RuleCall" rule="/2/@rules.0"/>
- </terminal>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="VisibilityKind">
- <type metamodel="/1/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//VisibilityKind"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//VisibilityKind/public"/>
- <literal value="+"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//VisibilityKind/private"/>
- <literal value="-"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//VisibilityKind/protected"/>
- <literal value="#"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//VisibilityKind/package"/>
- <literal value="~"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="MultiplicityRule">
- <type metamodel="/1/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//MultiplicityRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="["/>
- <elements xsi:type="xtext:Assignment" feature="bounds" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.4"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" value=".."/>
- <elements xsi:type="xtext:Assignment" feature="bounds" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.4"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="]"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="BoundSpecification">
- <type metamodel="/1/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//BoundSpecification"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" feature="value" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.5"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="UnlimitedLiteral">
- <type metamodel="/1/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:RuleCall" rule="/2/@rules.1"/>
- <elements xsi:type="xtext:Keyword" value="*"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="Direction">
- <type metamodel="/1/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//Direction"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//Direction/IN"/>
- <literal value="in"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//Direction/OUT"/>
- <literal value="out"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//Direction/INOUT"/>
- <literal value="inout"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//Direction/RETURN"/>
- <literal value="return"/>
- </elements>
- </alternatives>
- </rules>
- </xtext:Grammar>
- <xtext:Grammar name="org.eclipse.xtext.common.Terminals" definesHiddenTokens="true" hiddenTokens="/2/@rules.5 /2/@rules.3 /2/@rules.4">
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="ecore">
- <ePackage href="http://www.eclipse.org/emf/2002/Ecore#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:TerminalRule" name="ID">
- <type metamodel="/2/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="^"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- </elements>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="9"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="INT">
- <type metamodel="/2/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
- </type>
- <alternatives xsi:type="xtext:CharacterRange" cardinality="+">
- <left value="0"/>
- <right value="9"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="STRING">
- <type metamodel="/2/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="b"/>
- <elements xsi:type="xtext:Keyword" value="t"/>
- <elements xsi:type="xtext:Keyword" value="n"/>
- <elements xsi:type="xtext:Keyword" value="f"/>
- <elements xsi:type="xtext:Keyword" value="r"/>
- <elements xsi:type="xtext:Keyword" value="u"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Keyword" value="\"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- </terminal>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="b"/>
- <elements xsi:type="xtext:Keyword" value="t"/>
- <elements xsi:type="xtext:Keyword" value="n"/>
- <elements xsi:type="xtext:Keyword" value="f"/>
- <elements xsi:type="xtext:Keyword" value="r"/>
- <elements xsi:type="xtext:Keyword" value="u"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Keyword" value="\"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- </terminal>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="'"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ML_COMMENT">
- <type metamodel="/2/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="/*"/>
- <elements xsi:type="xtext:UntilToken">
- <terminal xsi:type="xtext:Keyword" value="*/"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="SL_COMMENT">
- <type metamodel="/2/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="//"/>
- <elements xsi:type="xtext:NegatedToken" cardinality="*">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- <elements xsi:type="xtext:Keyword" value="&#xD;"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="&#xD;"/>
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="WS">
- <type metamodel="/2/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives" cardinality="+">
- <elements xsi:type="xtext:Keyword" value=" "/>
- <elements xsi:type="xtext:Keyword" value="&#x9;"/>
- <elements xsi:type="xtext:Keyword" value="&#xD;"/>
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ANY_OTHER">
- <type metamodel="/2/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Wildcard"/>
- </rules>
- </xtext:Grammar>
-</xmi:XMI>
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext/src-gen/org/eclipse/papyrus/uml/textedit/collaborationuse/xtext/serializer/AbstractUmlCollaborationUseSemanticSequencer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext/src-gen/org/eclipse/papyrus/uml/textedit/collaborationuse/xtext/serializer/AbstractUmlCollaborationUseSemanticSequencer.java
deleted file mode 100644
index 80816af91be..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext/src-gen/org/eclipse/papyrus/uml/textedit/collaborationuse/xtext/serializer/AbstractUmlCollaborationUseSemanticSequencer.java
+++ /dev/null
@@ -1,137 +0,0 @@
-package org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.serializer;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.services.UmlCollaborationUseGrammarAccess;
-import org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.umlCollaborationUse.CollaborationUseRule;
-import org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.umlCollaborationUse.TypeRule;
-import org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.umlCollaborationUse.UmlCollaborationUsePackage;
-import org.eclipse.papyrus.uml.textedit.common.xtext.serializer.AbstractUmlCommonSemanticSequencer;
-import org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.BoundSpecification;
-import org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.MultiplicityRule;
-import org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.QualifiedName;
-import org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.UmlCommonPackage;
-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.AbstractSemanticSequencer;
-import org.eclipse.xtext.serializer.sequencer.GenericSequencer;
-import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer;
-import org.eclipse.xtext.serializer.sequencer.ITransientValueService;
-
-import com.google.inject.Inject;
-import com.google.inject.Provider;
-
-@SuppressWarnings("restriction")
-public class AbstractUmlCollaborationUseSemanticSequencer extends AbstractSemanticSequencer {
-
- @Inject
- protected UmlCollaborationUseGrammarAccess grammarAccess;
-
- @Inject
- protected ISemanticSequencerDiagnosticProvider diagnosticProvider;
-
- @Inject
- protected ITransientValueService transientValues;
-
- @Inject
- @GenericSequencer
- protected Provider<ISemanticSequencer> genericSequencerProvider;
-
- protected ISemanticSequencer genericSequencer;
-
- @Inject
- protected Provider<AbstractUmlCommonSemanticSequencer> superSequencerProvider;
-
- protected AbstractUmlCommonSemanticSequencer superSequencer;
-
- @Override
- public void init(ISemanticSequencer sequencer, ISemanticSequenceAcceptor sequenceAcceptor, Acceptor errorAcceptor) {
- super.init(sequencer, sequenceAcceptor, errorAcceptor);
- this.genericSequencer = genericSequencerProvider.get();
- this.genericSequencer.init(sequencer, sequenceAcceptor, errorAcceptor);
- this.superSequencer = superSequencerProvider.get();
- this.superSequencer.init(sequencer, sequenceAcceptor, errorAcceptor);
- }
-
- public void createSequence(EObject context, EObject semanticObject) {
- if(semanticObject.eClass().getEPackage() == UmlCollaborationUsePackage.eINSTANCE) switch(semanticObject.eClass().getClassifierID()) {
- case UmlCollaborationUsePackage.COLLABORATION_USE_RULE:
- if(context == grammarAccess.getCollaborationUseRuleRule()) {
- sequence_CollaborationUseRule(context, (CollaborationUseRule) semanticObject);
- return;
- }
- else break;
- case UmlCollaborationUsePackage.TYPE_RULE:
- if(context == grammarAccess.getTypeRuleRule()) {
- sequence_TypeRule(context, (TypeRule) semanticObject);
- return;
- }
- else break;
- }
- else if(semanticObject.eClass().getEPackage() == UmlCommonPackage.eINSTANCE) switch(semanticObject.eClass().getClassifierID()) {
- case UmlCommonPackage.BOUND_SPECIFICATION:
- if(context == grammarAccess.getBoundSpecificationRule()) {
- sequence_BoundSpecification(context, (BoundSpecification) semanticObject);
- return;
- }
- else break;
- case UmlCommonPackage.MULTIPLICITY_RULE:
- if(context == grammarAccess.getMultiplicityRuleRule()) {
- sequence_MultiplicityRule(context, (MultiplicityRule) semanticObject);
- return;
- }
- else break;
- case UmlCommonPackage.QUALIFIED_NAME:
- if(context == grammarAccess.getQualifiedNameRule()) {
- sequence_QualifiedName(context, (QualifiedName) semanticObject);
- return;
- }
- else break;
- }
- if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
- }
-
- /**
- * Constraint:
- * value=UnlimitedLiteral
- */
- protected void sequence_BoundSpecification(EObject context, BoundSpecification semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (visibility=VisibilityKind name=ID type=TypeRule?)
- */
- protected void sequence_CollaborationUseRule(EObject context, CollaborationUseRule semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (bounds+=BoundSpecification bounds+=BoundSpecification?)
- */
- protected void sequence_MultiplicityRule(EObject context, MultiplicityRule semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (path=[Namespace|ID] remaining=QualifiedName?)
- */
- protected void sequence_QualifiedName(EObject context, QualifiedName semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (path=QualifiedName? type=[Collaboration|ID])
- */
- protected void sequence_TypeRule(EObject context, TypeRule semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext/src-gen/org/eclipse/papyrus/uml/textedit/collaborationuse/xtext/serializer/AbstractUmlCollaborationUseSyntacticSequencer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext/src-gen/org/eclipse/papyrus/uml/textedit/collaborationuse/xtext/serializer/AbstractUmlCollaborationUseSyntacticSequencer.java
deleted file mode 100644
index 2c34680bffc..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext/src-gen/org/eclipse/papyrus/uml/textedit/collaborationuse/xtext/serializer/AbstractUmlCollaborationUseSyntacticSequencer.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.serializer;
-
-import java.util.List;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.services.UmlCollaborationUseGrammarAccess;
-import org.eclipse.xtext.IGrammarAccess;
-import org.eclipse.xtext.RuleCall;
-import org.eclipse.xtext.nodemodel.INode;
-import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias;
-import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition;
-import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer;
-
-import com.google.inject.Inject;
-
-@SuppressWarnings("restriction")
-public class AbstractUmlCollaborationUseSyntacticSequencer extends AbstractSyntacticSequencer {
-
- protected UmlCollaborationUseGrammarAccess grammarAccess;
-
- @Inject
- protected void init(IGrammarAccess access) {
- grammarAccess = (UmlCollaborationUseGrammarAccess) access;
- }
-
- @Override
- protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) {
- return "";
- }
-
-
- @Override
- protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
- if (transition.getAmbiguousSyntaxes().isEmpty()) return;
- List<INode> transitionNodes = collectNodes(fromNode, toNode);
- for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
- List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
- acceptNodes(getLastNavigableState(), syntaxNodes);
- }
- }
-
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/UmlCommon.xmi b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/UmlCommon.xmi
deleted file mode 100644
index 161785bd652..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/UmlCommon.xmi
+++ /dev/null
@@ -1,285 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:xtext="http://www.eclipse.org/2008/Xtext">
- <xtext:Grammar name="org.eclipse.papyrus.uml.textedit.common.xtext.UmlCommon" usedGrammars="/1">
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="uml">
- <ePackage href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
- </metamodelDeclarations>
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="ecore">
- <ePackage href="http://www.eclipse.org/emf/2002/Ecore#/"/>
- </metamodelDeclarations>
- <metamodelDeclarations xsi:type="xtext:GeneratedMetamodel" name="umlCommon">
- <ePackage href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:ParserRule" name="QualifiedName">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//QualifiedName"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="path" operator="=">
- <terminal xsi:type="xtext:CrossReference">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Namespace"/>
- </type>
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Keyword" value="::"/>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="remaining" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.0"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="TypeRule">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//TypeRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="path" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.0"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="type" operator="=">
- <terminal xsi:type="xtext:CrossReference">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Type"/>
- </type>
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </terminal>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="VisibilityKind">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//VisibilityKind"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//VisibilityKind/public"/>
- <literal value="+"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//VisibilityKind/private"/>
- <literal value="-"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//VisibilityKind/protected"/>
- <literal value="#"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//VisibilityKind/package"/>
- <literal value="~"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="MultiplicityRule">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//MultiplicityRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="["/>
- <elements xsi:type="xtext:Assignment" feature="bounds" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.4"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" value=".."/>
- <elements xsi:type="xtext:Assignment" feature="bounds" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.4"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="]"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="BoundSpecification">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//BoundSpecification"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" feature="value" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.5"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="UnlimitedLiteral">
- <type metamodel="/0/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.1"/>
- <elements xsi:type="xtext:Keyword" value="*"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="Direction">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//Direction"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//Direction/IN"/>
- <literal value="in"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//Direction/OUT"/>
- <literal value="out"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//Direction/INOUT"/>
- <literal value="inout"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//Direction/RETURN"/>
- <literal value="return"/>
- </elements>
- </alternatives>
- </rules>
- </xtext:Grammar>
- <xtext:Grammar name="org.eclipse.xtext.common.Terminals" definesHiddenTokens="true" hiddenTokens="/1/@rules.5 /1/@rules.3 /1/@rules.4">
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="ecore">
- <ePackage href="http://www.eclipse.org/emf/2002/Ecore#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:TerminalRule" name="ID">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="^"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- </elements>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="9"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="INT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
- </type>
- <alternatives xsi:type="xtext:CharacterRange" cardinality="+">
- <left value="0"/>
- <right value="9"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="STRING">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="b"/>
- <elements xsi:type="xtext:Keyword" value="t"/>
- <elements xsi:type="xtext:Keyword" value="n"/>
- <elements xsi:type="xtext:Keyword" value="f"/>
- <elements xsi:type="xtext:Keyword" value="r"/>
- <elements xsi:type="xtext:Keyword" value="u"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Keyword" value="\"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- </terminal>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="b"/>
- <elements xsi:type="xtext:Keyword" value="t"/>
- <elements xsi:type="xtext:Keyword" value="n"/>
- <elements xsi:type="xtext:Keyword" value="f"/>
- <elements xsi:type="xtext:Keyword" value="r"/>
- <elements xsi:type="xtext:Keyword" value="u"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Keyword" value="\"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- </terminal>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="'"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ML_COMMENT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="/*"/>
- <elements xsi:type="xtext:UntilToken">
- <terminal xsi:type="xtext:Keyword" value="*/"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="SL_COMMENT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="//"/>
- <elements xsi:type="xtext:NegatedToken" cardinality="*">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- <elements xsi:type="xtext:Keyword" value="&#xD;"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="&#xD;"/>
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="WS">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives" cardinality="+">
- <elements xsi:type="xtext:Keyword" value=" "/>
- <elements xsi:type="xtext:Keyword" value="&#x9;"/>
- <elements xsi:type="xtext:Keyword" value="&#xD;"/>
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ANY_OTHER">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Wildcard"/>
- </rules>
- </xtext:Grammar>
-</xmi:XMI>
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/serializer/AbstractUmlCommonSemanticSequencer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/serializer/AbstractUmlCommonSemanticSequencer.java
deleted file mode 100644
index cddd966d68f..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/serializer/AbstractUmlCommonSemanticSequencer.java
+++ /dev/null
@@ -1,121 +0,0 @@
-package org.eclipse.papyrus.uml.textedit.common.xtext.serializer;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.uml.textedit.common.xtext.services.UmlCommonGrammarAccess;
-import org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.BoundSpecification;
-import org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.MultiplicityRule;
-import org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.QualifiedName;
-import org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.TypeRule;
-import org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.UmlCommonPackage;
-import org.eclipse.xtext.serializer.acceptor.ISemanticSequenceAcceptor;
-import org.eclipse.xtext.serializer.acceptor.SequenceFeeder;
-import org.eclipse.xtext.serializer.diagnostic.ISemanticSequencerDiagnosticProvider;
-import org.eclipse.xtext.serializer.diagnostic.ISerializationDiagnostic.Acceptor;
-import org.eclipse.xtext.serializer.sequencer.AbstractSemanticSequencer;
-import org.eclipse.xtext.serializer.sequencer.GenericSequencer;
-import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider;
-import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer;
-import org.eclipse.xtext.serializer.sequencer.ITransientValueService;
-import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient;
-
-import com.google.inject.Inject;
-import com.google.inject.Provider;
-
-@SuppressWarnings("restriction")
-public class AbstractUmlCommonSemanticSequencer extends AbstractSemanticSequencer {
-
- @Inject
- protected UmlCommonGrammarAccess grammarAccess;
-
- @Inject
- protected ISemanticSequencerDiagnosticProvider diagnosticProvider;
-
- @Inject
- protected ITransientValueService transientValues;
-
- @Inject
- @GenericSequencer
- protected Provider<ISemanticSequencer> genericSequencerProvider;
-
- protected ISemanticSequencer genericSequencer;
-
-
- @Override
- public void init(ISemanticSequencer sequencer, ISemanticSequenceAcceptor sequenceAcceptor, Acceptor errorAcceptor) {
- super.init(sequencer, sequenceAcceptor, errorAcceptor);
- this.genericSequencer = genericSequencerProvider.get();
- this.genericSequencer.init(sequencer, sequenceAcceptor, errorAcceptor);
- }
-
- public void createSequence(EObject context, EObject semanticObject) {
- if(semanticObject.eClass().getEPackage() == UmlCommonPackage.eINSTANCE) switch(semanticObject.eClass().getClassifierID()) {
- case UmlCommonPackage.BOUND_SPECIFICATION:
- if(context == grammarAccess.getBoundSpecificationRule()) {
- sequence_BoundSpecification(context, (BoundSpecification) semanticObject);
- return;
- }
- else break;
- case UmlCommonPackage.MULTIPLICITY_RULE:
- if(context == grammarAccess.getMultiplicityRuleRule()) {
- sequence_MultiplicityRule(context, (MultiplicityRule) semanticObject);
- return;
- }
- else break;
- case UmlCommonPackage.QUALIFIED_NAME:
- if(context == grammarAccess.getQualifiedNameRule()) {
- sequence_QualifiedName(context, (QualifiedName) semanticObject);
- return;
- }
- else break;
- case UmlCommonPackage.TYPE_RULE:
- if(context == grammarAccess.getTypeRuleRule()) {
- sequence_TypeRule(context, (TypeRule) semanticObject);
- return;
- }
- else break;
- }
- if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
- }
-
- /**
- * Constraint:
- * value=UnlimitedLiteral
- */
- protected void sequence_BoundSpecification(EObject context, BoundSpecification semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, UmlCommonPackage.Literals.BOUND_SPECIFICATION__VALUE) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlCommonPackage.Literals.BOUND_SPECIFICATION__VALUE));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0(), semanticObject.getValue());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (bounds+=BoundSpecification bounds+=BoundSpecification?)
- */
- protected void sequence_MultiplicityRule(EObject context, MultiplicityRule semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (path=[Namespace|ID] remaining=QualifiedName?)
- */
- protected void sequence_QualifiedName(EObject context, QualifiedName semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (path=QualifiedName? type=[Type|ID])
- */
- protected void sequence_TypeRule(EObject context, TypeRule semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/serializer/AbstractUmlCommonSyntacticSequencer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/serializer/AbstractUmlCommonSyntacticSequencer.java
deleted file mode 100644
index d2c89d3409f..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/serializer/AbstractUmlCommonSyntacticSequencer.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package org.eclipse.papyrus.uml.textedit.common.xtext.serializer;
-
-import java.util.List;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.uml.textedit.common.xtext.services.UmlCommonGrammarAccess;
-import org.eclipse.xtext.IGrammarAccess;
-import org.eclipse.xtext.RuleCall;
-import org.eclipse.xtext.nodemodel.INode;
-import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias;
-import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition;
-import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer;
-
-import com.google.inject.Inject;
-
-@SuppressWarnings("restriction")
-public class AbstractUmlCommonSyntacticSequencer extends AbstractSyntacticSequencer {
-
- protected UmlCommonGrammarAccess grammarAccess;
-
- @Inject
- protected void init(IGrammarAccess access) {
- grammarAccess = (UmlCommonGrammarAccess) access;
- }
-
- @Override
- protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) {
- return "";
- }
-
-
- @Override
- protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
- if (transition.getAmbiguousSyntaxes().isEmpty()) return;
- List<INode> transitionNodes = collectNodes(fromNode, toNode);
- for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
- List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
- acceptNodes(getLastNavigableState(), syntaxNodes);
- }
- }
-
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/AbstractUMLConnectionPointReferenceProposalProvider.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/AbstractUMLConnectionPointReferenceProposalProvider.java
index bd665a9f621..014ad7ed920 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/AbstractUMLConnectionPointReferenceProposalProvider.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/AbstractUMLConnectionPointReferenceProposalProvider.java
@@ -9,12 +9,12 @@ import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor;
import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext;
/**
- * Represents a generated, default implementation of interface {@link IProposalProvider}.
+ * Represents a generated, default implementation of superclass {@link org.eclipse.papyrus.uml.alf.ui.contentassist.CommonProposalProvider}.
* Methods are dynamically dispatched on the first parameter, i.e., you can override them
* with a more concrete subtype.
*/
@SuppressWarnings("all")
-public class AbstractUMLConnectionPointReferenceProposalProvider extends org.eclipse.xtext.ui.editor.contentassist.AbstractJavaBasedContentProposalProvider {
+public class AbstractUMLConnectionPointReferenceProposalProvider extends org.eclipse.papyrus.uml.alf.ui.contentassist.CommonProposalProvider {
public void completeConnectionPointReferenceRule_Entry(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.tokens b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.tokens
index 04822df3d90..5e711e0d9d6 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.tokens
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.tokens
@@ -1,13 +1,14 @@
RULE_ID=4
RULE_STRING=6
T__12=12
-T__11=11
+T__14=14
T__13=13
-RULE_ANY_OTHER=10
-RULE_INT=5
-RULE_WS=9
+RULE_ANY_OTHER=11
+RULE_INT=9
+RULE_INTEGER_VALUE=5
+RULE_WS=10
RULE_SL_COMMENT=8
RULE_ML_COMMENT=7
-'exit'=13
-','=12
-'entry'=11
+'exit'=14
+','=13
+'entry'=12
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReferenceLexer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReferenceLexer.java
index 6b8ed60152b..4c3b049aaaa 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReferenceLexer.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReferenceLexer.java
@@ -15,11 +15,12 @@ public class InternalUMLConnectionPointReferenceLexer extends Lexer {
public static final int RULE_ID=4;
public static final int RULE_STRING=6;
public static final int T__12=12;
- public static final int T__11=11;
+ public static final int T__14=14;
public static final int T__13=13;
- public static final int RULE_ANY_OTHER=10;
- public static final int RULE_INT=5;
- public static final int RULE_WS=9;
+ public static final int RULE_ANY_OTHER=11;
+ public static final int RULE_INT=9;
+ public static final int RULE_INTEGER_VALUE=5;
+ public static final int RULE_WS=10;
public static final int RULE_SL_COMMENT=8;
public static final int EOF=-1;
public static final int RULE_ML_COMMENT=7;
@@ -37,10 +38,10 @@ public class InternalUMLConnectionPointReferenceLexer extends Lexer {
}
public String getGrammarFileName() { return "../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g"; }
- // $ANTLR start "T__11"
- public final void mT__11() throws RecognitionException {
+ // $ANTLR start "T__12"
+ public final void mT__12() throws RecognitionException {
try {
- int _type = T__11;
+ int _type = T__12;
int _channel = DEFAULT_TOKEN_CHANNEL;
// ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:11:7: ( 'entry' )
// ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:11:9: 'entry'
@@ -56,12 +57,12 @@ public class InternalUMLConnectionPointReferenceLexer extends Lexer {
finally {
}
}
- // $ANTLR end "T__11"
+ // $ANTLR end "T__12"
- // $ANTLR start "T__12"
- public final void mT__12() throws RecognitionException {
+ // $ANTLR start "T__13"
+ public final void mT__13() throws RecognitionException {
try {
- int _type = T__12;
+ int _type = T__13;
int _channel = DEFAULT_TOKEN_CHANNEL;
// ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:12:7: ( ',' )
// ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:12:9: ','
@@ -76,12 +77,12 @@ public class InternalUMLConnectionPointReferenceLexer extends Lexer {
finally {
}
}
- // $ANTLR end "T__12"
+ // $ANTLR end "T__13"
- // $ANTLR start "T__13"
- public final void mT__13() throws RecognitionException {
+ // $ANTLR start "T__14"
+ public final void mT__14() throws RecognitionException {
try {
- int _type = T__13;
+ int _type = T__14;
int _channel = DEFAULT_TOKEN_CHANNEL;
// ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:13:7: ( 'exit' )
// ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:13:9: 'exit'
@@ -97,200 +98,332 @@ public class InternalUMLConnectionPointReferenceLexer extends Lexer {
finally {
}
}
- // $ANTLR end "T__13"
+ // $ANTLR end "T__14"
- // $ANTLR start "RULE_ID"
- public final void mRULE_ID() throws RecognitionException {
+ // $ANTLR start "RULE_INTEGER_VALUE"
+ public final void mRULE_INTEGER_VALUE() throws RecognitionException {
try {
- int _type = RULE_ID;
+ int _type = RULE_INTEGER_VALUE;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:20: ( ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* ) )
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* )
{
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:11: ( '^' )?
- int alt1=2;
- int LA1_0 = input.LA(1);
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* )
+ int alt13=4;
+ int LA13_0 = input.LA(1);
+
+ if ( (LA13_0=='0') ) {
+ switch ( input.LA(2) ) {
+ case 'B':
+ case 'b':
+ {
+ alt13=2;
+ }
+ break;
+ case 'X':
+ case 'x':
+ {
+ alt13=3;
+ }
+ break;
+ case '0':
+ case '1':
+ case '2':
+ case '3':
+ case '4':
+ case '5':
+ case '6':
+ case '7':
+ case '_':
+ {
+ alt13=4;
+ }
+ break;
+ default:
+ alt13=1;}
- if ( (LA1_0=='^') ) {
- alt1=1;
}
- switch (alt1) {
+ else if ( ((LA13_0>='1' && LA13_0<='9')) ) {
+ alt13=1;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 13, 0, input);
+
+ throw nvae;
+ }
+ switch (alt13) {
case 1 :
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:11: '^'
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* )
{
- match('^');
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* )
+ int alt3=2;
+ int LA3_0 = input.LA(1);
+ if ( (LA3_0=='0') ) {
+ alt3=1;
}
- break;
+ else if ( ((LA3_0>='1' && LA3_0<='9')) ) {
+ alt3=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 3, 0, input);
- }
+ throw nvae;
+ }
+ switch (alt3) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:24: '0'
+ {
+ match('0');
- if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
- input.consume();
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:28: '1' .. '9' ( ( '_' )? '0' .. '9' )*
+ {
+ matchRange('1','9');
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:37: ( ( '_' )? '0' .. '9' )*
+ loop2:
+ do {
+ int alt2=2;
+ int LA2_0 = input.LA(1);
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
+ if ( ((LA2_0>='0' && LA2_0<='9')||LA2_0=='_') ) {
+ alt2=1;
+ }
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
- loop2:
- do {
- int alt2=2;
- int LA2_0 = input.LA(1);
- if ( ((LA2_0>='0' && LA2_0<='9')||(LA2_0>='A' && LA2_0<='Z')||LA2_0=='_'||(LA2_0>='a' && LA2_0<='z')) ) {
- alt2=1;
- }
+ switch (alt2) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:38: ( '_' )? '0' .. '9'
+ {
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:38: ( '_' )?
+ int alt1=2;
+ int LA1_0 = input.LA(1);
+ if ( (LA1_0=='_') ) {
+ alt1=1;
+ }
+ switch (alt1) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:38: '_'
+ {
+ match('_');
- switch (alt2) {
- case 1 :
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:
- {
- 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') ) {
- input.consume();
+ }
+ break;
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
+ }
+ matchRange('0','9');
- }
- break;
+ }
+ break;
- default :
- break loop2;
- }
- } while (true);
+ default :
+ break loop2;
+ }
+ } while (true);
- }
+ }
+ break;
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_ID"
+ }
- // $ANTLR start "RULE_INT"
- public final void mRULE_INT() throws RecognitionException {
- try {
- int _type = RULE_INT;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:506:10: ( ( '0' .. '9' )+ )
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:506:12: ( '0' .. '9' )+
- {
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:506:12: ( '0' .. '9' )+
- int cnt3=0;
- loop3:
- do {
- int alt3=2;
- int LA3_0 = input.LA(1);
- if ( ((LA3_0>='0' && LA3_0<='9')) ) {
- alt3=1;
- }
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:55: ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )*
+ {
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:55: ( '0b' | '0B' )
+ int alt4=2;
+ int LA4_0 = input.LA(1);
+ if ( (LA4_0=='0') ) {
+ int LA4_1 = input.LA(2);
- switch (alt3) {
- case 1 :
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:506:13: '0' .. '9'
- {
- matchRange('0','9');
+ if ( (LA4_1=='b') ) {
+ alt4=1;
+ }
+ else if ( (LA4_1=='B') ) {
+ alt4=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 4, 1, input);
- }
- break;
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 4, 0, input);
- default :
- if ( cnt3 >= 1 ) break loop3;
- EarlyExitException eee =
- new EarlyExitException(3, input);
- throw eee;
- }
- cnt3++;
- } while (true);
+ throw nvae;
+ }
+ switch (alt4) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:56: '0b'
+ {
+ match("0b");
- }
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:61: '0B'
+ {
+ match("0B");
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_INT"
- // $ANTLR start "RULE_STRING"
- public final void mRULE_STRING() throws RecognitionException {
- try {
- int _type = RULE_STRING;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:508:13: ( ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) )
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:508:15: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
- {
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:508:15: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
- int alt6=2;
- int LA6_0 = input.LA(1);
+ }
+ break;
- if ( (LA6_0=='\"') ) {
- alt6=1;
- }
- else if ( (LA6_0=='\'') ) {
- alt6=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 6, 0, input);
+ }
- throw nvae;
- }
- switch (alt6) {
- case 1 :
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:508:16: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
- {
- match('\"');
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:508:20: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
- loop4:
+ matchRange('0','1');
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:76: ( ( '_' )? '0' .. '1' )*
+ loop6:
do {
- int alt4=3;
- int LA4_0 = input.LA(1);
+ int alt6=2;
+ int LA6_0 = input.LA(1);
- if ( (LA4_0=='\\') ) {
- alt4=1;
- }
- else if ( ((LA4_0>='\u0000' && LA4_0<='!')||(LA4_0>='#' && LA4_0<='[')||(LA4_0>=']' && LA4_0<='\uFFFF')) ) {
- alt4=2;
+ if ( ((LA6_0>='0' && LA6_0<='1')||LA6_0=='_') ) {
+ alt6=1;
}
- switch (alt4) {
+ switch (alt6) {
case 1 :
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:508:21: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' )
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:77: ( '_' )? '0' .. '1'
{
- match('\\');
- if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||(input.LA(1)>='t' && input.LA(1)<='u') ) {
- input.consume();
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:77: ( '_' )?
+ int alt5=2;
+ int LA5_0 = input.LA(1);
+ if ( (LA5_0=='_') ) {
+ alt5=1;
}
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
+ switch (alt5) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:77: '_'
+ {
+ match('_');
+ }
+ break;
+
+ }
+
+ matchRange('0','1');
}
break;
- case 2 :
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:508:66: ~ ( ( '\\\\' | '\"' ) )
+
+ default :
+ break loop6;
+ }
+ } while (true);
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:93: ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )*
+ {
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:93: ( '0x' | '0X' )
+ int alt7=2;
+ int LA7_0 = input.LA(1);
+
+ if ( (LA7_0=='0') ) {
+ int LA7_1 = input.LA(2);
+
+ if ( (LA7_1=='x') ) {
+ alt7=1;
+ }
+ else if ( (LA7_1=='X') ) {
+ alt7=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 7, 1, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 7, 0, input);
+
+ throw nvae;
+ }
+ switch (alt7) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:94: '0x'
+ {
+ match("0x");
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:99: '0X'
+ {
+ match("0X");
+
+
+ }
+ break;
+
+ }
+
+ if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||(input.LA(1)>='a' && input.LA(1)<='f') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:134: ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )*
+ loop9:
+ do {
+ int alt9=2;
+ int LA9_0 = input.LA(1);
+
+ if ( ((LA9_0>='0' && LA9_0<='9')||(LA9_0>='A' && LA9_0<='F')||LA9_0=='_'||(LA9_0>='a' && LA9_0<='f')) ) {
+ alt9=1;
+ }
+
+
+ switch (alt9) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:135: ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )
{
- if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:135: ( '_' )?
+ int alt8=2;
+ int LA8_0 = input.LA(1);
+
+ if ( (LA8_0=='_') ) {
+ alt8=1;
+ }
+ switch (alt8) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:135: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||(input.LA(1)>='a' && input.LA(1)<='f') ) {
input.consume();
}
@@ -304,53 +437,149 @@ public class InternalUMLConnectionPointReferenceLexer extends Lexer {
break;
default :
- break loop4;
+ break loop9;
}
} while (true);
- match('\"');
}
break;
- case 2 :
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:508:86: '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\''
+ case 4 :
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:171: '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )*
{
- match('\'');
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:508:91: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )*
- loop5:
+ match('0');
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:175: ( '_' )?
+ int alt10=2;
+ int LA10_0 = input.LA(1);
+
+ if ( (LA10_0=='_') ) {
+ alt10=1;
+ }
+ switch (alt10) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:175: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ matchRange('0','7');
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:189: ( ( '_' )? '0' .. '7' )*
+ loop12:
do {
- int alt5=3;
- int LA5_0 = input.LA(1);
+ int alt12=2;
+ int LA12_0 = input.LA(1);
- if ( (LA5_0=='\\') ) {
- alt5=1;
- }
- else if ( ((LA5_0>='\u0000' && LA5_0<='&')||(LA5_0>='(' && LA5_0<='[')||(LA5_0>=']' && LA5_0<='\uFFFF')) ) {
- alt5=2;
+ if ( ((LA12_0>='0' && LA12_0<='7')||LA12_0=='_') ) {
+ alt12=1;
}
- switch (alt5) {
+ switch (alt12) {
case 1 :
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:508:92: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' )
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:190: ( '_' )? '0' .. '7'
{
- match('\\');
- if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||(input.LA(1)>='t' && input.LA(1)<='u') ) {
- input.consume();
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:190: ( '_' )?
+ int alt11=2;
+ int LA11_0 = input.LA(1);
+
+ if ( (LA11_0=='_') ) {
+ alt11=1;
+ }
+ switch (alt11) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:504:190: '_'
+ {
+ match('_');
+
+ }
+ break;
}
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
+ matchRange('0','7');
}
break;
- case 2 :
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:508:137: ~ ( ( '\\\\' | '\\'' ) )
+
+ default :
+ break loop12;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_INTEGER_VALUE"
+
+ // $ANTLR start "RULE_ID"
+ public final void mRULE_ID() throws RecognitionException {
+ try {
+ int _type = RULE_ID;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:506:9: ( ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' ) )
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:506:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:506:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' )
+ int alt16=2;
+ int LA16_0 = input.LA(1);
+
+ if ( ((LA16_0>='A' && LA16_0<='Z')||LA16_0=='_'||(LA16_0>='a' && LA16_0<='z')) ) {
+ alt16=1;
+ }
+ else if ( (LA16_0=='\'') ) {
+ alt16=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 16, 0, input);
+
+ throw nvae;
+ }
+ switch (alt16) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:506:12: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ {
+ if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:506:36: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ loop14:
+ do {
+ int alt14=2;
+ int LA14_0 = input.LA(1);
+
+ if ( ((LA14_0>='0' && LA14_0<='9')||(LA14_0>='A' && LA14_0<='Z')||LA14_0=='_'||(LA14_0>='a' && LA14_0<='z')) ) {
+ alt14=1;
+ }
+
+
+ switch (alt14) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:
{
- if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
+ 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') ) {
input.consume();
}
@@ -364,7 +593,42 @@ public class InternalUMLConnectionPointReferenceLexer extends Lexer {
break;
default :
- break loop5;
+ break loop14;
+ }
+ } while (true);
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:506:70: '\\'' ( options {greedy=false; } : . )* '\\''
+ {
+ match('\'');
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:506:75: ( options {greedy=false; } : . )*
+ loop15:
+ do {
+ int alt15=2;
+ int LA15_0 = input.LA(1);
+
+ if ( (LA15_0=='\'') ) {
+ alt15=2;
+ }
+ else if ( ((LA15_0>='\u0000' && LA15_0<='&')||(LA15_0>='(' && LA15_0<='\uFFFF')) ) {
+ alt15=1;
+ }
+
+
+ switch (alt15) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:506:103: .
+ {
+ matchAny();
+
+ }
+ break;
+
+ default :
+ break loop15;
}
} while (true);
@@ -384,6 +648,79 @@ public class InternalUMLConnectionPointReferenceLexer extends Lexer {
finally {
}
}
+ // $ANTLR end "RULE_ID"
+
+ // $ANTLR start "RULE_STRING"
+ public final void mRULE_STRING() throws RecognitionException {
+ try {
+ int _type = RULE_STRING;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:508:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' )
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:508:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
+ {
+ match('\"');
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:508:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
+ loop17:
+ do {
+ int alt17=3;
+ int LA17_0 = input.LA(1);
+
+ if ( (LA17_0=='\\') ) {
+ alt17=1;
+ }
+ else if ( ((LA17_0>='\u0000' && LA17_0<='!')||(LA17_0>='#' && LA17_0<='[')||(LA17_0>=']' && LA17_0<='\uFFFF')) ) {
+ alt17=2;
+ }
+
+
+ switch (alt17) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:508:20: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' )
+ {
+ match('\\');
+ if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||input.LA(1)=='t' ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:508:61: ~ ( ( '\\\\' | '\"' ) )
+ {
+ if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ break loop17;
+ }
+ } while (true);
+
+ match('\"');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
// $ANTLR end "RULE_STRING"
// $ANTLR start "RULE_ML_COMMENT"
@@ -391,37 +728,46 @@ public class InternalUMLConnectionPointReferenceLexer extends Lexer {
try {
int _type = RULE_ML_COMMENT;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:510:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:510:19: '/*' ( options {greedy=false; } : . )* '*/'
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:510:17: ( '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/' )
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:510:19: '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/'
{
match("/*");
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:510:24: ( options {greedy=false; } : . )*
- loop7:
+ if ( (input.LA(1)>='\u0000' && input.LA(1)<='?')||(input.LA(1)>='A' && input.LA(1)<='\uFFFF') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:510:31: ( options {greedy=false; } : . )*
+ loop18:
do {
- int alt7=2;
- int LA7_0 = input.LA(1);
+ int alt18=2;
+ int LA18_0 = input.LA(1);
- if ( (LA7_0=='*') ) {
- int LA7_1 = input.LA(2);
+ if ( (LA18_0=='*') ) {
+ int LA18_1 = input.LA(2);
- if ( (LA7_1=='/') ) {
- alt7=2;
+ if ( (LA18_1=='/') ) {
+ alt18=2;
}
- else if ( ((LA7_1>='\u0000' && LA7_1<='.')||(LA7_1>='0' && LA7_1<='\uFFFF')) ) {
- alt7=1;
+ else if ( ((LA18_1>='\u0000' && LA18_1<='.')||(LA18_1>='0' && LA18_1<='\uFFFF')) ) {
+ alt18=1;
}
}
- else if ( ((LA7_0>='\u0000' && LA7_0<=')')||(LA7_0>='+' && LA7_0<='\uFFFF')) ) {
- alt7=1;
+ else if ( ((LA18_0>='\u0000' && LA18_0<=')')||(LA18_0>='+' && LA18_0<='\uFFFF')) ) {
+ alt18=1;
}
- switch (alt7) {
+ switch (alt18) {
case 1 :
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:510:52: .
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:510:59: .
{
matchAny();
@@ -429,7 +775,7 @@ public class InternalUMLConnectionPointReferenceLexer extends Lexer {
break;
default :
- break loop7;
+ break loop18;
}
} while (true);
@@ -451,27 +797,27 @@ public class InternalUMLConnectionPointReferenceLexer extends Lexer {
try {
int _type = RULE_SL_COMMENT;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:512:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:512:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:512:17: ( '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )? )
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:512:19: '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )?
{
match("//");
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:512:24: (~ ( ( '\\n' | '\\r' ) ) )*
- loop8:
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:512:24: (~ ( ( '\\n' | '\\r' | '@' ) ) )*
+ loop19:
do {
- int alt8=2;
- int LA8_0 = input.LA(1);
+ int alt19=2;
+ int LA19_0 = input.LA(1);
- if ( ((LA8_0>='\u0000' && LA8_0<='\t')||(LA8_0>='\u000B' && LA8_0<='\f')||(LA8_0>='\u000E' && LA8_0<='\uFFFF')) ) {
- alt8=1;
+ if ( ((LA19_0>='\u0000' && LA19_0<='\t')||(LA19_0>='\u000B' && LA19_0<='\f')||(LA19_0>='\u000E' && LA19_0<='?')||(LA19_0>='A' && LA19_0<='\uFFFF')) ) {
+ alt19=1;
}
- switch (alt8) {
+ switch (alt19) {
case 1 :
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:512:24: ~ ( ( '\\n' | '\\r' ) )
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:512:24: ~ ( ( '\\n' | '\\r' | '@' ) )
{
- 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') ) {
+ if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='?')||(input.LA(1)>='A' && input.LA(1)<='\uFFFF') ) {
input.consume();
}
@@ -485,31 +831,31 @@ public class InternalUMLConnectionPointReferenceLexer extends Lexer {
break;
default :
- break loop8;
+ break loop19;
}
} while (true);
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:512:40: ( ( '\\r' )? '\\n' )?
- int alt10=2;
- int LA10_0 = input.LA(1);
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:512:44: ( ( '\\r' )? '\\n' )?
+ int alt21=2;
+ int LA21_0 = input.LA(1);
- if ( (LA10_0=='\n'||LA10_0=='\r') ) {
- alt10=1;
+ if ( (LA21_0=='\n'||LA21_0=='\r') ) {
+ alt21=1;
}
- switch (alt10) {
+ switch (alt21) {
case 1 :
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:512:41: ( '\\r' )? '\\n'
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:512:45: ( '\\r' )? '\\n'
{
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:512:41: ( '\\r' )?
- int alt9=2;
- int LA9_0 = input.LA(1);
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:512:45: ( '\\r' )?
+ int alt20=2;
+ int LA20_0 = input.LA(1);
- if ( (LA9_0=='\r') ) {
- alt9=1;
+ if ( (LA20_0=='\r') ) {
+ alt20=1;
}
- switch (alt9) {
+ switch (alt20) {
case 1 :
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:512:41: '\\r'
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:512:45: '\\r'
{
match('\r');
@@ -536,27 +882,76 @@ public class InternalUMLConnectionPointReferenceLexer extends Lexer {
}
// $ANTLR end "RULE_SL_COMMENT"
+ // $ANTLR start "RULE_INT"
+ public final void mRULE_INT() throws RecognitionException {
+ try {
+ int _type = RULE_INT;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:514:10: ( ( '0' .. '9' )+ )
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:514:12: ( '0' .. '9' )+
+ {
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:514:12: ( '0' .. '9' )+
+ int cnt22=0;
+ loop22:
+ do {
+ int alt22=2;
+ int LA22_0 = input.LA(1);
+
+ if ( ((LA22_0>='0' && LA22_0<='9')) ) {
+ alt22=1;
+ }
+
+
+ switch (alt22) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:514:13: '0' .. '9'
+ {
+ matchRange('0','9');
+
+ }
+ break;
+
+ default :
+ if ( cnt22 >= 1 ) break loop22;
+ EarlyExitException eee =
+ new EarlyExitException(22, input);
+ throw eee;
+ }
+ cnt22++;
+ } while (true);
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_INT"
+
// $ANTLR start "RULE_WS"
public final void mRULE_WS() throws RecognitionException {
try {
int _type = RULE_WS;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:514:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:514:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:516:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:516:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
{
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:514:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
- int cnt11=0;
- loop11:
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:516:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ int cnt23=0;
+ loop23:
do {
- int alt11=2;
- int LA11_0 = input.LA(1);
+ int alt23=2;
+ int LA23_0 = input.LA(1);
- if ( ((LA11_0>='\t' && LA11_0<='\n')||LA11_0=='\r'||LA11_0==' ') ) {
- alt11=1;
+ if ( ((LA23_0>='\t' && LA23_0<='\n')||LA23_0=='\r'||LA23_0==' ') ) {
+ alt23=1;
}
- switch (alt11) {
+ switch (alt23) {
case 1 :
// ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:
{
@@ -574,12 +969,12 @@ public class InternalUMLConnectionPointReferenceLexer extends Lexer {
break;
default :
- if ( cnt11 >= 1 ) break loop11;
+ if ( cnt23 >= 1 ) break loop23;
EarlyExitException eee =
- new EarlyExitException(11, input);
+ new EarlyExitException(23, input);
throw eee;
}
- cnt11++;
+ cnt23++;
} while (true);
@@ -598,8 +993,8 @@ public class InternalUMLConnectionPointReferenceLexer extends Lexer {
try {
int _type = RULE_ANY_OTHER;
int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:516:16: ( . )
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:516:18: .
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:518:16: ( . )
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:518:18: .
{
matchAny();
@@ -614,75 +1009,82 @@ public class InternalUMLConnectionPointReferenceLexer extends Lexer {
// $ANTLR end "RULE_ANY_OTHER"
public void mTokens() throws RecognitionException {
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:1:8: ( T__11 | T__12 | T__13 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER )
- int alt12=10;
- alt12 = dfa12.predict(input);
- switch (alt12) {
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:1:8: ( T__12 | T__13 | T__14 | RULE_INTEGER_VALUE | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_WS | RULE_ANY_OTHER )
+ int alt24=11;
+ alt24 = dfa24.predict(input);
+ switch (alt24) {
case 1 :
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:1:10: T__11
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:1:10: T__12
{
- mT__11();
+ mT__12();
}
break;
case 2 :
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:1:16: T__12
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:1:16: T__13
{
- mT__12();
+ mT__13();
}
break;
case 3 :
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:1:22: T__13
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:1:22: T__14
{
- mT__13();
+ mT__14();
}
break;
case 4 :
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:1:28: RULE_ID
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:1:28: RULE_INTEGER_VALUE
{
- mRULE_ID();
+ mRULE_INTEGER_VALUE();
}
break;
case 5 :
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:1:36: RULE_INT
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:1:47: RULE_ID
{
- mRULE_INT();
+ mRULE_ID();
}
break;
case 6 :
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:1:45: RULE_STRING
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:1:55: RULE_STRING
{
mRULE_STRING();
}
break;
case 7 :
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:1:57: RULE_ML_COMMENT
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:1:67: RULE_ML_COMMENT
{
mRULE_ML_COMMENT();
}
break;
case 8 :
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:1:73: RULE_SL_COMMENT
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:1:83: RULE_SL_COMMENT
{
mRULE_SL_COMMENT();
}
break;
case 9 :
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:1:89: RULE_WS
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:1:99: RULE_INT
{
- mRULE_WS();
+ mRULE_INT();
}
break;
case 10 :
- // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:1:97: RULE_ANY_OTHER
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:1:108: RULE_WS
+ {
+ mRULE_WS();
+
+ }
+ break;
+ case 11 :
+ // ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:1:116: RULE_ANY_OTHER
{
mRULE_ANY_OTHER();
@@ -694,140 +1096,145 @@ public class InternalUMLConnectionPointReferenceLexer extends Lexer {
}
- protected DFA12 dfa12 = new DFA12(this);
- static final String DFA12_eotS =
- "\1\uffff\1\15\1\uffff\1\12\2\uffff\3\12\2\uffff\2\15\7\uffff\3"+
- "\15\1\31\1\32\2\uffff";
- static final String DFA12_eofS =
- "\33\uffff";
- static final String DFA12_minS =
- "\1\0\1\156\1\uffff\1\101\2\uffff\2\0\1\52\2\uffff\1\164\1\151\7"+
- "\uffff\1\162\1\164\1\171\2\60\2\uffff";
- static final String DFA12_maxS =
- "\1\uffff\1\170\1\uffff\1\172\2\uffff\2\uffff\1\57\2\uffff\1\164"+
- "\1\151\7\uffff\1\162\1\164\1\171\2\172\2\uffff";
- static final String DFA12_acceptS =
- "\2\uffff\1\2\1\uffff\1\4\1\5\3\uffff\1\11\1\12\2\uffff\1\4\1\2"+
- "\1\5\1\6\1\7\1\10\1\11\5\uffff\1\3\1\1";
- static final String DFA12_specialS =
- "\1\2\5\uffff\1\0\1\1\23\uffff}>";
- static final String[] DFA12_transitionS = {
- "\11\12\2\11\2\12\1\11\22\12\1\11\1\12\1\6\4\12\1\7\4\12\1\2"+
- "\2\12\1\10\12\5\7\12\32\4\3\12\1\3\1\4\1\12\4\4\1\1\25\4\uff85"+
+ protected DFA24 dfa24 = new DFA24(this);
+ static final String DFA24_eotS =
+ "\1\uffff\1\15\1\uffff\2\17\1\uffff\3\12\2\uffff\2\15\3\uffff\1"+
+ "\17\1\uffff\1\17\4\uffff\2\15\1\17\1\15\1\35\1\36\2\uffff";
+ static final String DFA24_eofS =
+ "\37\uffff";
+ static final String DFA24_minS =
+ "\1\0\1\156\1\uffff\2\60\1\uffff\2\0\1\52\2\uffff\1\164\1\151\3"+
+ "\uffff\1\60\1\uffff\1\60\4\uffff\1\162\1\164\1\60\1\171\2\60\2\uffff";
+ static final String DFA24_maxS =
+ "\1\uffff\1\170\1\uffff\2\71\1\uffff\2\uffff\1\57\2\uffff\1\164"+
+ "\1\151\3\uffff\1\71\1\uffff\1\71\4\uffff\1\162\1\164\1\71\1\171"+
+ "\2\172\2\uffff";
+ static final String DFA24_acceptS =
+ "\2\uffff\1\2\2\uffff\1\5\3\uffff\1\12\1\13\2\uffff\1\5\1\2\1\4"+
+ "\1\uffff\1\11\1\uffff\1\6\1\7\1\10\1\12\6\uffff\1\3\1\1";
+ static final String DFA24_specialS =
+ "\1\0\5\uffff\1\1\1\2\27\uffff}>";
+ static final String[] DFA24_transitionS = {
+ "\11\12\2\11\2\12\1\11\22\12\1\11\1\12\1\7\4\12\1\6\4\12\1\2"+
+ "\2\12\1\10\1\3\11\4\7\12\32\5\4\12\1\5\1\12\4\5\1\1\25\5\uff85"+
"\12",
"\1\13\11\uffff\1\14",
"",
- "\32\15\4\uffff\1\15\1\uffff\32\15",
+ "\10\20\2\21",
+ "\12\22",
"",
+ "\0\15",
+ "\0\23",
+ "\1\24\4\uffff\1\25",
"",
- "\0\20",
- "\0\20",
- "\1\21\4\uffff\1\22",
"",
+ "\1\27",
+ "\1\30",
"",
- "\1\24",
- "\1\25",
"",
"",
+ "\10\31\2\21",
"",
+ "\12\22",
"",
"",
"",
"",
- "\1\26",
- "\1\27",
- "\1\30",
+ "\1\32",
+ "\1\33",
+ "\10\31\2\21",
+ "\1\34",
"\12\15\7\uffff\32\15\4\uffff\1\15\1\uffff\32\15",
"\12\15\7\uffff\32\15\4\uffff\1\15\1\uffff\32\15",
"",
""
};
- static final short[] DFA12_eot = DFA.unpackEncodedString(DFA12_eotS);
- static final short[] DFA12_eof = DFA.unpackEncodedString(DFA12_eofS);
- static final char[] DFA12_min = DFA.unpackEncodedStringToUnsignedChars(DFA12_minS);
- static final char[] DFA12_max = DFA.unpackEncodedStringToUnsignedChars(DFA12_maxS);
- static final short[] DFA12_accept = DFA.unpackEncodedString(DFA12_acceptS);
- static final short[] DFA12_special = DFA.unpackEncodedString(DFA12_specialS);
- static final short[][] DFA12_transition;
+ static final short[] DFA24_eot = DFA.unpackEncodedString(DFA24_eotS);
+ static final short[] DFA24_eof = DFA.unpackEncodedString(DFA24_eofS);
+ static final char[] DFA24_min = DFA.unpackEncodedStringToUnsignedChars(DFA24_minS);
+ static final char[] DFA24_max = DFA.unpackEncodedStringToUnsignedChars(DFA24_maxS);
+ static final short[] DFA24_accept = DFA.unpackEncodedString(DFA24_acceptS);
+ static final short[] DFA24_special = DFA.unpackEncodedString(DFA24_specialS);
+ static final short[][] DFA24_transition;
static {
- int numStates = DFA12_transitionS.length;
- DFA12_transition = new short[numStates][];
+ int numStates = DFA24_transitionS.length;
+ DFA24_transition = new short[numStates][];
for (int i=0; i<numStates; i++) {
- DFA12_transition[i] = DFA.unpackEncodedString(DFA12_transitionS[i]);
+ DFA24_transition[i] = DFA.unpackEncodedString(DFA24_transitionS[i]);
}
}
- class DFA12 extends DFA {
+ class DFA24 extends DFA {
- public DFA12(BaseRecognizer recognizer) {
+ public DFA24(BaseRecognizer recognizer) {
this.recognizer = recognizer;
- this.decisionNumber = 12;
- this.eot = DFA12_eot;
- this.eof = DFA12_eof;
- this.min = DFA12_min;
- this.max = DFA12_max;
- this.accept = DFA12_accept;
- this.special = DFA12_special;
- this.transition = DFA12_transition;
+ this.decisionNumber = 24;
+ this.eot = DFA24_eot;
+ this.eof = DFA24_eof;
+ this.min = DFA24_min;
+ this.max = DFA24_max;
+ this.accept = DFA24_accept;
+ this.special = DFA24_special;
+ this.transition = DFA24_transition;
}
public String getDescription() {
- return "1:1: Tokens : ( T__11 | T__12 | T__13 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER );";
+ return "1:1: Tokens : ( T__12 | T__13 | T__14 | RULE_INTEGER_VALUE | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_WS | RULE_ANY_OTHER );";
}
public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
IntStream input = _input;
int _s = s;
switch ( s ) {
case 0 :
- int LA12_6 = input.LA(1);
+ int LA24_0 = input.LA(1);
s = -1;
- if ( ((LA12_6>='\u0000' && LA12_6<='\uFFFF')) ) {s = 16;}
+ if ( (LA24_0=='e') ) {s = 1;}
- else s = 10;
+ else if ( (LA24_0==',') ) {s = 2;}
+
+ else if ( (LA24_0=='0') ) {s = 3;}
+
+ else if ( ((LA24_0>='1' && LA24_0<='9')) ) {s = 4;}
+
+ else if ( ((LA24_0>='A' && LA24_0<='Z')||LA24_0=='_'||(LA24_0>='a' && LA24_0<='d')||(LA24_0>='f' && LA24_0<='z')) ) {s = 5;}
+
+ else if ( (LA24_0=='\'') ) {s = 6;}
+
+ else if ( (LA24_0=='\"') ) {s = 7;}
+
+ else if ( (LA24_0=='/') ) {s = 8;}
+
+ else if ( ((LA24_0>='\t' && LA24_0<='\n')||LA24_0=='\r'||LA24_0==' ') ) {s = 9;}
+
+ else if ( ((LA24_0>='\u0000' && LA24_0<='\b')||(LA24_0>='\u000B' && LA24_0<='\f')||(LA24_0>='\u000E' && LA24_0<='\u001F')||LA24_0=='!'||(LA24_0>='#' && LA24_0<='&')||(LA24_0>='(' && LA24_0<='+')||(LA24_0>='-' && LA24_0<='.')||(LA24_0>=':' && LA24_0<='@')||(LA24_0>='[' && LA24_0<='^')||LA24_0=='`'||(LA24_0>='{' && LA24_0<='\uFFFF')) ) {s = 10;}
if ( s>=0 ) return s;
break;
case 1 :
- int LA12_7 = input.LA(1);
+ int LA24_6 = input.LA(1);
s = -1;
- if ( ((LA12_7>='\u0000' && LA12_7<='\uFFFF')) ) {s = 16;}
+ if ( ((LA24_6>='\u0000' && LA24_6<='\uFFFF')) ) {s = 13;}
else s = 10;
if ( s>=0 ) return s;
break;
case 2 :
- int LA12_0 = input.LA(1);
+ int LA24_7 = input.LA(1);
s = -1;
- if ( (LA12_0=='e') ) {s = 1;}
-
- else if ( (LA12_0==',') ) {s = 2;}
-
- else if ( (LA12_0=='^') ) {s = 3;}
-
- else if ( ((LA12_0>='A' && LA12_0<='Z')||LA12_0=='_'||(LA12_0>='a' && LA12_0<='d')||(LA12_0>='f' && LA12_0<='z')) ) {s = 4;}
+ if ( ((LA24_7>='\u0000' && LA24_7<='\uFFFF')) ) {s = 19;}
- else if ( ((LA12_0>='0' && LA12_0<='9')) ) {s = 5;}
-
- else if ( (LA12_0=='\"') ) {s = 6;}
-
- else if ( (LA12_0=='\'') ) {s = 7;}
-
- else if ( (LA12_0=='/') ) {s = 8;}
-
- else if ( ((LA12_0>='\t' && LA12_0<='\n')||LA12_0=='\r'||LA12_0==' ') ) {s = 9;}
-
- else if ( ((LA12_0>='\u0000' && LA12_0<='\b')||(LA12_0>='\u000B' && LA12_0<='\f')||(LA12_0>='\u000E' && LA12_0<='\u001F')||LA12_0=='!'||(LA12_0>='#' && LA12_0<='&')||(LA12_0>='(' && LA12_0<='+')||(LA12_0>='-' && LA12_0<='.')||(LA12_0>=':' && LA12_0<='@')||(LA12_0>='[' && LA12_0<=']')||LA12_0=='`'||(LA12_0>='{' && LA12_0<='\uFFFF')) ) {s = 10;}
+ else s = 10;
if ( s>=0 ) return s;
break;
}
NoViableAltException nvae =
- new NoViableAltException(getDescription(), 12, _s, input);
+ new NoViableAltException(getDescription(), 24, _s, input);
error(nvae);
throw nvae;
}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReferenceParser.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReferenceParser.java
index 17c8fc8e3a1..1593c296fed 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReferenceParser.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReferenceParser.java
@@ -22,16 +22,17 @@ import java.util.ArrayList;
@SuppressWarnings("all")
public class InternalUMLConnectionPointReferenceParser extends AbstractInternalContentAssistParser {
public static final String[] tokenNames = new String[] {
- "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_INT", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'entry'", "','", "'exit'"
+ "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_INTEGER_VALUE", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_INT", "RULE_WS", "RULE_ANY_OTHER", "'entry'", "','", "'exit'"
};
public static final int RULE_ID=4;
public static final int RULE_STRING=6;
public static final int T__12=12;
- public static final int T__11=11;
+ public static final int T__14=14;
public static final int T__13=13;
- public static final int RULE_ANY_OTHER=10;
- public static final int RULE_INT=5;
- public static final int RULE_WS=9;
+ public static final int RULE_ANY_OTHER=11;
+ public static final int RULE_INT=9;
+ public static final int RULE_INTEGER_VALUE=5;
+ public static final int RULE_WS=10;
public static final int RULE_SL_COMMENT=8;
public static final int EOF=-1;
public static final int RULE_ML_COMMENT=7;
@@ -121,7 +122,7 @@ public class InternalUMLConnectionPointReferenceParser extends AbstractInternalC
int alt1=2;
int LA1_0 = input.LA(1);
- if ( (LA1_0==11||LA1_0==13) ) {
+ if ( (LA1_0==12||LA1_0==14) ) {
alt1=1;
}
switch (alt1) {
@@ -172,10 +173,10 @@ public class InternalUMLConnectionPointReferenceParser extends AbstractInternalC
int alt2=2;
int LA2_0 = input.LA(1);
- if ( (LA2_0==11) ) {
+ if ( (LA2_0==12) ) {
alt2=1;
}
- else if ( (LA2_0==13) ) {
+ else if ( (LA2_0==14) ) {
alt2=2;
}
else {
@@ -304,7 +305,7 @@ public class InternalUMLConnectionPointReferenceParser extends AbstractInternalC
// ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:130:1: 'entry'
{
before(grammarAccess.getConnectionPointReferenceRuleAccess().getEntryKeyword_0_0());
- match(input,11,FOLLOW_11_in_rule__ConnectionPointReferenceRule__Group_0__0__Impl211);
+ match(input,12,FOLLOW_12_in_rule__ConnectionPointReferenceRule__Group_0__0__Impl211);
after(grammarAccess.getConnectionPointReferenceRuleAccess().getEntryKeyword_0_0());
}
@@ -465,7 +466,7 @@ public class InternalUMLConnectionPointReferenceParser extends AbstractInternalC
int alt3=2;
int LA3_0 = input.LA(1);
- if ( (LA3_0==12) ) {
+ if ( (LA3_0==13) ) {
alt3=1;
}
@@ -562,7 +563,7 @@ public class InternalUMLConnectionPointReferenceParser extends AbstractInternalC
// ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:224:1: ','
{
before(grammarAccess.getConnectionPointReferenceRuleAccess().getCommaKeyword_0_2_0());
- match(input,12,FOLLOW_12_in_rule__ConnectionPointReferenceRule__Group_0_2__0__Impl397);
+ match(input,13,FOLLOW_13_in_rule__ConnectionPointReferenceRule__Group_0_2__0__Impl397);
after(grammarAccess.getConnectionPointReferenceRuleAccess().getCommaKeyword_0_2_0());
}
@@ -717,7 +718,7 @@ public class InternalUMLConnectionPointReferenceParser extends AbstractInternalC
// ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:287:1: 'exit'
{
before(grammarAccess.getConnectionPointReferenceRuleAccess().getExitKeyword_1_0());
- match(input,13,FOLLOW_13_in_rule__ConnectionPointReferenceRule__Group_1__0__Impl520);
+ match(input,14,FOLLOW_14_in_rule__ConnectionPointReferenceRule__Group_1__0__Impl520);
after(grammarAccess.getConnectionPointReferenceRuleAccess().getExitKeyword_1_0());
}
@@ -878,7 +879,7 @@ public class InternalUMLConnectionPointReferenceParser extends AbstractInternalC
int alt4=2;
int LA4_0 = input.LA(1);
- if ( (LA4_0==12) ) {
+ if ( (LA4_0==13) ) {
alt4=1;
}
@@ -975,7 +976,7 @@ public class InternalUMLConnectionPointReferenceParser extends AbstractInternalC
// ../org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/ui/contentassist/antlr/internal/InternalUMLConnectionPointReference.g:381:1: ','
{
before(grammarAccess.getConnectionPointReferenceRuleAccess().getCommaKeyword_1_2_0());
- match(input,12,FOLLOW_12_in_rule__ConnectionPointReferenceRule__Group_1_2__0__Impl706);
+ match(input,13,FOLLOW_13_in_rule__ConnectionPointReferenceRule__Group_1_2__0__Impl706);
after(grammarAccess.getConnectionPointReferenceRuleAccess().getCommaKeyword_1_2_0());
}
@@ -1269,28 +1270,28 @@ public class InternalUMLConnectionPointReferenceParser extends AbstractInternalC
public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__Group_1__0_in_rule__ConnectionPointReferenceRule__Alternatives149 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__Group_0__0__Impl_in_rule__ConnectionPointReferenceRule__Group_0__0180 = new BitSet(new long[]{0x0000000000000010L});
public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__Group_0__1_in_rule__ConnectionPointReferenceRule__Group_0__0183 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_11_in_rule__ConnectionPointReferenceRule__Group_0__0__Impl211 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__Group_0__1__Impl_in_rule__ConnectionPointReferenceRule__Group_0__1242 = new BitSet(new long[]{0x0000000000001000L});
+ public static final BitSet FOLLOW_12_in_rule__ConnectionPointReferenceRule__Group_0__0__Impl211 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__Group_0__1__Impl_in_rule__ConnectionPointReferenceRule__Group_0__1242 = new BitSet(new long[]{0x0000000000002000L});
public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__Group_0__2_in_rule__ConnectionPointReferenceRule__Group_0__1245 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__EntryAssignment_0_1_in_rule__ConnectionPointReferenceRule__Group_0__1__Impl272 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__Group_0__2__Impl_in_rule__ConnectionPointReferenceRule__Group_0__2302 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__Group_0_2__0_in_rule__ConnectionPointReferenceRule__Group_0__2__Impl329 = new BitSet(new long[]{0x0000000000001002L});
+ public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__Group_0_2__0_in_rule__ConnectionPointReferenceRule__Group_0__2__Impl329 = new BitSet(new long[]{0x0000000000002002L});
public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__Group_0_2__0__Impl_in_rule__ConnectionPointReferenceRule__Group_0_2__0366 = new BitSet(new long[]{0x0000000000000010L});
public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__Group_0_2__1_in_rule__ConnectionPointReferenceRule__Group_0_2__0369 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_12_in_rule__ConnectionPointReferenceRule__Group_0_2__0__Impl397 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_13_in_rule__ConnectionPointReferenceRule__Group_0_2__0__Impl397 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__Group_0_2__1__Impl_in_rule__ConnectionPointReferenceRule__Group_0_2__1428 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__EntryAssignment_0_2_1_in_rule__ConnectionPointReferenceRule__Group_0_2__1__Impl455 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__Group_1__0__Impl_in_rule__ConnectionPointReferenceRule__Group_1__0489 = new BitSet(new long[]{0x0000000000000010L});
public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__Group_1__1_in_rule__ConnectionPointReferenceRule__Group_1__0492 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_13_in_rule__ConnectionPointReferenceRule__Group_1__0__Impl520 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__Group_1__1__Impl_in_rule__ConnectionPointReferenceRule__Group_1__1551 = new BitSet(new long[]{0x0000000000001000L});
+ public static final BitSet FOLLOW_14_in_rule__ConnectionPointReferenceRule__Group_1__0__Impl520 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__Group_1__1__Impl_in_rule__ConnectionPointReferenceRule__Group_1__1551 = new BitSet(new long[]{0x0000000000002000L});
public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__Group_1__2_in_rule__ConnectionPointReferenceRule__Group_1__1554 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__ExitAssignment_1_1_in_rule__ConnectionPointReferenceRule__Group_1__1__Impl581 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__Group_1__2__Impl_in_rule__ConnectionPointReferenceRule__Group_1__2611 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__Group_1_2__0_in_rule__ConnectionPointReferenceRule__Group_1__2__Impl638 = new BitSet(new long[]{0x0000000000001002L});
+ public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__Group_1_2__0_in_rule__ConnectionPointReferenceRule__Group_1__2__Impl638 = new BitSet(new long[]{0x0000000000002002L});
public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__Group_1_2__0__Impl_in_rule__ConnectionPointReferenceRule__Group_1_2__0675 = new BitSet(new long[]{0x0000000000000010L});
public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__Group_1_2__1_in_rule__ConnectionPointReferenceRule__Group_1_2__0678 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_12_in_rule__ConnectionPointReferenceRule__Group_1_2__0__Impl706 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_13_in_rule__ConnectionPointReferenceRule__Group_1_2__0__Impl706 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__Group_1_2__1__Impl_in_rule__ConnectionPointReferenceRule__Group_1_2__1737 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_rule__ConnectionPointReferenceRule__ExitAssignment_1_2_1_in_rule__ConnectionPointReferenceRule__Group_1_2__1__Impl764 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_RULE_ID_in_rule__ConnectionPointReferenceRule__EntryAssignment_0_1807 = new BitSet(new long[]{0x0000000000000002L});
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/UMLConnectionPointReference.xmi b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/UMLConnectionPointReference.xmi
deleted file mode 100644
index 7556af6dd5b..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/UMLConnectionPointReference.xmi
+++ /dev/null
@@ -1,215 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:xtext="http://www.eclipse.org/2008/Xtext">
- <xtext:Grammar name="org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.UMLConnectionPointReference" usedGrammars="/1">
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="uml">
- <ePackage href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
- </metamodelDeclarations>
- <metamodelDeclarations xsi:type="xtext:GeneratedMetamodel" name="uMLConnectionPointReference">
- <ePackage href="http://www.eclipse.org/papyrus/uml/textedit/connectionpointreference/xtext/UMLConnectionPointReference#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:ParserRule" name="ConnectionPointReferenceRule">
- <type metamodel="/0/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/connectionpointreference/xtext/UMLConnectionPointReference#//ConnectionPointReferenceRule"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives" cardinality="?">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="entry"/>
- <elements xsi:type="xtext:Assignment" feature="entry" operator="+=">
- <terminal xsi:type="xtext:CrossReference">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Pseudostate"/>
- </type>
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value=","/>
- <elements xsi:type="xtext:Assignment" feature="entry" operator="+=">
- <terminal xsi:type="xtext:CrossReference">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Pseudostate"/>
- </type>
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </terminal>
- </elements>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="exit"/>
- <elements xsi:type="xtext:Assignment" feature="exit" operator="+=">
- <terminal xsi:type="xtext:CrossReference">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Pseudostate"/>
- </type>
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value=","/>
- <elements xsi:type="xtext:Assignment" feature="exit" operator="+=">
- <terminal xsi:type="xtext:CrossReference">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Pseudostate"/>
- </type>
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </terminal>
- </elements>
- </elements>
- </elements>
- </alternatives>
- </rules>
- </xtext:Grammar>
- <xtext:Grammar name="org.eclipse.xtext.common.Terminals" definesHiddenTokens="true" hiddenTokens="/1/@rules.5 /1/@rules.3 /1/@rules.4">
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="ecore">
- <ePackage href="http://www.eclipse.org/emf/2002/Ecore#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:TerminalRule" name="ID">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="^"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- </elements>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="9"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="INT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
- </type>
- <alternatives xsi:type="xtext:CharacterRange" cardinality="+">
- <left value="0"/>
- <right value="9"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="STRING">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="b"/>
- <elements xsi:type="xtext:Keyword" value="t"/>
- <elements xsi:type="xtext:Keyword" value="n"/>
- <elements xsi:type="xtext:Keyword" value="f"/>
- <elements xsi:type="xtext:Keyword" value="r"/>
- <elements xsi:type="xtext:Keyword" value="u"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Keyword" value="\"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- </terminal>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="b"/>
- <elements xsi:type="xtext:Keyword" value="t"/>
- <elements xsi:type="xtext:Keyword" value="n"/>
- <elements xsi:type="xtext:Keyword" value="f"/>
- <elements xsi:type="xtext:Keyword" value="r"/>
- <elements xsi:type="xtext:Keyword" value="u"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Keyword" value="\"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- </terminal>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="'"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ML_COMMENT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="/*"/>
- <elements xsi:type="xtext:UntilToken">
- <terminal xsi:type="xtext:Keyword" value="*/"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="SL_COMMENT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="//"/>
- <elements xsi:type="xtext:NegatedToken" cardinality="*">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- <elements xsi:type="xtext:Keyword" value="&#xD;"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="&#xD;"/>
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="WS">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives" cardinality="+">
- <elements xsi:type="xtext:Keyword" value=" "/>
- <elements xsi:type="xtext:Keyword" value="&#x9;"/>
- <elements xsi:type="xtext:Keyword" value="&#xD;"/>
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ANY_OTHER">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Wildcard"/>
- </rules>
- </xtext:Grammar>
-</xmi:XMI>
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/serializer/AbstractUMLConnectionPointReferenceSemanticSequencer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/serializer/AbstractUMLConnectionPointReferenceSemanticSequencer.java
deleted file mode 100644
index aab5209e42f..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/serializer/AbstractUMLConnectionPointReferenceSemanticSequencer.java
+++ /dev/null
@@ -1,63 +0,0 @@
-package org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.serializer;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.services.UMLConnectionPointReferenceGrammarAccess;
-import org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.uMLConnectionPointReference.ConnectionPointReferenceRule;
-import org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.uMLConnectionPointReference.UMLConnectionPointReferencePackage;
-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.AbstractSemanticSequencer;
-import org.eclipse.xtext.serializer.sequencer.GenericSequencer;
-import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer;
-import org.eclipse.xtext.serializer.sequencer.ITransientValueService;
-
-import com.google.inject.Inject;
-import com.google.inject.Provider;
-
-@SuppressWarnings("restriction")
-public class AbstractUMLConnectionPointReferenceSemanticSequencer extends AbstractSemanticSequencer {
-
- @Inject
- protected UMLConnectionPointReferenceGrammarAccess grammarAccess;
-
- @Inject
- protected ISemanticSequencerDiagnosticProvider diagnosticProvider;
-
- @Inject
- protected ITransientValueService transientValues;
-
- @Inject
- @GenericSequencer
- protected Provider<ISemanticSequencer> genericSequencerProvider;
-
- protected ISemanticSequencer genericSequencer;
-
-
- @Override
- public void init(ISemanticSequencer sequencer, ISemanticSequenceAcceptor sequenceAcceptor, Acceptor errorAcceptor) {
- super.init(sequencer, sequenceAcceptor, errorAcceptor);
- this.genericSequencer = genericSequencerProvider.get();
- this.genericSequencer.init(sequencer, sequenceAcceptor, errorAcceptor);
- }
-
- public void createSequence(EObject context, EObject semanticObject) {
- if(semanticObject.eClass().getEPackage() == UMLConnectionPointReferencePackage.eINSTANCE) switch(semanticObject.eClass().getClassifierID()) {
- case UMLConnectionPointReferencePackage.CONNECTION_POINT_REFERENCE_RULE:
- if(context == grammarAccess.getConnectionPointReferenceRuleRule()) {
- sequence_ConnectionPointReferenceRule(context, (ConnectionPointReferenceRule) semanticObject);
- return;
- }
- else break;
- }
- if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
- }
-
- /**
- * Constraint:
- * ((entry+=[Pseudostate|ID] entry+=[Pseudostate|ID]*) | (exit+=[Pseudostate|ID] exit+=[Pseudostate|ID]*))?
- */
- protected void sequence_ConnectionPointReferenceRule(EObject context, ConnectionPointReferenceRule semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/serializer/AbstractUMLConnectionPointReferenceSyntacticSequencer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/serializer/AbstractUMLConnectionPointReferenceSyntacticSequencer.java
deleted file mode 100644
index 2265d0a981f..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/serializer/AbstractUMLConnectionPointReferenceSyntacticSequencer.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.serializer;
-
-import java.util.List;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.services.UMLConnectionPointReferenceGrammarAccess;
-import org.eclipse.xtext.IGrammarAccess;
-import org.eclipse.xtext.RuleCall;
-import org.eclipse.xtext.nodemodel.INode;
-import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias;
-import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition;
-import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer;
-
-import com.google.inject.Inject;
-
-@SuppressWarnings("restriction")
-public class AbstractUMLConnectionPointReferenceSyntacticSequencer extends AbstractSyntacticSequencer {
-
- protected UMLConnectionPointReferenceGrammarAccess grammarAccess;
-
- @Inject
- protected void init(IGrammarAccess access) {
- grammarAccess = (UMLConnectionPointReferenceGrammarAccess) access;
- }
-
- @Override
- protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) {
- return "";
- }
-
-
- @Override
- protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
- if (transition.getAmbiguousSyntaxes().isEmpty()) return;
- List<INode> transitionNodes = collectNodes(fromNode, toNode);
- for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
- List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
- acceptNodes(getLastNavigableState(), syntaxNodes);
- }
- }
-
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/uMLConnectionPointReference/impl/UMLConnectionPointReferencePackageImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/uMLConnectionPointReference/impl/UMLConnectionPointReferencePackageImpl.java
index e801e65a13f..35503857fef 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/uMLConnectionPointReference/impl/UMLConnectionPointReferencePackageImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext/src-gen/org/eclipse/papyrus/uml/textedit/connectionpointreference/xtext/uMLConnectionPointReference/impl/UMLConnectionPointReferencePackageImpl.java
@@ -5,205 +5,201 @@ package org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.uMLConne
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
+
import org.eclipse.emf.ecore.impl.EPackageImpl;
+
import org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.uMLConnectionPointReference.ConnectionPointReferenceRule;
import org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.uMLConnectionPointReference.UMLConnectionPointReferenceFactory;
import org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.uMLConnectionPointReference.UMLConnectionPointReferencePackage;
+
import org.eclipse.uml2.uml.UMLPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model <b>Package</b>.
* <!-- end-user-doc -->
- *
* @generated
*/
-public class UMLConnectionPointReferencePackageImpl extends EPackageImpl implements UMLConnectionPointReferencePackage {
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass connectionPointReferenceRuleEClass = null;
-
- /**
- * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the
- * package
- * package URI value.
- * <p>
- * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also performs initialization of the
- * package, or returns the registered package, if one already exists. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see org.eclipse.emf.ecore.EPackage.Registry
- * @see org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.uMLConnectionPointReference.UMLConnectionPointReferencePackage#eNS_URI
- * @see #init()
- * @generated
- */
- private UMLConnectionPointReferencePackageImpl() {
- super(eNS_URI, UMLConnectionPointReferenceFactory.eINSTANCE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
- *
- * <p>
- * This method is used to initialize {@link UMLConnectionPointReferencePackage#eINSTANCE} when that field is accessed. Clients should not invoke
- * it directly. Instead, they should simply access that field to obtain the package. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #eNS_URI
- * @see #createPackageContents()
- * @see #initializePackageContents()
- * @generated
- */
- public static UMLConnectionPointReferencePackage init() {
- if(isInited) {
- return (UMLConnectionPointReferencePackage)EPackage.Registry.INSTANCE.getEPackage(UMLConnectionPointReferencePackage.eNS_URI);
- }
-
- // Obtain or create and register package
- UMLConnectionPointReferencePackageImpl theUMLConnectionPointReferencePackage = (UMLConnectionPointReferencePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof UMLConnectionPointReferencePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new UMLConnectionPointReferencePackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- UMLPackage.eINSTANCE.eClass();
-
- // Create package meta-data objects
- theUMLConnectionPointReferencePackage.createPackageContents();
-
- // Initialize created meta-data
- theUMLConnectionPointReferencePackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theUMLConnectionPointReferencePackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(UMLConnectionPointReferencePackage.eNS_URI, theUMLConnectionPointReferencePackage);
- return theUMLConnectionPointReferencePackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getConnectionPointReferenceRule() {
- return connectionPointReferenceRuleEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getConnectionPointReferenceRule_Entry() {
- return (EReference)connectionPointReferenceRuleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getConnectionPointReferenceRule_Exit() {
- return (EReference)connectionPointReferenceRuleEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public UMLConnectionPointReferenceFactory getUMLConnectionPointReferenceFactory() {
- return (UMLConnectionPointReferenceFactory)getEFactoryInstance();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * Creates the meta-model objects for the package. This method is
- * guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void createPackageContents() {
- if(isCreated) {
- return;
- }
- isCreated = true;
-
- // Create classes and their features
- connectionPointReferenceRuleEClass = createEClass(CONNECTION_POINT_REFERENCE_RULE);
- createEReference(connectionPointReferenceRuleEClass, CONNECTION_POINT_REFERENCE_RULE__ENTRY);
- createEReference(connectionPointReferenceRuleEClass, CONNECTION_POINT_REFERENCE_RULE__EXIT);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * Complete the initialization of the package and its meta-model. This
- * method is guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void initializePackageContents() {
- if(isInitialized) {
- return;
- }
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // Obtain other dependent packages
- UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
-
- // Initialize classes and features; add operations and parameters
- initEClass(connectionPointReferenceRuleEClass, ConnectionPointReferenceRule.class, "ConnectionPointReferenceRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getConnectionPointReferenceRule_Entry(), theUMLPackage.getPseudostate(), null, "entry", null, 0, -1, ConnectionPointReferenceRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getConnectionPointReferenceRule_Exit(), theUMLPackage.getPseudostate(), null, "exit", null, 0, -1, ConnectionPointReferenceRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- // Create resource
- createResource(eNS_URI);
- }
+public class UMLConnectionPointReferencePackageImpl extends EPackageImpl implements UMLConnectionPointReferencePackage
+{
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass connectionPointReferenceRuleEClass = null;
+
+ /**
+ * Creates an instance of the model <b>Package</b>, registered with
+ * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * package URI value.
+ * <p>Note: the correct way to create the package is via the static
+ * factory method {@link #init init()}, which also performs
+ * initialization of the package, or returns the registered package,
+ * if one already exists.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.uMLConnectionPointReference.UMLConnectionPointReferencePackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private UMLConnectionPointReferencePackageImpl()
+ {
+ super(eNS_URI, UMLConnectionPointReferenceFactory.eINSTANCE);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
+ *
+ * <p>This method is used to initialize {@link UMLConnectionPointReferencePackage#eINSTANCE} when that field is accessed.
+ * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #eNS_URI
+ * @see #createPackageContents()
+ * @see #initializePackageContents()
+ * @generated
+ */
+ public static UMLConnectionPointReferencePackage init()
+ {
+ if (isInited) return (UMLConnectionPointReferencePackage)EPackage.Registry.INSTANCE.getEPackage(UMLConnectionPointReferencePackage.eNS_URI);
+
+ // Obtain or create and register package
+ UMLConnectionPointReferencePackageImpl theUMLConnectionPointReferencePackage = (UMLConnectionPointReferencePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof UMLConnectionPointReferencePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new UMLConnectionPointReferencePackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ UMLPackage.eINSTANCE.eClass();
+
+ // Create package meta-data objects
+ theUMLConnectionPointReferencePackage.createPackageContents();
+
+ // Initialize created meta-data
+ theUMLConnectionPointReferencePackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theUMLConnectionPointReferencePackage.freeze();
+
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(UMLConnectionPointReferencePackage.eNS_URI, theUMLConnectionPointReferencePackage);
+ return theUMLConnectionPointReferencePackage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getConnectionPointReferenceRule()
+ {
+ return connectionPointReferenceRuleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getConnectionPointReferenceRule_Entry()
+ {
+ return (EReference)connectionPointReferenceRuleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getConnectionPointReferenceRule_Exit()
+ {
+ return (EReference)connectionPointReferenceRuleEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public UMLConnectionPointReferenceFactory getUMLConnectionPointReferenceFactory()
+ {
+ return (UMLConnectionPointReferenceFactory)getEFactoryInstance();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is
+ * guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void createPackageContents()
+ {
+ if (isCreated) return;
+ isCreated = true;
+
+ // Create classes and their features
+ connectionPointReferenceRuleEClass = createEClass(CONNECTION_POINT_REFERENCE_RULE);
+ createEReference(connectionPointReferenceRuleEClass, CONNECTION_POINT_REFERENCE_RULE__ENTRY);
+ createEReference(connectionPointReferenceRuleEClass, CONNECTION_POINT_REFERENCE_RULE__EXIT);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This
+ * method is guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void initializePackageContents()
+ {
+ if (isInitialized) return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Obtain other dependent packages
+ UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(connectionPointReferenceRuleEClass, ConnectionPointReferenceRule.class, "ConnectionPointReferenceRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getConnectionPointReferenceRule_Entry(), theUMLPackage.getPseudostate(), null, "entry", null, 0, -1, ConnectionPointReferenceRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getConnectionPointReferenceRule_Exit(), theUMLPackage.getPseudostate(), null, "exit", null, 0, -1, ConnectionPointReferenceRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ // Create resource
+ createResource(eNS_URI);
+ }
} //UMLConnectionPointReferencePackageImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext/src-gen/org/eclipse/papyrus/uml/textedit/message/xtext/UmlMessage.xmi b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext/src-gen/org/eclipse/papyrus/uml/textedit/message/xtext/UmlMessage.xmi
deleted file mode 100644
index 02a6c5e8edc..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext/src-gen/org/eclipse/papyrus/uml/textedit/message/xtext/UmlMessage.xmi
+++ /dev/null
@@ -1,256 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:xtext="http://www.eclipse.org/2008/Xtext">
- <xtext:Grammar name="org.eclipse.papyrus.uml.textedit.message.xtext.UmlMessage" usedGrammars="/1">
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="uml">
- <ePackage href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
- </metamodelDeclarations>
- <metamodelDeclarations xsi:type="xtext:GeneratedMetamodel" name="umlMessage">
- <ePackage href="http://www.eclipse.org/papyrus/uml/textedit/message/xtext/UmlMessage#/"/>
- </metamodelDeclarations>
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="ecore">
- <ePackage href="http://www.eclipse.org/emf/2002/Ecore#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:ParserRule" name="MessageRule">
- <type metamodel="/0/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/message/xtext/UmlMessage#//MessageRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="sequenceTerm" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.1"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value="."/>
- <elements xsi:type="xtext:Assignment" feature="sequenceTerm" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.1"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value=":"/>
- <elements xsi:type="xtext:Assignment" feature="name" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.2"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SequenceTermRule">
- <type metamodel="/0/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/message/xtext/UmlMessage#//SequenceTermRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="sequencialOrder" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.1"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="sequenceName" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="recurrence" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.3"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="nameRule">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- <elements xsi:type="xtext:Keyword" value="-"/>
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="9"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Keyword" value=")"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="RecurrenceRule">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="*"/>
- <elements xsi:type="xtext:Keyword" value="["/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.2"/>
- <elements xsi:type="xtext:Keyword" value="]"/>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="["/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.2"/>
- <elements xsi:type="xtext:Keyword" value="]"/>
- </elements>
- </alternatives>
- </rules>
- </xtext:Grammar>
- <xtext:Grammar name="org.eclipse.xtext.common.Terminals" definesHiddenTokens="true" hiddenTokens="/1/@rules.5 /1/@rules.3 /1/@rules.4">
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="ecore">
- <ePackage href="http://www.eclipse.org/emf/2002/Ecore#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:TerminalRule" name="ID">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="^"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- </elements>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="9"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="INT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
- </type>
- <alternatives xsi:type="xtext:CharacterRange" cardinality="+">
- <left value="0"/>
- <right value="9"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="STRING">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="b"/>
- <elements xsi:type="xtext:Keyword" value="t"/>
- <elements xsi:type="xtext:Keyword" value="n"/>
- <elements xsi:type="xtext:Keyword" value="f"/>
- <elements xsi:type="xtext:Keyword" value="r"/>
- <elements xsi:type="xtext:Keyword" value="u"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Keyword" value="\"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- </terminal>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="b"/>
- <elements xsi:type="xtext:Keyword" value="t"/>
- <elements xsi:type="xtext:Keyword" value="n"/>
- <elements xsi:type="xtext:Keyword" value="f"/>
- <elements xsi:type="xtext:Keyword" value="r"/>
- <elements xsi:type="xtext:Keyword" value="u"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Keyword" value="\"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- </terminal>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="'"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ML_COMMENT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="/*"/>
- <elements xsi:type="xtext:UntilToken">
- <terminal xsi:type="xtext:Keyword" value="*/"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="SL_COMMENT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="//"/>
- <elements xsi:type="xtext:NegatedToken" cardinality="*">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- <elements xsi:type="xtext:Keyword" value="&#xD;"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="&#xD;"/>
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="WS">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives" cardinality="+">
- <elements xsi:type="xtext:Keyword" value=" "/>
- <elements xsi:type="xtext:Keyword" value="&#x9;"/>
- <elements xsi:type="xtext:Keyword" value="&#xD;"/>
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ANY_OTHER">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Wildcard"/>
- </rules>
- </xtext:Grammar>
-</xmi:XMI>
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext/src-gen/org/eclipse/papyrus/uml/textedit/message/xtext/serializer/AbstractUmlMessageSemanticSequencer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext/src-gen/org/eclipse/papyrus/uml/textedit/message/xtext/serializer/AbstractUmlMessageSemanticSequencer.java
deleted file mode 100644
index 505f14c9037..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext/src-gen/org/eclipse/papyrus/uml/textedit/message/xtext/serializer/AbstractUmlMessageSemanticSequencer.java
+++ /dev/null
@@ -1,92 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2012 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.uml.textedit.message.xtext.serializer;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.uml.textedit.message.xtext.services.UmlMessageGrammarAccess;
-import org.eclipse.papyrus.uml.textedit.message.xtext.umlMessage.MessageRule;
-import org.eclipse.papyrus.uml.textedit.message.xtext.umlMessage.SequenceTermRule;
-import org.eclipse.papyrus.uml.textedit.message.xtext.umlMessage.UmlMessagePackage;
-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.AbstractSemanticSequencer;
-import org.eclipse.xtext.serializer.sequencer.GenericSequencer;
-import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer;
-import org.eclipse.xtext.serializer.sequencer.ITransientValueService;
-
-import com.google.inject.Inject;
-import com.google.inject.Provider;
-
-@SuppressWarnings("restriction")
-public class AbstractUmlMessageSemanticSequencer extends AbstractSemanticSequencer {
-
- @Inject
- protected UmlMessageGrammarAccess grammarAccess;
-
- @Inject
- protected ISemanticSequencerDiagnosticProvider diagnosticProvider;
-
- @Inject
- protected ITransientValueService transientValues;
-
- @Inject
- @GenericSequencer
- protected Provider<ISemanticSequencer> genericSequencerProvider;
-
- protected ISemanticSequencer genericSequencer;
-
-
- @Override
- public void init(ISemanticSequencer sequencer, ISemanticSequenceAcceptor sequenceAcceptor, Acceptor errorAcceptor) {
- super.init(sequencer, sequenceAcceptor, errorAcceptor);
- this.genericSequencer = genericSequencerProvider.get();
- this.genericSequencer.init(sequencer, sequenceAcceptor, errorAcceptor);
- }
-
- public void createSequence(EObject context, EObject semanticObject) {
- if(semanticObject.eClass().getEPackage() == UmlMessagePackage.eINSTANCE) switch(semanticObject.eClass().getClassifierID()) {
- case UmlMessagePackage.MESSAGE_RULE:
- if(context == grammarAccess.getMessageRuleRule()) {
- sequence_MessageRule(context, (MessageRule) semanticObject);
- return;
- }
- else break;
- case UmlMessagePackage.SEQUENCE_TERM_RULE:
- if(context == grammarAccess.getSequenceTermRuleRule()) {
- sequence_SequenceTermRule(context, (SequenceTermRule) semanticObject);
- return;
- }
- else break;
- }
- if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
- }
-
- /**
- * Constraint:
- * (sequenceTerm+=SequenceTermRule sequenceTerm+=SequenceTermRule* name=nameRule)
- */
- protected void sequence_MessageRule(EObject context, MessageRule semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (sequencialOrder=INT sequenceName=ID? recurrence=RecurrenceRule?)
- */
- protected void sequence_SequenceTermRule(EObject context, SequenceTermRule semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext/src-gen/org/eclipse/papyrus/uml/textedit/message/xtext/serializer/AbstractUmlMessageSyntacticSequencer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext/src-gen/org/eclipse/papyrus/uml/textedit/message/xtext/serializer/AbstractUmlMessageSyntacticSequencer.java
deleted file mode 100644
index 7f8090cab7f..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext/src-gen/org/eclipse/papyrus/uml/textedit/message/xtext/serializer/AbstractUmlMessageSyntacticSequencer.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2012 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.uml.textedit.message.xtext.serializer;
-
-import java.util.List;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.uml.textedit.message.xtext.services.UmlMessageGrammarAccess;
-import org.eclipse.xtext.IGrammarAccess;
-import org.eclipse.xtext.RuleCall;
-import org.eclipse.xtext.nodemodel.INode;
-import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias;
-import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition;
-import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer;
-
-import com.google.inject.Inject;
-
-@SuppressWarnings("restriction")
-public class AbstractUmlMessageSyntacticSequencer extends AbstractSyntacticSequencer {
-
- protected UmlMessageGrammarAccess grammarAccess;
-
- @Inject
- protected void init(IGrammarAccess access) {
- grammarAccess = (UmlMessageGrammarAccess) access;
- }
-
- @Override
- protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) {
- return "";
- }
-
-
- @Override
- protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
- if (transition.getAmbiguousSyntaxes().isEmpty()) return;
- List<INode> transitionNodes = collectNodes(fromNode, toNode);
- for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
- List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
- acceptNodes(getLastNavigableState(), syntaxNodes);
- }
- }
-
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext/src-gen/org/eclipse/papyrus/uml/textedit/parameter/xtext/UmlParameter.xmi b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext/src-gen/org/eclipse/papyrus/uml/textedit/parameter/xtext/UmlParameter.xmi
deleted file mode 100644
index d173acf791c..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext/src-gen/org/eclipse/papyrus/uml/textedit/parameter/xtext/UmlParameter.xmi
+++ /dev/null
@@ -1,413 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:xtext="http://www.eclipse.org/2008/Xtext">
- <xtext:Grammar name="org.eclipse.papyrus.uml.textedit.parameter.xtext.UmlParameter" usedGrammars="/1">
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="uml">
- <ePackage href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
- </metamodelDeclarations>
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="common">
- <ePackage href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#/"/>
- </metamodelDeclarations>
- <metamodelDeclarations xsi:type="xtext:GeneratedMetamodel" name="umlParameter">
- <ePackage href="http://www.eclipse.org/papyrus/uml/textedit/parameter/xtext/UmlParameter#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:ParserRule" name="ParameterRule">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/parameter/xtext/UmlParameter#//ParameterRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="visibility" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.2"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="direction" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.6"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="name" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/2/@rules.0"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=":"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Assignment" feature="type" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.1"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="&lt;Undefined>"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="multiplicity" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.3"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="modifiers" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.1"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="effect" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.5"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ModifiersRule">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/parameter/xtext/UmlParameter#//ModifiersRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="{"/>
- <elements xsi:type="xtext:Assignment" feature="values" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.2"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value=","/>
- <elements xsi:type="xtext:Assignment" feature="values" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.2"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="}"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ModifierSpecification">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/parameter/xtext/UmlParameter#//ModifierSpecification"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" feature="value" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.3"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="ModifierKind">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/uml/textedit/parameter/xtext/UmlParameter#//ModifierKind"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/parameter/xtext/UmlParameter#//ModifierKind/EXCEPTION"/>
- <literal value="exception"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/parameter/xtext/UmlParameter#//ModifierKind/STREAM"/>
- <literal value="stream"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/parameter/xtext/UmlParameter#//ModifierKind/ORDERED"/>
- <literal value="ordered"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/parameter/xtext/UmlParameter#//ModifierKind/UNIQUE"/>
- <literal value="unique"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="EffectKind">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/uml/textedit/parameter/xtext/UmlParameter#//EffectKind"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/parameter/xtext/UmlParameter#//EffectKind/CREATE"/>
- <literal value="create"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/parameter/xtext/UmlParameter#//EffectKind/READ"/>
- <literal value="read"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/parameter/xtext/UmlParameter#//EffectKind/UPDATE"/>
- <literal value="update"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/parameter/xtext/UmlParameter#//EffectKind/DELETE"/>
- <literal value="delete"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="EffectRule">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/parameter/xtext/UmlParameter#//EffectRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="{"/>
- <elements xsi:type="xtext:Keyword" value="effect: "/>
- <elements xsi:type="xtext:Assignment" feature="effectKind" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.4"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="}"/>
- </alternatives>
- </rules>
- </xtext:Grammar>
- <xtext:Grammar name="org.eclipse.papyrus.uml.textedit.common.xtext.UmlCommon" usedGrammars="/2">
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="uml">
- <ePackage href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
- </metamodelDeclarations>
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="ecore">
- <ePackage href="http://www.eclipse.org/emf/2002/Ecore#/"/>
- </metamodelDeclarations>
- <metamodelDeclarations xsi:type="xtext:GeneratedMetamodel" name="umlCommon">
- <ePackage href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:ParserRule" name="QualifiedName">
- <type metamodel="/1/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//QualifiedName"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="path" operator="=">
- <terminal xsi:type="xtext:CrossReference">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Namespace"/>
- </type>
- <terminal xsi:type="xtext:RuleCall" rule="/2/@rules.0"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Keyword" value="::"/>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="remaining" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="TypeRule">
- <type metamodel="/1/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//TypeRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="path" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="type" operator="=">
- <terminal xsi:type="xtext:CrossReference">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Type"/>
- </type>
- <terminal xsi:type="xtext:RuleCall" rule="/2/@rules.0"/>
- </terminal>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="VisibilityKind">
- <type metamodel="/1/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//VisibilityKind"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//VisibilityKind/public"/>
- <literal value="+"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//VisibilityKind/private"/>
- <literal value="-"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//VisibilityKind/protected"/>
- <literal value="#"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//VisibilityKind/package"/>
- <literal value="~"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="MultiplicityRule">
- <type metamodel="/1/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//MultiplicityRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="["/>
- <elements xsi:type="xtext:Assignment" feature="bounds" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.4"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" value=".."/>
- <elements xsi:type="xtext:Assignment" feature="bounds" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.4"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="]"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="BoundSpecification">
- <type metamodel="/1/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//BoundSpecification"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" feature="value" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.5"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="UnlimitedLiteral">
- <type metamodel="/1/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:RuleCall" rule="/2/@rules.1"/>
- <elements xsi:type="xtext:Keyword" value="*"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="Direction">
- <type metamodel="/1/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//Direction"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//Direction/IN"/>
- <literal value="in"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//Direction/OUT"/>
- <literal value="out"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//Direction/INOUT"/>
- <literal value="inout"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon#//Direction/RETURN"/>
- <literal value="return"/>
- </elements>
- </alternatives>
- </rules>
- </xtext:Grammar>
- <xtext:Grammar name="org.eclipse.xtext.common.Terminals" definesHiddenTokens="true" hiddenTokens="/2/@rules.5 /2/@rules.3 /2/@rules.4">
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="ecore">
- <ePackage href="http://www.eclipse.org/emf/2002/Ecore#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:TerminalRule" name="ID">
- <type metamodel="/2/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="^"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- </elements>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="9"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="INT">
- <type metamodel="/2/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
- </type>
- <alternatives xsi:type="xtext:CharacterRange" cardinality="+">
- <left value="0"/>
- <right value="9"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="STRING">
- <type metamodel="/2/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="b"/>
- <elements xsi:type="xtext:Keyword" value="t"/>
- <elements xsi:type="xtext:Keyword" value="n"/>
- <elements xsi:type="xtext:Keyword" value="f"/>
- <elements xsi:type="xtext:Keyword" value="r"/>
- <elements xsi:type="xtext:Keyword" value="u"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Keyword" value="\"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- </terminal>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="b"/>
- <elements xsi:type="xtext:Keyword" value="t"/>
- <elements xsi:type="xtext:Keyword" value="n"/>
- <elements xsi:type="xtext:Keyword" value="f"/>
- <elements xsi:type="xtext:Keyword" value="r"/>
- <elements xsi:type="xtext:Keyword" value="u"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Keyword" value="\"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- </terminal>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="'"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ML_COMMENT">
- <type metamodel="/2/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="/*"/>
- <elements xsi:type="xtext:UntilToken">
- <terminal xsi:type="xtext:Keyword" value="*/"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="SL_COMMENT">
- <type metamodel="/2/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="//"/>
- <elements xsi:type="xtext:NegatedToken" cardinality="*">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- <elements xsi:type="xtext:Keyword" value="&#xD;"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="&#xD;"/>
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="WS">
- <type metamodel="/2/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives" cardinality="+">
- <elements xsi:type="xtext:Keyword" value=" "/>
- <elements xsi:type="xtext:Keyword" value="&#x9;"/>
- <elements xsi:type="xtext:Keyword" value="&#xD;"/>
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ANY_OTHER">
- <type metamodel="/2/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Wildcard"/>
- </rules>
- </xtext:Grammar>
-</xmi:XMI>
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext/src-gen/org/eclipse/papyrus/uml/textedit/parameter/xtext/serializer/AbstractUmlParameterSemanticSequencer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext/src-gen/org/eclipse/papyrus/uml/textedit/parameter/xtext/serializer/AbstractUmlParameterSemanticSequencer.java
deleted file mode 100644
index 2aafedb3c56..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext/src-gen/org/eclipse/papyrus/uml/textedit/parameter/xtext/serializer/AbstractUmlParameterSemanticSequencer.java
+++ /dev/null
@@ -1,210 +0,0 @@
-package org.eclipse.papyrus.uml.textedit.parameter.xtext.serializer;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.uml.textedit.common.xtext.serializer.AbstractUmlCommonSemanticSequencer;
-import org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.BoundSpecification;
-import org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.MultiplicityRule;
-import org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.QualifiedName;
-import org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.TypeRule;
-import org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.UmlCommonPackage;
-import org.eclipse.papyrus.uml.textedit.parameter.xtext.services.UmlParameterGrammarAccess;
-import org.eclipse.papyrus.uml.textedit.parameter.xtext.umlParameter.EffectRule;
-import org.eclipse.papyrus.uml.textedit.parameter.xtext.umlParameter.ModifierSpecification;
-import org.eclipse.papyrus.uml.textedit.parameter.xtext.umlParameter.ModifiersRule;
-import org.eclipse.papyrus.uml.textedit.parameter.xtext.umlParameter.ParameterRule;
-import org.eclipse.papyrus.uml.textedit.parameter.xtext.umlParameter.UmlParameterPackage;
-import org.eclipse.xtext.serializer.acceptor.ISemanticSequenceAcceptor;
-import org.eclipse.xtext.serializer.acceptor.SequenceFeeder;
-import org.eclipse.xtext.serializer.diagnostic.ISemanticSequencerDiagnosticProvider;
-import org.eclipse.xtext.serializer.diagnostic.ISerializationDiagnostic.Acceptor;
-import org.eclipse.xtext.serializer.sequencer.AbstractSemanticSequencer;
-import org.eclipse.xtext.serializer.sequencer.GenericSequencer;
-import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider;
-import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer;
-import org.eclipse.xtext.serializer.sequencer.ITransientValueService;
-import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient;
-
-import com.google.inject.Inject;
-import com.google.inject.Provider;
-
-@SuppressWarnings("restriction")
-public class AbstractUmlParameterSemanticSequencer extends AbstractSemanticSequencer {
-
- @Inject
- protected UmlParameterGrammarAccess grammarAccess;
-
- @Inject
- protected ISemanticSequencerDiagnosticProvider diagnosticProvider;
-
- @Inject
- protected ITransientValueService transientValues;
-
- @Inject
- @GenericSequencer
- protected Provider<ISemanticSequencer> genericSequencerProvider;
-
- protected ISemanticSequencer genericSequencer;
-
- @Inject
- protected Provider<AbstractUmlCommonSemanticSequencer> superSequencerProvider;
-
- protected AbstractUmlCommonSemanticSequencer superSequencer;
-
- @Override
- public void init(ISemanticSequencer sequencer, ISemanticSequenceAcceptor sequenceAcceptor, Acceptor errorAcceptor) {
- super.init(sequencer, sequenceAcceptor, errorAcceptor);
- this.genericSequencer = genericSequencerProvider.get();
- this.genericSequencer.init(sequencer, sequenceAcceptor, errorAcceptor);
- this.superSequencer = superSequencerProvider.get();
- this.superSequencer.init(sequencer, sequenceAcceptor, errorAcceptor);
- }
-
- public void createSequence(EObject context, EObject semanticObject) {
- if(semanticObject.eClass().getEPackage() == UmlCommonPackage.eINSTANCE) switch(semanticObject.eClass().getClassifierID()) {
- case UmlCommonPackage.BOUND_SPECIFICATION:
- if(context == grammarAccess.getBoundSpecificationRule()) {
- sequence_BoundSpecification(context, (BoundSpecification) semanticObject);
- return;
- }
- else break;
- case UmlCommonPackage.MULTIPLICITY_RULE:
- if(context == grammarAccess.getMultiplicityRuleRule()) {
- sequence_MultiplicityRule(context, (MultiplicityRule) semanticObject);
- return;
- }
- else break;
- case UmlCommonPackage.QUALIFIED_NAME:
- if(context == grammarAccess.getQualifiedNameRule()) {
- sequence_QualifiedName(context, (QualifiedName) semanticObject);
- return;
- }
- else break;
- case UmlCommonPackage.TYPE_RULE:
- if(context == grammarAccess.getTypeRuleRule()) {
- sequence_TypeRule(context, (TypeRule) semanticObject);
- return;
- }
- else break;
- }
- else if(semanticObject.eClass().getEPackage() == UmlParameterPackage.eINSTANCE) switch(semanticObject.eClass().getClassifierID()) {
- case UmlParameterPackage.EFFECT_RULE:
- if(context == grammarAccess.getEffectRuleRule()) {
- sequence_EffectRule(context, (EffectRule) semanticObject);
- return;
- }
- else break;
- case UmlParameterPackage.MODIFIER_SPECIFICATION:
- if(context == grammarAccess.getModifierSpecificationRule()) {
- sequence_ModifierSpecification(context, (ModifierSpecification) semanticObject);
- return;
- }
- else break;
- case UmlParameterPackage.MODIFIERS_RULE:
- if(context == grammarAccess.getModifiersRuleRule()) {
- sequence_ModifiersRule(context, (ModifiersRule) semanticObject);
- return;
- }
- else break;
- case UmlParameterPackage.PARAMETER_RULE:
- if(context == grammarAccess.getParameterRuleRule()) {
- sequence_ParameterRule(context, (ParameterRule) semanticObject);
- return;
- }
- else break;
- }
- if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
- }
-
- /**
- * Constraint:
- * value=UnlimitedLiteral
- */
- protected void sequence_BoundSpecification(EObject context, BoundSpecification semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * effectKind=EffectKind
- */
- protected void sequence_EffectRule(EObject context, EffectRule semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, UmlParameterPackage.Literals.EFFECT_RULE__EFFECT_KIND) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlParameterPackage.Literals.EFFECT_RULE__EFFECT_KIND));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getEffectRuleAccess().getEffectKindEffectKindEnumRuleCall_2_0(), semanticObject.getEffectKind());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * value=ModifierKind
- */
- protected void sequence_ModifierSpecification(EObject context, ModifierSpecification semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, UmlParameterPackage.Literals.MODIFIER_SPECIFICATION__VALUE) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlParameterPackage.Literals.MODIFIER_SPECIFICATION__VALUE));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0(), semanticObject.getValue());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (values+=ModifierSpecification values+=ModifierSpecification*)
- */
- protected void sequence_ModifiersRule(EObject context, ModifiersRule semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (bounds+=BoundSpecification bounds+=BoundSpecification?)
- */
- protected void sequence_MultiplicityRule(EObject context, MultiplicityRule semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (
- * visibility=VisibilityKind
- * direction=Direction
- * name=ID
- * type=TypeRule?
- * multiplicity=MultiplicityRule?
- * modifiers=ModifiersRule?
- * effect=EffectRule
- * )
- */
- protected void sequence_ParameterRule(EObject context, ParameterRule semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (path=[Namespace|ID] remaining=QualifiedName?)
- */
- protected void sequence_QualifiedName(EObject context, QualifiedName semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (path=QualifiedName? type=[Type|ID])
- */
- protected void sequence_TypeRule(EObject context, TypeRule semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext/src-gen/org/eclipse/papyrus/uml/textedit/parameter/xtext/serializer/AbstractUmlParameterSyntacticSequencer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext/src-gen/org/eclipse/papyrus/uml/textedit/parameter/xtext/serializer/AbstractUmlParameterSyntacticSequencer.java
deleted file mode 100644
index 9f306fd4731..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext/src-gen/org/eclipse/papyrus/uml/textedit/parameter/xtext/serializer/AbstractUmlParameterSyntacticSequencer.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package org.eclipse.papyrus.uml.textedit.parameter.xtext.serializer;
-
-import java.util.List;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.uml.textedit.parameter.xtext.services.UmlParameterGrammarAccess;
-import org.eclipse.xtext.IGrammarAccess;
-import org.eclipse.xtext.RuleCall;
-import org.eclipse.xtext.nodemodel.INode;
-import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias;
-import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition;
-import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer;
-
-import com.google.inject.Inject;
-
-@SuppressWarnings("restriction")
-public class AbstractUmlParameterSyntacticSequencer extends AbstractSyntacticSequencer {
-
- protected UmlParameterGrammarAccess grammarAccess;
-
- @Inject
- protected void init(IGrammarAccess access) {
- grammarAccess = (UmlParameterGrammarAccess) access;
- }
-
- @Override
- protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) {
- return "";
- }
-
-
- @Override
- protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
- if (transition.getAmbiguousSyntaxes().isEmpty()) return;
- List<INode> transitionNodes = collectNodes(fromNode, toNode);
- for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
- List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
- acceptNodes(getLastNavigableState(), syntaxNodes);
- }
- }
-
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contribution/PortPopupEditorConfigurationContribution.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contribution/PortPopupEditorConfigurationContribution.java
deleted file mode 100644
index b9b318829a3..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contribution/PortPopupEditorConfigurationContribution.java
+++ /dev/null
@@ -1,329 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Patrick Tessier (CEA LIST) patrick.tessier@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.uml.textedit.port.xtext.ui.contribution;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gmf.runtime.common.core.command.CompositeCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest;
-import org.eclipse.papyrus.commands.wrappers.GMFtoEMFCommandWrapper;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.infra.gmfdiag.xtext.glue.PopupEditorConfiguration;
-import org.eclipse.papyrus.infra.gmfdiag.xtext.glue.edit.part.IXtextEMFReconciler;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.textedit.port.xtext.ui.internal.UmlPortActivator;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.validation.SemanticValidator;
-import org.eclipse.papyrus.uml.textedit.port.xtext.validation.UmlPortJavaValidator;
-import org.eclipse.uml2.uml.Classifier;
-import org.eclipse.uml2.uml.Port;
-import org.eclipse.uml2.uml.UMLPackage;
-
-import com.google.inject.Injector;
-//import org.eclipse.papyrus.views.properties.runtime.modelhandler.emf.EMFUtils;
-//import org.eclipse.papyrus.views.properties.runtime.modelhandler.emf.TransactionUtil;
-
-
-/**
- * @author CEA LIST
- *
- * This class is used for contribution to the Papyrus extension point DirectEditor. It is used for the integration
- * of an xtext generated editor, for properties of UML classifiers.
- *
- */
-public class PortPopupEditorConfigurationContribution extends PopupEditorConfiguration {
-
- private Port port;
-
- private boolean newIsDerived;
-
- private boolean isConjugated;
-
- private boolean newIsReadOnly;
-
- private boolean newIsUnique;
-
- private boolean newIsUnion;
-
- private boolean newIsOrdered;
-
- private int newLowerBound;
-
- private int newUpperBound;
-
- private String newDefault;
-
- private String newName;
-
- private Classifier newType;
-
- private org.eclipse.uml2.uml.VisibilityKind newVisibility;
-
- private List<Port> newRedefines = new ArrayList<Port>();
-
- private List<Port> newSubsets = new ArrayList<Port>();
-
- /**
- * Default implementation of the constructor for this class
- */
- public PortPopupEditorConfigurationContribution() {
- super();
- }
-
- /*
- * (non-Javadoc)
- *
- * @see
- * org.eclipse.xtext.gmf.glue.PopupEditorConfiguration#createPopupEditorHelper(org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart)
- */
- @Override
- public IPopupEditorHelper createPopupEditorHelper(Object editPart) {
-
- // resolves the edit part, and the associated semantic element
- IGraphicalEditPart graphicalEditPart = null;
- if(!(editPart instanceof IGraphicalEditPart)) {
- return null;
- }
- graphicalEditPart = (IGraphicalEditPart)editPart;
- if(!(graphicalEditPart.resolveSemanticElement() instanceof Port)) {
- return null;
- }
- port = (Port)graphicalEditPart.resolveSemanticElement();
-
- UmlPortJavaValidator.init(port);
-
- // retrieves the XText injector
- Injector injector = UmlPortActivator.getInstance().getInjector("org.eclipse.papyrus.uml.textedit.port.xtext.UmlPort");
-
- // builds the text content and extension for a temporary file, to be edited by the xtext editor
- String textToEdit = "" + this.getTextToEdit(graphicalEditPart.resolveSemanticElement());
- String fileExtension = "" + ".umlport";
-
- // builds a new IXtextEMFReconciler.
- // Its purpose is to extract any relevant information from the textual specification,
- // and then merge it in the context UML model if necessary
- IXtextEMFReconciler reconciler = new IXtextEMFReconciler() {
-
- public void reconcile(EObject modelObject, EObject xtextObject) {
- // first: retrieves / determines if the xtextObject is a portRule object
- EObject modifiedObject = xtextObject;
- if(!(modelObject instanceof Port)) {
- return;
- }
- while(xtextObject != null && !(xtextObject instanceof PortRule)) {
- modifiedObject = modifiedObject.eContainer();
- }
- if(modifiedObject == null) {
- return;
- }
- PortRule portRuleObject = (PortRule)xtextObject;
-
- // Retrieves the information to be populated in modelObject
- newIsDerived = portRuleObject.getIsDerived() != null && portRuleObject.getIsDerived().equals("/");
- isConjugated = portRuleObject.getIsConjugated() != null && portRuleObject.getIsConjugated().equals("~");
- newIsReadOnly = false;
- newIsUnique = false;
- newIsUnion = false;
- newIsOrdered = false;
- newRedefines = new ArrayList<Port>();
- newSubsets = new ArrayList<Port>();
- if(portRuleObject.getModifiers() != null) {
- for(ModifierSpecification modifier : portRuleObject.getModifiers().getValues()) {
- if(modifier.getRedefines() == null && modifier.getSubsets() == null) {
- switch(modifier.getValue()) {
- case ORDERED:
- newIsOrdered = true;
- break;
- case READ_ONLY:
- newIsReadOnly = true;
- break;
- case UNION:
- newIsUnion = true;
- break;
- case UNIQUE:
- newIsUnique = true;
- break;
- default:
- break;
- }
- }
- }
- for(ModifierSpecification modifier : portRuleObject.getModifiers().getValues()) {
- if(modifier.getRedefines() != null) {
- newRedefines.add(modifier.getRedefines().getPort());
- } else if(modifier.getSubsets() != null) {
- newSubsets.add(modifier.getSubsets().getPort());
- }
- }
- }
- newLowerBound = 1;
- newUpperBound = 1;
- if(portRuleObject.getMultiplicity() != null) {
- if(portRuleObject.getMultiplicity().getBounds().size() == 1) {
- String tempBound = portRuleObject.getMultiplicity().getBounds().get(0).getValue();
- if(tempBound.equals("*")) {
- newLowerBound = 0;
- newUpperBound = -1;
- } else {
- newLowerBound = new Integer(tempBound).intValue();
- newUpperBound = new Integer(tempBound).intValue();
- }
- } else { //size == 2
- String tempBound = portRuleObject.getMultiplicity().getBounds().get(0).getValue();
- newLowerBound = new Integer(tempBound).intValue();
- tempBound = portRuleObject.getMultiplicity().getBounds().get(1).getValue();
- if(tempBound.equals("*")) {
- newUpperBound = -1;
- } else {
- newUpperBound = new Integer(tempBound).intValue();
- }
- }
- }
-
- if(portRuleObject.getDefault() != null) {
- newDefault = portRuleObject.getDefault().getDefault();
- } else {
- newDefault = null;
- }
-
- newName = "" + portRuleObject.getName();
-
- TypeRule typeRule = portRuleObject.getType();
- if(typeRule == null) {
- newType = null;
- } else {
- newType = typeRule.getType();
- }
-
- newVisibility = org.eclipse.uml2.uml.VisibilityKind.PUBLIC_LITERAL;
-
- switch(portRuleObject.getVisibility()) {
- case PUBLIC:
- newVisibility = org.eclipse.uml2.uml.VisibilityKind.PUBLIC_LITERAL;
- break;
- case PACKAGE:
- newVisibility = org.eclipse.uml2.uml.VisibilityKind.PACKAGE_LITERAL;
- break;
- case PRIVATE:
- newVisibility = org.eclipse.uml2.uml.VisibilityKind.PRIVATE_LITERAL;
- break;
- case PROTECTED:
- newVisibility = org.eclipse.uml2.uml.VisibilityKind.PROTECTED_LITERAL;
- break;
- default:
- break;
- }
-
- org.eclipse.gmf.runtime.common.core.command.CompositeCommand updateCommand = getUpdateCommand(port);
- List<Port> editedObjects = new ArrayList<Port>();
- editedObjects.add(port);
-
- TransactionalEditingDomain editingDomain = org.eclipse.emf.transaction.util.TransactionUtil.getEditingDomain(port);
-
-
- if(updateCommand.canExecute()) {// && !(TransactionUtil.isReadTransactionInProgress(editingDomain, true, true))
- editingDomain.getCommandStack().execute(new GMFtoEMFCommandWrapper(updateCommand));
- return;
- }
- }
- };
- return super.createPopupEditorHelper(graphicalEditPart, injector, reconciler, textToEdit, fileExtension, new SemanticValidator());
- }
-
- private CompositeCommand getUpdateCommand(EObject editedObject) {
- org.eclipse.gmf.runtime.common.core.command.CompositeCommand updateCommand = new CompositeCommand("port update");
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(editedObject);
-
- SetRequest setIsDerivedRequest = new SetRequest(editedObject, UMLPackage.eINSTANCE.getProperty_IsDerived(), newIsDerived);
- ICommand setIsDerivedCommand = provider.getEditCommand(setIsDerivedRequest);
- updateCommand.add(setIsDerivedCommand);
- SetRequest setIsConjugatedRequest = new SetRequest(editedObject, UMLPackage.eINSTANCE.getPort_IsConjugated(), isConjugated);
- ICommand setIsConjugatedCommand = provider.getEditCommand(setIsConjugatedRequest);
- updateCommand.add(setIsConjugatedCommand);
-
- SetRequest setIsReadOnlyRequest = new SetRequest(editedObject, UMLPackage.eINSTANCE.getStructuralFeature_IsReadOnly(), newIsReadOnly);
- ICommand setIsReadOnlyCommand = provider.getEditCommand(setIsReadOnlyRequest);
- updateCommand.add(setIsReadOnlyCommand);
-
- SetRequest setIsUniqueRequest = new SetRequest(editedObject, UMLPackage.eINSTANCE.getMultiplicityElement_IsUnique(), newIsUnique);
- ICommand setIsUniqueCommand = provider.getEditCommand(setIsUniqueRequest);
- updateCommand.add(setIsUniqueCommand);
-
- SetRequest setIsDerivedUnionRequest = new SetRequest(editedObject, UMLPackage.eINSTANCE.getProperty_IsDerivedUnion(), newIsUnion);
- ICommand setIsDerivedUnionCommand = provider.getEditCommand(setIsDerivedUnionRequest);
- updateCommand.add(setIsDerivedUnionCommand);
-
- SetRequest setIsOrderedRequest = new SetRequest(editedObject, UMLPackage.eINSTANCE.getMultiplicityElement_IsOrdered(), newIsOrdered);
- ICommand setIsOrderedCommand = provider.getEditCommand(setIsOrderedRequest);
- updateCommand.add(setIsOrderedCommand);
-
- SetRequest setLowerRequest = new SetRequest(editedObject, UMLPackage.eINSTANCE.getMultiplicityElement_Lower(), newLowerBound);
- ICommand setLowerCommand = provider.getEditCommand(setLowerRequest);
- updateCommand.add(setLowerCommand);
-
- SetRequest setUpperRequest = new SetRequest(editedObject, UMLPackage.eINSTANCE.getMultiplicityElement_Upper(), newUpperBound);
- ICommand setUpperCommand = provider.getEditCommand(setUpperRequest);
- updateCommand.add(setUpperCommand);
-
- SetRequest setNameRequest = new SetRequest(editedObject, UMLPackage.eINSTANCE.getNamedElement_Name(), newName);
- ICommand setNameCommand = provider.getEditCommand(setNameRequest);
- updateCommand.add(setNameCommand);
-
- SetRequest setTypeRequest = new SetRequest(editedObject, UMLPackage.eINSTANCE.getTypedElement_Type(), newType);
- ICommand setTypeCommand = provider.getEditCommand(setTypeRequest);
- updateCommand.add(setTypeCommand);
-
- SetRequest setVisibilityRequest = new SetRequest(editedObject, UMLPackage.eINSTANCE.getNamedElement_Visibility(), newVisibility);
- ICommand setVisibilityCommand = provider.getEditCommand(setVisibilityRequest);
- updateCommand.add(setVisibilityCommand);
-
- SetRequest setDefaultValueRequest = new SetRequest(editedObject, UMLPackage.eINSTANCE.getProperty_Default(), newDefault);
- ICommand setDefaultValueCommand = provider.getEditCommand(setDefaultValueRequest);
- updateCommand.add(setDefaultValueCommand);
-
- SetRequest setRedefinedPropertiesRequest = new SetRequest(editedObject, UMLPackage.eINSTANCE.getProperty_RedefinedProperty(), newRedefines);
- ICommand setRedefinedPropertiesCommand = provider.getEditCommand(setRedefinedPropertiesRequest);
- updateCommand.add(setRedefinedPropertiesCommand);
-
- SetRequest setSubsettedPropertiesRequest = new SetRequest(editedObject, UMLPackage.eINSTANCE.getProperty_SubsettedProperty(), newSubsets);
- ICommand setSubsettedPropertiesCommand = provider.getEditCommand(setSubsettedPropertiesRequest);
- updateCommand.add(setSubsettedPropertiesCommand);
-
- return updateCommand;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.xtext.gmf.glue.PopupEditorConfiguration#getTextToEdit(java.lang.Object)
- */
- @Override
- public String getTextToEdit(Object editedObject) {
- if(editedObject instanceof Port) {
- return UMLPortEditorPropertyUtil.getLabel((Port)editedObject).trim();
- // TODO: default values not supported by the grammar
- // TODO: either complete the grammar, or use another label provider
- }
- return "not a Port";
- }
-
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/UmlPort.xmi b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/UmlPort.xmi
deleted file mode 100644
index 46eaaf6dc84..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/UmlPort.xmi
+++ /dev/null
@@ -1,397 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:xtext="http://www.eclipse.org/2008/Xtext">
- <xtext:Grammar name="org.eclipse.papyrus.uml.textedit.port.xtext.UmlPort" usedGrammars="/1">
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="uml">
- <ePackage href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
- </metamodelDeclarations>
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="ecore">
- <ePackage href="http://www.eclipse.org/emf/2002/Ecore#/"/>
- </metamodelDeclarations>
- <metamodelDeclarations xsi:type="xtext:GeneratedMetamodel" name="umlPort">
- <ePackage href="http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:ParserRule" name="PortRule">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort#//PortRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="visibility" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.1"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="isDerived" operator="=">
- <terminal xsi:type="xtext:Keyword" value="/"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="name" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=":"/>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="isConjugated" operator="=">
- <terminal xsi:type="xtext:Keyword" value="~"/>
- </elements>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Assignment" feature="type" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.2"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="&lt;Undefined>"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="multiplicity" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.4"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="modifiers" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.7"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="default" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.12"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="VisibilityKind">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort#//VisibilityKind"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort#//VisibilityKind/public"/>
- <literal value="+"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort#//VisibilityKind/private"/>
- <literal value="-"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort#//VisibilityKind/protected"/>
- <literal value="#"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort#//VisibilityKind/package"/>
- <literal value="~"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="TypeRule">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort#//TypeRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="path" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.3"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="type" operator="=">
- <terminal xsi:type="xtext:CrossReference">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Classifier"/>
- </type>
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </terminal>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="QualifiedName">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort#//QualifiedName"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="path" operator="=">
- <terminal xsi:type="xtext:CrossReference">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Namespace"/>
- </type>
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Keyword" value="::"/>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="remaining" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.3"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="MultiplicityRule">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort#//MultiplicityRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="["/>
- <elements xsi:type="xtext:Assignment" feature="bounds" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.5"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" value=".."/>
- <elements xsi:type="xtext:Assignment" feature="bounds" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.5"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="]"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="BoundSpecification">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort#//BoundSpecification"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" feature="value" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.6"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="UnlimitedLiteral">
- <type metamodel="/0/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.1"/>
- <elements xsi:type="xtext:Keyword" value="*"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ModifiersRule">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort#//ModifiersRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="{"/>
- <elements xsi:type="xtext:Assignment" feature="values" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.8"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value=","/>
- <elements xsi:type="xtext:Assignment" feature="values" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.8"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="}"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ModifierSpecification">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort#//ModifierSpecification"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Assignment" feature="value" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.9"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="redefines" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.10"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="subsets" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.11"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="ModifierKind">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort#//ModifierKind"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort#//ModifierKind/readOnly"/>
- <literal value="readOnly"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort#//ModifierKind/union"/>
- <literal value="union"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort#//ModifierKind/ordered"/>
- <literal value="ordered"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort#//ModifierKind/unique"/>
- <literal value="unique"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="RedefinesRule">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort#//RedefinesRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="redefines"/>
- <elements xsi:type="xtext:Assignment" feature="port" operator="=">
- <terminal xsi:type="xtext:CrossReference">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Port"/>
- </type>
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </terminal>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SubsetsRule">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort#//SubsetsRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="subsets"/>
- <elements xsi:type="xtext:Assignment" feature="port" operator="=">
- <terminal xsi:type="xtext:CrossReference">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Port"/>
- </type>
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </terminal>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="DefaultValueRule">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort#//DefaultValueRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="="/>
- <elements xsi:type="xtext:Assignment" feature="default" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.2"/>
- </elements>
- </alternatives>
- </rules>
- </xtext:Grammar>
- <xtext:Grammar name="org.eclipse.xtext.common.Terminals" definesHiddenTokens="true" hiddenTokens="/1/@rules.5 /1/@rules.3 /1/@rules.4">
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="ecore">
- <ePackage href="http://www.eclipse.org/emf/2002/Ecore#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:TerminalRule" name="ID">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="^"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- </elements>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="9"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="INT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
- </type>
- <alternatives xsi:type="xtext:CharacterRange" cardinality="+">
- <left value="0"/>
- <right value="9"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="STRING">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="b"/>
- <elements xsi:type="xtext:Keyword" value="t"/>
- <elements xsi:type="xtext:Keyword" value="n"/>
- <elements xsi:type="xtext:Keyword" value="f"/>
- <elements xsi:type="xtext:Keyword" value="r"/>
- <elements xsi:type="xtext:Keyword" value="u"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Keyword" value="\"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- </terminal>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="b"/>
- <elements xsi:type="xtext:Keyword" value="t"/>
- <elements xsi:type="xtext:Keyword" value="n"/>
- <elements xsi:type="xtext:Keyword" value="f"/>
- <elements xsi:type="xtext:Keyword" value="r"/>
- <elements xsi:type="xtext:Keyword" value="u"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Keyword" value="\"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- </terminal>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="'"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ML_COMMENT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="/*"/>
- <elements xsi:type="xtext:UntilToken">
- <terminal xsi:type="xtext:Keyword" value="*/"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="SL_COMMENT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="//"/>
- <elements xsi:type="xtext:NegatedToken" cardinality="*">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- <elements xsi:type="xtext:Keyword" value="&#xD;"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="&#xD;"/>
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="WS">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives" cardinality="+">
- <elements xsi:type="xtext:Keyword" value=" "/>
- <elements xsi:type="xtext:Keyword" value="&#x9;"/>
- <elements xsi:type="xtext:Keyword" value="&#xD;"/>
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ANY_OTHER">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Wildcard"/>
- </rules>
- </xtext:Grammar>
-</xmi:XMI>
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src/org/eclipse/papyrus/uml/textedit/port/xtext/validation/SemanticValidator.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src/org/eclipse/papyrus/uml/textedit/port/xtext/validation/SemanticValidator.java
deleted file mode 100644
index 530a422b99f..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src/org/eclipse/papyrus/uml/textedit/port/xtext/validation/SemanticValidator.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Patrick Tessier (CEA LIST) patrick.tessier@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-
-package org.eclipse.papyrus.uml.textedit.port.xtext.validation;
-
-import org.eclipse.papyrus.infra.gmfdiag.xtext.glue.edit.part.IXTextSemanticValidator;
-
-
-/**
- * Custom implementation for IXtextSemanticValidator in the context of the textual editor for states
- *
- * @author CEA LIST
- *
- */
-public class SemanticValidator implements IXTextSemanticValidator {
-
- public boolean validate() {
- return UmlPortJavaValidator.validate();
- }
-
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contributions/PropertyPopupEditorConfigurationContribution.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contributions/PropertyPopupEditorConfigurationContribution.java
deleted file mode 100644
index 50127cfa0c0..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contributions/PropertyPopupEditorConfigurationContribution.java
+++ /dev/null
@@ -1,324 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.uml.textedit.property.xtext.ui.contributions;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gmf.runtime.common.core.command.CompositeCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest;
-import org.eclipse.papyrus.commands.wrappers.GMFtoEMFCommandWrapper;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.infra.gmfdiag.xtext.glue.PopupEditorConfiguration;
-import org.eclipse.papyrus.infra.gmfdiag.xtext.glue.edit.part.IXtextEMFReconciler;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.textedit.property.xtext.ui.internal.UmlPropertyActivator;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.validation.SemanticValidator;
-import org.eclipse.papyrus.uml.textedit.property.xtext.validation.UmlPropertyJavaValidator;
-import org.eclipse.uml2.uml.Classifier;
-import org.eclipse.uml2.uml.Property;
-import org.eclipse.uml2.uml.UMLPackage;
-
-import com.google.inject.Injector;
-//import org.eclipse.papyrus.views.properties.runtime.modelhandler.emf.EMFUtils;
-//import org.eclipse.papyrus.views.properties.runtime.modelhandler.emf.TransactionUtil;
-
-
-/**
- * @author CEA LIST
- *
- * This class is used for contribution to the Papyrus extension point DirectEditor. It is used for the integration
- * of an xtext generated editor, for properties of UML classifiers.
- *
- */
-public class PropertyPopupEditorConfigurationContribution extends PopupEditorConfiguration {
-
- private Property property;
-
- private boolean newIsDerived;
-
- private boolean newIsReadOnly;
-
- private boolean newIsUnique;
-
- private boolean newIsUnion;
-
- private boolean newIsOrdered;
-
- private int newLowerBound;
-
- private int newUpperBound;
-
- private String newDefault ;
-
- private String newName;
-
- private Classifier newType;
-
- private org.eclipse.uml2.uml.VisibilityKind newVisibility;
-
- private List<Property> newRedefines = new ArrayList<Property>() ;
-
- private List<Property> newSubsets = new ArrayList<Property>() ;
-
- /**
- * Default implementation of the constructor for this class
- */
- public PropertyPopupEditorConfigurationContribution() {
- super();
- }
-
- /*
- * (non-Javadoc)
- *
- * @see
- * org.eclipse.papyrus.infra.gmfdiag.xtext.glue.PopupEditorConfiguration#createPopupEditorHelper(org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart)
- */
- @Override
- public IPopupEditorHelper createPopupEditorHelper(Object editPart) {
-
- // resolves the edit part, and the associated semantic element
- IGraphicalEditPart graphicalEditPart = null;
- if(!(editPart instanceof IGraphicalEditPart)) {
- return null;
- }
- graphicalEditPart = (IGraphicalEditPart)editPart;
- if(!(graphicalEditPart.resolveSemanticElement() instanceof Property)) {
- return null;
- }
- property = (Property)graphicalEditPart.resolveSemanticElement();
-
- UmlPropertyJavaValidator.init(property);
-
- // retrieves the XText injector
- Injector injector = UmlPropertyActivator.getInstance().getInjector("org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty");
-
- // builds the text content and extension for a temporary file, to be edited by the xtext editor
- String textToEdit = "" + this.getTextToEdit(graphicalEditPart.resolveSemanticElement());
- String fileExtension = "" + ".umlproperty";
-
- // builds a new IXtextEMFReconciler.
- // Its purpose is to extract any relevant information from the textual specification,
- // and then merge it in the context UML model if necessary
- IXtextEMFReconciler reconciler = new IXtextEMFReconciler() {
-
- public void reconcile(EObject modelObject, EObject xtextObject) {
- // first: retrieves / determines if the xtextObject is a PropertyRule object
- EObject modifiedObject = xtextObject;
- if(!(modelObject instanceof Property)) {
- return;
- }
- while(xtextObject != null && !(xtextObject instanceof PropertyRule)) {
- modifiedObject = modifiedObject.eContainer();
- }
- if(modifiedObject == null) {
- return;
- }
- PropertyRule propertyRuleObject = (PropertyRule)xtextObject;
-
- // Retrieves the information to be populated in modelObject
- newIsDerived = propertyRuleObject.getIsDerived() != null && propertyRuleObject.getIsDerived().equals("/");
- newIsReadOnly = false;
- newIsUnique = false;
- newIsUnion = false;
- newIsOrdered = false;
- newRedefines = new ArrayList<Property>() ;
- newSubsets = new ArrayList<Property>() ;
- if(propertyRuleObject.getModifiers() != null) {
- for(ModifierSpecification modifier : propertyRuleObject.getModifiers().getValues()) {
- if (modifier.getRedefines() == null && modifier.getSubsets()==null) {
- switch(modifier.getValue()) {
- case ORDERED:
- newIsOrdered = true;
- break;
- case READ_ONLY:
- newIsReadOnly = true;
- break;
- case UNION:
- newIsUnion = true;
- break;
- case UNIQUE:
- newIsUnique = true;
- break;
- default:
- break;
- }
- }
- }
- for (ModifierSpecification modifier : propertyRuleObject.getModifiers().getValues()) {
- if (modifier.getRedefines() != null) {
- newRedefines.add(modifier.getRedefines().getProperty()) ;
- } else if (modifier.getSubsets() != null) {
- newSubsets.add(modifier.getSubsets().getProperty()) ;
- }
- }
- }
- newLowerBound = 1;
- newUpperBound = 1;
- if(propertyRuleObject.getMultiplicity() != null) {
- if(propertyRuleObject.getMultiplicity().getBounds().size() == 1) {
- String tempBound = propertyRuleObject.getMultiplicity().getBounds().get(0).getValue();
- if(tempBound.equals("*")) {
- newLowerBound = 0;
- newUpperBound = -1;
- } else {
- newLowerBound = new Integer(tempBound).intValue();
- newUpperBound = new Integer(tempBound).intValue();
- }
- } else { //size == 2
- String tempBound = propertyRuleObject.getMultiplicity().getBounds().get(0).getValue();
- newLowerBound = new Integer(tempBound).intValue();
- tempBound = propertyRuleObject.getMultiplicity().getBounds().get(1).getValue();
- if(tempBound.equals("*")) {
- newUpperBound = -1;
- } else {
- newUpperBound = new Integer(tempBound).intValue();
- }
- }
- }
-
- if (propertyRuleObject.getDefault() != null) {
- newDefault = propertyRuleObject.getDefault().getDefault() ;
- }
- else {
- newDefault = null ;
- }
-
- newName = "" + propertyRuleObject.getName();
-
- TypeRule typeRule = propertyRuleObject.getType();
- if(typeRule == null) {
- newType = null;
- } else {
- newType = typeRule.getType();
- }
-
- newVisibility = org.eclipse.uml2.uml.VisibilityKind.PUBLIC_LITERAL;
-
- switch(propertyRuleObject.getVisibility()) {
- case PUBLIC:
- newVisibility = org.eclipse.uml2.uml.VisibilityKind.PUBLIC_LITERAL;
- break;
- case PACKAGE:
- newVisibility = org.eclipse.uml2.uml.VisibilityKind.PACKAGE_LITERAL;
- break;
- case PRIVATE:
- newVisibility = org.eclipse.uml2.uml.VisibilityKind.PRIVATE_LITERAL;
- break;
- case PROTECTED:
- newVisibility = org.eclipse.uml2.uml.VisibilityKind.PROTECTED_LITERAL;
- break;
- default:
- break;
- }
-
- org.eclipse.gmf.runtime.common.core.command.CompositeCommand updateCommand = getUpdateCommand(property);
- List<Property> editedObjects = new ArrayList<Property>();
- editedObjects.add(property);
-
- TransactionalEditingDomain editingDomain =org.eclipse.emf.transaction.util.TransactionUtil.getEditingDomain(property);
-
-
- if(updateCommand.canExecute()) {// && !(TransactionUtil.isReadTransactionInProgress(editingDomain, true, true))
- editingDomain.getCommandStack().execute(new GMFtoEMFCommandWrapper(updateCommand));
- return;
- }
- }
- };
- return super.createPopupEditorHelper(graphicalEditPart, injector, reconciler, textToEdit, fileExtension, new SemanticValidator());
- }
-
- private CompositeCommand getUpdateCommand(EObject editedObject) {
- org.eclipse.gmf.runtime.common.core.command.CompositeCommand updateCommand = new CompositeCommand("Property update");
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(editedObject);
-
- SetRequest setIsDerivedRequest = new SetRequest(editedObject, UMLPackage.eINSTANCE.getProperty_IsDerived(), newIsDerived);
- ICommand setIsDerivedCommand = provider.getEditCommand(setIsDerivedRequest);
- updateCommand.add(setIsDerivedCommand);
-
- SetRequest setIsReadOnlyRequest = new SetRequest(editedObject, UMLPackage.eINSTANCE.getStructuralFeature_IsReadOnly(), newIsReadOnly);
- ICommand setIsReadOnlyCommand = provider.getEditCommand(setIsReadOnlyRequest);
- updateCommand.add(setIsReadOnlyCommand);
-
- SetRequest setIsUniqueRequest = new SetRequest(editedObject, UMLPackage.eINSTANCE.getMultiplicityElement_IsUnique(), newIsUnique);
- ICommand setIsUniqueCommand = provider.getEditCommand(setIsUniqueRequest);
- updateCommand.add(setIsUniqueCommand);
-
- SetRequest setIsDerivedUnionRequest = new SetRequest(editedObject, UMLPackage.eINSTANCE.getProperty_IsDerivedUnion(), newIsUnion);
- ICommand setIsDerivedUnionCommand = provider.getEditCommand(setIsDerivedUnionRequest);
- updateCommand.add(setIsDerivedUnionCommand);
-
- SetRequest setIsOrderedRequest = new SetRequest(editedObject, UMLPackage.eINSTANCE.getMultiplicityElement_IsOrdered(), newIsOrdered);
- ICommand setIsOrderedCommand = provider.getEditCommand(setIsOrderedRequest);
- updateCommand.add(setIsOrderedCommand);
-
- SetRequest setLowerRequest = new SetRequest(editedObject, UMLPackage.eINSTANCE.getMultiplicityElement_Lower(), newLowerBound);
- ICommand setLowerCommand = provider.getEditCommand(setLowerRequest);
- updateCommand.add(setLowerCommand);
-
- SetRequest setUpperRequest = new SetRequest(editedObject, UMLPackage.eINSTANCE.getMultiplicityElement_Upper(), newUpperBound);
- ICommand setUpperCommand = provider.getEditCommand(setUpperRequest);
- updateCommand.add(setUpperCommand);
-
- SetRequest setNameRequest = new SetRequest(editedObject, UMLPackage.eINSTANCE.getNamedElement_Name(), newName);
- ICommand setNameCommand = provider.getEditCommand(setNameRequest);
- updateCommand.add(setNameCommand);
-
- SetRequest setTypeRequest = new SetRequest(editedObject, UMLPackage.eINSTANCE.getTypedElement_Type(), newType);
- ICommand setTypeCommand = provider.getEditCommand(setTypeRequest);
- updateCommand.add(setTypeCommand);
-
- SetRequest setVisibilityRequest = new SetRequest(editedObject, UMLPackage.eINSTANCE.getNamedElement_Visibility(), newVisibility);
- ICommand setVisibilityCommand = provider.getEditCommand(setVisibilityRequest);
- updateCommand.add(setVisibilityCommand);
-
- SetRequest setDefaultValueRequest = new SetRequest (editedObject, UMLPackage.eINSTANCE.getProperty_Default(), newDefault) ;
- ICommand setDefaultValueCommand = provider.getEditCommand(setDefaultValueRequest) ;
- updateCommand.add(setDefaultValueCommand) ;
-
- SetRequest setRedefinedPropertiesRequest = new SetRequest (editedObject, UMLPackage.eINSTANCE.getProperty_RedefinedProperty(), newRedefines) ;
- ICommand setRedefinedPropertiesCommand = provider.getEditCommand(setRedefinedPropertiesRequest) ;
- updateCommand.add(setRedefinedPropertiesCommand) ;
-
- SetRequest setSubsettedPropertiesRequest = new SetRequest (editedObject, UMLPackage.eINSTANCE.getProperty_SubsettedProperty(), newSubsets) ;
- ICommand setSubsettedPropertiesCommand = provider.getEditCommand(setSubsettedPropertiesRequest) ;
- updateCommand.add(setSubsettedPropertiesCommand) ;
-
- return updateCommand;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.papyrus.infra.gmfdiag.xtext.glue.PopupEditorConfiguration#getTextToEdit(java.lang.Object)
- */
- @Override
- public String getTextToEdit(Object editedObject) {
- if(editedObject instanceof Property) {
- return UMLPropertyEditorPropertyUtil.getLabel((Property)editedObject).trim();
- // TODO: default values not supported by the grammar
- // TODO: either complete the grammar, or use another label provider
- }
- return "not a Property";
- }
-
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.xmi b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.xmi
deleted file mode 100644
index 69c39623696..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.xmi
+++ /dev/null
@@ -1,394 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:xtext="http://www.eclipse.org/2008/Xtext">
- <xtext:Grammar name="org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty" usedGrammars="/1">
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="uml">
- <ePackage href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
- </metamodelDeclarations>
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="ecore">
- <ePackage href="http://www.eclipse.org/emf/2002/Ecore#/"/>
- </metamodelDeclarations>
- <metamodelDeclarations xsi:type="xtext:GeneratedMetamodel" name="umlProperty">
- <ePackage href="http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:ParserRule" name="PropertyRule">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty#//PropertyRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="visibility" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.1"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="isDerived" operator="=">
- <terminal xsi:type="xtext:Keyword" value="/"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="name" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=":"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Assignment" feature="type" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.2"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="&lt;Undefined>"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="multiplicity" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.4"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="modifiers" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.7"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="default" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.12"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="VisibilityKind">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty#//VisibilityKind"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty#//VisibilityKind/public"/>
- <literal value="+"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty#//VisibilityKind/private"/>
- <literal value="-"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty#//VisibilityKind/protected"/>
- <literal value="#"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty#//VisibilityKind/package"/>
- <literal value="~"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="TypeRule">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty#//TypeRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="path" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.3"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="type" operator="=">
- <terminal xsi:type="xtext:CrossReference">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Classifier"/>
- </type>
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </terminal>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="QualifiedName">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty#//QualifiedName"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="path" operator="=">
- <terminal xsi:type="xtext:CrossReference">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Namespace"/>
- </type>
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Keyword" value="::"/>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="remaining" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.3"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="MultiplicityRule">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty#//MultiplicityRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="["/>
- <elements xsi:type="xtext:Assignment" feature="bounds" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.5"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" value=".."/>
- <elements xsi:type="xtext:Assignment" feature="bounds" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.5"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="]"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="BoundSpecification">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty#//BoundSpecification"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" feature="value" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.6"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="UnlimitedLiteral">
- <type metamodel="/0/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.1"/>
- <elements xsi:type="xtext:Keyword" value="*"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ModifiersRule">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty#//ModifiersRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="{"/>
- <elements xsi:type="xtext:Assignment" feature="values" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.8"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value=","/>
- <elements xsi:type="xtext:Assignment" feature="values" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.8"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="}"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ModifierSpecification">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty#//ModifierSpecification"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Assignment" feature="value" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.9"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="redefines" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.10"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="subsets" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.11"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="ModifierKind">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty#//ModifierKind"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty#//ModifierKind/readOnly"/>
- <literal value="readOnly"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty#//ModifierKind/union"/>
- <literal value="union"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty#//ModifierKind/ordered"/>
- <literal value="ordered"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty#//ModifierKind/unique"/>
- <literal value="unique"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="RedefinesRule">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty#//RedefinesRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="redefines"/>
- <elements xsi:type="xtext:Assignment" feature="property" operator="=">
- <terminal xsi:type="xtext:CrossReference">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Property"/>
- </type>
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </terminal>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SubsetsRule">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty#//SubsetsRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="subsets"/>
- <elements xsi:type="xtext:Assignment" feature="property" operator="=">
- <terminal xsi:type="xtext:CrossReference">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Property"/>
- </type>
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </terminal>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="DefaultValueRule">
- <type metamodel="/0/@metamodelDeclarations.2">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty#//DefaultValueRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="="/>
- <elements xsi:type="xtext:Assignment" feature="default" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.2"/>
- </elements>
- </alternatives>
- </rules>
- </xtext:Grammar>
- <xtext:Grammar name="org.eclipse.xtext.common.Terminals" definesHiddenTokens="true" hiddenTokens="/1/@rules.5 /1/@rules.3 /1/@rules.4">
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="ecore">
- <ePackage href="http://www.eclipse.org/emf/2002/Ecore#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:TerminalRule" name="ID">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="^"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- </elements>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="9"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="INT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
- </type>
- <alternatives xsi:type="xtext:CharacterRange" cardinality="+">
- <left value="0"/>
- <right value="9"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="STRING">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="b"/>
- <elements xsi:type="xtext:Keyword" value="t"/>
- <elements xsi:type="xtext:Keyword" value="n"/>
- <elements xsi:type="xtext:Keyword" value="f"/>
- <elements xsi:type="xtext:Keyword" value="r"/>
- <elements xsi:type="xtext:Keyword" value="u"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Keyword" value="\"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- </terminal>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="b"/>
- <elements xsi:type="xtext:Keyword" value="t"/>
- <elements xsi:type="xtext:Keyword" value="n"/>
- <elements xsi:type="xtext:Keyword" value="f"/>
- <elements xsi:type="xtext:Keyword" value="r"/>
- <elements xsi:type="xtext:Keyword" value="u"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Keyword" value="\"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- </terminal>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="'"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ML_COMMENT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="/*"/>
- <elements xsi:type="xtext:UntilToken">
- <terminal xsi:type="xtext:Keyword" value="*/"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="SL_COMMENT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="//"/>
- <elements xsi:type="xtext:NegatedToken" cardinality="*">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- <elements xsi:type="xtext:Keyword" value="&#xD;"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="&#xD;"/>
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="WS">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives" cardinality="+">
- <elements xsi:type="xtext:Keyword" value=" "/>
- <elements xsi:type="xtext:Keyword" value="&#x9;"/>
- <elements xsi:type="xtext:Keyword" value="&#xD;"/>
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ANY_OTHER">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Wildcard"/>
- </rules>
- </xtext:Grammar>
-</xmi:XMI>
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/serializer/AbstractUmlPropertySemanticSequencer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/serializer/AbstractUmlPropertySemanticSequencer.java
deleted file mode 100644
index 4d4ec4fc601..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/serializer/AbstractUmlPropertySemanticSequencer.java
+++ /dev/null
@@ -1,259 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.uml.textedit.property.xtext.serializer;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
-import org.eclipse.xtext.serializer.acceptor.ISemanticSequenceAcceptor;
-import org.eclipse.xtext.serializer.acceptor.SequenceFeeder;
-import org.eclipse.xtext.serializer.diagnostic.ISemanticSequencerDiagnosticProvider;
-import org.eclipse.xtext.serializer.diagnostic.ISerializationDiagnostic.Acceptor;
-import org.eclipse.xtext.serializer.sequencer.AbstractSemanticSequencer;
-import org.eclipse.xtext.serializer.sequencer.GenericSequencer;
-import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider;
-import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer;
-import org.eclipse.xtext.serializer.sequencer.ITransientValueService;
-import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient;
-
-import com.google.inject.Inject;
-import com.google.inject.Provider;
-
-@SuppressWarnings("restriction")
-public class AbstractUmlPropertySemanticSequencer extends AbstractSemanticSequencer {
-
- @Inject
- protected UmlPropertyGrammarAccess grammarAccess;
-
- @Inject
- protected ISemanticSequencerDiagnosticProvider diagnosticProvider;
-
- @Inject
- protected ITransientValueService transientValues;
-
- @Inject
- @GenericSequencer
- protected Provider<ISemanticSequencer> genericSequencerProvider;
-
- protected ISemanticSequencer genericSequencer;
-
-
- @Override
- public void init(ISemanticSequencer sequencer, ISemanticSequenceAcceptor sequenceAcceptor, Acceptor errorAcceptor) {
- super.init(sequencer, sequenceAcceptor, errorAcceptor);
- this.genericSequencer = genericSequencerProvider.get();
- this.genericSequencer.init(sequencer, sequenceAcceptor, errorAcceptor);
- }
-
- public void createSequence(EObject context, EObject semanticObject) {
- if(semanticObject.eClass().getEPackage() == UmlPropertyPackage.eINSTANCE) switch(semanticObject.eClass().getClassifierID()) {
- case UmlPropertyPackage.BOUND_SPECIFICATION:
- if(context == grammarAccess.getBoundSpecificationRule()) {
- sequence_BoundSpecification(context, (BoundSpecification) semanticObject);
- return;
- }
- else break;
- case UmlPropertyPackage.DEFAULT_VALUE_RULE:
- if(context == grammarAccess.getDefaultValueRuleRule()) {
- sequence_DefaultValueRule(context, (DefaultValueRule) semanticObject);
- return;
- }
- else break;
- case UmlPropertyPackage.MODIFIER_SPECIFICATION:
- if(context == grammarAccess.getModifierSpecificationRule()) {
- sequence_ModifierSpecification(context, (ModifierSpecification) semanticObject);
- return;
- }
- else break;
- case UmlPropertyPackage.MODIFIERS_RULE:
- if(context == grammarAccess.getModifiersRuleRule()) {
- sequence_ModifiersRule(context, (ModifiersRule) semanticObject);
- return;
- }
- else break;
- case UmlPropertyPackage.MULTIPLICITY_RULE:
- if(context == grammarAccess.getMultiplicityRuleRule()) {
- sequence_MultiplicityRule(context, (MultiplicityRule) semanticObject);
- return;
- }
- else break;
- case UmlPropertyPackage.PROPERTY_RULE:
- if(context == grammarAccess.getPropertyRuleRule()) {
- sequence_PropertyRule(context, (PropertyRule) semanticObject);
- return;
- }
- else break;
- case UmlPropertyPackage.QUALIFIED_NAME:
- if(context == grammarAccess.getQualifiedNameRule()) {
- sequence_QualifiedName(context, (QualifiedName) semanticObject);
- return;
- }
- else break;
- case UmlPropertyPackage.REDEFINES_RULE:
- if(context == grammarAccess.getRedefinesRuleRule()) {
- sequence_RedefinesRule(context, (RedefinesRule) semanticObject);
- return;
- }
- else break;
- case UmlPropertyPackage.SUBSETS_RULE:
- if(context == grammarAccess.getSubsetsRuleRule()) {
- sequence_SubsetsRule(context, (SubsetsRule) semanticObject);
- return;
- }
- else break;
- case UmlPropertyPackage.TYPE_RULE:
- if(context == grammarAccess.getTypeRuleRule()) {
- sequence_TypeRule(context, (TypeRule) semanticObject);
- return;
- }
- else break;
- }
- if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
- }
-
- /**
- * Constraint:
- * value=UnlimitedLiteral
- */
- protected void sequence_BoundSpecification(EObject context, BoundSpecification semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.BOUND_SPECIFICATION__VALUE) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPropertyPackage.Literals.BOUND_SPECIFICATION__VALUE));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0(), semanticObject.getValue());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * default=STRING
- */
- protected void sequence_DefaultValueRule(EObject context, DefaultValueRule semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.DEFAULT_VALUE_RULE__DEFAULT) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPropertyPackage.Literals.DEFAULT_VALUE_RULE__DEFAULT));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getDefaultValueRuleAccess().getDefaultSTRINGTerminalRuleCall_1_0(), semanticObject.getDefault());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (value=ModifierKind | redefines=RedefinesRule | subsets=SubsetsRule)
- */
- protected void sequence_ModifierSpecification(EObject context, ModifierSpecification semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (values+=ModifierSpecification values+=ModifierSpecification*)
- */
- protected void sequence_ModifiersRule(EObject context, ModifiersRule semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (bounds+=BoundSpecification bounds+=BoundSpecification?)
- */
- protected void sequence_MultiplicityRule(EObject context, MultiplicityRule semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (
- * visibility=VisibilityKind
- * isDerived='/'?
- * name=ID
- * type=TypeRule?
- * multiplicity=MultiplicityRule?
- * modifiers=ModifiersRule?
- * default=DefaultValueRule?
- * )
- */
- protected void sequence_PropertyRule(EObject context, PropertyRule semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (path=[Namespace|ID] remaining=QualifiedName?)
- */
- protected void sequence_QualifiedName(EObject context, QualifiedName semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * property=[Property|ID]
- */
- protected void sequence_RedefinesRule(EObject context, RedefinesRule semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.REDEFINES_RULE__PROPERTY) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPropertyPackage.Literals.REDEFINES_RULE__PROPERTY));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getRedefinesRuleAccess().getPropertyPropertyIDTerminalRuleCall_1_0_1(), semanticObject.getProperty());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * property=[Property|ID]
- */
- protected void sequence_SubsetsRule(EObject context, SubsetsRule semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.SUBSETS_RULE__PROPERTY) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPropertyPackage.Literals.SUBSETS_RULE__PROPERTY));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getSubsetsRuleAccess().getPropertyPropertyIDTerminalRuleCall_1_0_1(), semanticObject.getProperty());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (path=QualifiedName? type=[Classifier|ID])
- */
- protected void sequence_TypeRule(EObject context, TypeRule semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/serializer/AbstractUmlPropertySyntacticSequencer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/serializer/AbstractUmlPropertySyntacticSequencer.java
deleted file mode 100644
index 6cbc975e5a1..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/serializer/AbstractUmlPropertySyntacticSequencer.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.uml.textedit.property.xtext.serializer;
-
-import java.util.List;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess;
-import org.eclipse.xtext.IGrammarAccess;
-import org.eclipse.xtext.RuleCall;
-import org.eclipse.xtext.nodemodel.INode;
-import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias;
-import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition;
-import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer;
-
-import com.google.inject.Inject;
-
-@SuppressWarnings("restriction")
-public class AbstractUmlPropertySyntacticSequencer extends AbstractSyntacticSequencer {
-
- protected UmlPropertyGrammarAccess grammarAccess;
-
- @Inject
- protected void init(IGrammarAccess access) {
- grammarAccess = (UmlPropertyGrammarAccess) access;
- }
-
- @Override
- protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) {
- return "";
- }
-
-
- @Override
- protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
- if (transition.getAmbiguousSyntaxes().isEmpty()) return;
- List<INode> transitionNodes = collectNodes(fromNode, toNode);
- for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
- List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
- acceptNodes(getLastNavigableState(), syntaxNodes);
- }
- }
-
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src/org/eclipse/papyrus/uml/textedit/property/xtext/validation/SemanticValidator.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src/org/eclipse/papyrus/uml/textedit/property/xtext/validation/SemanticValidator.java
deleted file mode 100644
index 55fa2d6b88c..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src/org/eclipse/papyrus/uml/textedit/property/xtext/validation/SemanticValidator.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-
-package org.eclipse.papyrus.uml.textedit.property.xtext.validation;
-
-import org.eclipse.papyrus.infra.gmfdiag.xtext.glue.edit.part.IXTextSemanticValidator;
-
-/**
- * Custom implementation for IXtextSemanticValidator in the context of the textual editor for states
- *
- * @author CEA LIST
- *
- */
-public class SemanticValidator implements IXTextSemanticValidator {
-
- public boolean validate() {
- return UmlPropertyJavaValidator.validate();
- }
-
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.state.xtext/src-gen/org/eclipse/papyrus/uml/textedit/state/xtext/UmlState.xmi b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.state.xtext/src-gen/org/eclipse/papyrus/uml/textedit/state/xtext/UmlState.xmi
deleted file mode 100755
index 72bf73490a2..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.state.xtext/src-gen/org/eclipse/papyrus/uml/textedit/state/xtext/UmlState.xmi
+++ /dev/null
@@ -1,289 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:xtext="http://www.eclipse.org/2008/Xtext">
- <xtext:Grammar name="org.eclipse.papyrus.uml.textedit.state.xtext.UmlState" usedGrammars="/1">
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="uml">
- <ePackage href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
- </metamodelDeclarations>
- <metamodelDeclarations xsi:type="xtext:GeneratedMetamodel" name="umlState">
- <ePackage href="http://www.eclipse.org/papyrus/uml/textedit/state/xtext/UmlState#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:ParserRule" name="StateRule">
- <type metamodel="/0/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/state/xtext/UmlState#//StateRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="name" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" value=":"/>
- <elements xsi:type="xtext:Assignment" feature="submachine" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.1"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:UnorderedGroup">
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="entry" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.3"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="do" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.4"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="exit" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.5"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SubmachineRule">
- <type metamodel="/0/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/state/xtext/UmlState#//SubmachineRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="path" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.2"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="submachine" operator="=">
- <terminal xsi:type="xtext:CrossReference">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//StateMachine"/>
- </type>
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </terminal>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="QualifiedName">
- <type metamodel="/0/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/state/xtext/UmlState#//QualifiedName"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="path" operator="=">
- <terminal xsi:type="xtext:CrossReference">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Namespace"/>
- </type>
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Keyword" value="::"/>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="remaining" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.2"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="EntryRule">
- <type metamodel="/0/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/state/xtext/UmlState#//EntryRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="entry"/>
- <elements xsi:type="xtext:Assignment" feature="kind" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.6"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="behaviorName" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="DoRule">
- <type metamodel="/0/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/state/xtext/UmlState#//DoRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="do"/>
- <elements xsi:type="xtext:Assignment" feature="kind" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.6"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="behaviorName" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ExitRule">
- <type metamodel="/0/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/state/xtext/UmlState#//ExitRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="exit"/>
- <elements xsi:type="xtext:Assignment" feature="kind" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.6"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="behaviorName" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="BehaviorKind">
- <type metamodel="/0/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/uml/textedit/state/xtext/UmlState#//BehaviorKind"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/state/xtext/UmlState#//BehaviorKind/ACTIVITY"/>
- <literal value="Activity"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/state/xtext/UmlState#//BehaviorKind/STATE_MACHINE"/>
- <literal value="StateMachine"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/state/xtext/UmlState#//BehaviorKind/OPAQUE_BEHAVIOR"/>
- <literal value="OpaqueBehavior"/>
- </elements>
- </alternatives>
- </rules>
- </xtext:Grammar>
- <xtext:Grammar name="org.eclipse.xtext.common.Terminals" definesHiddenTokens="true" hiddenTokens="/1/@rules.5 /1/@rules.3 /1/@rules.4">
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="ecore">
- <ePackage href="http://www.eclipse.org/emf/2002/Ecore#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:TerminalRule" name="ID">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="^"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- </elements>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="9"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="INT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
- </type>
- <alternatives xsi:type="xtext:CharacterRange" cardinality="+">
- <left value="0"/>
- <right value="9"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="STRING">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="b"/>
- <elements xsi:type="xtext:Keyword" value="t"/>
- <elements xsi:type="xtext:Keyword" value="n"/>
- <elements xsi:type="xtext:Keyword" value="f"/>
- <elements xsi:type="xtext:Keyword" value="r"/>
- <elements xsi:type="xtext:Keyword" value="u"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Keyword" value="\"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- </terminal>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="b"/>
- <elements xsi:type="xtext:Keyword" value="t"/>
- <elements xsi:type="xtext:Keyword" value="n"/>
- <elements xsi:type="xtext:Keyword" value="f"/>
- <elements xsi:type="xtext:Keyword" value="r"/>
- <elements xsi:type="xtext:Keyword" value="u"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Keyword" value="\"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- </terminal>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="'"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ML_COMMENT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="/*"/>
- <elements xsi:type="xtext:UntilToken">
- <terminal xsi:type="xtext:Keyword" value="*/"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="SL_COMMENT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="//"/>
- <elements xsi:type="xtext:NegatedToken" cardinality="*">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- <elements xsi:type="xtext:Keyword" value="&#xD;"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="&#xD;"/>
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="WS">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives" cardinality="+">
- <elements xsi:type="xtext:Keyword" value=" "/>
- <elements xsi:type="xtext:Keyword" value="&#x9;"/>
- <elements xsi:type="xtext:Keyword" value="&#xD;"/>
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ANY_OTHER">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Wildcard"/>
- </rules>
- </xtext:Grammar>
-</xmi:XMI>
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.state.xtext/src/org/eclipse/papyrus/uml/textedit/state/xtext/validation/SemanticValidator.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.state.xtext/src/org/eclipse/papyrus/uml/textedit/state/xtext/validation/SemanticValidator.java
deleted file mode 100644
index d4c7a4b7614..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.state.xtext/src/org/eclipse/papyrus/uml/textedit/state/xtext/validation/SemanticValidator.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-
-package org.eclipse.papyrus.uml.textedit.state.xtext.validation;
-
-import org.eclipse.papyrus.infra.gmfdiag.xtext.glue.edit.part.IXTextSemanticValidator;
-
-public class SemanticValidator implements IXTextSemanticValidator {
-
- public boolean validate() {
- // TODO Auto-generated method stub
- return UmlStateJavaValidator.validate() ;
- }
-
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/AppliedStereotypeProperty.xmi b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/AppliedStereotypeProperty.xmi
deleted file mode 100644
index 78119169d8c..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/AppliedStereotypeProperty.xmi
+++ /dev/null
@@ -1,2241 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:xtext="http://www.eclipse.org/2008/Xtext">
- <xtext:Grammar name="org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.AppliedStereotypeProperty" usedGrammars="/1">
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="uml">
- <ePackage href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
- </metamodelDeclarations>
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="ecore">
- <ePackage href="http://www.eclipse.org/emf/2002/Ecore#/"/>
- </metamodelDeclarations>
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="alf">
- <ePackage href="http://www.eclipse.org/papyrus/alf/Alf#/"/>
- </metamodelDeclarations>
- <metamodelDeclarations xsi:type="xtext:GeneratedMetamodel" name="appliedStereotypeProperty">
- <ePackage href="http://www.eclipse.org/papyrus/uml/textedit/property/xtext/StereotypeProperty#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:ParserRule" name="AppliedStereotypePropertyRule">
- <type metamodel="/0/@metamodelDeclarations.3">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/property/xtext/StereotypeProperty#//AppliedStereotypePropertyRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="property" operator="=">
- <terminal xsi:type="xtext:CrossReference">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Property"/>
- </type>
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.110"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="value" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.1"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ExpressionValueRule">
- <type metamodel="/0/@metamodelDeclarations.3">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/property/xtext/StereotypeProperty#//ExpressionValueRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="="/>
- <elements xsi:type="xtext:Assignment" feature="expression" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.62"/>
- </elements>
- </alternatives>
- </rules>
- </xtext:Grammar>
- <xtext:Grammar name="org.eclipse.papyrus.uml.alf.Alf" usedGrammars="/2">
- <metamodelDeclarations xsi:type="xtext:GeneratedMetamodel" name="alf">
- <ePackage href="http://www.eclipse.org/papyrus/alf/Alf#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:ParserRule" name="Test">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//Test"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value="testExpression"/>
- <elements xsi:type="xtext:Assignment" feature="expression" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.17"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value="testAssignmentExpression"/>
- <elements xsi:type="xtext:Assignment" feature="assignExpression" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.108"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value="testStatement"/>
- <elements xsi:type="xtext:Assignment" feature="statements" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.69"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="testBlock"/>
- <elements xsi:type="xtext:Assignment" feature="block" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.64"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="LITERAL">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//LITERAL"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.2"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.4"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.8"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="BOOLEAN_LITERAL">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//BOOLEAN_LITERAL"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" feature="value" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.3"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="BooleanValue">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/alf/Alf#//BooleanValue"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//BooleanValue/TRUE"/>
- <literal value="true"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//BooleanValue/FALSE"/>
- <literal value="false"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="NUMBER_LITERAL">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//NUMBER_LITERAL"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.5"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.6"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="INTEGER_LITERAL">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//INTEGER_LITERAL"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" feature="value" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.7"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="UNLIMITED_LITERAL">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//UNLIMITED_LITERAL"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" feature="value" operator="=">
- <terminal xsi:type="xtext:Keyword" value="*"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="IntegerValue">
- <type metamodel="/2/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="0"/>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:CharacterRange">
- <left value="1"/>
- <right value="9"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="_"/>
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="9"/>
- </elements>
- </elements>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="0b"/>
- <elements xsi:type="xtext:Keyword" value="0B"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="1"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="_"/>
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="1"/>
- </elements>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="0x"/>
- <elements xsi:type="xtext:Keyword" value="0X"/>
- </elements>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="9"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="f"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="F"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="_"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="9"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="f"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="F"/>
- </elements>
- </elements>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="0"/>
- <elements xsi:type="xtext:Keyword" cardinality="?" value="_"/>
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="7"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="_"/>
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="7"/>
- </elements>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="STRING_LITERAL">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//STRING_LITERAL"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" feature="value" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.111"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="NameExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//NameExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="prefixOp" operator="=">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="++"/>
- <elements xsi:type="xtext:Keyword" value="--"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="path" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.10"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="id" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.110"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="path" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.10"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="id" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Alternatives" cardinality="?">
- <elements xsi:type="xtext:Assignment" feature="invocationCompletion" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.15"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="sequenceConstructionCompletion" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.58"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="postfixOp" operator="=">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="++"/>
- <elements xsi:type="xtext:Keyword" value="--"/>
- </terminal>
- </elements>
- </elements>
- </elements>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="suffix" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.32"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="QualifiedNamePath">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//QualifiedNamePath"/>
- </type>
- <alternatives xsi:type="xtext:Group" cardinality="+">
- <elements xsi:type="xtext:Assignment" feature="namespace" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.11"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="::"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="UnqualifiedName">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//UnqualifiedName"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="name" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="templateBinding" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.12"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="TemplateBinding">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//TemplateBinding"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="&lt;"/>
- <elements xsi:type="xtext:Assignment" feature="bindings" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.13"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value=","/>
- <elements xsi:type="xtext:Assignment" feature="bindings" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.13"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value=">"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="NamedTemplateBinding">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//NamedTemplateBinding"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="formal" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="=>"/>
- <elements xsi:type="xtext:Assignment" feature="actual" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.14"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="QualifiedNameWithBinding">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//QualifiedNameWithBinding"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="id" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="binding" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.12"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" value="::"/>
- <elements xsi:type="xtext:Assignment" feature="remaining" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.14"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="Tuple">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//Tuple"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Action">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//Tuple"/>
- </type>
- </elements>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Assignment" feature="tupleElements" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.16"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value=","/>
- <elements xsi:type="xtext:Assignment" feature="tupleElements" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.16"/>
- </elements>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="TupleElement">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//TupleElement"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" feature="argument" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.17"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="Expression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//Expression"/>
- </type>
- <alternatives xsi:type="xtext:RuleCall" rule="/1/@rules.18"/>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ConditionalTestExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ConditionalTestExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="exp" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.19"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" value="?"/>
- <elements xsi:type="xtext:Assignment" feature="whenTrue" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.18"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=":"/>
- <elements xsi:type="xtext:Assignment" feature="whenFalse" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.18"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ConditionalOrExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ConditionalOrExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.20"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value="||"/>
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.20"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ConditionalAndExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ConditionalAndExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.21"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value="&amp;&amp;"/>
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.21"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="InclusiveOrExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//InclusiveOrExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.22"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value="|"/>
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.22"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ExclusiveOrExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ExclusiveOrExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.23"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value="^"/>
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.23"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="AndExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//AndExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.24"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value="&amp;"/>
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.24"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="EqualityExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//EqualityExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.25"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Assignment" feature="op" operator="+=">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="=="/>
- <elements xsi:type="xtext:Keyword" value="!="/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.25"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ClassificationExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ClassificationExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="exp" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.26"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Assignment" feature="op" operator="=">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="instanceof"/>
- <elements xsi:type="xtext:Keyword" value="hastype"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="typeName" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.9"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="RelationalExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//RelationalExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="left" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.27"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Assignment" feature="op" operator="=">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="&lt;"/>
- <elements xsi:type="xtext:Keyword" value=">"/>
- <elements xsi:type="xtext:Keyword" value="&lt;="/>
- <elements xsi:type="xtext:Keyword" value=">="/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="right" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.27"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ShiftExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ShiftExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.28"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Assignment" feature="op" operator="=">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="&lt;&lt;"/>
- <elements xsi:type="xtext:Keyword" value=">>"/>
- <elements xsi:type="xtext:Keyword" value=">>>"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.28"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="AdditiveExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//AdditiveExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.29"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Assignment" feature="op" operator="+=">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="+"/>
- <elements xsi:type="xtext:Keyword" value="-"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.29"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="MultiplicativeExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//MultiplicativeExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.30"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Assignment" feature="op" operator="+=">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="*"/>
- <elements xsi:type="xtext:Keyword" value="/"/>
- <elements xsi:type="xtext:Keyword" value="%"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="exp" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.30"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="UnaryExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//UnaryExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="op" operator="=">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="!"/>
- <elements xsi:type="xtext:Keyword" value="-"/>
- <elements xsi:type="xtext:Keyword" value="+"/>
- <elements xsi:type="xtext:Keyword" value="$"/>
- <elements xsi:type="xtext:Keyword" value="~"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="exp" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.31"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="PrimaryExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//PrimaryExpression"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" feature="prefix" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.49"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SuffixExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SuffixExpression"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.33"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.34"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.35"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.39"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.40"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.41"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.63"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="OperationCallExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//OperationCallExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="."/>
- <elements xsi:type="xtext:Assignment" feature="operationName" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="tuple" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.15"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="suffix" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.32"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="PropertyCallExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//PropertyCallExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="."/>
- <elements xsi:type="xtext:Assignment" feature="propertyName" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" value="["/>
- <elements xsi:type="xtext:Assignment" feature="index" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="]"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="suffix" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.32"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="LinkOperationExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//LinkOperationExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="."/>
- <elements xsi:type="xtext:Assignment" feature="kind" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.38"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="tuple" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.36"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="LinkOperationTuple">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//LinkOperationTuple"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Assignment" feature="linkOperationTupleElement" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.37"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value=","/>
- <elements xsi:type="xtext:Assignment" feature="linkOperationTupleElement" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.37"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="LinkOperationTupleElement">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//LinkOperationTupleElement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="role" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" value="["/>
- <elements xsi:type="xtext:Assignment" feature="roleIndex" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="]"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="=>"/>
- <elements xsi:type="xtext:Assignment" feature="object" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.17"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="LinkOperationKind">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/alf/Alf#//LinkOperationKind"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//LinkOperationKind/CREATE"/>
- <literal value="createLink"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//LinkOperationKind/DESTROY"/>
- <literal value="destroyLink"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//LinkOperationKind/CLEAR"/>
- <literal value="clearAssoc"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SequenceOperationExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SequenceOperationExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="->"/>
- <elements xsi:type="xtext:Assignment" feature="operationName" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.14"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="tuple" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.15"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="suffix" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.32"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SequenceReductionExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SequenceReductionExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="->"/>
- <elements xsi:type="xtext:Keyword" value="reduce"/>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="isOrdered" operator="?=">
- <terminal xsi:type="xtext:Keyword" value="ordered"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="behavior" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.14"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="suffix" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.32"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SequenceExpansionExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SequenceExpansionExpression"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.42"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.44"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.46"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.48"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SelectOrRejectOperation">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SelectOrRejectOperation"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="->"/>
- <elements xsi:type="xtext:Assignment" feature="op" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.43"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="name" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Assignment" feature="expr" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="suffix" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.32"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="SelectOrRejectOperator">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/alf/Alf#//SelectOrRejectOperator"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//SelectOrRejectOperator/SELECT"/>
- <literal value="select"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//SelectOrRejectOperator/REJECT"/>
- <literal value="reject"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="CollectOrIterateOperation">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//CollectOrIterateOperation"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="->"/>
- <elements xsi:type="xtext:Assignment" feature="op" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.45"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="name" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Assignment" feature="expr" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="suffix" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.32"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="CollectOrIterateOperator">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/alf/Alf#//CollectOrIterateOperator"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//CollectOrIterateOperator/COLLECT"/>
- <literal value="collect"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//CollectOrIterateOperator/ITERATE"/>
- <literal value="iterate"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ForAllOrExistsOrOneOperation">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ForAllOrExistsOrOneOperation"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="->"/>
- <elements xsi:type="xtext:Assignment" feature="op" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.47"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="name" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Assignment" feature="expr" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="suffix" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.32"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="ForAllOrExistsOrOneOperator">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/alf/Alf#//ForAllOrExistsOrOneOperator"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//ForAllOrExistsOrOneOperator/FORALL"/>
- <literal value="forAll"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//ForAllOrExistsOrOneOperator/EXISTS"/>
- <literal value="exists"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//ForAllOrExistsOrOneOperator/ONE"/>
- <literal value="one"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="IsUniqueOperation">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//IsUniqueOperation"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="->"/>
- <elements xsi:type="xtext:Keyword" value="isUnique"/>
- <elements xsi:type="xtext:Assignment" feature="name" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Assignment" feature="expr" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="suffix" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.32"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ValueSpecification">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ValueSpecification"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.9"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.1"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.53"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.54"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.55"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.51"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.52"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="NonLiteralValueSpecification">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//NonLiteralValueSpecification"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.9"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.51"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.55"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.53"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.54"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ParenthesizedExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ParenthesizedExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Assignment" feature="expOrTypeCast" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- <elements xsi:type="xtext:Alternatives" cardinality="?">
- <elements xsi:type="xtext:Assignment" feature="casted" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.50"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="suffix" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.32"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="NullExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//NullExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Action">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//NullExpression"/>
- </type>
- </elements>
- <elements xsi:type="xtext:Keyword" value="null"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ThisExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ThisExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Action">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ThisExpression"/>
- </type>
- </elements>
- <elements xsi:type="xtext:Keyword" value="this"/>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="suffix" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.32"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SuperInvocationExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SuperInvocationExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="super"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Assignment" feature="tuple" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.15"/>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="."/>
- <elements xsi:type="xtext:Assignment" feature="operationName" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.14"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="tuple" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.15"/>
- </elements>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="InstanceCreationExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//InstanceCreationExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="new"/>
- <elements xsi:type="xtext:Assignment" feature="constructor" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.14"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="tuple" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.56"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="suffix" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.32"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="InstanceCreationTuple">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//InstanceCreationTuple"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Action">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//InstanceCreationTuple"/>
- </type>
- </elements>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Assignment" feature="instanceCreationTupleElement" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.57"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value=","/>
- <elements xsi:type="xtext:Assignment" feature="instanceCreationTupleElement" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.57"/>
- </elements>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="InstanceCreationTupleElement">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//InstanceCreationTupleElement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="role" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="=>"/>
- <elements xsi:type="xtext:Assignment" feature="object" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.17"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SequenceConstructionOrAccessCompletion">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SequenceConstructionOrAccessCompletion"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="multiplicityIndicator" operator="?=">
- <terminal xsi:type="xtext:Keyword" value="["/>
- </elements>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Assignment" feature="accessCompletion" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.59"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="sequenceCompletion" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.60"/>
- </elements>
- </elements>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="expression" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.61"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="AccessCompletion">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//AccessCompletion"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="accessIndex" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="]"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="PartialSequenceConstructionCompletion">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//PartialSequenceConstructionCompletion"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="]"/>
- <elements xsi:type="xtext:Assignment" feature="expression" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.61"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SequenceConstructionExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SequenceConstructionExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="{"/>
- <elements xsi:type="xtext:Assignment" feature="sequenceElement" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.62"/>
- </elements>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value=","/>
- <elements xsi:type="xtext:Assignment" feature="sequenceElement" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.62"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value=".."/>
- <elements xsi:type="xtext:Assignment" feature="rangeUpper" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.17"/>
- </elements>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="}"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SequenceElement">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SequenceElement"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.17"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.61"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ClassExtentExpression">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ClassExtentExpression"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Action">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ClassExtentExpression"/>
- </type>
- </elements>
- <elements xsi:type="xtext:Keyword" value="."/>
- <elements xsi:type="xtext:Keyword" value="allInstances"/>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Keyword" value=")"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="Block">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//Block"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="{"/>
- <elements xsi:type="xtext:Action">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//Block"/>
- </type>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="sequence" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.65"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="}"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="StatementSequence">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//StatementSequence"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" cardinality="+" feature="statements" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.66"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="DocumentedStatement">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//DocumentedStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="comment" operator="=">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.112"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.113"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="statement" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.69"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="InlineStatement">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//InlineStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="/*@"/>
- <elements xsi:type="xtext:Keyword" value="inline"/>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Assignment" feature="langageName" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- <elements xsi:type="xtext:Assignment" feature="body" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.111"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="*/"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="AnnotatedStatement">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//AnnotatedStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="//@"/>
- <elements xsi:type="xtext:Assignment" feature="annotation" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.70"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="statement" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.69"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="Statement">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//Statement"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.68"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.67"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.72"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.73"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.74"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.75"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.80"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.85"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.86"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.87"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.90"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.91"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.92"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.97"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.103"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.104"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.105"/>
- <elements xsi:type="xtext:RuleCall" rule="/1/@rules.106"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="Annotation">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//Annotation"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="kind" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.71"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Assignment" feature="args" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value=","/>
- <elements xsi:type="xtext:Assignment" feature="args" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.110"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="AnnotationKind">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/alf/Alf#//AnnotationKind"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AnnotationKind/ISOLATED"/>
- <literal value="isolated"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AnnotationKind/DETERMINED"/>
- <literal value="determined"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AnnotationKind/ASSURED"/>
- <literal value="assured"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AnnotationKind/PARALLEL"/>
- <literal value="parallel"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="BlockStatement">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//BlockStatement"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" feature="block" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.64"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="EmptyStatement">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//EmptyStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Action">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//EmptyStatement"/>
- </type>
- </elements>
- <elements xsi:type="xtext:Keyword" value=";"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="LocalNameDeclarationStatement">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//LocalNameDeclarationStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="let"/>
- <elements xsi:type="xtext:Assignment" feature="varName" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=":"/>
- <elements xsi:type="xtext:Assignment" feature="type" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.14"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Assignment" feature="multiplicityIndicator" operator="?=">
- <terminal xsi:type="xtext:Keyword" value="["/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="]"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="="/>
- <elements xsi:type="xtext:Assignment" feature="init" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.62"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=";"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="IfStatement">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//IfStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="if"/>
- <elements xsi:type="xtext:Assignment" feature="sequentialClausses" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.76"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="finalClause" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.79"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SequentialClauses">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SequentialClauses"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="conccurentClauses" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.77"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value="else"/>
- <elements xsi:type="xtext:Keyword" value="if"/>
- <elements xsi:type="xtext:Assignment" feature="conccurentClauses" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.77"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ConcurrentClauses">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ConcurrentClauses"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="nonFinalClause" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.78"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value="or"/>
- <elements xsi:type="xtext:Keyword" value="if"/>
- <elements xsi:type="xtext:Assignment" feature="nonFinalClause" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.78"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="NonFinalClause">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//NonFinalClause"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Assignment" feature="condition" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- <elements xsi:type="xtext:Assignment" feature="block" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.64"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="FinalClause">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//FinalClause"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="else"/>
- <elements xsi:type="xtext:Assignment" feature="block" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.64"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SwitchStatement">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SwitchStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="switch"/>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Assignment" feature="expression" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- <elements xsi:type="xtext:Keyword" value="{"/>
- <elements xsi:type="xtext:Assignment" cardinality="*" feature="switchClause" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.81"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="defaultClause" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.83"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="}"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SwitchClause">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SwitchClause"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="switchCase" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.82"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="*" feature="switchCase" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.82"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="statementSequence" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.84"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SwitchCase">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SwitchCase"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="case"/>
- <elements xsi:type="xtext:Assignment" feature="expression" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=":"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SwitchDefaultClause">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SwitchDefaultClause"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="default"/>
- <elements xsi:type="xtext:Keyword" value=":"/>
- <elements xsi:type="xtext:Assignment" feature="statementSequence" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.84"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="NonEmptyStatementSequence">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//NonEmptyStatementSequence"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" cardinality="+" feature="statement" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.66"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="WhileStatement">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//WhileStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="while"/>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Assignment" feature="condition" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- <elements xsi:type="xtext:Assignment" feature="block" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.64"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="DoStatement">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//DoStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="do"/>
- <elements xsi:type="xtext:Assignment" feature="block" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.64"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="while"/>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Assignment" feature="condition" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- <elements xsi:type="xtext:Keyword" value=";"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ForStatement">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ForStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="for"/>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Assignment" feature="control" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.88"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- <elements xsi:type="xtext:Assignment" feature="block" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.64"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ForControl">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ForControl"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="loopVariableDefinition" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.89"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value=","/>
- <elements xsi:type="xtext:Assignment" feature="loopVariableDefinition" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.89"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="LoopVariableDefinition">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//LoopVariableDefinition"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="name" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="in"/>
- <elements xsi:type="xtext:Assignment" feature="expression1" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" value=".."/>
- <elements xsi:type="xtext:Assignment" feature="expression2" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.17"/>
- </elements>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="type" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.14"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="name" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=":"/>
- <elements xsi:type="xtext:Assignment" feature="expression" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.17"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="BreakStatement">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//BreakStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Action">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//BreakStatement"/>
- </type>
- </elements>
- <elements xsi:type="xtext:Keyword" value="break"/>
- <elements xsi:type="xtext:Keyword" value=";"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ReturnStatement">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ReturnStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="return"/>
- <elements xsi:type="xtext:Assignment" feature="expression" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=";"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="AcceptStatement">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//AcceptStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="clause" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.96"/>
- </elements>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Assignment" feature="simpleAccept" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.93"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="compoundAccept" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.94"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SimpleAcceptStatementCompletion">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SimpleAcceptStatementCompletion"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Action">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SimpleAcceptStatementCompletion"/>
- </type>
- </elements>
- <elements xsi:type="xtext:Keyword" value=";"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="CompoundAcceptStatementCompletion">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//CompoundAcceptStatementCompletion"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="block" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.64"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value="or"/>
- <elements xsi:type="xtext:Assignment" feature="acceptBlock" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.95"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="AcceptBlock">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//AcceptBlock"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="clause" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.96"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="block" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.64"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="AcceptClause">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//AcceptClause"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="accept"/>
- <elements xsi:type="xtext:Keyword" value="("/>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Assignment" feature="name" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=":"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="qualifiedNameList" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.102"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=")"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ClassifyStatement">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ClassifyStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="classify"/>
- <elements xsi:type="xtext:Assignment" feature="expression" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.17"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="clause" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.98"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=";"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ClassificationClause">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ClassificationClause"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="classifyFromClause" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.99"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="classifyToClause" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.100"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="reclassyAllClause" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.101"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="classifyToClause" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.100"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ClassificationFromClause">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ClassificationFromClause"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="from"/>
- <elements xsi:type="xtext:Assignment" feature="qualifiedNameList" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.102"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ClassificationToClause">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ClassificationToClause"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="to"/>
- <elements xsi:type="xtext:Assignment" feature="qualifiedNameList" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.102"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ReclassifyAllClause">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ReclassifyAllClause"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Action">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ReclassifyAllClause"/>
- </type>
- </elements>
- <elements xsi:type="xtext:Keyword" value="from"/>
- <elements xsi:type="xtext:Keyword" value="*"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="QualifiedNameList">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//QualifiedNameList"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="qualifiedName" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.14"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value=","/>
- <elements xsi:type="xtext:Assignment" feature="qualifiedName" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.14"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="InvocationOrAssignementOrDeclarationStatement">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//InvocationOrAssignementOrDeclarationStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="typePart_OR_assignedPart_OR_invocationPart" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.9"/>
- </elements>
- <elements xsi:type="xtext:Alternatives" cardinality="?">
- <elements xsi:type="xtext:Assignment" feature="variableDeclarationCompletion" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.107"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="assignmentCompletion" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.108"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value=";"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="SuperInvocationStatement">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//SuperInvocationStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="_super" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.54"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=";"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ThisInvocationStatement">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//ThisInvocationStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="_this" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.53"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="assignmentCompletion" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.108"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=";"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="InstanceCreationInvocationStatement">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//InstanceCreationInvocationStatement"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="_new" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.55"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value=";"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="VariableDeclarationCompletion">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//VariableDeclarationCompletion"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Assignment" feature="multiplicityIndicator" operator="?=">
- <terminal xsi:type="xtext:Keyword" value="["/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="]"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="variableName" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.110"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="initValue" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.108"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="AssignmentCompletion">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentCompletion"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Assignment" feature="op" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.109"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="rightHandSide" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.62"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="AssignmentOperator">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentOperator"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentOperator/ASSIGN"/>
- <literal value="="/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentOperator/PLUSASSIGN"/>
- <literal value="+="/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentOperator/MINUSASSIGN"/>
- <literal value="-="/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentOperator/MULTASSIGN"/>
- <literal value="*="/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentOperator/MODASSIGN"/>
- <literal value="%="/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentOperator/DIVASSIGN"/>
- <literal value="/="/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentOperator/ANDASSIGN"/>
- <literal value="&amp;="/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentOperator/ORASSIGN"/>
- <literal value="|="/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentOperator/XORASSIGN"/>
- <literal value="^="/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentOperator/LSHIFTASSIGN"/>
- <literal value="&lt;&lt;="/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentOperator/RSHIFTASSIGN"/>
- <literal value=">>="/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/alf/Alf#//AssignmentOperator/URSHIFTASSIGN"/>
- <literal value=">>>="/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ID">
- <type metamodel="/2/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- </elements>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="9"/>
- </elements>
- </elements>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:UntilToken">
- <terminal xsi:type="xtext:Keyword" value="'"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="STRING">
- <type metamodel="/2/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="b"/>
- <elements xsi:type="xtext:Keyword" value="t"/>
- <elements xsi:type="xtext:Keyword" value="n"/>
- <elements xsi:type="xtext:Keyword" value="f"/>
- <elements xsi:type="xtext:Keyword" value="r"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Keyword" value="\"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- </terminal>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ML_COMMENT">
- <type metamodel="/2/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="/*"/>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Keyword" value="@"/>
- </elements>
- <elements xsi:type="xtext:UntilToken">
- <terminal xsi:type="xtext:Keyword" value="*/"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="SL_COMMENT">
- <type metamodel="/2/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="//"/>
- <elements xsi:type="xtext:NegatedToken" cardinality="*">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- <elements xsi:type="xtext:Keyword" value="&#xD;"/>
- <elements xsi:type="xtext:Keyword" value="@"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="&#xD;"/>
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- </elements>
- </alternatives>
- </rules>
- </xtext:Grammar>
- <xtext:Grammar name="org.eclipse.xtext.common.Terminals" definesHiddenTokens="true" hiddenTokens="/2/@rules.5 /1/@rules.112 /1/@rules.113">
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="ecore">
- <ePackage href="http://www.eclipse.org/emf/2002/Ecore#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:TerminalRule" name="ID">
- <type metamodel="/2/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="^"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- </elements>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="9"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="INT">
- <type metamodel="/2/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
- </type>
- <alternatives xsi:type="xtext:CharacterRange" cardinality="+">
- <left value="0"/>
- <right value="9"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="STRING">
- <type metamodel="/2/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="b"/>
- <elements xsi:type="xtext:Keyword" value="t"/>
- <elements xsi:type="xtext:Keyword" value="n"/>
- <elements xsi:type="xtext:Keyword" value="f"/>
- <elements xsi:type="xtext:Keyword" value="r"/>
- <elements xsi:type="xtext:Keyword" value="u"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Keyword" value="\"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- </terminal>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="b"/>
- <elements xsi:type="xtext:Keyword" value="t"/>
- <elements xsi:type="xtext:Keyword" value="n"/>
- <elements xsi:type="xtext:Keyword" value="f"/>
- <elements xsi:type="xtext:Keyword" value="r"/>
- <elements xsi:type="xtext:Keyword" value="u"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Keyword" value="\"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- </terminal>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="'"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ML_COMMENT">
- <type metamodel="/2/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="/*"/>
- <elements xsi:type="xtext:UntilToken">
- <terminal xsi:type="xtext:Keyword" value="*/"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="SL_COMMENT">
- <type metamodel="/2/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="//"/>
- <elements xsi:type="xtext:NegatedToken" cardinality="*">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- <elements xsi:type="xtext:Keyword" value="&#xD;"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="&#xD;"/>
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="WS">
- <type metamodel="/2/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives" cardinality="+">
- <elements xsi:type="xtext:Keyword" value=" "/>
- <elements xsi:type="xtext:Keyword" value="&#x9;"/>
- <elements xsi:type="xtext:Keyword" value="&#xD;"/>
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ANY_OTHER">
- <type metamodel="/2/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Wildcard"/>
- </rules>
- </xtext:Grammar>
-</xmi:XMI>
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/serializer/AbstractAppliedStereotypePropertySemanticSequencer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/serializer/AbstractAppliedStereotypePropertySemanticSequencer.java
deleted file mode 100644
index 488e55f1019..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/serializer/AbstractAppliedStereotypePropertySemanticSequencer.java
+++ /dev/null
@@ -1,1685 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2012 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.serializer;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.uml.alf.alf.AcceptBlock;
-import org.eclipse.papyrus.uml.alf.alf.AcceptClause;
-import org.eclipse.papyrus.uml.alf.alf.AcceptStatement;
-import org.eclipse.papyrus.uml.alf.alf.AccessCompletion;
-import org.eclipse.papyrus.uml.alf.alf.AdditiveExpression;
-import org.eclipse.papyrus.uml.alf.alf.AlfPackage;
-import org.eclipse.papyrus.uml.alf.alf.AndExpression;
-import org.eclipse.papyrus.uml.alf.alf.AnnotatedStatement;
-import org.eclipse.papyrus.uml.alf.alf.Annotation;
-import org.eclipse.papyrus.uml.alf.alf.AssignmentCompletion;
-import org.eclipse.papyrus.uml.alf.alf.BOOLEAN_LITERAL;
-import org.eclipse.papyrus.uml.alf.alf.Block;
-import org.eclipse.papyrus.uml.alf.alf.BlockStatement;
-import org.eclipse.papyrus.uml.alf.alf.BreakStatement;
-import org.eclipse.papyrus.uml.alf.alf.ClassExtentExpression;
-import org.eclipse.papyrus.uml.alf.alf.ClassificationClause;
-import org.eclipse.papyrus.uml.alf.alf.ClassificationExpression;
-import org.eclipse.papyrus.uml.alf.alf.ClassificationFromClause;
-import org.eclipse.papyrus.uml.alf.alf.ClassificationToClause;
-import org.eclipse.papyrus.uml.alf.alf.ClassifyStatement;
-import org.eclipse.papyrus.uml.alf.alf.CollectOrIterateOperation;
-import org.eclipse.papyrus.uml.alf.alf.CompoundAcceptStatementCompletion;
-import org.eclipse.papyrus.uml.alf.alf.ConcurrentClauses;
-import org.eclipse.papyrus.uml.alf.alf.ConditionalAndExpression;
-import org.eclipse.papyrus.uml.alf.alf.ConditionalOrExpression;
-import org.eclipse.papyrus.uml.alf.alf.ConditionalTestExpression;
-import org.eclipse.papyrus.uml.alf.alf.DoStatement;
-import org.eclipse.papyrus.uml.alf.alf.DocumentedStatement;
-import org.eclipse.papyrus.uml.alf.alf.EmptyStatement;
-import org.eclipse.papyrus.uml.alf.alf.EqualityExpression;
-import org.eclipse.papyrus.uml.alf.alf.ExclusiveOrExpression;
-import org.eclipse.papyrus.uml.alf.alf.FinalClause;
-import org.eclipse.papyrus.uml.alf.alf.ForAllOrExistsOrOneOperation;
-import org.eclipse.papyrus.uml.alf.alf.ForControl;
-import org.eclipse.papyrus.uml.alf.alf.ForStatement;
-import org.eclipse.papyrus.uml.alf.alf.INTEGER_LITERAL;
-import org.eclipse.papyrus.uml.alf.alf.IfStatement;
-import org.eclipse.papyrus.uml.alf.alf.InclusiveOrExpression;
-import org.eclipse.papyrus.uml.alf.alf.InlineStatement;
-import org.eclipse.papyrus.uml.alf.alf.InstanceCreationExpression;
-import org.eclipse.papyrus.uml.alf.alf.InstanceCreationInvocationStatement;
-import org.eclipse.papyrus.uml.alf.alf.InstanceCreationTuple;
-import org.eclipse.papyrus.uml.alf.alf.InstanceCreationTupleElement;
-import org.eclipse.papyrus.uml.alf.alf.InvocationOrAssignementOrDeclarationStatement;
-import org.eclipse.papyrus.uml.alf.alf.IsUniqueOperation;
-import org.eclipse.papyrus.uml.alf.alf.LinkOperationExpression;
-import org.eclipse.papyrus.uml.alf.alf.LinkOperationTuple;
-import org.eclipse.papyrus.uml.alf.alf.LinkOperationTupleElement;
-import org.eclipse.papyrus.uml.alf.alf.LocalNameDeclarationStatement;
-import org.eclipse.papyrus.uml.alf.alf.LoopVariableDefinition;
-import org.eclipse.papyrus.uml.alf.alf.MultiplicativeExpression;
-import org.eclipse.papyrus.uml.alf.alf.NameExpression;
-import org.eclipse.papyrus.uml.alf.alf.NamedTemplateBinding;
-import org.eclipse.papyrus.uml.alf.alf.NonEmptyStatementSequence;
-import org.eclipse.papyrus.uml.alf.alf.NonFinalClause;
-import org.eclipse.papyrus.uml.alf.alf.NullExpression;
-import org.eclipse.papyrus.uml.alf.alf.OperationCallExpression;
-import org.eclipse.papyrus.uml.alf.alf.ParenthesizedExpression;
-import org.eclipse.papyrus.uml.alf.alf.PartialSequenceConstructionCompletion;
-import org.eclipse.papyrus.uml.alf.alf.PrimaryExpression;
-import org.eclipse.papyrus.uml.alf.alf.PropertyCallExpression;
-import org.eclipse.papyrus.uml.alf.alf.QualifiedNameList;
-import org.eclipse.papyrus.uml.alf.alf.QualifiedNamePath;
-import org.eclipse.papyrus.uml.alf.alf.QualifiedNameWithBinding;
-import org.eclipse.papyrus.uml.alf.alf.ReclassifyAllClause;
-import org.eclipse.papyrus.uml.alf.alf.RelationalExpression;
-import org.eclipse.papyrus.uml.alf.alf.ReturnStatement;
-import org.eclipse.papyrus.uml.alf.alf.STRING_LITERAL;
-import org.eclipse.papyrus.uml.alf.alf.SelectOrRejectOperation;
-import org.eclipse.papyrus.uml.alf.alf.SequenceConstructionExpression;
-import org.eclipse.papyrus.uml.alf.alf.SequenceConstructionOrAccessCompletion;
-import org.eclipse.papyrus.uml.alf.alf.SequenceOperationExpression;
-import org.eclipse.papyrus.uml.alf.alf.SequenceReductionExpression;
-import org.eclipse.papyrus.uml.alf.alf.SequentialClauses;
-import org.eclipse.papyrus.uml.alf.alf.ShiftExpression;
-import org.eclipse.papyrus.uml.alf.alf.SimpleAcceptStatementCompletion;
-import org.eclipse.papyrus.uml.alf.alf.StatementSequence;
-import org.eclipse.papyrus.uml.alf.alf.SuperInvocationExpression;
-import org.eclipse.papyrus.uml.alf.alf.SuperInvocationStatement;
-import org.eclipse.papyrus.uml.alf.alf.SwitchCase;
-import org.eclipse.papyrus.uml.alf.alf.SwitchClause;
-import org.eclipse.papyrus.uml.alf.alf.SwitchDefaultClause;
-import org.eclipse.papyrus.uml.alf.alf.SwitchStatement;
-import org.eclipse.papyrus.uml.alf.alf.TemplateBinding;
-import org.eclipse.papyrus.uml.alf.alf.Test;
-import org.eclipse.papyrus.uml.alf.alf.ThisExpression;
-import org.eclipse.papyrus.uml.alf.alf.ThisInvocationStatement;
-import org.eclipse.papyrus.uml.alf.alf.Tuple;
-import org.eclipse.papyrus.uml.alf.alf.TupleElement;
-import org.eclipse.papyrus.uml.alf.alf.UNLIMITED_LITERAL;
-import org.eclipse.papyrus.uml.alf.alf.UnaryExpression;
-import org.eclipse.papyrus.uml.alf.alf.UnqualifiedName;
-import org.eclipse.papyrus.uml.alf.alf.VariableDeclarationCompletion;
-import org.eclipse.papyrus.uml.alf.alf.WhileStatement;
-import org.eclipse.papyrus.uml.alf.serializer.AbstractAlfSemanticSequencer;
-import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyPackage;
-import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.AppliedStereotypePropertyRule;
-import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.appliedStereotypeProperty.ExpressionValueRule;
-import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.services.AppliedStereotypePropertyGrammarAccess;
-import org.eclipse.xtext.serializer.acceptor.ISemanticSequenceAcceptor;
-import org.eclipse.xtext.serializer.acceptor.SequenceFeeder;
-import org.eclipse.xtext.serializer.diagnostic.ISemanticSequencerDiagnosticProvider;
-import org.eclipse.xtext.serializer.diagnostic.ISerializationDiagnostic.Acceptor;
-import org.eclipse.xtext.serializer.sequencer.AbstractSemanticSequencer;
-import org.eclipse.xtext.serializer.sequencer.GenericSequencer;
-import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider;
-import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer;
-import org.eclipse.xtext.serializer.sequencer.ITransientValueService;
-import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient;
-
-import com.google.inject.Inject;
-import com.google.inject.Provider;
-
-@SuppressWarnings("restriction")
-public class AbstractAppliedStereotypePropertySemanticSequencer extends AbstractSemanticSequencer {
-
- @Inject
- protected AppliedStereotypePropertyGrammarAccess grammarAccess;
-
- @Inject
- protected ISemanticSequencerDiagnosticProvider diagnosticProvider;
-
- @Inject
- protected ITransientValueService transientValues;
-
- @Inject
- @GenericSequencer
- protected Provider<ISemanticSequencer> genericSequencerProvider;
-
- protected ISemanticSequencer genericSequencer;
-
- @Inject
- protected Provider<AbstractAlfSemanticSequencer> superSequencerProvider;
-
- protected AbstractAlfSemanticSequencer superSequencer;
-
- @Override
- public void init(ISemanticSequencer sequencer, ISemanticSequenceAcceptor sequenceAcceptor, Acceptor errorAcceptor) {
- super.init(sequencer, sequenceAcceptor, errorAcceptor);
- this.genericSequencer = genericSequencerProvider.get();
- this.genericSequencer.init(sequencer, sequenceAcceptor, errorAcceptor);
- this.superSequencer = superSequencerProvider.get();
- this.superSequencer.init(sequencer, sequenceAcceptor, errorAcceptor);
- }
-
- public void createSequence(EObject context, EObject semanticObject) {
- if(semanticObject.eClass().getEPackage() == AlfPackage.eINSTANCE) switch(semanticObject.eClass().getClassifierID()) {
- case AlfPackage.ACCEPT_BLOCK:
- if(context == grammarAccess.getAcceptBlockRule()) {
- sequence_AcceptBlock(context, (AcceptBlock) semanticObject);
- return;
- }
- else break;
- case AlfPackage.ACCEPT_CLAUSE:
- if(context == grammarAccess.getAcceptClauseRule()) {
- sequence_AcceptClause(context, (AcceptClause) semanticObject);
- return;
- }
- else break;
- case AlfPackage.ACCEPT_STATEMENT:
- if(context == grammarAccess.getAcceptStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_AcceptStatement(context, (AcceptStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.ACCESS_COMPLETION:
- if(context == grammarAccess.getAccessCompletionRule()) {
- sequence_AccessCompletion(context, (AccessCompletion) semanticObject);
- return;
- }
- else break;
- case AlfPackage.ADDITIVE_EXPRESSION:
- if(context == grammarAccess.getAdditiveExpressionRule()) {
- sequence_AdditiveExpression(context, (AdditiveExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.AND_EXPRESSION:
- if(context == grammarAccess.getAndExpressionRule()) {
- sequence_AndExpression(context, (AndExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.ANNOTATED_STATEMENT:
- if(context == grammarAccess.getAnnotatedStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_AnnotatedStatement(context, (AnnotatedStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.ANNOTATION:
- if(context == grammarAccess.getAnnotationRule()) {
- sequence_Annotation(context, (Annotation) semanticObject);
- return;
- }
- else break;
- case AlfPackage.ASSIGNMENT_COMPLETION:
- if(context == grammarAccess.getAssignmentCompletionRule()) {
- sequence_AssignmentCompletion(context, (AssignmentCompletion) semanticObject);
- return;
- }
- else break;
- case AlfPackage.BOOLEAN_LITERAL:
- if(context == grammarAccess.getBOOLEAN_LITERALRule() ||
- context == grammarAccess.getLITERALRule() ||
- context == grammarAccess.getValueSpecificationRule()) {
- sequence_BOOLEAN_LITERAL(context, (BOOLEAN_LITERAL) semanticObject);
- return;
- }
- else break;
- case AlfPackage.BLOCK:
- if(context == grammarAccess.getBlockRule()) {
- sequence_Block(context, (Block) semanticObject);
- return;
- }
- else break;
- case AlfPackage.BLOCK_STATEMENT:
- if(context == grammarAccess.getBlockStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_BlockStatement(context, (BlockStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.BREAK_STATEMENT:
- if(context == grammarAccess.getBreakStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_Statement(context, (BreakStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.CLASS_EXTENT_EXPRESSION:
- if(context == grammarAccess.getClassExtentExpressionRule() ||
- context == grammarAccess.getSuffixExpressionRule()) {
- sequence_SuffixExpression(context, (ClassExtentExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.CLASSIFICATION_CLAUSE:
- if(context == grammarAccess.getClassificationClauseRule()) {
- sequence_ClassificationClause(context, (ClassificationClause) semanticObject);
- return;
- }
- else break;
- case AlfPackage.CLASSIFICATION_EXPRESSION:
- if(context == grammarAccess.getClassificationExpressionRule()) {
- sequence_ClassificationExpression(context, (ClassificationExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.CLASSIFICATION_FROM_CLAUSE:
- if(context == grammarAccess.getClassificationFromClauseRule()) {
- sequence_ClassificationFromClause(context, (ClassificationFromClause) semanticObject);
- return;
- }
- else break;
- case AlfPackage.CLASSIFICATION_TO_CLAUSE:
- if(context == grammarAccess.getClassificationToClauseRule()) {
- sequence_ClassificationToClause(context, (ClassificationToClause) semanticObject);
- return;
- }
- else break;
- case AlfPackage.CLASSIFY_STATEMENT:
- if(context == grammarAccess.getClassifyStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_ClassifyStatement(context, (ClassifyStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.COLLECT_OR_ITERATE_OPERATION:
- if(context == grammarAccess.getCollectOrIterateOperationRule() ||
- context == grammarAccess.getSequenceExpansionExpressionRule() ||
- context == grammarAccess.getSuffixExpressionRule()) {
- sequence_CollectOrIterateOperation(context, (CollectOrIterateOperation) semanticObject);
- return;
- }
- else break;
- case AlfPackage.COMPOUND_ACCEPT_STATEMENT_COMPLETION:
- if(context == grammarAccess.getCompoundAcceptStatementCompletionRule()) {
- sequence_CompoundAcceptStatementCompletion(context, (CompoundAcceptStatementCompletion) semanticObject);
- return;
- }
- else break;
- case AlfPackage.CONCURRENT_CLAUSES:
- if(context == grammarAccess.getConcurrentClausesRule()) {
- sequence_ConcurrentClauses(context, (ConcurrentClauses) semanticObject);
- return;
- }
- else break;
- case AlfPackage.CONDITIONAL_AND_EXPRESSION:
- if(context == grammarAccess.getConditionalAndExpressionRule()) {
- sequence_ConditionalAndExpression(context, (ConditionalAndExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.CONDITIONAL_OR_EXPRESSION:
- if(context == grammarAccess.getConditionalOrExpressionRule()) {
- sequence_ConditionalOrExpression(context, (ConditionalOrExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.CONDITIONAL_TEST_EXPRESSION:
- if(context == grammarAccess.getConditionalTestExpressionRule() ||
- context == grammarAccess.getExpressionRule() ||
- context == grammarAccess.getSequenceElementRule()) {
- sequence_ConditionalTestExpression(context, (ConditionalTestExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.DO_STATEMENT:
- if(context == grammarAccess.getDoStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_DoStatement(context, (DoStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.DOCUMENTED_STATEMENT:
- if(context == grammarAccess.getDocumentedStatementRule()) {
- sequence_DocumentedStatement(context, (DocumentedStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.EMPTY_STATEMENT:
- if(context == grammarAccess.getEmptyStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_Statement(context, (EmptyStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.EQUALITY_EXPRESSION:
- if(context == grammarAccess.getEqualityExpressionRule()) {
- sequence_EqualityExpression(context, (EqualityExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.EXCLUSIVE_OR_EXPRESSION:
- if(context == grammarAccess.getExclusiveOrExpressionRule()) {
- sequence_ExclusiveOrExpression(context, (ExclusiveOrExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.FINAL_CLAUSE:
- if(context == grammarAccess.getFinalClauseRule()) {
- sequence_FinalClause(context, (FinalClause) semanticObject);
- return;
- }
- else break;
- case AlfPackage.FOR_ALL_OR_EXISTS_OR_ONE_OPERATION:
- if(context == grammarAccess.getForAllOrExistsOrOneOperationRule() ||
- context == grammarAccess.getSequenceExpansionExpressionRule() ||
- context == grammarAccess.getSuffixExpressionRule()) {
- sequence_ForAllOrExistsOrOneOperation(context, (ForAllOrExistsOrOneOperation) semanticObject);
- return;
- }
- else break;
- case AlfPackage.FOR_CONTROL:
- if(context == grammarAccess.getForControlRule()) {
- sequence_ForControl(context, (ForControl) semanticObject);
- return;
- }
- else break;
- case AlfPackage.FOR_STATEMENT:
- if(context == grammarAccess.getForStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_ForStatement(context, (ForStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.INTEGER_LITERAL:
- if(context == grammarAccess.getINTEGER_LITERALRule() ||
- context == grammarAccess.getLITERALRule() ||
- context == grammarAccess.getNUMBER_LITERALRule() ||
- context == grammarAccess.getValueSpecificationRule()) {
- sequence_INTEGER_LITERAL(context, (INTEGER_LITERAL) semanticObject);
- return;
- }
- else break;
- case AlfPackage.IF_STATEMENT:
- if(context == grammarAccess.getIfStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_IfStatement(context, (IfStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.INCLUSIVE_OR_EXPRESSION:
- if(context == grammarAccess.getInclusiveOrExpressionRule()) {
- sequence_InclusiveOrExpression(context, (InclusiveOrExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.INLINE_STATEMENT:
- if(context == grammarAccess.getInlineStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_InlineStatement(context, (InlineStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.INSTANCE_CREATION_EXPRESSION:
- if(context == grammarAccess.getInstanceCreationExpressionRule() ||
- context == grammarAccess.getNonLiteralValueSpecificationRule() ||
- context == grammarAccess.getValueSpecificationRule()) {
- sequence_InstanceCreationExpression(context, (InstanceCreationExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.INSTANCE_CREATION_INVOCATION_STATEMENT:
- if(context == grammarAccess.getInstanceCreationInvocationStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_InstanceCreationInvocationStatement(context, (InstanceCreationInvocationStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.INSTANCE_CREATION_TUPLE:
- if(context == grammarAccess.getInstanceCreationTupleRule()) {
- sequence_InstanceCreationTuple(context, (InstanceCreationTuple) semanticObject);
- return;
- }
- else break;
- case AlfPackage.INSTANCE_CREATION_TUPLE_ELEMENT:
- if(context == grammarAccess.getInstanceCreationTupleElementRule()) {
- sequence_InstanceCreationTupleElement(context, (InstanceCreationTupleElement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.INVOCATION_OR_ASSIGNEMENT_OR_DECLARATION_STATEMENT:
- if(context == grammarAccess.getInvocationOrAssignementOrDeclarationStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_InvocationOrAssignementOrDeclarationStatement(context, (InvocationOrAssignementOrDeclarationStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.IS_UNIQUE_OPERATION:
- if(context == grammarAccess.getIsUniqueOperationRule() ||
- context == grammarAccess.getSequenceExpansionExpressionRule() ||
- context == grammarAccess.getSuffixExpressionRule()) {
- sequence_IsUniqueOperation(context, (IsUniqueOperation) semanticObject);
- return;
- }
- else break;
- case AlfPackage.LINK_OPERATION_EXPRESSION:
- if(context == grammarAccess.getLinkOperationExpressionRule() ||
- context == grammarAccess.getSuffixExpressionRule()) {
- sequence_LinkOperationExpression(context, (LinkOperationExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.LINK_OPERATION_TUPLE:
- if(context == grammarAccess.getLinkOperationTupleRule()) {
- sequence_LinkOperationTuple(context, (LinkOperationTuple) semanticObject);
- return;
- }
- else break;
- case AlfPackage.LINK_OPERATION_TUPLE_ELEMENT:
- if(context == grammarAccess.getLinkOperationTupleElementRule()) {
- sequence_LinkOperationTupleElement(context, (LinkOperationTupleElement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.LOCAL_NAME_DECLARATION_STATEMENT:
- if(context == grammarAccess.getLocalNameDeclarationStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_LocalNameDeclarationStatement(context, (LocalNameDeclarationStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.LOOP_VARIABLE_DEFINITION:
- if(context == grammarAccess.getLoopVariableDefinitionRule()) {
- sequence_LoopVariableDefinition(context, (LoopVariableDefinition) semanticObject);
- return;
- }
- else break;
- case AlfPackage.MULTIPLICATIVE_EXPRESSION:
- if(context == grammarAccess.getMultiplicativeExpressionRule()) {
- sequence_MultiplicativeExpression(context, (MultiplicativeExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.NAME_EXPRESSION:
- if(context == grammarAccess.getNameExpressionRule() ||
- context == grammarAccess.getNonLiteralValueSpecificationRule() ||
- context == grammarAccess.getValueSpecificationRule()) {
- sequence_NameExpression(context, (NameExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.NAMED_TEMPLATE_BINDING:
- if(context == grammarAccess.getNamedTemplateBindingRule()) {
- sequence_NamedTemplateBinding(context, (NamedTemplateBinding) semanticObject);
- return;
- }
- else break;
- case AlfPackage.NON_EMPTY_STATEMENT_SEQUENCE:
- if(context == grammarAccess.getNonEmptyStatementSequenceRule()) {
- sequence_NonEmptyStatementSequence(context, (NonEmptyStatementSequence) semanticObject);
- return;
- }
- else break;
- case AlfPackage.NON_FINAL_CLAUSE:
- if(context == grammarAccess.getNonFinalClauseRule()) {
- sequence_NonFinalClause(context, (NonFinalClause) semanticObject);
- return;
- }
- else break;
- case AlfPackage.NULL_EXPRESSION:
- if(context == grammarAccess.getNullExpressionRule() ||
- context == grammarAccess.getValueSpecificationRule()) {
- sequence_ValueSpecification(context, (NullExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.OPERATION_CALL_EXPRESSION:
- if(context == grammarAccess.getOperationCallExpressionRule() ||
- context == grammarAccess.getSuffixExpressionRule()) {
- sequence_OperationCallExpression(context, (OperationCallExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.PARENTHESIZED_EXPRESSION:
- if(context == grammarAccess.getNonLiteralValueSpecificationRule() ||
- context == grammarAccess.getParenthesizedExpressionRule() ||
- context == grammarAccess.getValueSpecificationRule()) {
- sequence_ParenthesizedExpression(context, (ParenthesizedExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.PARTIAL_SEQUENCE_CONSTRUCTION_COMPLETION:
- if(context == grammarAccess.getPartialSequenceConstructionCompletionRule()) {
- sequence_PartialSequenceConstructionCompletion(context, (PartialSequenceConstructionCompletion) semanticObject);
- return;
- }
- else break;
- case AlfPackage.PRIMARY_EXPRESSION:
- if(context == grammarAccess.getPrimaryExpressionRule()) {
- sequence_PrimaryExpression(context, (PrimaryExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.PROPERTY_CALL_EXPRESSION:
- if(context == grammarAccess.getPropertyCallExpressionRule() ||
- context == grammarAccess.getSuffixExpressionRule()) {
- sequence_PropertyCallExpression(context, (PropertyCallExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.QUALIFIED_NAME_LIST:
- if(context == grammarAccess.getQualifiedNameListRule()) {
- sequence_QualifiedNameList(context, (QualifiedNameList) semanticObject);
- return;
- }
- else break;
- case AlfPackage.QUALIFIED_NAME_PATH:
- if(context == grammarAccess.getQualifiedNamePathRule()) {
- sequence_QualifiedNamePath(context, (QualifiedNamePath) semanticObject);
- return;
- }
- else break;
- case AlfPackage.QUALIFIED_NAME_WITH_BINDING:
- if(context == grammarAccess.getQualifiedNameWithBindingRule()) {
- sequence_QualifiedNameWithBinding(context, (QualifiedNameWithBinding) semanticObject);
- return;
- }
- else break;
- case AlfPackage.RECLASSIFY_ALL_CLAUSE:
- if(context == grammarAccess.getReclassifyAllClauseRule()) {
- sequence_ReclassifyAllClause(context, (ReclassifyAllClause) semanticObject);
- return;
- }
- else break;
- case AlfPackage.RELATIONAL_EXPRESSION:
- if(context == grammarAccess.getRelationalExpressionRule()) {
- sequence_RelationalExpression(context, (RelationalExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.RETURN_STATEMENT:
- if(context == grammarAccess.getReturnStatementRule() ||
- context == grammarAccess.getStatementRule()) {
- sequence_ReturnStatement(context, (ReturnStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.STRING_LITERAL:
- if(context == grammarAccess.getLITERALRule() ||
- context == grammarAccess.getSTRING_LITERALRule() ||
- context == grammarAccess.getValueSpecificationRule()) {
- sequence_STRING_LITERAL(context, (STRING_LITERAL) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SELECT_OR_REJECT_OPERATION:
- if(context == grammarAccess.getSelectOrRejectOperationRule() ||
- context == grammarAccess.getSequenceExpansionExpressionRule() ||
- context == grammarAccess.getSuffixExpressionRule()) {
- sequence_SelectOrRejectOperation(context, (SelectOrRejectOperation) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SEQUENCE_CONSTRUCTION_EXPRESSION:
- if(context == grammarAccess.getSequenceConstructionExpressionRule() ||
- context == grammarAccess.getSequenceElementRule()) {
- sequence_SequenceConstructionExpression(context, (SequenceConstructionExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SEQUENCE_CONSTRUCTION_OR_ACCESS_COMPLETION:
- if(context == grammarAccess.getSequenceConstructionOrAccessCompletionRule()) {
- sequence_SequenceConstructionOrAccessCompletion(context, (SequenceConstructionOrAccessCompletion) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SEQUENCE_OPERATION_EXPRESSION:
- if(context == grammarAccess.getSequenceOperationExpressionRule() ||
- context == grammarAccess.getSuffixExpressionRule()) {
- sequence_SequenceOperationExpression(context, (SequenceOperationExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SEQUENCE_REDUCTION_EXPRESSION:
- if(context == grammarAccess.getSequenceReductionExpressionRule() ||
- context == grammarAccess.getSuffixExpressionRule()) {
- sequence_SequenceReductionExpression(context, (SequenceReductionExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SEQUENTIAL_CLAUSES:
- if(context == grammarAccess.getSequentialClausesRule()) {
- sequence_SequentialClauses(context, (SequentialClauses) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SHIFT_EXPRESSION:
- if(context == grammarAccess.getShiftExpressionRule()) {
- sequence_ShiftExpression(context, (ShiftExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SIMPLE_ACCEPT_STATEMENT_COMPLETION:
- if(context == grammarAccess.getSimpleAcceptStatementCompletionRule()) {
- sequence_SimpleAcceptStatementCompletion(context, (SimpleAcceptStatementCompletion) semanticObject);
- return;
- }
- else break;
- case AlfPackage.STATEMENT_SEQUENCE:
- if(context == grammarAccess.getStatementSequenceRule()) {
- sequence_StatementSequence(context, (StatementSequence) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SUPER_INVOCATION_EXPRESSION:
- if(context == grammarAccess.getNonLiteralValueSpecificationRule() ||
- context == grammarAccess.getSuperInvocationExpressionRule() ||
- context == grammarAccess.getValueSpecificationRule()) {
- sequence_SuperInvocationExpression(context, (SuperInvocationExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SUPER_INVOCATION_STATEMENT:
- if(context == grammarAccess.getStatementRule() ||
- context == grammarAccess.getSuperInvocationStatementRule()) {
- sequence_SuperInvocationStatement(context, (SuperInvocationStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SWITCH_CASE:
- if(context == grammarAccess.getSwitchCaseRule()) {
- sequence_SwitchCase(context, (SwitchCase) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SWITCH_CLAUSE:
- if(context == grammarAccess.getSwitchClauseRule()) {
- sequence_SwitchClause(context, (SwitchClause) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SWITCH_DEFAULT_CLAUSE:
- if(context == grammarAccess.getSwitchDefaultClauseRule()) {
- sequence_SwitchDefaultClause(context, (SwitchDefaultClause) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SWITCH_STATEMENT:
- if(context == grammarAccess.getStatementRule() ||
- context == grammarAccess.getSwitchStatementRule()) {
- sequence_SwitchStatement(context, (SwitchStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.TEMPLATE_BINDING:
- if(context == grammarAccess.getTemplateBindingRule()) {
- sequence_TemplateBinding(context, (TemplateBinding) semanticObject);
- return;
- }
- else break;
- case AlfPackage.TEST:
- if(context == grammarAccess.getTestRule()) {
- sequence_Test(context, (Test) semanticObject);
- return;
- }
- else break;
- case AlfPackage.THIS_EXPRESSION:
- if(context == grammarAccess.getNonLiteralValueSpecificationRule() ||
- context == grammarAccess.getThisExpressionRule() ||
- context == grammarAccess.getValueSpecificationRule()) {
- sequence_ThisExpression(context, (ThisExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.THIS_INVOCATION_STATEMENT:
- if(context == grammarAccess.getStatementRule() ||
- context == grammarAccess.getThisInvocationStatementRule()) {
- sequence_ThisInvocationStatement(context, (ThisInvocationStatement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.TUPLE:
- if(context == grammarAccess.getTupleRule()) {
- sequence_Tuple(context, (Tuple) semanticObject);
- return;
- }
- else break;
- case AlfPackage.TUPLE_ELEMENT:
- if(context == grammarAccess.getTupleElementRule()) {
- sequence_TupleElement(context, (TupleElement) semanticObject);
- return;
- }
- else break;
- case AlfPackage.UNLIMITED_LITERAL:
- if(context == grammarAccess.getLITERALRule() ||
- context == grammarAccess.getNUMBER_LITERALRule() ||
- context == grammarAccess.getUNLIMITED_LITERALRule() ||
- context == grammarAccess.getValueSpecificationRule()) {
- sequence_UNLIMITED_LITERAL(context, (UNLIMITED_LITERAL) semanticObject);
- return;
- }
- else break;
- case AlfPackage.UNARY_EXPRESSION:
- if(context == grammarAccess.getUnaryExpressionRule()) {
- sequence_UnaryExpression(context, (UnaryExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.UNQUALIFIED_NAME:
- if(context == grammarAccess.getUnqualifiedNameRule()) {
- sequence_UnqualifiedName(context, (UnqualifiedName) semanticObject);
- return;
- }
- else break;
- case AlfPackage.VARIABLE_DECLARATION_COMPLETION:
- if(context == grammarAccess.getVariableDeclarationCompletionRule()) {
- sequence_VariableDeclarationCompletion(context, (VariableDeclarationCompletion) semanticObject);
- return;
- }
- else break;
- case AlfPackage.WHILE_STATEMENT:
- if(context == grammarAccess.getStatementRule() ||
- context == grammarAccess.getWhileStatementRule()) {
- sequence_WhileStatement(context, (WhileStatement) semanticObject);
- return;
- }
- else break;
- }
- else if(semanticObject.eClass().getEPackage() == AppliedStereotypePropertyPackage.eINSTANCE) switch(semanticObject.eClass().getClassifierID()) {
- case AppliedStereotypePropertyPackage.APPLIED_STEREOTYPE_PROPERTY_RULE:
- if(context == grammarAccess.getAppliedStereotypePropertyRuleRule()) {
- sequence_AppliedStereotypePropertyRule(context, (AppliedStereotypePropertyRule) semanticObject);
- return;
- }
- else break;
- case AppliedStereotypePropertyPackage.EXPRESSION_VALUE_RULE:
- if(context == grammarAccess.getExpressionValueRuleRule()) {
- sequence_ExpressionValueRule(context, (ExpressionValueRule) semanticObject);
- return;
- }
- else break;
- }
- if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
- }
-
- /**
- * Constraint:
- * (clause=AcceptClause block=Block)
- */
- protected void sequence_AcceptBlock(EObject context, AcceptBlock semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (name=ID? qualifiedNameList=QualifiedNameList)
- */
- protected void sequence_AcceptClause(EObject context, AcceptClause semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (clause=AcceptClause (simpleAccept=SimpleAcceptStatementCompletion | compoundAccept=CompoundAcceptStatementCompletion))
- */
- protected void sequence_AcceptStatement(EObject context, AcceptStatement semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * accessIndex=Expression
- */
- protected void sequence_AccessCompletion(EObject context, AccessCompletion semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (exp+=MultiplicativeExpression ((op+='+' | op+='-') exp+=MultiplicativeExpression)*)
- */
- protected void sequence_AdditiveExpression(EObject context, AdditiveExpression semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (exp+=EqualityExpression exp+=EqualityExpression*)
- */
- protected void sequence_AndExpression(EObject context, AndExpression semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (annotation=Annotation statement=Statement)
- */
- protected void sequence_AnnotatedStatement(EObject context, AnnotatedStatement semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (kind=AnnotationKind (args+=ID args+=ID*)?)
- */
- protected void sequence_Annotation(EObject context, Annotation semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (property=[Property|ID] value=ExpressionValueRule)
- */
- protected void sequence_AppliedStereotypePropertyRule(EObject context, AppliedStereotypePropertyRule semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AppliedStereotypePropertyPackage.Literals.APPLIED_STEREOTYPE_PROPERTY_RULE__PROPERTY) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AppliedStereotypePropertyPackage.Literals.APPLIED_STEREOTYPE_PROPERTY_RULE__PROPERTY));
- if(transientValues.isValueTransient(semanticObject, AppliedStereotypePropertyPackage.Literals.APPLIED_STEREOTYPE_PROPERTY_RULE__VALUE) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AppliedStereotypePropertyPackage.Literals.APPLIED_STEREOTYPE_PROPERTY_RULE__VALUE));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getAppliedStereotypePropertyRuleAccess().getPropertyPropertyIDTerminalRuleCall_0_0_1(), semanticObject.getProperty());
- feeder.accept(grammarAccess.getAppliedStereotypePropertyRuleAccess().getValueExpressionValueRuleParserRuleCall_1_0(), semanticObject.getValue());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (op=AssignmentOperator rightHandSide=SequenceElement)
- */
- protected void sequence_AssignmentCompletion(EObject context, AssignmentCompletion semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * value=BooleanValue
- */
- protected void sequence_BOOLEAN_LITERAL(EObject context, BOOLEAN_LITERAL semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * block=Block
- */
- protected void sequence_BlockStatement(EObject context, BlockStatement semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (sequence=StatementSequence?)
- */
- protected void sequence_Block(EObject context, Block semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (
- * (classifyFromClause=ClassificationFromClause classifyToClause=ClassificationToClause?) |
- * (reclassyAllClause=ReclassifyAllClause? classifyToClause=ClassificationToClause)
- * )
- */
- protected void sequence_ClassificationClause(EObject context, ClassificationClause semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (exp=RelationalExpression ((op='instanceof' | op='hastype') typeName=NameExpression)?)
- */
- protected void sequence_ClassificationExpression(EObject context, ClassificationExpression semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * qualifiedNameList=QualifiedNameList
- */
- protected void sequence_ClassificationFromClause(EObject context, ClassificationFromClause semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * qualifiedNameList=QualifiedNameList
- */
- protected void sequence_ClassificationToClause(EObject context, ClassificationToClause semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (expression=Expression clause=ClassificationClause)
- */
- protected void sequence_ClassifyStatement(EObject context, ClassifyStatement semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (op=CollectOrIterateOperator name=ID expr=Expression suffix=SuffixExpression?)
- */
- protected void sequence_CollectOrIterateOperation(EObject context, CollectOrIterateOperation semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (block=Block acceptBlock+=AcceptBlock*)
- */
- protected void sequence_CompoundAcceptStatementCompletion(EObject context, CompoundAcceptStatementCompletion semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (nonFinalClause+=NonFinalClause nonFinalClause+=NonFinalClause*)
- */
- protected void sequence_ConcurrentClauses(EObject context, ConcurrentClauses semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (exp+=InclusiveOrExpression exp+=InclusiveOrExpression*)
- */
- protected void sequence_ConditionalAndExpression(EObject context, ConditionalAndExpression semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (exp+=ConditionalAndExpression exp+=ConditionalAndExpression*)
- */
- protected void sequence_ConditionalOrExpression(EObject context, ConditionalOrExpression semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (exp=ConditionalOrExpression (whenTrue=ConditionalTestExpression whenFalse=ConditionalTestExpression)?)
- */
- protected void sequence_ConditionalTestExpression(EObject context, ConditionalTestExpression semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (block=Block condition=Expression)
- */
- protected void sequence_DoStatement(EObject context, DoStatement semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * ((comment=ML_COMMENT | comment=SL_COMMENT)? statement=Statement)
- */
- protected void sequence_DocumentedStatement(EObject context, DocumentedStatement semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (exp+=ClassificationExpression ((op+='==' | op+='!=') exp+=ClassificationExpression)*)
- */
- protected void sequence_EqualityExpression(EObject context, EqualityExpression semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (exp+=AndExpression exp+=AndExpression*)
- */
- protected void sequence_ExclusiveOrExpression(EObject context, ExclusiveOrExpression semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * expression=SequenceElement
- */
- protected void sequence_ExpressionValueRule(EObject context, ExpressionValueRule semanticObject) {
- if(errorAcceptor != null) {
- if(transientValues.isValueTransient(semanticObject, AppliedStereotypePropertyPackage.Literals.EXPRESSION_VALUE_RULE__EXPRESSION) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AppliedStereotypePropertyPackage.Literals.EXPRESSION_VALUE_RULE__EXPRESSION));
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getExpressionValueRuleAccess().getExpressionSequenceElementParserRuleCall_1_0(), semanticObject.getExpression());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * block=Block
- */
- protected void sequence_FinalClause(EObject context, FinalClause semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (op=ForAllOrExistsOrOneOperator name=ID expr=Expression suffix=SuffixExpression?)
- */
- protected void sequence_ForAllOrExistsOrOneOperation(EObject context, ForAllOrExistsOrOneOperation semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (loopVariableDefinition+=LoopVariableDefinition loopVariableDefinition+=LoopVariableDefinition*)
- */
- protected void sequence_ForControl(EObject context, ForControl semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (control=ForControl block=Block)
- */
- protected void sequence_ForStatement(EObject context, ForStatement semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * value=IntegerValue
- */
- protected void sequence_INTEGER_LITERAL(EObject context, INTEGER_LITERAL semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (sequentialClausses=SequentialClauses finalClause=FinalClause?)
- */
- protected void sequence_IfStatement(EObject context, IfStatement semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (exp+=ExclusiveOrExpression exp+=ExclusiveOrExpression*)
- */
- protected void sequence_InclusiveOrExpression(EObject context, InclusiveOrExpression semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (langageName=ID body=STRING)
- */
- protected void sequence_InlineStatement(EObject context, InlineStatement semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (constructor=QualifiedNameWithBinding tuple=InstanceCreationTuple suffix=SuffixExpression?)
- */
- protected void sequence_InstanceCreationExpression(EObject context, InstanceCreationExpression semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * _new=InstanceCreationExpression
- */
- protected void sequence_InstanceCreationInvocationStatement(EObject context, InstanceCreationInvocationStatement semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (role=ID object=Expression)
- */
- protected void sequence_InstanceCreationTupleElement(EObject context, InstanceCreationTupleElement semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * ((instanceCreationTupleElement+=InstanceCreationTupleElement instanceCreationTupleElement+=InstanceCreationTupleElement*)?)
- */
- protected void sequence_InstanceCreationTuple(EObject context, InstanceCreationTuple semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (
- * typePart_OR_assignedPart_OR_invocationPart=NameExpression
- * (variableDeclarationCompletion=VariableDeclarationCompletion | assignmentCompletion=AssignmentCompletion)?
- * )
- */
- protected void sequence_InvocationOrAssignementOrDeclarationStatement(EObject context, InvocationOrAssignementOrDeclarationStatement semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (name=ID expr=Expression suffix=SuffixExpression?)
- */
- protected void sequence_IsUniqueOperation(EObject context, IsUniqueOperation semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (kind=LinkOperationKind tuple=LinkOperationTuple)
- */
- protected void sequence_LinkOperationExpression(EObject context, LinkOperationExpression semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (role=ID roleIndex=Expression? object=Expression)
- */
- protected void sequence_LinkOperationTupleElement(EObject context, LinkOperationTupleElement semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (linkOperationTupleElement+=LinkOperationTupleElement linkOperationTupleElement+=LinkOperationTupleElement*)
- */
- protected void sequence_LinkOperationTuple(EObject context, LinkOperationTuple semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (varName=ID type=QualifiedNameWithBinding multiplicityIndicator?='['? init=SequenceElement)
- */
- protected void sequence_LocalNameDeclarationStatement(EObject context, LocalNameDeclarationStatement semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * ((name=ID expression1=Expression expression2=Expression?) | (type=QualifiedNameWithBinding name=ID expression=Expression))
- */
- protected void sequence_LoopVariableDefinition(EObject context, LoopVariableDefinition semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (exp+=UnaryExpression ((op+='*' | op+='/' | op+='%') exp+=UnaryExpression)*)
- */
- protected void sequence_MultiplicativeExpression(EObject context, MultiplicativeExpression semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (
- * (
- * ((prefixOp='++' | prefixOp='--') path=QualifiedNamePath? id=ID) |
- * (
- * path=QualifiedNamePath?
- * id=ID
- * (invocationCompletion=Tuple | sequenceConstructionCompletion=SequenceConstructionOrAccessCompletion | postfixOp='++' | postfixOp='--')?
- * )
- * )
- * suffix=SuffixExpression?
- * )
- */
- protected void sequence_NameExpression(EObject context, NameExpression semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (formal=ID actual=QualifiedNameWithBinding)
- */
- protected void sequence_NamedTemplateBinding(EObject context, NamedTemplateBinding semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * statement+=DocumentedStatement+
- */
- protected void sequence_NonEmptyStatementSequence(EObject context, NonEmptyStatementSequence semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (condition=Expression block=Block)
- */
- protected void sequence_NonFinalClause(EObject context, NonFinalClause semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (operationName=ID tuple=Tuple suffix=SuffixExpression?)
- */
- protected void sequence_OperationCallExpression(EObject context, OperationCallExpression semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (expOrTypeCast=Expression (casted=NonLiteralValueSpecification | suffix=SuffixExpression)?)
- */
- protected void sequence_ParenthesizedExpression(EObject context, ParenthesizedExpression semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * expression=SequenceConstructionExpression
- */
- protected void sequence_PartialSequenceConstructionCompletion(EObject context, PartialSequenceConstructionCompletion semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * prefix=ValueSpecification
- */
- protected void sequence_PrimaryExpression(EObject context, PrimaryExpression semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (propertyName=ID index=Expression? suffix=SuffixExpression?)
- */
- protected void sequence_PropertyCallExpression(EObject context, PropertyCallExpression semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (qualifiedName+=QualifiedNameWithBinding qualifiedName+=QualifiedNameWithBinding*)
- */
- protected void sequence_QualifiedNameList(EObject context, QualifiedNameList semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * namespace+=UnqualifiedName+
- */
- protected void sequence_QualifiedNamePath(EObject context, QualifiedNamePath semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (id=ID binding=TemplateBinding? remaining=QualifiedNameWithBinding?)
- */
- protected void sequence_QualifiedNameWithBinding(EObject context, QualifiedNameWithBinding semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * {ReclassifyAllClause}
- */
- protected void sequence_ReclassifyAllClause(EObject context, ReclassifyAllClause semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (left=ShiftExpression ((op='<' | op='>' | op='<=' | op='>=') right=ShiftExpression)?)
- */
- protected void sequence_RelationalExpression(EObject context, RelationalExpression semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * expression=Expression
- */
- protected void sequence_ReturnStatement(EObject context, ReturnStatement semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * value=STRING
- */
- protected void sequence_STRING_LITERAL(EObject context, STRING_LITERAL semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (op=SelectOrRejectOperator name=ID expr=Expression suffix=SuffixExpression?)
- */
- protected void sequence_SelectOrRejectOperation(EObject context, SelectOrRejectOperation semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (sequenceElement+=SequenceElement (sequenceElement+=SequenceElement* | rangeUpper=Expression))
- */
- protected void sequence_SequenceConstructionExpression(EObject context, SequenceConstructionExpression semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (
- * (multiplicityIndicator?='[' (accessCompletion=AccessCompletion | sequenceCompletion=PartialSequenceConstructionCompletion)) |
- * expression=SequenceConstructionExpression
- * )
- */
- protected void sequence_SequenceConstructionOrAccessCompletion(EObject context, SequenceConstructionOrAccessCompletion semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (operationName=QualifiedNameWithBinding tuple=Tuple suffix=SuffixExpression?)
- */
- protected void sequence_SequenceOperationExpression(EObject context, SequenceOperationExpression semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (isOrdered?='ordered'? behavior=QualifiedNameWithBinding suffix=SuffixExpression?)
- */
- protected void sequence_SequenceReductionExpression(EObject context, SequenceReductionExpression semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (conccurentClauses+=ConcurrentClauses conccurentClauses+=ConcurrentClauses*)
- */
- protected void sequence_SequentialClauses(EObject context, SequentialClauses semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (exp+=AdditiveExpression ((op='<<' | op='>>' | op='>>>') exp+=AdditiveExpression)?)
- */
- protected void sequence_ShiftExpression(EObject context, ShiftExpression semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * {SimpleAcceptStatementCompletion}
- */
- protected void sequence_SimpleAcceptStatementCompletion(EObject context, SimpleAcceptStatementCompletion semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * statements+=DocumentedStatement+
- */
- protected void sequence_StatementSequence(EObject context, StatementSequence semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * {BreakStatement}
- */
- protected void sequence_Statement(EObject context, BreakStatement semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * {EmptyStatement}
- */
- protected void sequence_Statement(EObject context, EmptyStatement semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * {ClassExtentExpression}
- */
- protected void sequence_SuffixExpression(EObject context, ClassExtentExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (tuple=Tuple | (operationName=QualifiedNameWithBinding tuple=Tuple))
- */
- protected void sequence_SuperInvocationExpression(EObject context, SuperInvocationExpression semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * _super=SuperInvocationExpression
- */
- protected void sequence_SuperInvocationStatement(EObject context, SuperInvocationStatement semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * expression=Expression
- */
- protected void sequence_SwitchCase(EObject context, SwitchCase semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (switchCase+=SwitchCase switchCase+=SwitchCase* statementSequence=NonEmptyStatementSequence)
- */
- protected void sequence_SwitchClause(EObject context, SwitchClause semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * statementSequence=NonEmptyStatementSequence
- */
- protected void sequence_SwitchDefaultClause(EObject context, SwitchDefaultClause semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (expression=Expression switchClause+=SwitchClause* defaultClause=SwitchDefaultClause?)
- */
- protected void sequence_SwitchStatement(EObject context, SwitchStatement semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (bindings+=NamedTemplateBinding bindings+=NamedTemplateBinding*)
- */
- protected void sequence_TemplateBinding(EObject context, TemplateBinding semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (expression+=Expression* assignExpression+=AssignmentCompletion* statements+=Statement* block=Block)
- */
- protected void sequence_Test(EObject context, Test semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (suffix=SuffixExpression?)
- */
- protected void sequence_ThisExpression(EObject context, ThisExpression semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (_this=ThisExpression assignmentCompletion=AssignmentCompletion?)
- */
- protected void sequence_ThisInvocationStatement(EObject context, ThisInvocationStatement semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * argument=Expression
- */
- protected void sequence_TupleElement(EObject context, TupleElement semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * ((tupleElements+=TupleElement tupleElements+=TupleElement*)?)
- */
- protected void sequence_Tuple(EObject context, Tuple semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * value='*'
- */
- protected void sequence_UNLIMITED_LITERAL(EObject context, UNLIMITED_LITERAL semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * ((op='!' | op='-' | op='+' | op='$' | op='~')? exp=PrimaryExpression)
- */
- protected void sequence_UnaryExpression(EObject context, UnaryExpression semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (name=ID templateBinding=TemplateBinding?)
- */
- protected void sequence_UnqualifiedName(EObject context, UnqualifiedName semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * {NullExpression}
- */
- protected void sequence_ValueSpecification(EObject context, NullExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (multiplicityIndicator?='['? variableName=ID initValue=AssignmentCompletion)
- */
- protected void sequence_VariableDeclarationCompletion(EObject context, VariableDeclarationCompletion semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (condition=Expression block=Block)
- */
- protected void sequence_WhileStatement(EObject context, WhileStatement semanticObject) {
- superSequencer.createSequence(context, semanticObject);
- }
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/serializer/AbstractAppliedStereotypePropertySyntacticSequencer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/serializer/AbstractAppliedStereotypePropertySyntacticSequencer.java
deleted file mode 100644
index 92ec044e543..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext/src-gen/org/eclipse/papyrus/uml/textedit/stereotypeproperty/xtext/serializer/AbstractAppliedStereotypePropertySyntacticSequencer.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2012 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.serializer;
-
-import java.util.List;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.services.AppliedStereotypePropertyGrammarAccess;
-import org.eclipse.xtext.IGrammarAccess;
-import org.eclipse.xtext.RuleCall;
-import org.eclipse.xtext.nodemodel.INode;
-import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias;
-import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition;
-import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer;
-
-import com.google.inject.Inject;
-
-@SuppressWarnings("restriction")
-public class AbstractAppliedStereotypePropertySyntacticSequencer extends AbstractSyntacticSequencer {
-
- protected AppliedStereotypePropertyGrammarAccess grammarAccess;
-
- @Inject
- protected void init(IGrammarAccess access) {
- grammarAccess = (AppliedStereotypePropertyGrammarAccess) access;
- }
-
- @Override
- protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) {
- return "";
- }
-
-
- @Override
- protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
- if (transition.getAmbiguousSyntaxes().isEmpty()) return;
- List<INode> transitionNodes = collectNodes(fromNode, toNode);
- for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
- List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
- acceptNodes(getLastNavigableState(), syntaxNodes);
- }
- }
-
-}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.transition.xtext/src-gen/org/eclipse/papyrus/uml/textedit/transition/xtext/UmlTransition.xmi b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.transition.xtext/src-gen/org/eclipse/papyrus/uml/textedit/transition/xtext/UmlTransition.xmi
deleted file mode 100644
index 90c5725ef04..00000000000
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.transition.xtext/src-gen/org/eclipse/papyrus/uml/textedit/transition/xtext/UmlTransition.xmi
+++ /dev/null
@@ -1,307 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:xtext="http://www.eclipse.org/2008/Xtext">
- <xtext:Grammar name="org.eclipse.papyrus.uml.textedit.transition.xtext.UmlTransition" usedGrammars="/1">
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="uml">
- <ePackage href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
- </metamodelDeclarations>
- <metamodelDeclarations xsi:type="xtext:GeneratedMetamodel" name="umlTransition">
- <ePackage href="http://www.eclipse.org/papyrus/uml/textedit/transition/xtext/UmlTransition#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:ParserRule" name="TransitionRule">
- <type metamodel="/0/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/transition/xtext/UmlTransition#//TransitionRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Assignment" feature="triggers" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.1"/>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="*">
- <elements xsi:type="xtext:Keyword" value=","/>
- <elements xsi:type="xtext:Assignment" feature="triggers" operator="+=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.1"/>
- </elements>
- </elements>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="guard" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.8"/>
- </elements>
- <elements xsi:type="xtext:Assignment" cardinality="?" feature="effect" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.9"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="EventRule">
- <type metamodel="/0/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/transition/xtext/UmlTransition#//EventRule"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.2"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.3"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.4"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.7"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="CallOrSignalEventRule">
- <type metamodel="/0/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/transition/xtext/UmlTransition#//CallOrSignalEventRule"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" feature="operationOrSignal" operator="=">
- <terminal xsi:type="xtext:CrossReference">
- <type metamodel="/0/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//NamedElement"/>
- </type>
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </terminal>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="AnyReceiveEventRule">
- <type metamodel="/0/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/transition/xtext/UmlTransition#//AnyReceiveEventRule"/>
- </type>
- <alternatives xsi:type="xtext:Assignment" feature="isAReceiveEvent" operator="=">
- <terminal xsi:type="xtext:Keyword" value="all"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="TimeEventRule">
- <type metamodel="/0/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/transition/xtext/UmlTransition#//TimeEventRule"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.5"/>
- <elements xsi:type="xtext:RuleCall" rule="/0/@rules.6"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="RelativeTimeEventRule">
- <type metamodel="/0/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/transition/xtext/UmlTransition#//RelativeTimeEventRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="after"/>
- <elements xsi:type="xtext:Assignment" feature="expr" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.2"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="AbsoluteTimeEventRule">
- <type metamodel="/0/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/transition/xtext/UmlTransition#//AbsoluteTimeEventRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="at"/>
- <elements xsi:type="xtext:Assignment" feature="expr" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.2"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="ChangeEventRule">
- <type metamodel="/0/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/transition/xtext/UmlTransition#//ChangeEventRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="when"/>
- <elements xsi:type="xtext:Assignment" feature="exp" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.2"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="GuardRule">
- <type metamodel="/0/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/transition/xtext/UmlTransition#//GuardRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="["/>
- <elements xsi:type="xtext:Assignment" feature="constraint" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.2"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="]"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:ParserRule" name="EffectRule">
- <type metamodel="/0/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EClass" href="http://www.eclipse.org/papyrus/uml/textedit/transition/xtext/UmlTransition#//EffectRule"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="/"/>
- <elements xsi:type="xtext:Assignment" feature="kind" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/0/@rules.10"/>
- </elements>
- <elements xsi:type="xtext:Assignment" feature="behaviorName" operator="=">
- <terminal xsi:type="xtext:RuleCall" rule="/1/@rules.0"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:EnumRule" name="BehaviorKind">
- <type metamodel="/0/@metamodelDeclarations.1">
- <classifier xsi:type="ecore:EEnum" href="http://www.eclipse.org/papyrus/uml/textedit/transition/xtext/UmlTransition#//BehaviorKind"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/transition/xtext/UmlTransition#//BehaviorKind/ACTIVITY"/>
- <literal value="Activity"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/transition/xtext/UmlTransition#//BehaviorKind/STATE_MACHINE"/>
- <literal value="StateMachine"/>
- </elements>
- <elements xsi:type="xtext:EnumLiteralDeclaration">
- <enumLiteral href="http://www.eclipse.org/papyrus/uml/textedit/transition/xtext/UmlTransition#//BehaviorKind/OPAQUE_BEHAVIOR"/>
- <literal value="OpaqueBehavior"/>
- </elements>
- </alternatives>
- </rules>
- </xtext:Grammar>
- <xtext:Grammar name="org.eclipse.xtext.common.Terminals" definesHiddenTokens="true" hiddenTokens="/1/@rules.5 /1/@rules.3 /1/@rules.4">
- <metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="ecore">
- <ePackage href="http://www.eclipse.org/emf/2002/Ecore#/"/>
- </metamodelDeclarations>
- <rules xsi:type="xtext:TerminalRule" name="ID">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="^"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- </elements>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:CharacterRange">
- <left value="a"/>
- <right value="z"/>
- </elements>
- <elements xsi:type="xtext:CharacterRange">
- <left value="A"/>
- <right value="Z"/>
- </elements>
- <elements xsi:type="xtext:Keyword" value="_"/>
- <elements xsi:type="xtext:CharacterRange">
- <left value="0"/>
- <right value="9"/>
- </elements>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="INT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
- </type>
- <alternatives xsi:type="xtext:CharacterRange" cardinality="+">
- <left value="0"/>
- <right value="9"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="STRING">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="b"/>
- <elements xsi:type="xtext:Keyword" value="t"/>
- <elements xsi:type="xtext:Keyword" value="n"/>
- <elements xsi:type="xtext:Keyword" value="f"/>
- <elements xsi:type="xtext:Keyword" value="r"/>
- <elements xsi:type="xtext:Keyword" value="u"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Keyword" value="\"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- </terminal>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- </elements>
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Alternatives" cardinality="*">
- <elements xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="b"/>
- <elements xsi:type="xtext:Keyword" value="t"/>
- <elements xsi:type="xtext:Keyword" value="n"/>
- <elements xsi:type="xtext:Keyword" value="f"/>
- <elements xsi:type="xtext:Keyword" value="r"/>
- <elements xsi:type="xtext:Keyword" value="u"/>
- <elements xsi:type="xtext:Keyword" value="&quot;"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- <elements xsi:type="xtext:Keyword" value="\"/>
- </elements>
- </elements>
- <elements xsi:type="xtext:NegatedToken">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="\"/>
- <elements xsi:type="xtext:Keyword" value="'"/>
- </terminal>
- </elements>
- </elements>
- <elements xsi:type="xtext:Keyword" value="'"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ML_COMMENT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="/*"/>
- <elements xsi:type="xtext:UntilToken">
- <terminal xsi:type="xtext:Keyword" value="*/"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="SL_COMMENT">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Group">
- <elements xsi:type="xtext:Keyword" value="//"/>
- <elements xsi:type="xtext:NegatedToken" cardinality="*">
- <terminal xsi:type="xtext:Alternatives">
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- <elements xsi:type="xtext:Keyword" value="&#xD;"/>
- </terminal>
- </elements>
- <elements xsi:type="xtext:Group" cardinality="?">
- <elements xsi:type="xtext:Keyword" cardinality="?" value="&#xD;"/>
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- </elements>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="WS">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Alternatives" cardinality="+">
- <elements xsi:type="xtext:Keyword" value=" "/>
- <elements xsi:type="xtext:Keyword" value="&#x9;"/>
- <elements xsi:type="xtext:Keyword" value="&#xD;"/>
- <elements xsi:type="xtext:Keyword" value="&#xA;"/>
- </alternatives>
- </rules>
- <rules xsi:type="xtext:TerminalRule" name="ANY_OTHER">
- <type metamodel="/1/@metamodelDeclarations.0">
- <classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </type>
- <alternatives xsi:type="xtext:Wildcard"/>
- </rules>
- </xtext:Grammar>
-</xmi:XMI>

Back to the top