diff options
Diffstat (limited to 'plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml')
30 files changed, 1931 insertions, 2388 deletions
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/AbstractUmlCommonRuntimeModule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/AbstractUmlCommonRuntimeModule.java index 639762f0264..6988257b7fd 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/AbstractUmlCommonRuntimeModule.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/AbstractUmlCommonRuntimeModule.java @@ -6,7 +6,6 @@ package org.eclipse.papyrus.uml.textedit.common.xtext; import java.util.Properties; import org.eclipse.xtext.Constants; -import org.eclipse.xtext.service.DefaultRuntimeModule; import com.google.inject.Binder; import com.google.inject.name.Names; @@ -15,7 +14,7 @@ import com.google.inject.name.Names; * Manual modifications go to {org.eclipse.papyrus.uml.textedit.common.xtext.UmlCommonRuntimeModule} */ @SuppressWarnings("all") -public abstract class AbstractUmlCommonRuntimeModule extends DefaultRuntimeModule { +public abstract class AbstractUmlCommonRuntimeModule extends org.eclipse.xtext.service.DefaultRuntimeModule { protected Properties properties = null; @@ -30,9 +29,8 @@ public abstract class AbstractUmlCommonRuntimeModule extends DefaultRuntimeModul } public void configureFileExtensions(Binder binder) { - if (properties == null || properties.getProperty(Constants.FILE_EXTENSIONS) == null) { + if (properties == null || properties.getProperty(Constants.FILE_EXTENSIONS) == null) binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("umlcommon"); - } } // contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment @@ -46,7 +44,6 @@ public abstract class AbstractUmlCommonRuntimeModule extends DefaultRuntimeModul } // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment - @Override public Class<? extends org.eclipse.xtext.serializer.sequencer.ISemanticSequencer> bindISemanticSequencer() { return org.eclipse.papyrus.uml.textedit.common.xtext.serializer.UmlCommonSemanticSequencer.class; } @@ -57,7 +54,6 @@ public abstract class AbstractUmlCommonRuntimeModule extends DefaultRuntimeModul } // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment - @Override public Class<? extends org.eclipse.xtext.serializer.ISerializer> bindISerializer() { return org.eclipse.xtext.serializer.impl.Serializer.class; } @@ -68,7 +64,6 @@ public abstract class AbstractUmlCommonRuntimeModule extends DefaultRuntimeModul } // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment - @Override public Class<? extends org.eclipse.xtext.parser.ITokenToStringConverter> bindITokenToStringConverter() { return org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter.class; } @@ -95,7 +90,6 @@ public abstract class AbstractUmlCommonRuntimeModule extends DefaultRuntimeModul } // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment - @Override public Class<? extends org.eclipse.xtext.parser.antlr.ITokenDefProvider> bindITokenDefProvider() { return org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider.class; } @@ -107,13 +101,11 @@ public abstract class AbstractUmlCommonRuntimeModule extends DefaultRuntimeModul } // contributed by org.eclipse.xtext.generator.exporting.QualifiedNamesFragment - @Override public Class<? extends org.eclipse.xtext.naming.IQualifiedNameProvider> bindIQualifiedNameProvider() { return org.eclipse.xtext.naming.DefaultDeclarativeQualifiedNameProvider.class; } // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment - @Override public Class<? extends org.eclipse.xtext.resource.IContainer.Manager> bindIContainer$Manager() { return org.eclipse.xtext.resource.containers.StateBasedContainerManager.class; } @@ -124,15 +116,13 @@ public abstract class AbstractUmlCommonRuntimeModule extends DefaultRuntimeModul } // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment - @Override public void configureIResourceDescriptions(com.google.inject.Binder binder) { binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class); } // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment - @Override - public void configureIResourceDescriptionsBuilderScope(com.google.inject.Binder binder) { - binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.NAMED_BUILDER_SCOPE)) + public void configureIResourceDescriptionsPersisted(com.google.inject.Binder binder) { + binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)) .to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class); } @@ -142,7 +132,6 @@ public abstract class AbstractUmlCommonRuntimeModule extends DefaultRuntimeModul } // contributed by org.eclipse.xtext.generator.formatting.FormatterFragment - @Override public Class<? extends org.eclipse.xtext.formatting.IFormatter> bindIFormatter() { return org.eclipse.papyrus.uml.textedit.common.xtext.formatting.UmlCommonFormatter.class; } diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/UmlCommon.ecore b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/UmlCommon.ecore index 01de34c1156..56686f6f0aa 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/UmlCommon.ecore +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/UmlCommon.ecore @@ -3,14 +3,14 @@ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="umlCommon" nsURI="http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon" nsPrefix="umlCommon"> <eClassifiers xsi:type="ecore:EClass" name="QualifiedName"> - <eStructuralFeatures xsi:type="ecore:EReference" name="path" eType="ecore:EClass ../../../../../../../../../org.eclipse.uml2.uml/model/UML.ecore#//Namespace"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="path" eType="ecore:EClass platform:/resource/org.eclipse.uml2.uml/model/UML.ecore#//Namespace"/> <eStructuralFeatures xsi:type="ecore:EReference" name="remaining" eType="#//QualifiedName" containment="true"/> </eClassifiers> <eClassifiers xsi:type="ecore:EClass" name="TypeRule"> <eStructuralFeatures xsi:type="ecore:EReference" name="path" eType="#//QualifiedName" containment="true"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="ecore:EClass ../../../../../../../../../org.eclipse.uml2.uml/model/UML.ecore#//Type"/> + <eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="ecore:EClass platform:/resource/org.eclipse.uml2.uml/model/UML.ecore#//Type"/> </eClassifiers> <eClassifiers xsi:type="ecore:EEnum" name="VisibilityKind"> <eLiterals name="public" literal="+"/> diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/UmlCommon.genmodel b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/UmlCommon.genmodel index 16292d234df..17cf9434d8d 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/UmlCommon.genmodel +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/UmlCommon.genmodel @@ -4,11 +4,11 @@ editDirectory="/org.eclipse.papyrus.uml.textedit.common.xtext.edit/src" editorDirectory="/org.eclipse.papyrus.uml.textedit.common.xtext.editor/src" modelPluginID="org.eclipse.papyrus.uml.textedit.common.xtext" forceOverwrite="true" modelName="UmlCommon" updateClasspath="false" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" - complianceLevel="5.0" copyrightFields="false" editPluginID="org.eclipse.papyrus.uml.textedit.common.xtext.edit" - editorPluginID="org.eclipse.papyrus.uml.textedit.common.xtext.editor" runtimeVersion="2.9" - usedGenPackages="platform:/plugin/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore ../../../../../../../../../org.eclipse.uml2.uml/model/UML.genmodel#//uml"> + complianceLevel="6.0" copyrightFields="false" editPluginID="org.eclipse.papyrus.uml.textedit.common.xtext.edit" + editorPluginID="org.eclipse.papyrus.uml.textedit.common.xtext.editor" runtimeVersion="2.14" + usedGenPackages="platform:/plugin/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore platform:/resource/org.eclipse.uml2.uml/model/UML.genmodel#//uml"> <genPackages prefix="UmlCommon" basePackage="org.eclipse.papyrus.uml.textedit.common.xtext" - resource="XML" disposableProviderFactory="true" ecorePackage="UmlCommon.ecore#/"> + disposableProviderFactory="true" ecorePackage="UmlCommon.ecore#/"> <genEnums typeSafeEnumCompatible="false" ecoreEnum="UmlCommon.ecore#//VisibilityKind"> <genEnumLiterals ecoreEnumLiteral="UmlCommon.ecore#//VisibilityKind/public"/> <genEnumLiterals ecoreEnumLiteral="UmlCommon.ecore#//VisibilityKind/private"/> diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/UmlCommon.xtextbin b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/UmlCommon.xtextbin Binary files differindex f63faf5af6a..43db789e3cd 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/UmlCommon.xtextbin +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/UmlCommon.xtextbin diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g index 4280351b194..ce7a5943a85 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g @@ -1,6 +1,6 @@ /* -* generated by Xtext -*/ + * generated by Xtext + */ grammar InternalUmlCommon; options { @@ -108,7 +108,7 @@ ruleQualifiedName returns [EObject current=null] $current, "remaining", lv_remaining_2_0, - "QualifiedName"); + "org.eclipse.papyrus.uml.textedit.common.xtext.UmlCommon.QualifiedName"); afterParserOrEnumRuleCall(); } @@ -151,7 +151,7 @@ ruleBoundSpecification returns [EObject current=null] $current, "value", lv_value_0_0, - "UnlimitedLiteral"); + "org.eclipse.papyrus.uml.textedit.common.xtext.UmlCommon.UnlimitedLiteral"); afterParserOrEnumRuleCall(); } @@ -202,8 +202,6 @@ ruleUnlimitedLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRu -RULE_INTEGER_VALUE : (('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')*); - RULE_ID : (('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*|'\'' ( options {greedy=false;} : . )*'\''); RULE_STRING : '"' ('\\' ('b'|'t'|'n'|'f'|'r'|'"'|'\''|'\\')|~(('\\'|'"')))* '"'; @@ -214,6 +212,8 @@ RULE_SL_COMMENT : '//' ~(('\n'|'\r'|'@'))* ('\r'? '\n')?; RULE_INT : ('0'..'9')+; +RULE_INTEGER_VALUE : (('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')*); + RULE_WS : (' '|'\t'|'\r'|'\n')+; RULE_ANY_OTHER : .; diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.tokens b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.tokens index 6e11c963f9e..fd4136c02b8 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.tokens +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.tokens @@ -1,12 +1,12 @@ -RULE_ID=4 -RULE_STRING=7 -T__12=12 -T__13=13 +'*'=13 +'::'=12 RULE_ANY_OTHER=11 +RULE_ID=4 RULE_INT=5 -RULE_INTEGER_VALUE=6 +RULE_INTEGER_VALUE=9 +RULE_ML_COMMENT=7 +RULE_SL_COMMENT=8 +RULE_STRING=6 RULE_WS=10 -RULE_SL_COMMENT=9 -RULE_ML_COMMENT=8 -'*'=13 -'::'=12 +T__12=12 +T__13=13 diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommonLexer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommonLexer.java index 2a51ad94cd4..5dc75d0984b 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommonLexer.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommonLexer.java @@ -1,7 +1,5 @@ package org.eclipse.papyrus.uml.textedit.common.xtext.parser.antlr.internal; -// Hack: Use our own Lexer superclass by means of import. -// Currently there is no other way to specify the superclass for the lexer. import org.antlr.runtime.BaseRecognizer; import org.antlr.runtime.CharStream; import org.antlr.runtime.DFA; @@ -11,1253 +9,1195 @@ import org.antlr.runtime.MismatchedSetException; import org.antlr.runtime.NoViableAltException; import org.antlr.runtime.RecognitionException; import org.antlr.runtime.RecognizerSharedState; +// Hack: Use our own Lexer superclass by means of import. +// Currently there is no other way to specify the superclass for the lexer. import org.eclipse.xtext.parser.antlr.Lexer; @SuppressWarnings("all") public class InternalUmlCommonLexer extends Lexer { - public static final int RULE_ID = 4; - public static final int RULE_STRING = 7; - public static final int T__12 = 12; - public static final int T__13 = 13; - public static final int RULE_ANY_OTHER = 11; - public static final int RULE_INT = 5; - public static final int RULE_INTEGER_VALUE = 6; - public static final int RULE_WS = 10; - public static final int RULE_SL_COMMENT = 9; - public static final int EOF = -1; - public static final int RULE_ML_COMMENT = 8; - - // delegates - // delegators - - public InternalUmlCommonLexer() { - ; - } - - public InternalUmlCommonLexer(CharStream input) { - this(input, new RecognizerSharedState()); - } - - public InternalUmlCommonLexer(CharStream input, RecognizerSharedState state) { - super(input, state); - - } - - @Override - public String getGrammarFileName() { - return "../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g"; - } - - // $ANTLR start "T__12" - public final void mT__12() throws RecognitionException { - try { - int _type = T__12; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:11:7: ( '::' ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:11:9: '::' - { - match("::"); - - - } - - state.type = _type; - state.channel = _channel; - } finally { - } - } - - // $ANTLR end "T__12" - - // $ANTLR start "T__13" - public final void mT__13() throws RecognitionException { - try { - int _type = T__13; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:12:7: ( '*' ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:12:9: '*' - { - match('*'); - - } - - state.type = _type; - state.channel = _channel; - } finally { - } - } - - // $ANTLR end "T__13" - - // $ANTLR start "RULE_INTEGER_VALUE" - public final void mRULE_INTEGER_VALUE() throws RecognitionException { - try { - int _type = RULE_INTEGER_VALUE; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205: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.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205: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.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205: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; - } - - } - 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.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) - { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) - int alt3 = 2; - int LA3_0 = input.LA(1); - - if ((LA3_0 == '0')) { - alt3 = 1; - } - 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.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:24: '0' - { - match('0'); - - } - break; - case 2: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:28: '1' .. '9' ( ( '_' )? '0' .. '9' )* - { - matchRange('1', '9'); - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:37: ( ( '_' )? '0' .. '9' )* - loop2: do { - int alt2 = 2; - int LA2_0 = input.LA(1); - - if (((LA2_0 >= '0' && LA2_0 <= '9') || LA2_0 == '_')) { - alt2 = 1; - } - - - switch (alt2) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:38: ( '_' )? '0' .. '9' - { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:38: ( '_' )? - int alt1 = 2; - int LA1_0 = input.LA(1); - - if ((LA1_0 == '_')) { - alt1 = 1; - } - switch (alt1) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:38: '_' - { - match('_'); - - } - break; - - } - - matchRange('0', '9'); - - } - break; - - default: - break loop2; - } - } while (true); - - - } - break; - - } - - - } - break; - case 2: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:55: ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* - { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:55: ( '0b' | '0B' ) - int alt4 = 2; - int LA4_0 = input.LA(1); - - if ((LA4_0 == '0')) { - int LA4_1 = input.LA(2); - - if ((LA4_1 == 'b')) { - alt4 = 1; - } - else if ((LA4_1 == 'B')) { - alt4 = 2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 4, 1, input); - - throw nvae; - } - } - else { - NoViableAltException nvae = - new NoViableAltException("", 4, 0, input); - - throw nvae; - } - switch (alt4) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:56: '0b' - { - match("0b"); - - - } - break; - case 2: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:61: '0B' - { - match("0B"); - - - } - break; - - } - - matchRange('0', '1'); - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:76: ( ( '_' )? '0' .. '1' )* - loop6: do { - int alt6 = 2; - int LA6_0 = input.LA(1); - - if (((LA6_0 >= '0' && LA6_0 <= '1') || LA6_0 == '_')) { - alt6 = 1; - } - - - switch (alt6) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:77: ( '_' )? '0' .. '1' - { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:77: ( '_' )? - int alt5 = 2; - int LA5_0 = input.LA(1); - - if ((LA5_0 == '_')) { - alt5 = 1; - } - switch (alt5) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:77: '_' - { - match('_'); - - } - break; - - } - - matchRange('0', '1'); - - } - break; - - default: - break loop6; - } - } while (true); - - - } - break; - case 3: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:93: ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' - // .. 'f' | 'A' .. 'F' ) )* - { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205: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.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:94: '0x' - { - match("0x"); - - - } - break; - case 2: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205: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.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205: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.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:135: ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) - { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:135: ( '_' )? - int alt8 = 2; - int LA8_0 = input.LA(1); - - if ((LA8_0 == '_')) { - alt8 = 1; - } - switch (alt8) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205: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(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null, input); - recover(mse); - throw mse; - } - - - } - break; - - default: - break loop9; - } - } while (true); - - - } - break; - case 4: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:171: '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* - { - match('0'); - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:175: ( '_' )? - int alt10 = 2; - int LA10_0 = input.LA(1); - - if ((LA10_0 == '_')) { - alt10 = 1; - } - switch (alt10) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:175: '_' - { - match('_'); - - } - break; - - } - - matchRange('0', '7'); - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:189: ( ( '_' )? '0' .. '7' )* - loop12: do { - int alt12 = 2; - int LA12_0 = input.LA(1); - - if (((LA12_0 >= '0' && LA12_0 <= '7') || LA12_0 == '_')) { - alt12 = 1; - } - - - switch (alt12) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:190: ( '_' )? '0' .. '7' - { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:190: ( '_' )? - int alt11 = 2; - int LA11_0 = input.LA(1); - - if ((LA11_0 == '_')) { - alt11 = 1; - } - switch (alt11) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:205:190: '_' - { - match('_'); - - } - break; - - } - - matchRange('0', '7'); - - } - break; - - 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.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:207:9: ( ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' - // ( options {greedy=false; } : . )* '\\'' ) ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:207:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' - // ( options {greedy=false; } : . )* '\\'' ) - { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:207: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.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:207: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.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:207: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.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.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(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null, input); - recover(mse); - throw mse; - } - - - } - break; - - default: - break loop14; - } - } while (true); - - - } - break; - case 2: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:207:70: '\\'' ( options {greedy=false; } : . )* '\\'' - { - match('\''); - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:207: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.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:207:103: . - { - matchAny(); - - } - break; - - default: - break loop15; - } - } while (true); - - match('\''); - - } - break; - - } - - - } - - state.type = _type; - state.channel = _channel; - } 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.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:209:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | - // '\"' ) ) )* '\"' ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:209:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' - // ) ) )* '\"' - { - match('\"'); - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:209: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.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:209: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.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:209: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" - public final void mRULE_ML_COMMENT() throws RecognitionException { - try { - int _type = RULE_ML_COMMENT; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:211:17: ( '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/' ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:211:19: '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/' - { - match("/*"); - - 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.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:211:31: ( options {greedy=false; } : . )* - loop18: do { - int alt18 = 2; - int LA18_0 = input.LA(1); - - if ((LA18_0 == '*')) { - int LA18_1 = input.LA(2); - - if ((LA18_1 == '/')) { - alt18 = 2; - } - else if (((LA18_1 >= '\u0000' && LA18_1 <= '.') || (LA18_1 >= '0' && LA18_1 <= '\uFFFF'))) { - alt18 = 1; - } - - - } - else if (((LA18_0 >= '\u0000' && LA18_0 <= ')') || (LA18_0 >= '+' && LA18_0 <= '\uFFFF'))) { - alt18 = 1; - } - - - switch (alt18) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:211:59: . - { - matchAny(); - - } - break; - - default: - break loop18; - } - } while (true); - - match("*/"); - - - } - - state.type = _type; - state.channel = _channel; - } finally { - } - } - - // $ANTLR end "RULE_ML_COMMENT" - - // $ANTLR start "RULE_SL_COMMENT" - public final void mRULE_SL_COMMENT() throws RecognitionException { - try { - int _type = RULE_SL_COMMENT; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:213:17: ( '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )? ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:213:19: '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )? - { - match("//"); - - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:213:24: (~ ( ( '\\n' | '\\r' | '@' ) ) )* - loop19: do { - int alt19 = 2; - int LA19_0 = input.LA(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 (alt19) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:213: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) <= '?') || (input.LA(1) >= 'A' && input.LA(1) <= '\uFFFF')) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null, input); - recover(mse); - throw mse; - } - - - } - break; - - default: - break loop19; - } - } while (true); - - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:213:44: ( ( '\\r' )? '\\n' )? - int alt21 = 2; - int LA21_0 = input.LA(1); - - if ((LA21_0 == '\n' || LA21_0 == '\r')) { - alt21 = 1; - } - switch (alt21) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:213:45: ( '\\r' )? '\\n' - { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:213:45: ( '\\r' )? - int alt20 = 2; - int LA20_0 = input.LA(1); - - if ((LA20_0 == '\r')) { - alt20 = 1; - } - switch (alt20) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:213:45: '\\r' - { - match('\r'); - - } - break; - - } - - match('\n'); - - } - break; - - } - - - } - - state.type = _type; - state.channel = _channel; - } finally { - } - } - - // $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.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:215:10: ( ( '0' .. '9' )+ ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:215:12: ( '0' .. '9' )+ - { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:215: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.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:215: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.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:217:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:217:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ - { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:217:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ - int cnt23 = 0; - loop23: do { - int alt23 = 2; - int LA23_0 = input.LA(1); - - if (((LA23_0 >= '\t' && LA23_0 <= '\n') || LA23_0 == '\r' || LA23_0 == ' ')) { - alt23 = 1; - } - - - switch (alt23) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g: - { - if ((input.LA(1) >= '\t' && input.LA(1) <= '\n') || input.LA(1) == '\r' || input.LA(1) == ' ') { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null, input); - recover(mse); - throw mse; - } - - - } - break; - - default: - if (cnt23 >= 1) { - break loop23; - } - EarlyExitException eee = - new EarlyExitException(23, input); - throw eee; - } - cnt23++; - } while (true); - - - } - - state.type = _type; - state.channel = _channel; - } finally { - } - } - - // $ANTLR end "RULE_WS" - - // $ANTLR start "RULE_ANY_OTHER" - public final void mRULE_ANY_OTHER() throws RecognitionException { - try { - int _type = RULE_ANY_OTHER; - int _channel = DEFAULT_TOKEN_CHANNEL; - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:219:16: ( . ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:219:18: . - { - matchAny(); - - } - - state.type = _type; - state.channel = _channel; - } finally { - } - } - - // $ANTLR end "RULE_ANY_OTHER" - - @Override - public void mTokens() throws RecognitionException { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:1:8: ( T__12 | T__13 | RULE_INTEGER_VALUE | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | - // RULE_INT | RULE_WS | RULE_ANY_OTHER ) - int alt24 = 10; - alt24 = dfa24.predict(input); - switch (alt24) { - case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:1:10: T__12 - { - mT__12(); - - } - break; - case 2: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:1:16: T__13 - { - mT__13(); - - } - break; - case 3: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:1:22: RULE_INTEGER_VALUE - { - mRULE_INTEGER_VALUE(); - - } - break; - case 4: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:1:41: RULE_ID - { - mRULE_ID(); - - } - break; - case 5: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:1:49: RULE_STRING - { - mRULE_STRING(); - - } - break; - case 6: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:1:61: RULE_ML_COMMENT - { - mRULE_ML_COMMENT(); - - } - break; - case 7: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:1:77: RULE_SL_COMMENT - { - mRULE_SL_COMMENT(); - - } - break; - case 8: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:1:93: RULE_INT - { - mRULE_INT(); - - } - break; - case 9: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:1:102: RULE_WS - { - mRULE_WS(); - - } - break; - case 10: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:1:110: RULE_ANY_OTHER - { - mRULE_ANY_OTHER(); - - } - break; - - } - - } - - - protected DFA24 dfa24 = new DFA24(this); - static final String DFA24_eotS = - "\1\uffff\1\12\1\uffff\2\15\1\uffff\3\12\5\uffff\1\15\1\uffff\1" + - "\15\5\uffff\1\15"; - static final String DFA24_eofS = - "\27\uffff"; - static final String DFA24_minS = - "\1\0\1\72\1\uffff\2\60\1\uffff\2\0\1\52\5\uffff\1\60\1\uffff\1" + - "\60\5\uffff\1\60"; - static final String DFA24_maxS = - "\1\uffff\1\72\1\uffff\2\71\1\uffff\2\uffff\1\57\5\uffff\1\71\1" + - "\uffff\1\71\5\uffff\1\71"; - static final String DFA24_acceptS = - "\2\uffff\1\2\2\uffff\1\4\3\uffff\1\11\1\12\1\1\1\2\1\3\1\uffff" + - "\1\10\1\uffff\1\4\1\5\1\6\1\7\1\11\1\uffff"; - static final String DFA24_specialS = - "\1\2\5\uffff\1\0\1\1\17\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\2\12\1\2" + - "\4\12\1\10\1\3\11\4\1\1\6\12\32\5\4\12\1\5\1\12\32\5\uff85\12", - "\1\13", - "", - "\10\16\2\17", - "\12\20", - "", - "\0\21", - "\0\22", - "\1\23\4\uffff\1\24", - "", - "", - "", - "", - "", - "\10\26\2\17", - "", - "\12\20", - "", - "", - "", - "", - "", - "\10\26\2\17" - }; - - 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 = DFA24_transitionS.length; - DFA24_transition = new short[numStates][]; - for (int i = 0; i < numStates; i++) { - DFA24_transition[i] = DFA.unpackEncodedString(DFA24_transitionS[i]); - } - } - - class DFA24 extends DFA { - - public DFA24(BaseRecognizer recognizer) { - this.recognizer = recognizer; - 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; - } - - @Override - public String getDescription() { - return "1:1: Tokens : ( T__12 | T__13 | RULE_INTEGER_VALUE | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_WS | RULE_ANY_OTHER );"; - } - - @Override - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - IntStream input = _input; - int _s = s; - switch (s) { - case 0: - int LA24_6 = input.LA(1); - - s = -1; - if (((LA24_6 >= '\u0000' && LA24_6 <= '\uFFFF'))) { - s = 17; - } else { - s = 10; - } - - if (s >= 0) { - return s; - } - break; - case 1: - int LA24_7 = input.LA(1); - - s = -1; - if (((LA24_7 >= '\u0000' && LA24_7 <= '\uFFFF'))) { - s = 18; - } else { - s = 10; - } - - if (s >= 0) { - return s; - } - break; - case 2: - int LA24_0 = input.LA(1); - - s = -1; - if ((LA24_0 == ':')) { - s = 1; - } - - 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 <= '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; - } - NoViableAltException nvae = - new NoViableAltException(getDescription(), 24, _s, input); - error(nvae); - throw nvae; - } - } - + public static final int RULE_ID=4; + public static final int RULE_WS=10; + public static final int RULE_STRING=6; + public static final int RULE_ANY_OTHER=11; + public static final int RULE_SL_COMMENT=8; + public static final int RULE_INT=5; + public static final int RULE_ML_COMMENT=7; + public static final int RULE_INTEGER_VALUE=9; + public static final int T__12=12; + public static final int T__13=13; + public static final int EOF=-1; + + // delegates + // delegators + + public InternalUmlCommonLexer() {;} + public InternalUmlCommonLexer(CharStream input) { + this(input, new RecognizerSharedState()); + } + public InternalUmlCommonLexer(CharStream input, RecognizerSharedState state) { + super(input,state); + + } + public String getGrammarFileName() { return "InternalUmlCommon.g"; } + + // $ANTLR start "T__12" + public final void mT__12() throws RecognitionException { + try { + int _type = T__12; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlCommon.g:11:7: ( '::' ) + // InternalUmlCommon.g:11:9: '::' + { + match("::"); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "T__12" + + // $ANTLR start "T__13" + public final void mT__13() throws RecognitionException { + try { + int _type = T__13; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlCommon.g:12:7: ( '*' ) + // InternalUmlCommon.g:12:9: '*' + { + match('*'); + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "T__13" + + // $ANTLR start "RULE_ID" + public final void mRULE_ID() throws RecognitionException { + try { + int _type = RULE_ID; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlCommon.g:205:9: ( ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' ) ) + // InternalUmlCommon.g:205:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' ) + { + // InternalUmlCommon.g:205:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' ) + int alt3=2; + int LA3_0 = input.LA(1); + + if ( ((LA3_0>='A' && LA3_0<='Z')||LA3_0=='_'||(LA3_0>='a' && LA3_0<='z')) ) { + alt3=1; + } + else if ( (LA3_0=='\'') ) { + alt3=2; + } + else { + NoViableAltException nvae = + new NoViableAltException("", 3, 0, input); + + throw nvae; + } + switch (alt3) { + case 1 : + // InternalUmlCommon.g:205: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;} + + // InternalUmlCommon.g:205:36: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* + loop1: + do { + int alt1=2; + int LA1_0 = input.LA(1); + + if ( ((LA1_0>='0' && LA1_0<='9')||(LA1_0>='A' && LA1_0<='Z')||LA1_0=='_'||(LA1_0>='a' && LA1_0<='z')) ) { + alt1=1; + } + + + switch (alt1) { + case 1 : + // InternalUmlCommon.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(); + + } + else { + MismatchedSetException mse = new MismatchedSetException(null,input); + recover(mse); + throw mse;} + + + } + break; + + default : + break loop1; + } + } while (true); + + + } + break; + case 2 : + // InternalUmlCommon.g:205:70: '\\'' ( options {greedy=false; } : . )* '\\'' + { + match('\''); + // InternalUmlCommon.g:205:75: ( options {greedy=false; } : . )* + loop2: + do { + int alt2=2; + int LA2_0 = input.LA(1); + + if ( (LA2_0=='\'') ) { + alt2=2; + } + else if ( ((LA2_0>='\u0000' && LA2_0<='&')||(LA2_0>='(' && LA2_0<='\uFFFF')) ) { + alt2=1; + } + + + switch (alt2) { + case 1 : + // InternalUmlCommon.g:205:103: . + { + matchAny(); + + } + break; + + default : + break loop2; + } + } while (true); + + match('\''); + + } + break; + + } + + + } + + state.type = _type; + state.channel = _channel; + } + 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; + // InternalUmlCommon.g:207:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' ) + // InternalUmlCommon.g:207:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' + { + match('\"'); + // InternalUmlCommon.g:207:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* + loop4: + do { + int alt4=3; + int LA4_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; + } + + + switch (alt4) { + case 1 : + // InternalUmlCommon.g:207: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 : + // InternalUmlCommon.g:207: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 loop4; + } + } while (true); + + match('\"'); + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_STRING" + + // $ANTLR start "RULE_ML_COMMENT" + public final void mRULE_ML_COMMENT() throws RecognitionException { + try { + int _type = RULE_ML_COMMENT; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlCommon.g:209:17: ( '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/' ) + // InternalUmlCommon.g:209:19: '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/' + { + match("/*"); + + 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;} + + // InternalUmlCommon.g:209:31: ( options {greedy=false; } : . )* + loop5: + do { + int alt5=2; + int LA5_0 = input.LA(1); + + if ( (LA5_0=='*') ) { + int LA5_1 = input.LA(2); + + if ( (LA5_1=='/') ) { + alt5=2; + } + else if ( ((LA5_1>='\u0000' && LA5_1<='.')||(LA5_1>='0' && LA5_1<='\uFFFF')) ) { + alt5=1; + } + + + } + else if ( ((LA5_0>='\u0000' && LA5_0<=')')||(LA5_0>='+' && LA5_0<='\uFFFF')) ) { + alt5=1; + } + + + switch (alt5) { + case 1 : + // InternalUmlCommon.g:209:59: . + { + matchAny(); + + } + break; + + default : + break loop5; + } + } while (true); + + match("*/"); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_ML_COMMENT" + + // $ANTLR start "RULE_SL_COMMENT" + public final void mRULE_SL_COMMENT() throws RecognitionException { + try { + int _type = RULE_SL_COMMENT; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlCommon.g:211:17: ( '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )? ) + // InternalUmlCommon.g:211:19: '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )? + { + match("//"); + + // InternalUmlCommon.g:211:24: (~ ( ( '\\n' | '\\r' | '@' ) ) )* + loop6: + do { + int alt6=2; + int LA6_0 = input.LA(1); + + if ( ((LA6_0>='\u0000' && LA6_0<='\t')||(LA6_0>='\u000B' && LA6_0<='\f')||(LA6_0>='\u000E' && LA6_0<='?')||(LA6_0>='A' && LA6_0<='\uFFFF')) ) { + alt6=1; + } + + + switch (alt6) { + case 1 : + // InternalUmlCommon.g:211: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)<='?')||(input.LA(1)>='A' && input.LA(1)<='\uFFFF') ) { + input.consume(); + + } + else { + MismatchedSetException mse = new MismatchedSetException(null,input); + recover(mse); + throw mse;} + + + } + break; + + default : + break loop6; + } + } while (true); + + // InternalUmlCommon.g:211:44: ( ( '\\r' )? '\\n' )? + int alt8=2; + int LA8_0 = input.LA(1); + + if ( (LA8_0=='\n'||LA8_0=='\r') ) { + alt8=1; + } + switch (alt8) { + case 1 : + // InternalUmlCommon.g:211:45: ( '\\r' )? '\\n' + { + // InternalUmlCommon.g:211:45: ( '\\r' )? + int alt7=2; + int LA7_0 = input.LA(1); + + if ( (LA7_0=='\r') ) { + alt7=1; + } + switch (alt7) { + case 1 : + // InternalUmlCommon.g:211:45: '\\r' + { + match('\r'); + + } + break; + + } + + match('\n'); + + } + break; + + } + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $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; + // InternalUmlCommon.g:213:10: ( ( '0' .. '9' )+ ) + // InternalUmlCommon.g:213:12: ( '0' .. '9' )+ + { + // InternalUmlCommon.g:213:12: ( '0' .. '9' )+ + int cnt9=0; + loop9: + do { + int alt9=2; + int LA9_0 = input.LA(1); + + if ( ((LA9_0>='0' && LA9_0<='9')) ) { + alt9=1; + } + + + switch (alt9) { + case 1 : + // InternalUmlCommon.g:213:13: '0' .. '9' + { + matchRange('0','9'); + + } + break; + + default : + if ( cnt9 >= 1 ) break loop9; + EarlyExitException eee = + new EarlyExitException(9, input); + throw eee; + } + cnt9++; + } while (true); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_INT" + + // $ANTLR start "RULE_INTEGER_VALUE" + public final void mRULE_INTEGER_VALUE() throws RecognitionException { + try { + int _type = RULE_INTEGER_VALUE; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlCommon.g:215: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' )* ) ) + // InternalUmlCommon.g:215: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' )* ) + { + // InternalUmlCommon.g:215: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 alt22=4; + int LA22_0 = input.LA(1); + + if ( (LA22_0=='0') ) { + switch ( input.LA(2) ) { + case 'B': + case 'b': + { + alt22=2; + } + break; + case 'X': + case 'x': + { + alt22=3; + } + break; + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + case '_': + { + alt22=4; + } + break; + default: + alt22=1;} + + } + else if ( ((LA22_0>='1' && LA22_0<='9')) ) { + alt22=1; + } + else { + NoViableAltException nvae = + new NoViableAltException("", 22, 0, input); + + throw nvae; + } + switch (alt22) { + case 1 : + // InternalUmlCommon.g:215:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) + { + // InternalUmlCommon.g:215:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) + int alt12=2; + int LA12_0 = input.LA(1); + + if ( (LA12_0=='0') ) { + alt12=1; + } + else if ( ((LA12_0>='1' && LA12_0<='9')) ) { + alt12=2; + } + else { + NoViableAltException nvae = + new NoViableAltException("", 12, 0, input); + + throw nvae; + } + switch (alt12) { + case 1 : + // InternalUmlCommon.g:215:24: '0' + { + match('0'); + + } + break; + case 2 : + // InternalUmlCommon.g:215:28: '1' .. '9' ( ( '_' )? '0' .. '9' )* + { + matchRange('1','9'); + // InternalUmlCommon.g:215:37: ( ( '_' )? '0' .. '9' )* + loop11: + do { + int alt11=2; + int LA11_0 = input.LA(1); + + if ( ((LA11_0>='0' && LA11_0<='9')||LA11_0=='_') ) { + alt11=1; + } + + + switch (alt11) { + case 1 : + // InternalUmlCommon.g:215:38: ( '_' )? '0' .. '9' + { + // InternalUmlCommon.g:215:38: ( '_' )? + int alt10=2; + int LA10_0 = input.LA(1); + + if ( (LA10_0=='_') ) { + alt10=1; + } + switch (alt10) { + case 1 : + // InternalUmlCommon.g:215:38: '_' + { + match('_'); + + } + break; + + } + + matchRange('0','9'); + + } + break; + + default : + break loop11; + } + } while (true); + + + } + break; + + } + + + } + break; + case 2 : + // InternalUmlCommon.g:215:55: ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* + { + // InternalUmlCommon.g:215:55: ( '0b' | '0B' ) + int alt13=2; + int LA13_0 = input.LA(1); + + if ( (LA13_0=='0') ) { + int LA13_1 = input.LA(2); + + if ( (LA13_1=='b') ) { + alt13=1; + } + else if ( (LA13_1=='B') ) { + alt13=2; + } + else { + NoViableAltException nvae = + new NoViableAltException("", 13, 1, input); + + throw nvae; + } + } + else { + NoViableAltException nvae = + new NoViableAltException("", 13, 0, input); + + throw nvae; + } + switch (alt13) { + case 1 : + // InternalUmlCommon.g:215:56: '0b' + { + match("0b"); + + + } + break; + case 2 : + // InternalUmlCommon.g:215:61: '0B' + { + match("0B"); + + + } + break; + + } + + matchRange('0','1'); + // InternalUmlCommon.g:215:76: ( ( '_' )? '0' .. '1' )* + loop15: + do { + int alt15=2; + int LA15_0 = input.LA(1); + + if ( ((LA15_0>='0' && LA15_0<='1')||LA15_0=='_') ) { + alt15=1; + } + + + switch (alt15) { + case 1 : + // InternalUmlCommon.g:215:77: ( '_' )? '0' .. '1' + { + // InternalUmlCommon.g:215:77: ( '_' )? + int alt14=2; + int LA14_0 = input.LA(1); + + if ( (LA14_0=='_') ) { + alt14=1; + } + switch (alt14) { + case 1 : + // InternalUmlCommon.g:215:77: '_' + { + match('_'); + + } + break; + + } + + matchRange('0','1'); + + } + break; + + default : + break loop15; + } + } while (true); + + + } + break; + case 3 : + // InternalUmlCommon.g:215:93: ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* + { + // InternalUmlCommon.g:215:93: ( '0x' | '0X' ) + int alt16=2; + int LA16_0 = input.LA(1); + + if ( (LA16_0=='0') ) { + int LA16_1 = input.LA(2); + + if ( (LA16_1=='x') ) { + alt16=1; + } + else if ( (LA16_1=='X') ) { + alt16=2; + } + else { + NoViableAltException nvae = + new NoViableAltException("", 16, 1, input); + + throw nvae; + } + } + else { + NoViableAltException nvae = + new NoViableAltException("", 16, 0, input); + + throw nvae; + } + switch (alt16) { + case 1 : + // InternalUmlCommon.g:215:94: '0x' + { + match("0x"); + + + } + break; + case 2 : + // InternalUmlCommon.g:215: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;} + + // InternalUmlCommon.g:215:134: ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* + loop18: + do { + int alt18=2; + int LA18_0 = input.LA(1); + + if ( ((LA18_0>='0' && LA18_0<='9')||(LA18_0>='A' && LA18_0<='F')||LA18_0=='_'||(LA18_0>='a' && LA18_0<='f')) ) { + alt18=1; + } + + + switch (alt18) { + case 1 : + // InternalUmlCommon.g:215:135: ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) + { + // InternalUmlCommon.g:215:135: ( '_' )? + int alt17=2; + int LA17_0 = input.LA(1); + + if ( (LA17_0=='_') ) { + alt17=1; + } + switch (alt17) { + case 1 : + // InternalUmlCommon.g:215: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(); + + } + else { + MismatchedSetException mse = new MismatchedSetException(null,input); + recover(mse); + throw mse;} + + + } + break; + + default : + break loop18; + } + } while (true); + + + } + break; + case 4 : + // InternalUmlCommon.g:215:171: '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* + { + match('0'); + // InternalUmlCommon.g:215:175: ( '_' )? + int alt19=2; + int LA19_0 = input.LA(1); + + if ( (LA19_0=='_') ) { + alt19=1; + } + switch (alt19) { + case 1 : + // InternalUmlCommon.g:215:175: '_' + { + match('_'); + + } + break; + + } + + matchRange('0','7'); + // InternalUmlCommon.g:215:189: ( ( '_' )? '0' .. '7' )* + loop21: + do { + int alt21=2; + int LA21_0 = input.LA(1); + + if ( ((LA21_0>='0' && LA21_0<='7')||LA21_0=='_') ) { + alt21=1; + } + + + switch (alt21) { + case 1 : + // InternalUmlCommon.g:215:190: ( '_' )? '0' .. '7' + { + // InternalUmlCommon.g:215:190: ( '_' )? + int alt20=2; + int LA20_0 = input.LA(1); + + if ( (LA20_0=='_') ) { + alt20=1; + } + switch (alt20) { + case 1 : + // InternalUmlCommon.g:215:190: '_' + { + match('_'); + + } + break; + + } + + matchRange('0','7'); + + } + break; + + default : + break loop21; + } + } while (true); + + + } + break; + + } + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_INTEGER_VALUE" + + // $ANTLR start "RULE_WS" + public final void mRULE_WS() throws RecognitionException { + try { + int _type = RULE_WS; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlCommon.g:217:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) + // InternalUmlCommon.g:217:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ + { + // InternalUmlCommon.g:217:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ + int cnt23=0; + loop23: + do { + int alt23=2; + int LA23_0 = input.LA(1); + + if ( ((LA23_0>='\t' && LA23_0<='\n')||LA23_0=='\r'||LA23_0==' ') ) { + alt23=1; + } + + + switch (alt23) { + case 1 : + // InternalUmlCommon.g: + { + if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) { + input.consume(); + + } + else { + MismatchedSetException mse = new MismatchedSetException(null,input); + recover(mse); + throw mse;} + + + } + break; + + default : + if ( cnt23 >= 1 ) break loop23; + EarlyExitException eee = + new EarlyExitException(23, input); + throw eee; + } + cnt23++; + } while (true); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_WS" + + // $ANTLR start "RULE_ANY_OTHER" + public final void mRULE_ANY_OTHER() throws RecognitionException { + try { + int _type = RULE_ANY_OTHER; + int _channel = DEFAULT_TOKEN_CHANNEL; + // InternalUmlCommon.g:219:16: ( . ) + // InternalUmlCommon.g:219:18: . + { + matchAny(); + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_ANY_OTHER" + + public void mTokens() throws RecognitionException { + // InternalUmlCommon.g:1:8: ( T__12 | T__13 | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_INTEGER_VALUE | RULE_WS | RULE_ANY_OTHER ) + int alt24=10; + alt24 = dfa24.predict(input); + switch (alt24) { + case 1 : + // InternalUmlCommon.g:1:10: T__12 + { + mT__12(); + + } + break; + case 2 : + // InternalUmlCommon.g:1:16: T__13 + { + mT__13(); + + } + break; + case 3 : + // InternalUmlCommon.g:1:22: RULE_ID + { + mRULE_ID(); + + } + break; + case 4 : + // InternalUmlCommon.g:1:30: RULE_STRING + { + mRULE_STRING(); + + } + break; + case 5 : + // InternalUmlCommon.g:1:42: RULE_ML_COMMENT + { + mRULE_ML_COMMENT(); + + } + break; + case 6 : + // InternalUmlCommon.g:1:58: RULE_SL_COMMENT + { + mRULE_SL_COMMENT(); + + } + break; + case 7 : + // InternalUmlCommon.g:1:74: RULE_INT + { + mRULE_INT(); + + } + break; + case 8 : + // InternalUmlCommon.g:1:83: RULE_INTEGER_VALUE + { + mRULE_INTEGER_VALUE(); + + } + break; + case 9 : + // InternalUmlCommon.g:1:102: RULE_WS + { + mRULE_WS(); + + } + break; + case 10 : + // InternalUmlCommon.g:1:110: RULE_ANY_OTHER + { + mRULE_ANY_OTHER(); + + } + break; + + } + + } + + + protected DFA24 dfa24 = new DFA24(this); + static final String DFA24_eotS = + "\1\uffff\1\12\2\uffff\3\12\2\23\11\uffff\1\23\1\uffff\1\23\1\uffff\1\23"; + static final String DFA24_eofS = + "\27\uffff"; + static final String DFA24_minS = + "\1\0\1\72\2\uffff\2\0\1\52\2\60\11\uffff\1\60\1\uffff\1\60\1\uffff\1\60"; + static final String DFA24_maxS = + "\1\uffff\1\72\2\uffff\2\uffff\1\57\1\170\1\137\11\uffff\1\137\1\uffff\1\137\1\uffff\1\137"; + static final String DFA24_acceptS = + "\2\uffff\1\2\1\3\5\uffff\1\11\1\12\1\1\1\2\1\3\1\4\1\5\1\6\1\10\1\uffff\1\7\1\uffff\1\11\1\uffff"; + static final String DFA24_specialS = + "\1\2\3\uffff\1\0\1\1\21\uffff}>"; + static final String[] DFA24_transitionS = { + "\11\12\2\11\2\12\1\11\22\12\1\11\1\12\1\5\4\12\1\4\2\12\1\2\4\12\1\6\1\7\11\10\1\1\6\12\32\3\4\12\1\3\1\12\32\3\uff85\12", + "\1\13", + "", + "", + "\0\15", + "\0\16", + "\1\17\4\uffff\1\20", + "\10\22\12\uffff\1\21\25\uffff\1\21\6\uffff\1\21\2\uffff\1\21\25\uffff\1\21", + "\12\24\45\uffff\1\21", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "\10\26\47\uffff\1\21", + "", + "\12\24\45\uffff\1\21", + "", + "\10\26\47\uffff\1\21" + }; + + 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 = DFA24_transitionS.length; + DFA24_transition = new short[numStates][]; + for (int i=0; i<numStates; i++) { + DFA24_transition[i] = DFA.unpackEncodedString(DFA24_transitionS[i]); + } + } + + class DFA24 extends DFA { + + public DFA24(BaseRecognizer recognizer) { + this.recognizer = recognizer; + 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__12 | T__13 | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_INTEGER_VALUE | 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 LA24_4 = input.LA(1); + + s = -1; + if ( ((LA24_4>='\u0000' && LA24_4<='\uFFFF')) ) {s = 13;} + + else s = 10; + + if ( s>=0 ) return s; + break; + case 1 : + int LA24_5 = input.LA(1); + + s = -1; + if ( ((LA24_5>='\u0000' && LA24_5<='\uFFFF')) ) {s = 14;} + + else s = 10; + + if ( s>=0 ) return s; + break; + case 2 : + int LA24_0 = input.LA(1); + + s = -1; + if ( (LA24_0==':') ) {s = 1;} + + else if ( (LA24_0=='*') ) {s = 2;} + + else if ( ((LA24_0>='A' && LA24_0<='Z')||LA24_0=='_'||(LA24_0>='a' && LA24_0<='z')) ) {s = 3;} + + else if ( (LA24_0=='\'') ) {s = 4;} + + else if ( (LA24_0=='\"') ) {s = 5;} + + else if ( (LA24_0=='/') ) {s = 6;} + + else if ( (LA24_0=='0') ) {s = 7;} + + else if ( ((LA24_0>='1' && LA24_0<='9')) ) {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; + } + NoViableAltException nvae = + new NoViableAltException(getDescription(), 24, _s, input); + error(nvae); + throw nvae; + } + } + }
\ No newline at end of file diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommonParser.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommonParser.java index 906a25b5d81..d5441e5827e 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommonParser.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommonParser.java @@ -14,19 +14,19 @@ import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; @SuppressWarnings("all") public class InternalUmlCommonParser extends AbstractInternalAntlrParser { public static final String[] tokenNames = new String[] { - "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_INT", "RULE_INTEGER_VALUE", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'::'", "'*'" + "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_INT", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_INTEGER_VALUE", "RULE_WS", "RULE_ANY_OTHER", "'::'", "'*'" }; public static final int RULE_ID = 4; - public static final int RULE_STRING = 7; - public static final int T__12 = 12; - public static final int T__13 = 13; + public static final int RULE_WS = 10; + public static final int RULE_STRING = 6; public static final int RULE_ANY_OTHER = 11; + public static final int RULE_SL_COMMENT = 8; public static final int RULE_INT = 5; - public static final int RULE_INTEGER_VALUE = 6; - public static final int RULE_WS = 10; - public static final int RULE_SL_COMMENT = 9; + public static final int RULE_ML_COMMENT = 7; + public static final int RULE_INTEGER_VALUE = 9; + public static final int T__12 = 12; + public static final int T__13 = 13; public static final int EOF = -1; - public static final int RULE_ML_COMMENT = 8; // delegates // delegators @@ -42,12 +42,10 @@ public class InternalUmlCommonParser extends AbstractInternalAntlrParser { } - @Override public String[] getTokenNames() { return InternalUmlCommonParser.tokenNames; } - @Override public String getGrammarFileName() { return "../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g"; } @@ -75,7 +73,7 @@ public class InternalUmlCommonParser extends AbstractInternalAntlrParser { // $ANTLR start "entryRuleQualifiedName" - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:68:1: entryRuleQualifiedName returns [EObject current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ; + // InternalUmlCommon.g:68:1: entryRuleQualifiedName returns [EObject current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ; public final EObject entryRuleQualifiedName() throws RecognitionException { EObject current = null; @@ -83,17 +81,17 @@ public class InternalUmlCommonParser extends AbstractInternalAntlrParser { try { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:69:2: (iv_ruleQualifiedName= ruleQualifiedName EOF ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:70:2: iv_ruleQualifiedName= ruleQualifiedName EOF + // InternalUmlCommon.g:69:2: (iv_ruleQualifiedName= ruleQualifiedName EOF ) + // InternalUmlCommon.g:70:2: iv_ruleQualifiedName= ruleQualifiedName EOF { newCompositeNode(grammarAccess.getQualifiedNameRule()); - pushFollow(FOLLOW_ruleQualifiedName_in_entryRuleQualifiedName75); + pushFollow(FOLLOW_1); iv_ruleQualifiedName = ruleQualifiedName(); state._fsp--; current = iv_ruleQualifiedName; - match(input, EOF, FOLLOW_EOF_in_entryRuleQualifiedName85); + match(input, EOF, FOLLOW_2); } @@ -106,13 +104,11 @@ public class InternalUmlCommonParser extends AbstractInternalAntlrParser { } return current; } - // $ANTLR end "entryRuleQualifiedName" // $ANTLR start "ruleQualifiedName" - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:77:1: ruleQualifiedName returns [EObject current=null] : ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( - // (lv_remaining_2_0= ruleQualifiedName ) )? ) ; + // InternalUmlCommon.g:77:1: ruleQualifiedName returns [EObject current=null] : ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? ) ; public final EObject ruleQualifiedName() throws RecognitionException { EObject current = null; @@ -124,24 +120,24 @@ public class InternalUmlCommonParser extends AbstractInternalAntlrParser { enterRule(); try { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:80:28: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? ) ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:81:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? ) + // InternalUmlCommon.g:80:28: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? ) ) + // InternalUmlCommon.g:81:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? ) { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:81:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:81:2: ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? + // InternalUmlCommon.g:81:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? ) + // InternalUmlCommon.g:81:2: ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:81:2: ( (otherlv_0= RULE_ID ) ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:82:1: (otherlv_0= RULE_ID ) + // InternalUmlCommon.g:81:2: ( (otherlv_0= RULE_ID ) ) + // InternalUmlCommon.g:82:1: (otherlv_0= RULE_ID ) { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:82:1: (otherlv_0= RULE_ID ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:83:3: otherlv_0= RULE_ID + // InternalUmlCommon.g:82:1: (otherlv_0= RULE_ID ) + // InternalUmlCommon.g:83:3: otherlv_0= RULE_ID { if (current == null) { current = createModelElement(grammarAccess.getQualifiedNameRule()); } - otherlv_0 = (Token) match(input, RULE_ID, FOLLOW_RULE_ID_in_ruleQualifiedName130); + otherlv_0 = (Token) match(input, RULE_ID, FOLLOW_3); newLeafNode(otherlv_0, grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0()); @@ -151,11 +147,11 @@ public class InternalUmlCommonParser extends AbstractInternalAntlrParser { } - otherlv_1 = (Token) match(input, 12, FOLLOW_12_in_ruleQualifiedName142); + otherlv_1 = (Token) match(input, 12, FOLLOW_4); newLeafNode(otherlv_1, grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1()); - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:98:1: ( (lv_remaining_2_0= ruleQualifiedName ) )? + // InternalUmlCommon.g:98:1: ( (lv_remaining_2_0= ruleQualifiedName ) )? int alt1 = 2; int LA1_0 = input.LA(1); @@ -164,15 +160,15 @@ public class InternalUmlCommonParser extends AbstractInternalAntlrParser { } switch (alt1) { case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:99:1: (lv_remaining_2_0= ruleQualifiedName ) + // InternalUmlCommon.g:99:1: (lv_remaining_2_0= ruleQualifiedName ) { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:99:1: (lv_remaining_2_0= ruleQualifiedName ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:100:3: lv_remaining_2_0= ruleQualifiedName + // InternalUmlCommon.g:99:1: (lv_remaining_2_0= ruleQualifiedName ) + // InternalUmlCommon.g:100:3: lv_remaining_2_0= ruleQualifiedName { newCompositeNode(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0()); - pushFollow(FOLLOW_ruleQualifiedName_in_ruleQualifiedName163); + pushFollow(FOLLOW_2); lv_remaining_2_0 = ruleQualifiedName(); state._fsp--; @@ -185,7 +181,7 @@ public class InternalUmlCommonParser extends AbstractInternalAntlrParser { current, "remaining", lv_remaining_2_0, - "QualifiedName"); + "org.eclipse.papyrus.uml.textedit.common.xtext.UmlCommon.QualifiedName"); afterParserOrEnumRuleCall(); @@ -213,13 +209,11 @@ public class InternalUmlCommonParser extends AbstractInternalAntlrParser { } return current; } - // $ANTLR end "ruleQualifiedName" // $ANTLR start "entryRuleBoundSpecification" - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:128:1: entryRuleBoundSpecification returns [EObject current=null] : iv_ruleBoundSpecification= - // ruleBoundSpecification EOF ; + // InternalUmlCommon.g:128:1: entryRuleBoundSpecification returns [EObject current=null] : iv_ruleBoundSpecification= ruleBoundSpecification EOF ; public final EObject entryRuleBoundSpecification() throws RecognitionException { EObject current = null; @@ -227,17 +221,17 @@ public class InternalUmlCommonParser extends AbstractInternalAntlrParser { try { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:129:2: (iv_ruleBoundSpecification= ruleBoundSpecification EOF ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:130:2: iv_ruleBoundSpecification= ruleBoundSpecification EOF + // InternalUmlCommon.g:129:2: (iv_ruleBoundSpecification= ruleBoundSpecification EOF ) + // InternalUmlCommon.g:130:2: iv_ruleBoundSpecification= ruleBoundSpecification EOF { newCompositeNode(grammarAccess.getBoundSpecificationRule()); - pushFollow(FOLLOW_ruleBoundSpecification_in_entryRuleBoundSpecification204); + pushFollow(FOLLOW_1); iv_ruleBoundSpecification = ruleBoundSpecification(); state._fsp--; current = iv_ruleBoundSpecification; - match(input, EOF, FOLLOW_EOF_in_entryRuleBoundSpecification214); + match(input, EOF, FOLLOW_2); } @@ -250,12 +244,11 @@ public class InternalUmlCommonParser extends AbstractInternalAntlrParser { } return current; } - // $ANTLR end "entryRuleBoundSpecification" // $ANTLR start "ruleBoundSpecification" - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:137:1: ruleBoundSpecification returns [EObject current=null] : ( (lv_value_0_0= ruleUnlimitedLiteral ) ) ; + // InternalUmlCommon.g:137:1: ruleBoundSpecification returns [EObject current=null] : ( (lv_value_0_0= ruleUnlimitedLiteral ) ) ; public final EObject ruleBoundSpecification() throws RecognitionException { EObject current = null; @@ -265,19 +258,19 @@ public class InternalUmlCommonParser extends AbstractInternalAntlrParser { enterRule(); try { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:140:28: ( ( (lv_value_0_0= ruleUnlimitedLiteral ) ) ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:141:1: ( (lv_value_0_0= ruleUnlimitedLiteral ) ) + // InternalUmlCommon.g:140:28: ( ( (lv_value_0_0= ruleUnlimitedLiteral ) ) ) + // InternalUmlCommon.g:141:1: ( (lv_value_0_0= ruleUnlimitedLiteral ) ) { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:141:1: ( (lv_value_0_0= ruleUnlimitedLiteral ) ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:142:1: (lv_value_0_0= ruleUnlimitedLiteral ) + // InternalUmlCommon.g:141:1: ( (lv_value_0_0= ruleUnlimitedLiteral ) ) + // InternalUmlCommon.g:142:1: (lv_value_0_0= ruleUnlimitedLiteral ) { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:142:1: (lv_value_0_0= ruleUnlimitedLiteral ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:143:3: lv_value_0_0= ruleUnlimitedLiteral + // InternalUmlCommon.g:142:1: (lv_value_0_0= ruleUnlimitedLiteral ) + // InternalUmlCommon.g:143:3: lv_value_0_0= ruleUnlimitedLiteral { newCompositeNode(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0()); - pushFollow(FOLLOW_ruleUnlimitedLiteral_in_ruleBoundSpecification259); + pushFollow(FOLLOW_2); lv_value_0_0 = ruleUnlimitedLiteral(); state._fsp--; @@ -290,7 +283,7 @@ public class InternalUmlCommonParser extends AbstractInternalAntlrParser { current, "value", lv_value_0_0, - "UnlimitedLiteral"); + "org.eclipse.papyrus.uml.textedit.common.xtext.UmlCommon.UnlimitedLiteral"); afterParserOrEnumRuleCall(); @@ -312,13 +305,11 @@ public class InternalUmlCommonParser extends AbstractInternalAntlrParser { } return current; } - // $ANTLR end "ruleBoundSpecification" // $ANTLR start "entryRuleUnlimitedLiteral" - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:167:1: entryRuleUnlimitedLiteral returns [String current=null] : iv_ruleUnlimitedLiteral= - // ruleUnlimitedLiteral EOF ; + // InternalUmlCommon.g:167:1: entryRuleUnlimitedLiteral returns [String current=null] : iv_ruleUnlimitedLiteral= ruleUnlimitedLiteral EOF ; public final String entryRuleUnlimitedLiteral() throws RecognitionException { String current = null; @@ -326,17 +317,17 @@ public class InternalUmlCommonParser extends AbstractInternalAntlrParser { try { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:168:2: (iv_ruleUnlimitedLiteral= ruleUnlimitedLiteral EOF ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:169:2: iv_ruleUnlimitedLiteral= ruleUnlimitedLiteral EOF + // InternalUmlCommon.g:168:2: (iv_ruleUnlimitedLiteral= ruleUnlimitedLiteral EOF ) + // InternalUmlCommon.g:169:2: iv_ruleUnlimitedLiteral= ruleUnlimitedLiteral EOF { newCompositeNode(grammarAccess.getUnlimitedLiteralRule()); - pushFollow(FOLLOW_ruleUnlimitedLiteral_in_entryRuleUnlimitedLiteral295); + pushFollow(FOLLOW_1); iv_ruleUnlimitedLiteral = ruleUnlimitedLiteral(); state._fsp--; current = iv_ruleUnlimitedLiteral.getText(); - match(input, EOF, FOLLOW_EOF_in_entryRuleUnlimitedLiteral306); + match(input, EOF, FOLLOW_2); } @@ -349,13 +340,11 @@ public class InternalUmlCommonParser extends AbstractInternalAntlrParser { } return current; } - // $ANTLR end "entryRuleUnlimitedLiteral" // $ANTLR start "ruleUnlimitedLiteral" - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:176:1: ruleUnlimitedLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : - // (this_INT_0= RULE_INT | kw= '*' ) ; + // InternalUmlCommon.g:176:1: ruleUnlimitedLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_INT_0= RULE_INT | kw= '*' ) ; public final AntlrDatatypeRuleToken ruleUnlimitedLiteral() throws RecognitionException { AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); @@ -365,30 +354,27 @@ public class InternalUmlCommonParser extends AbstractInternalAntlrParser { enterRule(); try { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:179:28: ( (this_INT_0= RULE_INT | kw= '*' ) ) - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:180:1: (this_INT_0= RULE_INT | kw= '*' ) + // InternalUmlCommon.g:179:28: ( (this_INT_0= RULE_INT | kw= '*' ) ) + // InternalUmlCommon.g:180:1: (this_INT_0= RULE_INT | kw= '*' ) { - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:180:1: (this_INT_0= RULE_INT | kw= '*' ) + // InternalUmlCommon.g:180:1: (this_INT_0= RULE_INT | kw= '*' ) int alt2 = 2; int LA2_0 = input.LA(1); if ((LA2_0 == RULE_INT)) { alt2 = 1; - } - else if ((LA2_0 == 13)) { + } else if ((LA2_0 == 13)) { alt2 = 2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 2, 0, input); + } else { + NoViableAltException nvae = new NoViableAltException("", 2, 0, input); throw nvae; } switch (alt2) { case 1: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:180:6: this_INT_0= RULE_INT + // InternalUmlCommon.g:180:6: this_INT_0= RULE_INT { - this_INT_0 = (Token) match(input, RULE_INT, FOLLOW_RULE_INT_in_ruleUnlimitedLiteral346); + this_INT_0 = (Token) match(input, RULE_INT, FOLLOW_2); current.merge(this_INT_0); @@ -399,9 +385,9 @@ public class InternalUmlCommonParser extends AbstractInternalAntlrParser { } break; case 2: - // ../org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/parser/antlr/internal/InternalUmlCommon.g:189:2: kw= '*' + // InternalUmlCommon.g:189:2: kw= '*' { - kw = (Token) match(input, 13, FOLLOW_13_in_ruleUnlimitedLiteral370); + kw = (Token) match(input, 13, FOLLOW_2); current.merge(kw); newLeafNode(kw, grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1()); @@ -425,7 +411,6 @@ public class InternalUmlCommonParser extends AbstractInternalAntlrParser { } return current; } - // $ANTLR end "ruleUnlimitedLiteral" // Delegated rules @@ -433,17 +418,9 @@ public class InternalUmlCommonParser extends AbstractInternalAntlrParser { - public static final BitSet FOLLOW_ruleQualifiedName_in_entryRuleQualifiedName75 = new BitSet(new long[] { 0x0000000000000000L }); - public static final BitSet FOLLOW_EOF_in_entryRuleQualifiedName85 = new BitSet(new long[] { 0x0000000000000002L }); - public static final BitSet FOLLOW_RULE_ID_in_ruleQualifiedName130 = new BitSet(new long[] { 0x0000000000001000L }); - public static final BitSet FOLLOW_12_in_ruleQualifiedName142 = new BitSet(new long[] { 0x0000000000000012L }); - public static final BitSet FOLLOW_ruleQualifiedName_in_ruleQualifiedName163 = new BitSet(new long[] { 0x0000000000000002L }); - public static final BitSet FOLLOW_ruleBoundSpecification_in_entryRuleBoundSpecification204 = new BitSet(new long[] { 0x0000000000000000L }); - public static final BitSet FOLLOW_EOF_in_entryRuleBoundSpecification214 = new BitSet(new long[] { 0x0000000000000002L }); - public static final BitSet FOLLOW_ruleUnlimitedLiteral_in_ruleBoundSpecification259 = new BitSet(new long[] { 0x0000000000000002L }); - public static final BitSet FOLLOW_ruleUnlimitedLiteral_in_entryRuleUnlimitedLiteral295 = new BitSet(new long[] { 0x0000000000000000L }); - public static final BitSet FOLLOW_EOF_in_entryRuleUnlimitedLiteral306 = new BitSet(new long[] { 0x0000000000000002L }); - public static final BitSet FOLLOW_RULE_INT_in_ruleUnlimitedLiteral346 = new BitSet(new long[] { 0x0000000000000002L }); - public static final BitSet FOLLOW_13_in_ruleUnlimitedLiteral370 = new BitSet(new long[] { 0x0000000000000002L }); + public static final BitSet FOLLOW_1 = new BitSet(new long[] { 0x0000000000000000L }); + public static final BitSet FOLLOW_2 = new BitSet(new long[] { 0x0000000000000002L }); + public static final BitSet FOLLOW_3 = new BitSet(new long[] { 0x0000000000001000L }); + public static final BitSet FOLLOW_4 = new BitSet(new long[] { 0x0000000000000012L }); }
\ No newline at end of file diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/serializer/UmlCommonSemanticSequencer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/serializer/UmlCommonSemanticSequencer.java index 94d65a12b14..8112b693e95 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/serializer/UmlCommonSemanticSequencer.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/serializer/UmlCommonSemanticSequencer.java @@ -1,15 +1,24 @@ +/* + * generated by Xtext + */ package org.eclipse.papyrus.uml.textedit.common.xtext.serializer; +import java.util.Set; + import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; 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.Action; +import org.eclipse.xtext.Parameter; +import org.eclipse.xtext.ParserRule; +import org.eclipse.xtext.serializer.ISerializationContext; import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; import org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer; -import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider; import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient; import com.google.inject.Inject; @@ -21,84 +30,82 @@ public class UmlCommonSemanticSequencer extends AbstractDelegatingSemanticSequen private UmlCommonGrammarAccess grammarAccess; @Override - public void createSequence(EObject context, EObject semanticObject) { - if (semanticObject.eClass().getEPackage() == UmlCommonPackage.eINSTANCE) { + public void sequence(ISerializationContext context, EObject semanticObject) { + EPackage epackage = semanticObject.eClass().getEPackage(); + ParserRule rule = context.getParserRule(); + Action action = context.getAssignedAction(); + Set<Parameter> parameters = context.getEnabledBooleanParameters(); + if (epackage == UmlCommonPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case UmlCommonPackage.BOUND_SPECIFICATION: - if (context == grammarAccess.getBoundSpecificationRule()) { - sequence_BoundSpecification(context, (BoundSpecification) semanticObject); - return; - } else { - break; - } + sequence_BoundSpecification(context, (BoundSpecification) semanticObject); + return; case UmlCommonPackage.MULTIPLICITY_RULE: - if (context == grammarAccess.getMultiplicityRuleRule()) { - sequence_MultiplicityRule(context, (MultiplicityRule) semanticObject); - return; - } else { - break; - } + sequence_MultiplicityRule(context, (MultiplicityRule) semanticObject); + return; case UmlCommonPackage.QUALIFIED_NAME: - if (context == grammarAccess.getQualifiedNameRule()) { - sequence_QualifiedName(context, (QualifiedName) semanticObject); - return; - } else { - break; - } + sequence_QualifiedName(context, (QualifiedName) semanticObject); + return; case UmlCommonPackage.TYPE_RULE: - if (context == grammarAccess.getTypeRuleRule()) { - sequence_TypeRule(context, (TypeRule) semanticObject); - return; - } else { - break; - } + sequence_TypeRule(context, (TypeRule) semanticObject); + return; } - } - if (errorAcceptor != null) { + if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); - } } /** + * Contexts: + * BoundSpecification returns BoundSpecification + * * Constraint: * value=UnlimitedLiteral */ - protected void sequence_BoundSpecification(EObject context, BoundSpecification semanticObject) { + protected void sequence_BoundSpecification(ISerializationContext context, BoundSpecification semanticObject) { if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, UmlCommonPackage.Literals.BOUND_SPECIFICATION__VALUE) == ValueTransient.YES) { + 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); + SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0(), semanticObject.getValue()); feeder.finish(); } /** + * Contexts: + * MultiplicityRule returns MultiplicityRule + * * Constraint: * (bounds+=BoundSpecification bounds+=BoundSpecification?) */ - protected void sequence_MultiplicityRule(EObject context, MultiplicityRule semanticObject) { + protected void sequence_MultiplicityRule(ISerializationContext context, MultiplicityRule semanticObject) { genericSequencer.createSequence(context, semanticObject); } /** + * Contexts: + * QualifiedName returns QualifiedName + * * Constraint: * (path=[Namespace|ID] remaining=QualifiedName?) */ - protected void sequence_QualifiedName(EObject context, QualifiedName semanticObject) { + protected void sequence_QualifiedName(ISerializationContext context, QualifiedName semanticObject) { genericSequencer.createSequence(context, semanticObject); } /** + * Contexts: + * TypeRule returns TypeRule + * * Constraint: * (path=QualifiedName? type=[Type|ID]) */ - protected void sequence_TypeRule(EObject context, TypeRule semanticObject) { + protected void sequence_TypeRule(ISerializationContext 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/UmlCommonSyntacticSequencer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/serializer/UmlCommonSyntacticSequencer.java index 413c8208840..3f18b9946b2 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/serializer/UmlCommonSyntacticSequencer.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/serializer/UmlCommonSyntacticSequencer.java @@ -1,3 +1,6 @@ +/* + * generated by Xtext + */ package org.eclipse.papyrus.uml.textedit.common.xtext.serializer; import java.util.List; @@ -31,9 +34,8 @@ public class UmlCommonSyntacticSequencer extends AbstractSyntacticSequencer { @Override protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) { - if (transition.getAmbiguousSyntaxes().isEmpty()) { + if (transition.getAmbiguousSyntaxes().isEmpty()) return; - } List<INode> transitionNodes = collectNodes(fromNode, toNode); for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) { List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax); diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/services/UmlCommonGrammarAccess.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/services/UmlCommonGrammarAccess.java index dc11cb6d33c..fe35ff9cbf2 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/services/UmlCommonGrammarAccess.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/services/UmlCommonGrammarAccess.java @@ -18,6 +18,7 @@ import org.eclipse.xtext.Keyword; import org.eclipse.xtext.ParserRule; import org.eclipse.xtext.RuleCall; import org.eclipse.xtext.TerminalRule; +import org.eclipse.xtext.common.services.TerminalsGrammarAccess; import org.eclipse.xtext.service.AbstractElementFinder.AbstractGrammarElementFinder; import org.eclipse.xtext.service.GrammarProvider; @@ -29,7 +30,7 @@ public class UmlCommonGrammarAccess extends AbstractGrammarElementFinder { public class QualifiedNameElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "QualifiedName"); + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.common.xtext.UmlCommon.QualifiedName"); private final Group cGroup = (Group) rule.eContents().get(1); private final Assignment cPathAssignment_0 = (Assignment) cGroup.eContents().get(0); private final CrossReference cPathNamespaceCrossReference_0_0 = (CrossReference) cPathAssignment_0.eContents().get(0); @@ -39,14 +40,13 @@ public class UmlCommonGrammarAccess extends AbstractGrammarElementFinder { private final RuleCall cRemainingQualifiedNameParserRuleCall_2_0 = (RuleCall) cRemainingAssignment_2.eContents().get(0); // QualifiedName: - // - // path=[uml::Namespace] "::" remaining=QualifiedName?; + // path=[uml::Namespace] '::' remaining=QualifiedName?; @Override public ParserRule getRule() { return rule; } - // path=[uml::Namespace] "::" remaining=QualifiedName? + // path=[uml::Namespace] '::' remaining=QualifiedName? public Group getGroup() { return cGroup; } @@ -66,7 +66,7 @@ public class UmlCommonGrammarAccess extends AbstractGrammarElementFinder { return cPathNamespaceIDTerminalRuleCall_0_0_1; } - // "::" + // '::' public Keyword getColonColonKeyword_1() { return cColonColonKeyword_1; } @@ -83,7 +83,7 @@ public class UmlCommonGrammarAccess extends AbstractGrammarElementFinder { } public class TypeRuleElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "TypeRule"); + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.common.xtext.UmlCommon.TypeRule"); private final Group cGroup = (Group) rule.eContents().get(1); private final Assignment cPathAssignment_0 = (Assignment) cGroup.eContents().get(0); private final RuleCall cPathQualifiedNameParserRuleCall_0_0 = (RuleCall) cPathAssignment_0.eContents().get(0); @@ -92,7 +92,6 @@ public class UmlCommonGrammarAccess extends AbstractGrammarElementFinder { private final RuleCall cTypeTypeIDTerminalRuleCall_1_0_1 = (RuleCall) cTypeTypeCrossReference_1_0.eContents().get(1); // TypeRule: - // // path=QualifiedName? type=[uml::Type]; @Override public ParserRule getRule() { @@ -131,7 +130,7 @@ public class UmlCommonGrammarAccess extends AbstractGrammarElementFinder { } public class MultiplicityRuleElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "MultiplicityRule"); + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.common.xtext.UmlCommon.MultiplicityRule"); private final Group cGroup = (Group) rule.eContents().get(1); private final Keyword cLeftSquareBracketKeyword_0 = (Keyword) cGroup.eContents().get(0); private final Assignment cBoundsAssignment_1 = (Assignment) cGroup.eContents().get(1); @@ -143,14 +142,13 @@ public class UmlCommonGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cRightSquareBracketKeyword_3 = (Keyword) cGroup.eContents().get(3); // MultiplicityRule: - // - // "[" bounds+=BoundSpecification (".." bounds+=BoundSpecification)? "]"; + // "[" bounds+=BoundSpecification ('..' bounds+=BoundSpecification)? "]"; @Override public ParserRule getRule() { return rule; } - // "[" bounds+=BoundSpecification (".." bounds+=BoundSpecification)? "]" + // "[" bounds+=BoundSpecification ('..' bounds+=BoundSpecification)? "]" public Group getGroup() { return cGroup; } @@ -170,12 +168,12 @@ public class UmlCommonGrammarAccess extends AbstractGrammarElementFinder { return cBoundsBoundSpecificationParserRuleCall_1_0; } - // (".." bounds+=BoundSpecification)? + // ('..' bounds+=BoundSpecification)? public Group getGroup_2() { return cGroup_2; } - // ".." + // '..' public Keyword getFullStopFullStopKeyword_2_0() { return cFullStopFullStopKeyword_2_0; } @@ -197,12 +195,11 @@ public class UmlCommonGrammarAccess extends AbstractGrammarElementFinder { } public class BoundSpecificationElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "BoundSpecification"); + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.common.xtext.UmlCommon.BoundSpecification"); private final Assignment cValueAssignment = (Assignment) rule.eContents().get(1); private final RuleCall cValueUnlimitedLiteralParserRuleCall_0 = (RuleCall) cValueAssignment.eContents().get(0); // BoundSpecification: - // // value=UnlimitedLiteral; @Override public ParserRule getRule() { @@ -221,13 +218,12 @@ public class UmlCommonGrammarAccess extends AbstractGrammarElementFinder { } public class UnlimitedLiteralElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "UnlimitedLiteral"); + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.common.xtext.UmlCommon.UnlimitedLiteral"); private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1); private final RuleCall cINTTerminalRuleCall_0 = (RuleCall) cAlternatives.eContents().get(0); private final Keyword cAsteriskKeyword_1 = (Keyword) cAlternatives.eContents().get(1); - // UnlimitedLiteral returns ecore::EString: - // + // UnlimitedLiteral: // INT | "*"; @Override public ParserRule getRule() { @@ -252,7 +248,7 @@ public class UmlCommonGrammarAccess extends AbstractGrammarElementFinder { public class VisibilityKindElements extends AbstractEnumRuleElementFinder { - private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "VisibilityKind"); + private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.common.xtext.UmlCommon.VisibilityKind"); private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1); private final EnumLiteralDeclaration cPublicEnumLiteralDeclaration_0 = (EnumLiteralDeclaration) cAlternatives.eContents().get(0); private final Keyword cPublicPlusSignKeyword_0_0 = (Keyword) cPublicEnumLiteralDeclaration_0.eContents().get(0); @@ -264,9 +260,7 @@ public class UmlCommonGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cPackageTildeKeyword_3_0 = (Keyword) cPackageEnumLiteralDeclaration_3.eContents().get(0); // enum VisibilityKind: - // // public="+" | private="-" | protected="#" | package="~"; - @Override public EnumRule getRule() { return rule; } @@ -318,7 +312,7 @@ public class UmlCommonGrammarAccess extends AbstractGrammarElementFinder { } public class DirectionElements extends AbstractEnumRuleElementFinder { - private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "Direction"); + private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.textedit.common.xtext.UmlCommon.Direction"); private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1); private final EnumLiteralDeclaration cINEnumLiteralDeclaration_0 = (EnumLiteralDeclaration) cAlternatives.eContents().get(0); private final Keyword cINInKeyword_0_0 = (Keyword) cINEnumLiteralDeclaration_0.eContents().get(0); @@ -330,9 +324,7 @@ public class UmlCommonGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cRETURNReturnKeyword_3_0 = (Keyword) cRETURNEnumLiteralDeclaration_3.eContents().get(0); // enum Direction: - // // IN="in" | OUT="out" | INOUT="inout" | RETURN="return"; - @Override public EnumRule getRule() { return rule; } @@ -383,23 +375,34 @@ public class UmlCommonGrammarAccess extends AbstractGrammarElementFinder { } } - private QualifiedNameElements pQualifiedName; - private TypeRuleElements pTypeRule; - private VisibilityKindElements unknownRuleVisibilityKind; - private MultiplicityRuleElements pMultiplicityRule; - private BoundSpecificationElements pBoundSpecification; - private UnlimitedLiteralElements pUnlimitedLiteral; - private DirectionElements unknownRuleDirection; + private final QualifiedNameElements pQualifiedName; + private final TypeRuleElements pTypeRule; + private final VisibilityKindElements eVisibilityKind; + private final MultiplicityRuleElements pMultiplicityRule; + private final BoundSpecificationElements pBoundSpecification; + private final UnlimitedLiteralElements pUnlimitedLiteral; + private final DirectionElements eDirection; private final Grammar grammar; - private CommonGrammarAccess gaCommon; + private final CommonGrammarAccess gaCommon; + + private final TerminalsGrammarAccess gaTerminals; @Inject public UmlCommonGrammarAccess(GrammarProvider grammarProvider, - CommonGrammarAccess gaCommon) { + CommonGrammarAccess gaCommon, + TerminalsGrammarAccess gaTerminals) { this.grammar = internalFindGrammar(grammarProvider); this.gaCommon = gaCommon; + this.gaTerminals = gaTerminals; + this.pQualifiedName = new QualifiedNameElements(); + this.pTypeRule = new TypeRuleElements(); + this.eVisibilityKind = new VisibilityKindElements(); + this.pMultiplicityRule = new MultiplicityRuleElements(); + this.pBoundSpecification = new BoundSpecificationElements(); + this.pUnlimitedLiteral = new UnlimitedLiteralElements(); + this.eDirection = new DirectionElements(); } protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { @@ -418,7 +421,6 @@ public class UmlCommonGrammarAccess extends AbstractGrammarElementFinder { return grammar; } - @Override public Grammar getGrammar() { return grammar; @@ -429,12 +431,15 @@ public class UmlCommonGrammarAccess extends AbstractGrammarElementFinder { return gaCommon; } + public TerminalsGrammarAccess getTerminalsGrammarAccess() { + return gaTerminals; + } + // QualifiedName: - // - // path=[uml::Namespace] "::" remaining=QualifiedName?; + // path=[uml::Namespace] '::' remaining=QualifiedName?; public QualifiedNameElements getQualifiedNameAccess() { - return (pQualifiedName != null) ? pQualifiedName : (pQualifiedName = new QualifiedNameElements()); + return pQualifiedName; } public ParserRule getQualifiedNameRule() { @@ -442,10 +447,9 @@ public class UmlCommonGrammarAccess extends AbstractGrammarElementFinder { } // TypeRule: - // // path=QualifiedName? type=[uml::Type]; public TypeRuleElements getTypeRuleAccess() { - return (pTypeRule != null) ? pTypeRule : (pTypeRule = new TypeRuleElements()); + return pTypeRule; } public ParserRule getTypeRuleRule() { @@ -453,10 +457,9 @@ public class UmlCommonGrammarAccess extends AbstractGrammarElementFinder { } // enum VisibilityKind: - // // public="+" | private="-" | protected="#" | package="~"; public VisibilityKindElements getVisibilityKindAccess() { - return (unknownRuleVisibilityKind != null) ? unknownRuleVisibilityKind : (unknownRuleVisibilityKind = new VisibilityKindElements()); + return eVisibilityKind; } public EnumRule getVisibilityKindRule() { @@ -464,10 +467,9 @@ public class UmlCommonGrammarAccess extends AbstractGrammarElementFinder { } // MultiplicityRule: - // - // "[" bounds+=BoundSpecification (".." bounds+=BoundSpecification)? "]"; + // "[" bounds+=BoundSpecification ('..' bounds+=BoundSpecification)? "]"; public MultiplicityRuleElements getMultiplicityRuleAccess() { - return (pMultiplicityRule != null) ? pMultiplicityRule : (pMultiplicityRule = new MultiplicityRuleElements()); + return pMultiplicityRule; } public ParserRule getMultiplicityRuleRule() { @@ -475,21 +477,19 @@ public class UmlCommonGrammarAccess extends AbstractGrammarElementFinder { } // BoundSpecification: - // // value=UnlimitedLiteral; public BoundSpecificationElements getBoundSpecificationAccess() { - return (pBoundSpecification != null) ? pBoundSpecification : (pBoundSpecification = new BoundSpecificationElements()); + return pBoundSpecification; } public ParserRule getBoundSpecificationRule() { return getBoundSpecificationAccess().getRule(); } - // UnlimitedLiteral returns ecore::EString: - // + // UnlimitedLiteral: // INT | "*"; public UnlimitedLiteralElements getUnlimitedLiteralAccess() { - return (pUnlimitedLiteral != null) ? pUnlimitedLiteral : (pUnlimitedLiteral = new UnlimitedLiteralElements()); + return pUnlimitedLiteral; } public ParserRule getUnlimitedLiteralRule() { @@ -497,91 +497,61 @@ public class UmlCommonGrammarAccess extends AbstractGrammarElementFinder { } // enum Direction: - // // IN="in" | OUT="out" | INOUT="inout" | RETURN="return"; public DirectionElements getDirectionAccess() { - return (unknownRuleDirection != null) ? unknownRuleDirection : (unknownRuleDirection = new DirectionElements()); + return eDirection; } public EnumRule getDirectionRule() { return getDirectionAccess().getRule(); } - // terminal INTEGER_VALUE: - // - // ("0" | "1".."9" ("_"? "0".."9")*) //DECIMAL - // - // // BINARY - // - // // HEX - // - // // OCT - // - // | ("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")*; - public TerminalRule getINTEGER_VALUERule() { - return gaCommon.getINTEGER_VALUERule(); - } - // terminal ID: - // - // ("a".."z" | "A".."Z" | "_") ("a".."z" | "A".."Z" | "_" | "0".."9")* | "\'"->"\'"; + // ('a'..'z' | 'A'..'Z' | '_') ('a'..'z' | 'A'..'Z' | '_' | '0'..'9')* | '\''->'\''; public TerminalRule getIDRule() { return gaCommon.getIDRule(); } // terminal STRING: - // - // "\"" ("\\" ("b" | "t" | "n" | "f" | "r" | "\"" | "\'" | "\\") | !("\\" | "\""))* "\""; + // '"' ('\\' ('b' | 't' | 'n' | 'f' | 'r' | '"' | "'" | '\\') | !('\\' | '"'))* '"'; public TerminalRule getSTRINGRule() { return gaCommon.getSTRINGRule(); } // terminal ML_COMMENT: - // - // "/ *" !"@"->"* /"; + // '/*' !'@'->'*/'; public TerminalRule getML_COMMENTRule() { return gaCommon.getML_COMMENTRule(); } - // //terminal DOUBLE_COLON : '::' ; - // - // //terminal IDENTIFIER : ID ; - // - // //terminal IDENTIFIER : ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')* | ('\'' -> '\'') ; - // - // //terminal DOCUMENTATION_COMMENT : '/ *' -> '* /' ; - // - // //terminal ML_COMMENT : '/°' -> '°/'; - // - // //terminal SL_COMMENT : '°°' !('\n'|'\r')* ('\r'? '\n')?; - // - // //terminal WS : (' '|'\t'|'\r'|'\n')+; terminal SL_COMMENT: - // - // "//" !("\n" | "\r" | "@")* ("\r"? "\n")?; + // terminal SL_COMMENT: + // '//' !('\n' | '\r' | '@')* ('\r'? '\n')?; public TerminalRule getSL_COMMENTRule() { return gaCommon.getSL_COMMENTRule(); } // terminal INT returns ecore::EInt: - // - // "0".."9"+; + // '0'..'9'+; public TerminalRule getINTRule() { return gaCommon.getINTRule(); } + // terminal INTEGER_VALUE: + // ('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')*; + public TerminalRule getINTEGER_VALUERule() { + return gaCommon.getINTEGER_VALUERule(); + } + // terminal WS: - // - // (" " | "\t" | "\r" | "\n")+; + // ' ' | '\t' | '\r' | '\n'+; public TerminalRule getWSRule() { - return gaCommon.getWSRule(); + return gaTerminals.getWSRule(); } // terminal ANY_OTHER: - // // .; public TerminalRule getANY_OTHERRule() { - return gaCommon.getANY_OTHERRule(); + return gaTerminals.getANY_OTHERRule(); } } diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/BoundSpecification.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/BoundSpecification.java index fff9af0d584..9847d793ef8 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/BoundSpecification.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/BoundSpecification.java @@ -11,25 +11,25 @@ import org.eclipse.emf.ecore.EObject; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.BoundSpecification#getValue <em>Value</em>}</li> * </ul> - * </p> * * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.UmlCommonPackage#getBoundSpecification() * @model * @generated */ -public interface BoundSpecification extends EObject -{ +public interface BoundSpecification extends EObject { /** * Returns the value of the '<em><b>Value</b></em>' attribute. * <!-- begin-user-doc --> * <p> - * If the meaning of the '<em>Value</em>' attribute isn't clear, there really should be more of a description here... + * If the meaning of the '<em>Value</em>' attribute isn't clear, + * there really should be more of a description here... * </p> * <!-- end-user-doc --> - * + * * @return the value of the '<em>Value</em>' attribute. * @see #setValue(String) * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.UmlCommonPackage#getBoundSpecification_Value() @@ -42,7 +42,7 @@ public interface BoundSpecification extends EObject * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.BoundSpecification#getValue <em>Value</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @param value * the new value of the '<em>Value</em>' attribute. * @see #getValue() diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/Direction.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/Direction.java index 7faccd0bd9d..4992b341e79 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/Direction.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/Direction.java @@ -13,18 +13,17 @@ import org.eclipse.emf.common.util.Enumerator; * A representation of the literals of the enumeration '<em><b>Direction</b></em>', * and utility methods for working with them. * <!-- end-user-doc --> - * + * * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.UmlCommonPackage#getDirection() * @model * @generated */ -public enum Direction implements Enumerator -{ +public enum Direction implements Enumerator { /** * The '<em><b>IN</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see #IN_VALUE * @generated * @ordered @@ -35,7 +34,7 @@ public enum Direction implements Enumerator * The '<em><b>OUT</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see #OUT_VALUE * @generated * @ordered @@ -46,7 +45,7 @@ public enum Direction implements Enumerator * The '<em><b>INOUT</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see #INOUT_VALUE * @generated * @ordered @@ -57,7 +56,7 @@ public enum Direction implements Enumerator * The '<em><b>RETURN</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see #RETURN_VALUE * @generated * @ordered @@ -68,10 +67,11 @@ public enum Direction implements Enumerator * The '<em><b>IN</b></em>' literal value. * <!-- begin-user-doc --> * <p> - * If the meaning of '<em><b>IN</b></em>' literal object isn't clear, there really should be more of a description here... + * If the meaning of '<em><b>IN</b></em>' literal object isn't clear, + * there really should be more of a description here... * </p> * <!-- end-user-doc --> - * + * * @see #IN * @model literal="in" * @generated @@ -83,10 +83,11 @@ public enum Direction implements Enumerator * The '<em><b>OUT</b></em>' literal value. * <!-- begin-user-doc --> * <p> - * If the meaning of '<em><b>OUT</b></em>' literal object isn't clear, there really should be more of a description here... + * If the meaning of '<em><b>OUT</b></em>' literal object isn't clear, + * there really should be more of a description here... * </p> * <!-- end-user-doc --> - * + * * @see #OUT * @model literal="out" * @generated @@ -98,10 +99,11 @@ public enum Direction implements Enumerator * The '<em><b>INOUT</b></em>' literal value. * <!-- begin-user-doc --> * <p> - * If the meaning of '<em><b>INOUT</b></em>' literal object isn't clear, there really should be more of a description here... + * If the meaning of '<em><b>INOUT</b></em>' literal object isn't clear, + * there really should be more of a description here... * </p> * <!-- end-user-doc --> - * + * * @see #INOUT * @model literal="inout" * @generated @@ -113,10 +115,11 @@ public enum Direction implements Enumerator * The '<em><b>RETURN</b></em>' literal value. * <!-- begin-user-doc --> * <p> - * If the meaning of '<em><b>RETURN</b></em>' literal object isn't clear, there really should be more of a description here... + * If the meaning of '<em><b>RETURN</b></em>' literal object isn't clear, + * there really should be more of a description here... * </p> * <!-- end-user-doc --> - * + * * @see #RETURN * @model literal="return" * @generated @@ -128,23 +131,21 @@ public enum Direction implements Enumerator * An array of all the '<em><b>Direction</b></em>' enumerators. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - private static final Direction[] VALUES_ARRAY = - new Direction[] - { - IN, - OUT, - INOUT, - RETURN, - }; + private static final Direction[] VALUES_ARRAY = new Direction[] { + IN, + OUT, + INOUT, + RETURN, + }; /** * A public read-only list of all the '<em><b>Direction</b></em>' enumerators. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ public static final List<Direction> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); @@ -153,16 +154,16 @@ public enum Direction implements Enumerator * Returns the '<em><b>Direction</b></em>' literal with the specified literal value. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * + * @param literal + * the literal. + * @return the matching enumerator or <code>null</code>. * @generated */ - public static Direction get(String literal) - { - for (int i = 0; i < VALUES_ARRAY.length; ++i) - { + public static Direction get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { Direction result = VALUES_ARRAY[i]; - if (result.toString().equals(literal)) - { + if (result.toString().equals(literal)) { return result; } } @@ -173,16 +174,16 @@ public enum Direction implements Enumerator * Returns the '<em><b>Direction</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * + * @param name + * the name. + * @return the matching enumerator or <code>null</code>. * @generated */ - public static Direction getByName(String name) - { - for (int i = 0; i < VALUES_ARRAY.length; ++i) - { + public static Direction getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { Direction result = VALUES_ARRAY[i]; - if (result.getName().equals(name)) - { + if (result.getName().equals(name)) { return result; } } @@ -193,13 +194,14 @@ public enum Direction implements Enumerator * Returns the '<em><b>Direction</b></em>' literal with the specified integer value. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * + * @param value + * the integer value. + * @return the matching enumerator or <code>null</code>. * @generated */ - public static Direction get(int value) - { - switch (value) - { + public static Direction get(int value) { + switch (value) { case IN_VALUE: return IN; case OUT_VALUE: @@ -215,7 +217,7 @@ public enum Direction implements Enumerator /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ private final int value; @@ -223,7 +225,7 @@ public enum Direction implements Enumerator /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ private final String name; @@ -231,7 +233,7 @@ public enum Direction implements Enumerator /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ private final String literal; @@ -240,11 +242,10 @@ public enum Direction implements Enumerator * Only this class can construct instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - private Direction(int value, String name, String literal) - { + private Direction(int value, String name, String literal) { this.value = value; this.name = name; this.literal = literal; @@ -253,36 +254,30 @@ public enum Direction implements Enumerator /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public int getValue() - { + public int getValue() { return value; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public String getName() - { + public String getName() { return name; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public String getLiteral() - { + public String getLiteral() { return literal; } @@ -290,12 +285,11 @@ public enum Direction implements Enumerator * Returns the literal value of the enumerator, which is its string representation. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - public String toString() - { + public String toString() { return literal; } diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/MultiplicityRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/MultiplicityRule.java index 2a3e4fa6c4d..239dd7199f9 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/MultiplicityRule.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/MultiplicityRule.java @@ -12,26 +12,26 @@ import org.eclipse.emf.ecore.EObject; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.MultiplicityRule#getBounds <em>Bounds</em>}</li> * </ul> - * </p> * * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.UmlCommonPackage#getMultiplicityRule() * @model * @generated */ -public interface MultiplicityRule extends EObject -{ +public interface MultiplicityRule extends EObject { /** * Returns the value of the '<em><b>Bounds</b></em>' containment reference list. * The list contents are of type {@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.BoundSpecification}. * <!-- begin-user-doc --> * <p> - * If the meaning of the '<em>Bounds</em>' containment reference list isn't clear, there really should be more of a description here... + * If the meaning of the '<em>Bounds</em>' containment reference list isn't clear, + * there really should be more of a description here... * </p> * <!-- end-user-doc --> - * + * * @return the value of the '<em>Bounds</em>' containment reference list. * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.UmlCommonPackage#getMultiplicityRule_Bounds() * @model containment="true" diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/QualifiedName.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/QualifiedName.java index 68d68a43c0c..88cf772b1b5 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/QualifiedName.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/QualifiedName.java @@ -12,26 +12,26 @@ import org.eclipse.uml2.uml.Namespace; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.QualifiedName#getPath <em>Path</em>}</li> * <li>{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.QualifiedName#getRemaining <em>Remaining</em>}</li> * </ul> - * </p> * * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.UmlCommonPackage#getQualifiedName() * @model * @generated */ -public interface QualifiedName extends EObject -{ +public interface QualifiedName extends EObject { /** * Returns the value of the '<em><b>Path</b></em>' reference. * <!-- begin-user-doc --> * <p> - * If the meaning of the '<em>Path</em>' reference isn't clear, there really should be more of a description here... + * If the meaning of the '<em>Path</em>' reference isn't clear, + * there really should be more of a description here... * </p> * <!-- end-user-doc --> - * + * * @return the value of the '<em>Path</em>' reference. * @see #setPath(Namespace) * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.UmlCommonPackage#getQualifiedName_Path() @@ -44,7 +44,7 @@ public interface QualifiedName extends EObject * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.QualifiedName#getPath <em>Path</em>}' reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @param value * the new value of the '<em>Path</em>' reference. * @see #getPath() @@ -56,10 +56,11 @@ public interface QualifiedName extends EObject * Returns the value of the '<em><b>Remaining</b></em>' containment reference. * <!-- begin-user-doc --> * <p> - * If the meaning of the '<em>Remaining</em>' containment reference isn't clear, there really should be more of a description here... + * If the meaning of the '<em>Remaining</em>' containment reference isn't clear, + * there really should be more of a description here... * </p> * <!-- end-user-doc --> - * + * * @return the value of the '<em>Remaining</em>' containment reference. * @see #setRemaining(QualifiedName) * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.UmlCommonPackage#getQualifiedName_Remaining() @@ -72,7 +73,7 @@ public interface QualifiedName extends EObject * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.QualifiedName#getRemaining <em>Remaining</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @param value * the new value of the '<em>Remaining</em>' containment reference. * @see #getRemaining() diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/TypeRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/TypeRule.java index fcb2dcb5a89..77a55e359b2 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/TypeRule.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/TypeRule.java @@ -12,26 +12,26 @@ import org.eclipse.uml2.uml.Type; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.TypeRule#getPath <em>Path</em>}</li> * <li>{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.TypeRule#getType <em>Type</em>}</li> * </ul> - * </p> * * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.UmlCommonPackage#getTypeRule() * @model * @generated */ -public interface TypeRule extends EObject -{ +public interface TypeRule extends EObject { /** * Returns the value of the '<em><b>Path</b></em>' containment reference. * <!-- begin-user-doc --> * <p> - * If the meaning of the '<em>Path</em>' containment reference isn't clear, there really should be more of a description here... + * If the meaning of the '<em>Path</em>' containment reference isn't clear, + * there really should be more of a description here... * </p> * <!-- end-user-doc --> - * + * * @return the value of the '<em>Path</em>' containment reference. * @see #setPath(QualifiedName) * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.UmlCommonPackage#getTypeRule_Path() @@ -44,7 +44,7 @@ public interface TypeRule extends EObject * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.TypeRule#getPath <em>Path</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @param value * the new value of the '<em>Path</em>' containment reference. * @see #getPath() @@ -56,10 +56,11 @@ public interface TypeRule extends EObject * Returns the value of the '<em><b>Type</b></em>' reference. * <!-- begin-user-doc --> * <p> - * If the meaning of the '<em>Type</em>' reference isn't clear, there really should be more of a description here... + * If the meaning of the '<em>Type</em>' reference isn't clear, + * there really should be more of a description here... * </p> * <!-- end-user-doc --> - * + * * @return the value of the '<em>Type</em>' reference. * @see #setType(Type) * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.UmlCommonPackage#getTypeRule_Type() @@ -72,7 +73,7 @@ public interface TypeRule extends EObject * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.TypeRule#getType <em>Type</em>}' reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @param value * the new value of the '<em>Type</em>' reference. * @see #getType() diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/UmlCommonFactory.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/UmlCommonFactory.java index 6fe2e5a8692..c7d5b348228 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/UmlCommonFactory.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/UmlCommonFactory.java @@ -9,17 +9,16 @@ import org.eclipse.emf.ecore.EFactory; * The <b>Factory</b> for the model. * It provides a create method for each non-abstract class of the model. * <!-- end-user-doc --> - * + * * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.UmlCommonPackage * @generated */ -public interface UmlCommonFactory extends EFactory -{ +public interface UmlCommonFactory extends EFactory { /** * The singleton instance of the factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ UmlCommonFactory eINSTANCE = org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.UmlCommonFactoryImpl.init(); @@ -28,7 +27,7 @@ public interface UmlCommonFactory extends EFactory * Returns a new object of class '<em>Qualified Name</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @return a new object of class '<em>Qualified Name</em>'. * @generated */ @@ -38,7 +37,7 @@ public interface UmlCommonFactory extends EFactory * Returns a new object of class '<em>Type Rule</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @return a new object of class '<em>Type Rule</em>'. * @generated */ @@ -48,7 +47,7 @@ public interface UmlCommonFactory extends EFactory * Returns a new object of class '<em>Multiplicity Rule</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @return a new object of class '<em>Multiplicity Rule</em>'. * @generated */ @@ -58,7 +57,7 @@ public interface UmlCommonFactory extends EFactory * Returns a new object of class '<em>Bound Specification</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @return a new object of class '<em>Bound Specification</em>'. * @generated */ @@ -68,7 +67,7 @@ public interface UmlCommonFactory extends EFactory * Returns the package supported by this factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @return the package supported by this factory. * @generated */ diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/UmlCommonPackage.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/UmlCommonPackage.java index 18fd91d3549..ec972032f96 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/UmlCommonPackage.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/UmlCommonPackage.java @@ -19,18 +19,17 @@ import org.eclipse.emf.ecore.EReference; * <li>and each data type</li> * </ul> * <!-- end-user-doc --> - * + * * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.UmlCommonFactory * @model kind="package" * @generated */ -public interface UmlCommonPackage extends EPackage -{ +public interface UmlCommonPackage extends EPackage { /** * The package name. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ String eNAME = "umlCommon"; @@ -39,7 +38,7 @@ public interface UmlCommonPackage extends EPackage * The package namespace URI. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ String eNS_URI = "http://www.eclipse.org/papyrus/uml/textedit/common/xtext/UmlCommon"; @@ -48,7 +47,7 @@ public interface UmlCommonPackage extends EPackage * The package namespace name. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ String eNS_PREFIX = "umlCommon"; @@ -57,7 +56,7 @@ public interface UmlCommonPackage extends EPackage * The singleton instance of the package. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ UmlCommonPackage eINSTANCE = org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.UmlCommonPackageImpl.init(); @@ -66,7 +65,7 @@ public interface UmlCommonPackage extends EPackage * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.QualifiedNameImpl <em>Qualified Name</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.QualifiedNameImpl * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.UmlCommonPackageImpl#getQualifiedName() * @generated @@ -77,7 +76,7 @@ public interface UmlCommonPackage extends EPackage * The feature id for the '<em><b>Path</b></em>' reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated * @ordered */ @@ -87,7 +86,7 @@ public interface UmlCommonPackage extends EPackage * The feature id for the '<em><b>Remaining</b></em>' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated * @ordered */ @@ -97,7 +96,7 @@ public interface UmlCommonPackage extends EPackage * The number of structural features of the '<em>Qualified Name</em>' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated * @ordered */ @@ -107,7 +106,7 @@ public interface UmlCommonPackage extends EPackage * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.TypeRuleImpl <em>Type Rule</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.TypeRuleImpl * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.UmlCommonPackageImpl#getTypeRule() * @generated @@ -118,7 +117,7 @@ public interface UmlCommonPackage extends EPackage * The feature id for the '<em><b>Path</b></em>' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated * @ordered */ @@ -128,7 +127,7 @@ public interface UmlCommonPackage extends EPackage * The feature id for the '<em><b>Type</b></em>' reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated * @ordered */ @@ -138,7 +137,7 @@ public interface UmlCommonPackage extends EPackage * The number of structural features of the '<em>Type Rule</em>' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated * @ordered */ @@ -148,7 +147,7 @@ public interface UmlCommonPackage extends EPackage * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.MultiplicityRuleImpl <em>Multiplicity Rule</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.MultiplicityRuleImpl * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.UmlCommonPackageImpl#getMultiplicityRule() * @generated @@ -159,7 +158,7 @@ public interface UmlCommonPackage extends EPackage * The feature id for the '<em><b>Bounds</b></em>' containment reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated * @ordered */ @@ -169,7 +168,7 @@ public interface UmlCommonPackage extends EPackage * The number of structural features of the '<em>Multiplicity Rule</em>' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated * @ordered */ @@ -179,7 +178,7 @@ public interface UmlCommonPackage extends EPackage * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.BoundSpecificationImpl <em>Bound Specification</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.BoundSpecificationImpl * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.UmlCommonPackageImpl#getBoundSpecification() * @generated @@ -190,7 +189,7 @@ public interface UmlCommonPackage extends EPackage * The feature id for the '<em><b>Value</b></em>' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated * @ordered */ @@ -200,7 +199,7 @@ public interface UmlCommonPackage extends EPackage * The number of structural features of the '<em>Bound Specification</em>' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated * @ordered */ @@ -210,7 +209,7 @@ public interface UmlCommonPackage extends EPackage * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.VisibilityKind <em>Visibility Kind</em>}' enum. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.VisibilityKind * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.UmlCommonPackageImpl#getVisibilityKind() * @generated @@ -221,7 +220,7 @@ public interface UmlCommonPackage extends EPackage * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.Direction <em>Direction</em>}' enum. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.Direction * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.UmlCommonPackageImpl#getDirection() * @generated @@ -233,7 +232,7 @@ public interface UmlCommonPackage extends EPackage * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.QualifiedName <em>Qualified Name</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @return the meta object for class '<em>Qualified Name</em>'. * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.QualifiedName * @generated @@ -244,7 +243,7 @@ public interface UmlCommonPackage extends EPackage * Returns the meta object for the reference '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.QualifiedName#getPath <em>Path</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @return the meta object for the reference '<em>Path</em>'. * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.QualifiedName#getPath() * @see #getQualifiedName() @@ -256,7 +255,7 @@ public interface UmlCommonPackage extends EPackage * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.QualifiedName#getRemaining <em>Remaining</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @return the meta object for the containment reference '<em>Remaining</em>'. * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.QualifiedName#getRemaining() * @see #getQualifiedName() @@ -268,7 +267,7 @@ public interface UmlCommonPackage extends EPackage * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.TypeRule <em>Type Rule</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @return the meta object for class '<em>Type Rule</em>'. * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.TypeRule * @generated @@ -279,7 +278,7 @@ public interface UmlCommonPackage extends EPackage * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.TypeRule#getPath <em>Path</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @return the meta object for the containment reference '<em>Path</em>'. * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.TypeRule#getPath() * @see #getTypeRule() @@ -291,7 +290,7 @@ public interface UmlCommonPackage extends EPackage * Returns the meta object for the reference '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.TypeRule#getType <em>Type</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @return the meta object for the reference '<em>Type</em>'. * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.TypeRule#getType() * @see #getTypeRule() @@ -303,7 +302,7 @@ public interface UmlCommonPackage extends EPackage * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.MultiplicityRule <em>Multiplicity Rule</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @return the meta object for class '<em>Multiplicity Rule</em>'. * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.MultiplicityRule * @generated @@ -314,7 +313,7 @@ public interface UmlCommonPackage extends EPackage * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.MultiplicityRule#getBounds <em>Bounds</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @return the meta object for the containment reference list '<em>Bounds</em>'. * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.MultiplicityRule#getBounds() * @see #getMultiplicityRule() @@ -326,7 +325,7 @@ public interface UmlCommonPackage extends EPackage * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.BoundSpecification <em>Bound Specification</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @return the meta object for class '<em>Bound Specification</em>'. * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.BoundSpecification * @generated @@ -337,7 +336,7 @@ public interface UmlCommonPackage extends EPackage * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.BoundSpecification#getValue <em>Value</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @return the meta object for the attribute '<em>Value</em>'. * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.BoundSpecification#getValue() * @see #getBoundSpecification() @@ -349,7 +348,7 @@ public interface UmlCommonPackage extends EPackage * Returns the meta object for enum '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.VisibilityKind <em>Visibility Kind</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @return the meta object for enum '<em>Visibility Kind</em>'. * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.VisibilityKind * @generated @@ -360,7 +359,7 @@ public interface UmlCommonPackage extends EPackage * Returns the meta object for enum '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.Direction <em>Direction</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @return the meta object for enum '<em>Direction</em>'. * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.Direction * @generated @@ -371,7 +370,7 @@ public interface UmlCommonPackage extends EPackage * Returns the factory that creates the instances of the model. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @return the factory that creates the instances of the model. * @generated */ @@ -387,16 +386,15 @@ public interface UmlCommonPackage extends EPackage * <li>and each data type</li> * </ul> * <!-- end-user-doc --> - * + * * @generated */ - interface Literals - { + interface Literals { /** * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.QualifiedNameImpl <em>Qualified Name</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.QualifiedNameImpl * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.UmlCommonPackageImpl#getQualifiedName() * @generated @@ -407,7 +405,7 @@ public interface UmlCommonPackage extends EPackage * The meta object literal for the '<em><b>Path</b></em>' reference feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ EReference QUALIFIED_NAME__PATH = eINSTANCE.getQualifiedName_Path(); @@ -416,7 +414,7 @@ public interface UmlCommonPackage extends EPackage * The meta object literal for the '<em><b>Remaining</b></em>' containment reference feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ EReference QUALIFIED_NAME__REMAINING = eINSTANCE.getQualifiedName_Remaining(); @@ -425,7 +423,7 @@ public interface UmlCommonPackage extends EPackage * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.TypeRuleImpl <em>Type Rule</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.TypeRuleImpl * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.UmlCommonPackageImpl#getTypeRule() * @generated @@ -436,7 +434,7 @@ public interface UmlCommonPackage extends EPackage * The meta object literal for the '<em><b>Path</b></em>' containment reference feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ EReference TYPE_RULE__PATH = eINSTANCE.getTypeRule_Path(); @@ -445,7 +443,7 @@ public interface UmlCommonPackage extends EPackage * The meta object literal for the '<em><b>Type</b></em>' reference feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ EReference TYPE_RULE__TYPE = eINSTANCE.getTypeRule_Type(); @@ -454,7 +452,7 @@ public interface UmlCommonPackage extends EPackage * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.MultiplicityRuleImpl <em>Multiplicity Rule</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.MultiplicityRuleImpl * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.UmlCommonPackageImpl#getMultiplicityRule() * @generated @@ -465,7 +463,7 @@ public interface UmlCommonPackage extends EPackage * The meta object literal for the '<em><b>Bounds</b></em>' containment reference list feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ EReference MULTIPLICITY_RULE__BOUNDS = eINSTANCE.getMultiplicityRule_Bounds(); @@ -474,7 +472,7 @@ public interface UmlCommonPackage extends EPackage * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.BoundSpecificationImpl <em>Bound Specification</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.BoundSpecificationImpl * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.UmlCommonPackageImpl#getBoundSpecification() * @generated @@ -485,7 +483,7 @@ public interface UmlCommonPackage extends EPackage * The meta object literal for the '<em><b>Value</b></em>' attribute feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ EAttribute BOUND_SPECIFICATION__VALUE = eINSTANCE.getBoundSpecification_Value(); @@ -494,7 +492,7 @@ public interface UmlCommonPackage extends EPackage * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.VisibilityKind <em>Visibility Kind</em>}' enum. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.VisibilityKind * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.UmlCommonPackageImpl#getVisibilityKind() * @generated @@ -505,7 +503,7 @@ public interface UmlCommonPackage extends EPackage * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.Direction <em>Direction</em>}' enum. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.Direction * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.UmlCommonPackageImpl#getDirection() * @generated diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/VisibilityKind.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/VisibilityKind.java index a79f2396bbe..028c9fc3946 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/VisibilityKind.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/VisibilityKind.java @@ -13,18 +13,17 @@ import org.eclipse.emf.common.util.Enumerator; * A representation of the literals of the enumeration '<em><b>Visibility Kind</b></em>', * and utility methods for working with them. * <!-- end-user-doc --> - * + * * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.UmlCommonPackage#getVisibilityKind() * @model * @generated */ -public enum VisibilityKind implements Enumerator -{ +public enum VisibilityKind implements Enumerator { /** * The '<em><b>Public</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see #PUBLIC_VALUE * @generated * @ordered @@ -35,7 +34,7 @@ public enum VisibilityKind implements Enumerator * The '<em><b>Private</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see #PRIVATE_VALUE * @generated * @ordered @@ -46,7 +45,7 @@ public enum VisibilityKind implements Enumerator * The '<em><b>Protected</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see #PROTECTED_VALUE * @generated * @ordered @@ -57,7 +56,7 @@ public enum VisibilityKind implements Enumerator * The '<em><b>Package</b></em>' literal object. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see #PACKAGE_VALUE * @generated * @ordered @@ -68,10 +67,11 @@ public enum VisibilityKind implements Enumerator * The '<em><b>Public</b></em>' literal value. * <!-- begin-user-doc --> * <p> - * If the meaning of '<em><b>Public</b></em>' literal object isn't clear, there really should be more of a description here... + * If the meaning of '<em><b>Public</b></em>' literal object isn't clear, + * there really should be more of a description here... * </p> * <!-- end-user-doc --> - * + * * @see #PUBLIC * @model name="public" literal="+" * @generated @@ -83,10 +83,11 @@ public enum VisibilityKind implements Enumerator * The '<em><b>Private</b></em>' literal value. * <!-- begin-user-doc --> * <p> - * If the meaning of '<em><b>Private</b></em>' literal object isn't clear, there really should be more of a description here... + * If the meaning of '<em><b>Private</b></em>' literal object isn't clear, + * there really should be more of a description here... * </p> * <!-- end-user-doc --> - * + * * @see #PRIVATE * @model name="private" literal="-" * @generated @@ -98,10 +99,11 @@ public enum VisibilityKind implements Enumerator * The '<em><b>Protected</b></em>' literal value. * <!-- begin-user-doc --> * <p> - * If the meaning of '<em><b>Protected</b></em>' literal object isn't clear, there really should be more of a description here... + * If the meaning of '<em><b>Protected</b></em>' literal object isn't clear, + * there really should be more of a description here... * </p> * <!-- end-user-doc --> - * + * * @see #PROTECTED * @model name="protected" literal="#" * @generated @@ -113,10 +115,11 @@ public enum VisibilityKind implements Enumerator * The '<em><b>Package</b></em>' literal value. * <!-- begin-user-doc --> * <p> - * If the meaning of '<em><b>Package</b></em>' literal object isn't clear, there really should be more of a description here... + * If the meaning of '<em><b>Package</b></em>' literal object isn't clear, + * there really should be more of a description here... * </p> * <!-- end-user-doc --> - * + * * @see #PACKAGE * @model name="package" literal="~" * @generated @@ -128,23 +131,21 @@ public enum VisibilityKind implements Enumerator * An array of all the '<em><b>Visibility Kind</b></em>' enumerators. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - private static final VisibilityKind[] VALUES_ARRAY = - new VisibilityKind[] - { - PUBLIC, - PRIVATE, - PROTECTED, - PACKAGE, - }; + private static final VisibilityKind[] VALUES_ARRAY = new VisibilityKind[] { + PUBLIC, + PRIVATE, + PROTECTED, + PACKAGE, + }; /** * A public read-only list of all the '<em><b>Visibility Kind</b></em>' enumerators. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ public static final List<VisibilityKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); @@ -153,16 +154,16 @@ public enum VisibilityKind implements Enumerator * Returns the '<em><b>Visibility Kind</b></em>' literal with the specified literal value. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * + * @param literal + * the literal. + * @return the matching enumerator or <code>null</code>. * @generated */ - public static VisibilityKind get(String literal) - { - for (int i = 0; i < VALUES_ARRAY.length; ++i) - { + public static VisibilityKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { VisibilityKind result = VALUES_ARRAY[i]; - if (result.toString().equals(literal)) - { + if (result.toString().equals(literal)) { return result; } } @@ -173,16 +174,16 @@ public enum VisibilityKind implements Enumerator * Returns the '<em><b>Visibility Kind</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * + * @param name + * the name. + * @return the matching enumerator or <code>null</code>. * @generated */ - public static VisibilityKind getByName(String name) - { - for (int i = 0; i < VALUES_ARRAY.length; ++i) - { + public static VisibilityKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { VisibilityKind result = VALUES_ARRAY[i]; - if (result.getName().equals(name)) - { + if (result.getName().equals(name)) { return result; } } @@ -193,13 +194,14 @@ public enum VisibilityKind implements Enumerator * Returns the '<em><b>Visibility Kind</b></em>' literal with the specified integer value. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * + * @param value + * the integer value. + * @return the matching enumerator or <code>null</code>. * @generated */ - public static VisibilityKind get(int value) - { - switch (value) - { + public static VisibilityKind get(int value) { + switch (value) { case PUBLIC_VALUE: return PUBLIC; case PRIVATE_VALUE: @@ -215,7 +217,7 @@ public enum VisibilityKind implements Enumerator /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ private final int value; @@ -223,7 +225,7 @@ public enum VisibilityKind implements Enumerator /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ private final String name; @@ -231,7 +233,7 @@ public enum VisibilityKind implements Enumerator /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ private final String literal; @@ -240,11 +242,10 @@ public enum VisibilityKind implements Enumerator * Only this class can construct instances. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - private VisibilityKind(int value, String name, String literal) - { + private VisibilityKind(int value, String name, String literal) { this.value = value; this.name = name; this.literal = literal; @@ -253,36 +254,30 @@ public enum VisibilityKind implements Enumerator /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public int getValue() - { + public int getValue() { return value; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public String getName() - { + public String getName() { return name; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public String getLiteral() - { + public String getLiteral() { return literal; } @@ -290,12 +285,11 @@ public enum VisibilityKind implements Enumerator * Returns the literal value of the enumerator, which is its string representation. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - public String toString() - { + public String toString() { return literal; } diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/impl/BoundSpecificationImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/impl/BoundSpecificationImpl.java index efc8e3803eb..dfb2b5477a5 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/impl/BoundSpecificationImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/impl/BoundSpecificationImpl.java @@ -15,20 +15,19 @@ import org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.UmlCommonPackage; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.BoundSpecificationImpl#getValue <em>Value</em>}</li> * </ul> - * </p> * * @generated */ -public class BoundSpecificationImpl extends MinimalEObjectImpl.Container implements BoundSpecification -{ +public class BoundSpecificationImpl extends MinimalEObjectImpl.Container implements BoundSpecification { /** * The default value of the '{@link #getValue() <em>Value</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see #getValue() * @generated * @ordered @@ -39,7 +38,7 @@ public class BoundSpecificationImpl extends MinimalEObjectImpl.Container impleme * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see #getValue() * @generated * @ordered @@ -49,65 +48,56 @@ public class BoundSpecificationImpl extends MinimalEObjectImpl.Container impleme /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - protected BoundSpecificationImpl() - { + protected BoundSpecificationImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - protected EClass eStaticClass() - { + protected EClass eStaticClass() { return UmlCommonPackage.Literals.BOUND_SPECIFICATION; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public String getValue() - { + public String getValue() { return value; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public void setValue(String newValue) - { + public void setValue(String newValue) { String oldValue = value; value = newValue; - if (eNotificationRequired()) { + if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, UmlCommonPackage.BOUND_SPECIFICATION__VALUE, oldValue, value)); - } } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { case UmlCommonPackage.BOUND_SPECIFICATION__VALUE: return getValue(); } @@ -117,14 +107,12 @@ public class BoundSpecificationImpl extends MinimalEObjectImpl.Container impleme /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { + public void eSet(int featureID, Object newValue) { + switch (featureID) { case UmlCommonPackage.BOUND_SPECIFICATION__VALUE: setValue((String) newValue); return; @@ -135,14 +123,12 @@ public class BoundSpecificationImpl extends MinimalEObjectImpl.Container impleme /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - public void eUnset(int featureID) - { - switch (featureID) - { + public void eUnset(int featureID) { + switch (featureID) { case UmlCommonPackage.BOUND_SPECIFICATION__VALUE: setValue(VALUE_EDEFAULT); return; @@ -153,14 +139,12 @@ public class BoundSpecificationImpl extends MinimalEObjectImpl.Container impleme /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { + public boolean eIsSet(int featureID) { + switch (featureID) { case UmlCommonPackage.BOUND_SPECIFICATION__VALUE: return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); } @@ -170,17 +154,15 @@ public class BoundSpecificationImpl extends MinimalEObjectImpl.Container impleme /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - public String toString() - { - if (eIsProxy()) { + public String toString() { + if (eIsProxy()) return super.toString(); - } - StringBuffer result = new StringBuffer(super.toString()); + StringBuilder result = new StringBuilder(super.toString()); result.append(" (value: "); result.append(value); result.append(')'); diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/impl/MultiplicityRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/impl/MultiplicityRuleImpl.java index f18506bb902..5b35cb5e75c 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/impl/MultiplicityRuleImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/impl/MultiplicityRuleImpl.java @@ -21,20 +21,19 @@ import org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.UmlCommonPackage; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.MultiplicityRuleImpl#getBounds <em>Bounds</em>}</li> * </ul> - * </p> * * @generated */ -public class MultiplicityRuleImpl extends MinimalEObjectImpl.Container implements MultiplicityRule -{ +public class MultiplicityRuleImpl extends MinimalEObjectImpl.Container implements MultiplicityRule { /** * The cached value of the '{@link #getBounds() <em>Bounds</em>}' containment reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see #getBounds() * @generated * @ordered @@ -44,37 +43,32 @@ public class MultiplicityRuleImpl extends MinimalEObjectImpl.Container implement /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - protected MultiplicityRuleImpl() - { + protected MultiplicityRuleImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - protected EClass eStaticClass() - { + protected EClass eStaticClass() { return UmlCommonPackage.Literals.MULTIPLICITY_RULE; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public EList<BoundSpecification> getBounds() - { - if (bounds == null) - { + public EList<BoundSpecification> getBounds() { + if (bounds == null) { bounds = new EObjectContainmentEList<BoundSpecification>(BoundSpecification.class, this, UmlCommonPackage.MULTIPLICITY_RULE__BOUNDS); } return bounds; @@ -83,14 +77,12 @@ public class MultiplicityRuleImpl extends MinimalEObjectImpl.Container implement /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { case UmlCommonPackage.MULTIPLICITY_RULE__BOUNDS: return ((InternalEList<?>) getBounds()).basicRemove(otherEnd, msgs); } @@ -100,14 +92,12 @@ public class MultiplicityRuleImpl extends MinimalEObjectImpl.Container implement /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { case UmlCommonPackage.MULTIPLICITY_RULE__BOUNDS: return getBounds(); } @@ -117,15 +107,13 @@ public class MultiplicityRuleImpl extends MinimalEObjectImpl.Container implement /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @SuppressWarnings("unchecked") @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { + public void eSet(int featureID, Object newValue) { + switch (featureID) { case UmlCommonPackage.MULTIPLICITY_RULE__BOUNDS: getBounds().clear(); getBounds().addAll((Collection<? extends BoundSpecification>) newValue); @@ -137,14 +125,12 @@ public class MultiplicityRuleImpl extends MinimalEObjectImpl.Container implement /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - public void eUnset(int featureID) - { - switch (featureID) - { + public void eUnset(int featureID) { + switch (featureID) { case UmlCommonPackage.MULTIPLICITY_RULE__BOUNDS: getBounds().clear(); return; @@ -155,14 +141,12 @@ public class MultiplicityRuleImpl extends MinimalEObjectImpl.Container implement /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { + public boolean eIsSet(int featureID) { + switch (featureID) { case UmlCommonPackage.MULTIPLICITY_RULE__BOUNDS: return bounds != null && !bounds.isEmpty(); } diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/impl/QualifiedNameImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/impl/QualifiedNameImpl.java index 40a04f9f205..a7ab785c2ff 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/impl/QualifiedNameImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/impl/QualifiedNameImpl.java @@ -18,21 +18,20 @@ import org.eclipse.uml2.uml.Namespace; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.QualifiedNameImpl#getPath <em>Path</em>}</li> * <li>{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.QualifiedNameImpl#getRemaining <em>Remaining</em>}</li> * </ul> - * </p> * * @generated */ -public class QualifiedNameImpl extends MinimalEObjectImpl.Container implements QualifiedName -{ +public class QualifiedNameImpl extends MinimalEObjectImpl.Container implements QualifiedName { /** * The cached value of the '{@link #getPath() <em>Path</em>}' reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see #getPath() * @generated * @ordered @@ -43,7 +42,7 @@ public class QualifiedNameImpl extends MinimalEObjectImpl.Container implements Q * The cached value of the '{@link #getRemaining() <em>Remaining</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see #getRemaining() * @generated * @ordered @@ -53,44 +52,37 @@ public class QualifiedNameImpl extends MinimalEObjectImpl.Container implements Q /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - protected QualifiedNameImpl() - { + protected QualifiedNameImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - protected EClass eStaticClass() - { + protected EClass eStaticClass() { return UmlCommonPackage.Literals.QUALIFIED_NAME; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public Namespace getPath() - { - if (path != null && path.eIsProxy()) - { + public Namespace getPath() { + if (path != null && path.eIsProxy()) { InternalEObject oldPath = (InternalEObject) path; path = (Namespace) eResolveProxy(oldPath); - if (path != oldPath) - { - if (eNotificationRequired()) { + if (path != oldPath) { + if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, UmlCommonPackage.QUALIFIED_NAME__PATH, oldPath, path)); - } } } return path; @@ -99,60 +91,51 @@ public class QualifiedNameImpl extends MinimalEObjectImpl.Container implements Q /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - public Namespace basicGetPath() - { + public Namespace basicGetPath() { return path; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public void setPath(Namespace newPath) - { + public void setPath(Namespace newPath) { Namespace oldPath = path; path = newPath; - if (eNotificationRequired()) { + if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, UmlCommonPackage.QUALIFIED_NAME__PATH, oldPath, path)); - } } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public QualifiedName getRemaining() - { + public QualifiedName getRemaining() { return remaining; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - public NotificationChain basicSetRemaining(QualifiedName newRemaining, NotificationChain msgs) - { + public NotificationChain basicSetRemaining(QualifiedName newRemaining, NotificationChain msgs) { QualifiedName oldRemaining = remaining; remaining = newRemaining; - if (eNotificationRequired()) - { + if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlCommonPackage.QUALIFIED_NAME__REMAINING, oldRemaining, newRemaining); - if (msgs == null) { + if (msgs == null) msgs = notification; - } else { + else msgs.add(notification); - } } return msgs; } @@ -160,42 +143,32 @@ public class QualifiedNameImpl extends MinimalEObjectImpl.Container implements Q /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public void setRemaining(QualifiedName newRemaining) - { - if (newRemaining != remaining) - { + public void setRemaining(QualifiedName newRemaining) { + if (newRemaining != remaining) { NotificationChain msgs = null; - if (remaining != null) { + if (remaining != null) msgs = ((InternalEObject) remaining).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlCommonPackage.QUALIFIED_NAME__REMAINING, null, msgs); - } - if (newRemaining != null) { + if (newRemaining != null) msgs = ((InternalEObject) newRemaining).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlCommonPackage.QUALIFIED_NAME__REMAINING, null, msgs); - } msgs = basicSetRemaining(newRemaining, msgs); - if (msgs != null) { + if (msgs != null) msgs.dispatch(); - } - } - else if (eNotificationRequired()) { + } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, UmlCommonPackage.QUALIFIED_NAME__REMAINING, newRemaining, newRemaining)); - } } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { case UmlCommonPackage.QUALIFIED_NAME__REMAINING: return basicSetRemaining(null, msgs); } @@ -205,18 +178,15 @@ public class QualifiedNameImpl extends MinimalEObjectImpl.Container implements Q /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { case UmlCommonPackage.QUALIFIED_NAME__PATH: - if (resolve) { + if (resolve) return getPath(); - } return basicGetPath(); case UmlCommonPackage.QUALIFIED_NAME__REMAINING: return getRemaining(); @@ -227,14 +197,12 @@ public class QualifiedNameImpl extends MinimalEObjectImpl.Container implements Q /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { + public void eSet(int featureID, Object newValue) { + switch (featureID) { case UmlCommonPackage.QUALIFIED_NAME__PATH: setPath((Namespace) newValue); return; @@ -248,14 +216,12 @@ public class QualifiedNameImpl extends MinimalEObjectImpl.Container implements Q /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - public void eUnset(int featureID) - { - switch (featureID) - { + public void eUnset(int featureID) { + switch (featureID) { case UmlCommonPackage.QUALIFIED_NAME__PATH: setPath((Namespace) null); return; @@ -269,14 +235,12 @@ public class QualifiedNameImpl extends MinimalEObjectImpl.Container implements Q /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { + public boolean eIsSet(int featureID) { + switch (featureID) { case UmlCommonPackage.QUALIFIED_NAME__PATH: return path != null; case UmlCommonPackage.QUALIFIED_NAME__REMAINING: diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/impl/TypeRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/impl/TypeRuleImpl.java index 00a3568f138..e8be43163ef 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/impl/TypeRuleImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/impl/TypeRuleImpl.java @@ -19,21 +19,20 @@ import org.eclipse.uml2.uml.Type; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.TypeRuleImpl#getPath <em>Path</em>}</li> * <li>{@link org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.impl.TypeRuleImpl#getType <em>Type</em>}</li> * </ul> - * </p> * * @generated */ -public class TypeRuleImpl extends MinimalEObjectImpl.Container implements TypeRule -{ +public class TypeRuleImpl extends MinimalEObjectImpl.Container implements TypeRule { /** * The cached value of the '{@link #getPath() <em>Path</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see #getPath() * @generated * @ordered @@ -44,7 +43,7 @@ public class TypeRuleImpl extends MinimalEObjectImpl.Container implements TypeRu * The cached value of the '{@link #getType() <em>Type</em>}' reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @see #getType() * @generated * @ordered @@ -54,56 +53,49 @@ public class TypeRuleImpl extends MinimalEObjectImpl.Container implements TypeRu /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - protected TypeRuleImpl() - { + protected TypeRuleImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - protected EClass eStaticClass() - { + protected EClass eStaticClass() { return UmlCommonPackage.Literals.TYPE_RULE; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public QualifiedName getPath() - { + public QualifiedName getPath() { return path; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - public NotificationChain basicSetPath(QualifiedName newPath, NotificationChain msgs) - { + public NotificationChain basicSetPath(QualifiedName newPath, NotificationChain msgs) { QualifiedName oldPath = path; path = newPath; - if (eNotificationRequired()) - { + if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlCommonPackage.TYPE_RULE__PATH, oldPath, newPath); - if (msgs == null) { + if (msgs == null) msgs = notification; - } else { + else msgs.add(notification); - } } return msgs; } @@ -111,49 +103,36 @@ public class TypeRuleImpl extends MinimalEObjectImpl.Container implements TypeRu /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public void setPath(QualifiedName newPath) - { - if (newPath != path) - { + public void setPath(QualifiedName newPath) { + if (newPath != path) { NotificationChain msgs = null; - if (path != null) { + if (path != null) msgs = ((InternalEObject) path).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlCommonPackage.TYPE_RULE__PATH, null, msgs); - } - if (newPath != null) { + if (newPath != null) msgs = ((InternalEObject) newPath).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlCommonPackage.TYPE_RULE__PATH, null, msgs); - } msgs = basicSetPath(newPath, msgs); - if (msgs != null) { + if (msgs != null) msgs.dispatch(); - } - } - else if (eNotificationRequired()) { + } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, UmlCommonPackage.TYPE_RULE__PATH, newPath, newPath)); - } } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public Type getType() - { - if (type != null && type.eIsProxy()) - { + public Type getType() { + if (type != null && type.eIsProxy()) { InternalEObject oldType = (InternalEObject) type; type = (Type) eResolveProxy(oldType); - if (type != oldType) - { - if (eNotificationRequired()) { + if (type != oldType) { + if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, UmlCommonPackage.TYPE_RULE__TYPE, oldType, type)); - } } } return type; @@ -162,41 +141,35 @@ public class TypeRuleImpl extends MinimalEObjectImpl.Container implements TypeRu /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - public Type basicGetType() - { + public Type basicGetType() { return type; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public void setType(Type newType) - { + public void setType(Type newType) { Type oldType = type; type = newType; - if (eNotificationRequired()) { + if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, UmlCommonPackage.TYPE_RULE__TYPE, oldType, type)); - } } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { case UmlCommonPackage.TYPE_RULE__PATH: return basicSetPath(null, msgs); } @@ -206,20 +179,17 @@ public class TypeRuleImpl extends MinimalEObjectImpl.Container implements TypeRu /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { case UmlCommonPackage.TYPE_RULE__PATH: return getPath(); case UmlCommonPackage.TYPE_RULE__TYPE: - if (resolve) { + if (resolve) return getType(); - } return basicGetType(); } return super.eGet(featureID, resolve, coreType); @@ -228,14 +198,12 @@ public class TypeRuleImpl extends MinimalEObjectImpl.Container implements TypeRu /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { + public void eSet(int featureID, Object newValue) { + switch (featureID) { case UmlCommonPackage.TYPE_RULE__PATH: setPath((QualifiedName) newValue); return; @@ -249,14 +217,12 @@ public class TypeRuleImpl extends MinimalEObjectImpl.Container implements TypeRu /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - public void eUnset(int featureID) - { - switch (featureID) - { + public void eUnset(int featureID) { + switch (featureID) { case UmlCommonPackage.TYPE_RULE__PATH: setPath((QualifiedName) null); return; @@ -270,14 +236,12 @@ public class TypeRuleImpl extends MinimalEObjectImpl.Container implements TypeRu /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { + public boolean eIsSet(int featureID) { + switch (featureID) { case UmlCommonPackage.TYPE_RULE__PATH: return path != null; case UmlCommonPackage.TYPE_RULE__TYPE: diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/impl/UmlCommonFactoryImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/impl/UmlCommonFactoryImpl.java index f21e5cd4f66..e2826fae379 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/impl/UmlCommonFactoryImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/impl/UmlCommonFactoryImpl.java @@ -21,29 +21,24 @@ import org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.VisibilityKind; * <!-- begin-user-doc --> * An implementation of the model <b>Factory</b>. * <!-- end-user-doc --> - * + * * @generated */ -public class UmlCommonFactoryImpl extends EFactoryImpl implements UmlCommonFactory -{ +public class UmlCommonFactoryImpl extends EFactoryImpl implements UmlCommonFactory { /** * Creates the default factory implementation. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - public static UmlCommonFactory init() - { - try - { + public static UmlCommonFactory init() { + try { UmlCommonFactory theUmlCommonFactory = (UmlCommonFactory) EPackage.Registry.INSTANCE.getEFactory(UmlCommonPackage.eNS_URI); - if (theUmlCommonFactory != null) - { + if (theUmlCommonFactory != null) { return theUmlCommonFactory; } - } catch (Exception exception) - { + } catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); } return new UmlCommonFactoryImpl(); @@ -53,25 +48,22 @@ public class UmlCommonFactoryImpl extends EFactoryImpl implements UmlCommonFacto * Creates an instance of the factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - public UmlCommonFactoryImpl() - { + public UmlCommonFactoryImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - public EObject create(EClass eClass) - { - switch (eClass.getClassifierID()) - { + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { case UmlCommonPackage.QUALIFIED_NAME: return createQualifiedName(); case UmlCommonPackage.TYPE_RULE: @@ -88,14 +80,12 @@ public class UmlCommonFactoryImpl extends EFactoryImpl implements UmlCommonFacto /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - public Object createFromString(EDataType eDataType, String initialValue) - { - switch (eDataType.getClassifierID()) - { + public Object createFromString(EDataType eDataType, String initialValue) { + switch (eDataType.getClassifierID()) { case UmlCommonPackage.VISIBILITY_KIND: return createVisibilityKindFromString(eDataType, initialValue); case UmlCommonPackage.DIRECTION: @@ -108,14 +98,12 @@ public class UmlCommonFactoryImpl extends EFactoryImpl implements UmlCommonFacto /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ @Override - public String convertToString(EDataType eDataType, Object instanceValue) - { - switch (eDataType.getClassifierID()) - { + public String convertToString(EDataType eDataType, Object instanceValue) { + switch (eDataType.getClassifierID()) { case UmlCommonPackage.VISIBILITY_KIND: return convertVisibilityKindToString(eDataType, instanceValue); case UmlCommonPackage.DIRECTION: @@ -128,12 +116,10 @@ public class UmlCommonFactoryImpl extends EFactoryImpl implements UmlCommonFacto /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public QualifiedName createQualifiedName() - { + public QualifiedName createQualifiedName() { QualifiedNameImpl qualifiedName = new QualifiedNameImpl(); return qualifiedName; } @@ -141,12 +127,10 @@ public class UmlCommonFactoryImpl extends EFactoryImpl implements UmlCommonFacto /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public TypeRule createTypeRule() - { + public TypeRule createTypeRule() { TypeRuleImpl typeRule = new TypeRuleImpl(); return typeRule; } @@ -154,12 +138,10 @@ public class UmlCommonFactoryImpl extends EFactoryImpl implements UmlCommonFacto /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public MultiplicityRule createMultiplicityRule() - { + public MultiplicityRule createMultiplicityRule() { MultiplicityRuleImpl multiplicityRule = new MultiplicityRuleImpl(); return multiplicityRule; } @@ -167,12 +149,10 @@ public class UmlCommonFactoryImpl extends EFactoryImpl implements UmlCommonFacto /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public BoundSpecification createBoundSpecification() - { + public BoundSpecification createBoundSpecification() { BoundSpecificationImpl boundSpecification = new BoundSpecificationImpl(); return boundSpecification; } @@ -180,77 +160,68 @@ public class UmlCommonFactoryImpl extends EFactoryImpl implements UmlCommonFacto /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - public VisibilityKind createVisibilityKindFromString(EDataType eDataType, String initialValue) - { + public VisibilityKind createVisibilityKindFromString(EDataType eDataType, String initialValue) { VisibilityKind result = VisibilityKind.get(initialValue); - if (result == null) { + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - } return result; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - public String convertVisibilityKindToString(EDataType eDataType, Object instanceValue) - { + public String convertVisibilityKindToString(EDataType eDataType, Object instanceValue) { return instanceValue == null ? null : instanceValue.toString(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - public Direction createDirectionFromString(EDataType eDataType, String initialValue) - { + public Direction createDirectionFromString(EDataType eDataType, String initialValue) { Direction result = Direction.get(initialValue); - if (result == null) { + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - } return result; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - public String convertDirectionToString(EDataType eDataType, Object instanceValue) - { + public String convertDirectionToString(EDataType eDataType, Object instanceValue) { return instanceValue == null ? null : instanceValue.toString(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public UmlCommonPackage getUmlCommonPackage() - { + public UmlCommonPackage getUmlCommonPackage() { return (UmlCommonPackage) getEPackage(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @deprecated * @generated */ @Deprecated - public static UmlCommonPackage getPackage() - { + public static UmlCommonPackage getPackage() { return UmlCommonPackage.eINSTANCE; } diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/impl/UmlCommonPackageImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/impl/UmlCommonPackageImpl.java index dd4f665b5ce..f81902c2150 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/impl/UmlCommonPackageImpl.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/impl/UmlCommonPackageImpl.java @@ -17,21 +17,21 @@ import org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.TypeRule; import org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.UmlCommonFactory; import org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.UmlCommonPackage; import org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.VisibilityKind; +import org.eclipse.uml2.types.TypesPackage; import org.eclipse.uml2.uml.UMLPackage; /** * <!-- begin-user-doc --> * An implementation of the model <b>Package</b>. * <!-- end-user-doc --> - * + * * @generated */ -public class UmlCommonPackageImpl extends EPackageImpl implements UmlCommonPackage -{ +public class UmlCommonPackageImpl extends EPackageImpl implements UmlCommonPackage { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ private EClass qualifiedNameEClass = null; @@ -39,7 +39,7 @@ public class UmlCommonPackageImpl extends EPackageImpl implements UmlCommonPacka /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ private EClass typeRuleEClass = null; @@ -47,7 +47,7 @@ public class UmlCommonPackageImpl extends EPackageImpl implements UmlCommonPacka /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ private EClass multiplicityRuleEClass = null; @@ -55,7 +55,7 @@ public class UmlCommonPackageImpl extends EPackageImpl implements UmlCommonPacka /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ private EClass boundSpecificationEClass = null; @@ -63,7 +63,7 @@ public class UmlCommonPackageImpl extends EPackageImpl implements UmlCommonPacka /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ private EEnum visibilityKindEEnum = null; @@ -71,31 +71,36 @@ public class UmlCommonPackageImpl extends EPackageImpl implements UmlCommonPacka /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ private EEnum directionEEnum = null; /** - * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * 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 --> - * + * 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.common.xtext.umlCommon.UmlCommonPackage#eNS_URI * @see #init() * @generated */ - private UmlCommonPackageImpl() - { + private UmlCommonPackageImpl() { super(eNS_URI, UmlCommonFactory.eINSTANCE); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ private static boolean isInited = false; @@ -104,26 +109,30 @@ public class UmlCommonPackageImpl extends EPackageImpl implements UmlCommonPacka * 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 UmlCommonPackage#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 --> - * + * This method is used to initialize {@link UmlCommonPackage#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 UmlCommonPackage init() - { - if (isInited) { + public static UmlCommonPackage init() { + if (isInited) return (UmlCommonPackage) EPackage.Registry.INSTANCE.getEPackage(UmlCommonPackage.eNS_URI); - } // Obtain or create and register package - UmlCommonPackageImpl theUmlCommonPackage = (UmlCommonPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof UmlCommonPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new UmlCommonPackageImpl()); + Object registeredUmlCommonPackage = EPackage.Registry.INSTANCE.get(eNS_URI); + UmlCommonPackageImpl theUmlCommonPackage = registeredUmlCommonPackage instanceof UmlCommonPackageImpl ? (UmlCommonPackageImpl) registeredUmlCommonPackage : new UmlCommonPackageImpl(); isInited = true; // Initialize simple dependencies + EcorePackage.eINSTANCE.eClass(); UMLPackage.eINSTANCE.eClass(); + TypesPackage.eINSTANCE.eClass(); // Create package meta-data objects theUmlCommonPackage.createPackageContents(); @@ -134,7 +143,6 @@ public class UmlCommonPackageImpl extends EPackageImpl implements UmlCommonPacka // Mark meta-data to indicate it can't be changed theUmlCommonPackage.freeze(); - // Update the registry and return the package EPackage.Registry.INSTANCE.put(UmlCommonPackage.eNS_URI, theUmlCommonPackage); return theUmlCommonPackage; @@ -143,163 +151,137 @@ public class UmlCommonPackageImpl extends EPackageImpl implements UmlCommonPacka /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public EClass getQualifiedName() - { + public EClass getQualifiedName() { return qualifiedNameEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public EReference getQualifiedName_Path() - { + public EReference getQualifiedName_Path() { return (EReference) qualifiedNameEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public EReference getQualifiedName_Remaining() - { + public EReference getQualifiedName_Remaining() { return (EReference) qualifiedNameEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public EClass getTypeRule() - { + public EClass getTypeRule() { return typeRuleEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public EReference getTypeRule_Path() - { + public EReference getTypeRule_Path() { return (EReference) typeRuleEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public EReference getTypeRule_Type() - { + public EReference getTypeRule_Type() { return (EReference) typeRuleEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public EClass getMultiplicityRule() - { + public EClass getMultiplicityRule() { return multiplicityRuleEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public EReference getMultiplicityRule_Bounds() - { + public EReference getMultiplicityRule_Bounds() { return (EReference) multiplicityRuleEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public EClass getBoundSpecification() - { + public EClass getBoundSpecification() { return boundSpecificationEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public EAttribute getBoundSpecification_Value() - { + public EAttribute getBoundSpecification_Value() { return (EAttribute) boundSpecificationEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public EEnum getVisibilityKind() - { + public EEnum getVisibilityKind() { return visibilityKindEEnum; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public EEnum getDirection() - { + public EEnum getDirection() { return directionEEnum; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - @Override - public UmlCommonFactory getUmlCommonFactory() - { + public UmlCommonFactory getUmlCommonFactory() { return (UmlCommonFactory) getEFactoryInstance(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ private boolean isCreated = false; @@ -309,14 +291,12 @@ public class UmlCommonPackageImpl extends EPackageImpl implements UmlCommonPacka * guarded to have no affect on any invocation but its first. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - public void createPackageContents() - { - if (isCreated) { + public void createPackageContents() { + if (isCreated) return; - } isCreated = true; // Create classes and their features @@ -342,7 +322,7 @@ public class UmlCommonPackageImpl extends EPackageImpl implements UmlCommonPacka /** * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ private boolean isInitialized = false; @@ -352,14 +332,12 @@ public class UmlCommonPackageImpl extends EPackageImpl implements UmlCommonPacka * 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) { + public void initializePackageContents() { + if (isInitialized) return; - } isInitialized = true; // Initialize package @@ -380,7 +358,8 @@ public class UmlCommonPackageImpl extends EPackageImpl implements UmlCommonPacka // Initialize classes and features; add operations and parameters initEClass(qualifiedNameEClass, QualifiedName.class, "QualifiedName", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getQualifiedName_Path(), theUMLPackage.getNamespace(), null, "path", null, 0, 1, QualifiedName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getQualifiedName_Remaining(), this.getQualifiedName(), null, "remaining", null, 0, 1, QualifiedName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getQualifiedName_Remaining(), this.getQualifiedName(), null, "remaining", null, 0, 1, QualifiedName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); initEClass(typeRuleEClass, TypeRule.class, "TypeRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getTypeRule_Path(), this.getQualifiedName(), null, "path", null, 0, 1, TypeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/util/UmlCommonAdapterFactory.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/util/UmlCommonAdapterFactory.java index 4fbf0760c67..c3368c0b4a5 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/util/UmlCommonAdapterFactory.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/util/UmlCommonAdapterFactory.java @@ -17,17 +17,16 @@ import org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.UmlCommonPackage; * The <b>Adapter Factory</b> for the model. * It provides an adapter <code>createXXX</code> method for each class of the model. * <!-- end-user-doc --> - * + * * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.UmlCommonPackage * @generated */ -public class UmlCommonAdapterFactory extends AdapterFactoryImpl -{ +public class UmlCommonAdapterFactory extends AdapterFactoryImpl { /** * The cached model package. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ protected static UmlCommonPackage modelPackage; @@ -36,13 +35,11 @@ public class UmlCommonAdapterFactory extends AdapterFactoryImpl * Creates an instance of the adapter factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - public UmlCommonAdapterFactory() - { - if (modelPackage == null) - { + public UmlCommonAdapterFactory() { + if (modelPackage == null) { modelPackage = UmlCommonPackage.eINSTANCE; } } @@ -52,19 +49,16 @@ public class UmlCommonAdapterFactory extends AdapterFactoryImpl * <!-- begin-user-doc --> * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. * <!-- end-user-doc --> - * + * * @return whether this factory is applicable for the type of the object. * @generated */ @Override - public boolean isFactoryForType(Object object) - { - if (object == modelPackage) - { + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { return true; } - if (object instanceof EObject) - { + if (object instanceof EObject) { return ((EObject) object).eClass().getEPackage() == modelPackage; } return false; @@ -74,56 +68,48 @@ public class UmlCommonAdapterFactory extends AdapterFactoryImpl * The switch that delegates to the <code>createXXX</code> methods. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - protected UmlCommonSwitch<Adapter> modelSwitch = - new UmlCommonSwitch<Adapter>() - { - @Override - public Adapter caseQualifiedName(QualifiedName object) - { - return createQualifiedNameAdapter(); - } - - @Override - public Adapter caseTypeRule(TypeRule object) - { - return createTypeRuleAdapter(); - } - - @Override - public Adapter caseMultiplicityRule(MultiplicityRule object) - { - return createMultiplicityRuleAdapter(); - } - - @Override - public Adapter caseBoundSpecification(BoundSpecification object) - { - return createBoundSpecificationAdapter(); - } - - @Override - public Adapter defaultCase(EObject object) - { - return createEObjectAdapter(); - } - }; + protected UmlCommonSwitch<Adapter> modelSwitch = new UmlCommonSwitch<Adapter>() { + @Override + public Adapter caseQualifiedName(QualifiedName object) { + return createQualifiedNameAdapter(); + } + + @Override + public Adapter caseTypeRule(TypeRule object) { + return createTypeRuleAdapter(); + } + + @Override + public Adapter caseMultiplicityRule(MultiplicityRule object) { + return createMultiplicityRuleAdapter(); + } + + @Override + public Adapter caseBoundSpecification(BoundSpecification object) { + return createBoundSpecificationAdapter(); + } + + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; /** * Creates an adapter for the <code>target</code>. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @param target * the object to adapt. * @return the adapter for the <code>target</code>. * @generated */ @Override - public Adapter createAdapter(Notifier target) - { + public Adapter createAdapter(Notifier target) { return modelSwitch.doSwitch((EObject) target); } @@ -134,13 +120,12 @@ public class UmlCommonAdapterFactory extends AdapterFactoryImpl * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> - * + * * @return the new adapter. * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.QualifiedName * @generated */ - public Adapter createQualifiedNameAdapter() - { + public Adapter createQualifiedNameAdapter() { return null; } @@ -150,13 +135,12 @@ public class UmlCommonAdapterFactory extends AdapterFactoryImpl * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> - * + * * @return the new adapter. * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.TypeRule * @generated */ - public Adapter createTypeRuleAdapter() - { + public Adapter createTypeRuleAdapter() { return null; } @@ -166,13 +150,12 @@ public class UmlCommonAdapterFactory extends AdapterFactoryImpl * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> - * + * * @return the new adapter. * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.MultiplicityRule * @generated */ - public Adapter createMultiplicityRuleAdapter() - { + public Adapter createMultiplicityRuleAdapter() { return null; } @@ -182,13 +165,12 @@ public class UmlCommonAdapterFactory extends AdapterFactoryImpl * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> - * + * * @return the new adapter. * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.BoundSpecification * @generated */ - public Adapter createBoundSpecificationAdapter() - { + public Adapter createBoundSpecificationAdapter() { return null; } @@ -197,12 +179,11 @@ public class UmlCommonAdapterFactory extends AdapterFactoryImpl * <!-- begin-user-doc --> * This default implementation returns null. * <!-- end-user-doc --> - * + * * @return the new adapter. * @generated */ - public Adapter createEObjectAdapter() - { + public Adapter createEObjectAdapter() { return null; } diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/util/UmlCommonResourceFactoryImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/util/UmlCommonResourceFactoryImpl.java deleted file mode 100644 index 34cd9e89fd5..00000000000 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/util/UmlCommonResourceFactoryImpl.java +++ /dev/null @@ -1,55 +0,0 @@ -/** - */ -package org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.util; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; -import org.eclipse.emf.ecore.xmi.XMLResource; - -/** - * <!-- begin-user-doc --> - * The <b>Resource Factory</b> associated with the package. - * <!-- end-user-doc --> - * - * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.util.UmlCommonResourceImpl - * @generated - */ -public class UmlCommonResourceFactoryImpl extends ResourceFactoryImpl -{ - /** - * Creates an instance of the resource factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - public UmlCommonResourceFactoryImpl() - { - super(); - } - - /** - * Creates an instance of the resource. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - @Override - public Resource createResource(URI uri) - { - XMLResource result = new UmlCommonResourceImpl(uri); - result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); - result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); - - result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); - - result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); - result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); - - result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); - return result; - } - -} // UmlCommonResourceFactoryImpl diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/util/UmlCommonResourceImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/util/UmlCommonResourceImpl.java deleted file mode 100644 index b289736e643..00000000000 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/util/UmlCommonResourceImpl.java +++ /dev/null @@ -1,32 +0,0 @@ -/** - */ -package org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.util; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; - -/** - * <!-- begin-user-doc --> - * The <b>Resource </b> associated with the package. - * <!-- end-user-doc --> - * - * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.util.UmlCommonResourceFactoryImpl - * @generated - */ -public class UmlCommonResourceImpl extends XMLResourceImpl -{ - /** - * Creates an instance of the resource. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @param uri - * the URI of the new resource. - * @generated - */ - public UmlCommonResourceImpl(URI uri) - { - super(uri); - } - -} // UmlCommonResourceImpl diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/util/UmlCommonSwitch.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/util/UmlCommonSwitch.java index dbb74132c1c..993d694fab4 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/util/UmlCommonSwitch.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/util/UmlCommonSwitch.java @@ -14,23 +14,23 @@ import org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.UmlCommonPackage; /** * <!-- begin-user-doc --> * The <b>Switch</b> for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model, + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the <code>caseXXX</code> method for each class of the model, * starting with the actual class of the object * and proceeding up the inheritance hierarchy * until a non-null result is returned, * which is the result of the switch. * <!-- end-user-doc --> - * + * * @see org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.UmlCommonPackage * @generated */ -public class UmlCommonSwitch<T> extends Switch<T> -{ +public class UmlCommonSwitch<T> extends Switch<T> { /** * The cached model package * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ protected static UmlCommonPackage modelPackage; @@ -39,13 +39,11 @@ public class UmlCommonSwitch<T> extends Switch<T> * Creates an instance of the switch. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @generated */ - public UmlCommonSwitch() - { - if (modelPackage == null) - { + public UmlCommonSwitch() { + if (modelPackage == null) { modelPackage = UmlCommonPackage.eINSTANCE; } } @@ -54,14 +52,14 @@ public class UmlCommonSwitch<T> extends Switch<T> * Checks whether this is a switch for the given package. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * - * @parameter ePackage the package in question. + * + * @param ePackage + * the package in question. * @return whether this is a switch for the given package. * @generated */ @Override - protected boolean isSwitchFor(EPackage ePackage) - { + protected boolean isSwitchFor(EPackage ePackage) { return ePackage == modelPackage; } @@ -69,45 +67,39 @@ public class UmlCommonSwitch<T> extends Switch<T> * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * + * * @return the first non-null result returned by a <code>caseXXX</code> call. * @generated */ @Override - protected T doSwitch(int classifierID, EObject theEObject) - { - switch (classifierID) - { + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { case UmlCommonPackage.QUALIFIED_NAME: { QualifiedName qualifiedName = (QualifiedName) theEObject; T result = caseQualifiedName(qualifiedName); - if (result == null) { + if (result == null) result = defaultCase(theEObject); - } return result; } case UmlCommonPackage.TYPE_RULE: { TypeRule typeRule = (TypeRule) theEObject; T result = caseTypeRule(typeRule); - if (result == null) { + if (result == null) result = defaultCase(theEObject); - } return result; } case UmlCommonPackage.MULTIPLICITY_RULE: { MultiplicityRule multiplicityRule = (MultiplicityRule) theEObject; T result = caseMultiplicityRule(multiplicityRule); - if (result == null) { + if (result == null) result = defaultCase(theEObject); - } return result; } case UmlCommonPackage.BOUND_SPECIFICATION: { BoundSpecification boundSpecification = (BoundSpecification) theEObject; T result = caseBoundSpecification(boundSpecification); - if (result == null) { + if (result == null) result = defaultCase(theEObject); - } return result; } default: @@ -121,15 +113,14 @@ public class UmlCommonSwitch<T> extends Switch<T> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> - * + * * @param object * the target of the switch. * @return the result of interpreting the object as an instance of '<em>Qualified Name</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ - public T caseQualifiedName(QualifiedName object) - { + public T caseQualifiedName(QualifiedName object) { return null; } @@ -139,15 +130,14 @@ public class UmlCommonSwitch<T> extends Switch<T> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> - * + * * @param object * the target of the switch. * @return the result of interpreting the object as an instance of '<em>Type Rule</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ - public T caseTypeRule(TypeRule object) - { + public T caseTypeRule(TypeRule object) { return null; } @@ -157,15 +147,14 @@ public class UmlCommonSwitch<T> extends Switch<T> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> - * + * * @param object * the target of the switch. * @return the result of interpreting the object as an instance of '<em>Multiplicity Rule</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ - public T caseMultiplicityRule(MultiplicityRule object) - { + public T caseMultiplicityRule(MultiplicityRule object) { return null; } @@ -175,15 +164,14 @@ public class UmlCommonSwitch<T> extends Switch<T> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> - * + * * @param object * the target of the switch. * @return the result of interpreting the object as an instance of '<em>Bound Specification</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ - public T caseBoundSpecification(BoundSpecification object) - { + public T caseBoundSpecification(BoundSpecification object) { return null; } @@ -193,7 +181,7 @@ public class UmlCommonSwitch<T> extends Switch<T> * This implementation returns null; * returning a non-null result will terminate the switch, but this is the last case anyway. * <!-- end-user-doc --> - * + * * @param object * the target of the switch. * @return the result of interpreting the object as an instance of '<em>EObject</em>'. @@ -201,8 +189,7 @@ public class UmlCommonSwitch<T> extends Switch<T> * @generated */ @Override - public T defaultCase(EObject object) - { + public T defaultCase(EObject object) { return null; } diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/util/UmlCommonXMLProcessor.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/util/UmlCommonXMLProcessor.java deleted file mode 100644 index b0b49d999dd..00000000000 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext/src-gen/org/eclipse/papyrus/uml/textedit/common/xtext/umlCommon/util/UmlCommonXMLProcessor.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - */ -package org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.util; - -import java.util.Map; - -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.xmi.util.XMLProcessor; -import org.eclipse.papyrus.uml.textedit.common.xtext.umlCommon.UmlCommonPackage; - -/** - * This class contains helper methods to serialize and deserialize XML documents - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ -public class UmlCommonXMLProcessor extends XMLProcessor -{ - - /** - * Public constructor to instantiate the helper. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - public UmlCommonXMLProcessor() - { - super((EPackage.Registry.INSTANCE)); - UmlCommonPackage.eINSTANCE.eClass(); - } - - /** - * Register for "*" and "xml" file extensions the UmlCommonResourceFactoryImpl factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * - * @generated - */ - @Override - protected Map<String, Resource.Factory> getRegistrations() - { - if (registrations == null) - { - super.getRegistrations(); - registrations.put(XML_EXTENSION, new UmlCommonResourceFactoryImpl()); - registrations.put(STAR_EXTENSION, new UmlCommonResourceFactoryImpl()); - } - return registrations; - } - -} // UmlCommonXMLProcessor |