Changeset 100 in default for v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/ebnf
- Timestamp:
- 10/12/16 15:29:26 (8 years ago)
- Location:
- v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/ebnf
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/ebnf/BnfEntry.java
r88 r100 15 15 * <li>{@link de.ugoe.cs.swe.bnftools.ebnf.BnfEntry#getSectionheader <em>Sectionheader</em>}</li> 16 16 * <li>{@link de.ugoe.cs.swe.bnftools.ebnf.BnfEntry#getRule <em>Rule</em>}</li> 17 * <li>{@link de.ugoe.cs.swe.bnftools.ebnf.BnfEntry#getComment <em>Comment</em>}</li> 17 18 * </ul> 18 19 * </p> … … 76 77 void setRule(Rule value); 77 78 79 /** 80 * Returns the value of the '<em><b>Comment</b></em>' containment reference. 81 * <!-- begin-user-doc --> 82 * <p> 83 * If the meaning of the '<em>Comment</em>' containment reference isn't clear, 84 * there really should be more of a description here... 85 * </p> 86 * <!-- end-user-doc --> 87 * @return the value of the '<em>Comment</em>' containment reference. 88 * @see #setComment(Comment) 89 * @see de.ugoe.cs.swe.bnftools.ebnf.EbnfPackage#getBnfEntry_Comment() 90 * @model containment="true" 91 * @generated 92 */ 93 Comment getComment(); 94 95 /** 96 * Sets the value of the '{@link de.ugoe.cs.swe.bnftools.ebnf.BnfEntry#getComment <em>Comment</em>}' containment reference. 97 * <!-- begin-user-doc --> 98 * <!-- end-user-doc --> 99 * @param value the new value of the '<em>Comment</em>' containment reference. 100 * @see #getComment() 101 * @generated 102 */ 103 void setComment(Comment value); 104 78 105 } // BnfEntry -
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/ebnf/EbnfFactory.java
r95 r100 78 78 79 79 /** 80 * Returns a new object of class '<em>Comment</em>'. 81 * <!-- begin-user-doc --> 82 * <!-- end-user-doc --> 83 * @return a new object of class '<em>Comment</em>'. 84 * @generated 85 */ 86 Comment createComment(); 87 88 /** 80 89 * Returns a new object of class '<em>Import</em>'. 81 90 * <!-- begin-user-doc --> -
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/ebnf/EbnfPackage.java
r95 r100 187 187 188 188 /** 189 * The feature id for the '<em><b>Comment</b></em>' containment reference. 190 * <!-- begin-user-doc --> 191 * <!-- end-user-doc --> 192 * @generated 193 * @ordered 194 */ 195 int BNF_ENTRY__COMMENT = 2; 196 197 /** 189 198 * The number of structural features of the '<em>Bnf Entry</em>' class. 190 199 * <!-- begin-user-doc --> … … 193 202 * @ordered 194 203 */ 195 int BNF_ENTRY_FEATURE_COUNT = 2;204 int BNF_ENTRY_FEATURE_COUNT = 3; 196 205 197 206 /** … … 307 316 308 317 /** 318 * The meta object id for the '{@link de.ugoe.cs.swe.bnftools.ebnf.impl.CommentImpl <em>Comment</em>}' class. 319 * <!-- begin-user-doc --> 320 * <!-- end-user-doc --> 321 * @see de.ugoe.cs.swe.bnftools.ebnf.impl.CommentImpl 322 * @see de.ugoe.cs.swe.bnftools.ebnf.impl.EbnfPackageImpl#getComment() 323 * @generated 324 */ 325 int COMMENT = 6; 326 327 /** 328 * The feature id for the '<em><b>Content</b></em>' attribute. 329 * <!-- begin-user-doc --> 330 * <!-- end-user-doc --> 331 * @generated 332 * @ordered 333 */ 334 int COMMENT__CONTENT = 0; 335 336 /** 337 * The number of structural features of the '<em>Comment</em>' class. 338 * <!-- begin-user-doc --> 339 * <!-- end-user-doc --> 340 * @generated 341 * @ordered 342 */ 343 int COMMENT_FEATURE_COUNT = 1; 344 345 /** 309 346 * The meta object id for the '{@link de.ugoe.cs.swe.bnftools.ebnf.impl.ImportImpl <em>Import</em>}' class. 310 347 * <!-- begin-user-doc --> … … 314 351 * @generated 315 352 */ 316 int IMPORT = 6;353 int IMPORT = 7; 317 354 318 355 /** … … 360 397 * @generated 361 398 */ 362 int RULE = 7;399 int RULE = 8; 363 400 364 401 /** … … 415 452 * @generated 416 453 */ 417 int EXT_RULE = 8;454 int EXT_RULE = 9; 418 455 419 456 /** … … 479 516 * @generated 480 517 */ 481 int MERGE_RULE = 9;518 int MERGE_RULE = 10; 482 519 483 520 /** … … 507 544 * @generated 508 545 */ 509 int GLOBAL_COMBINATOR = 1 0;546 int GLOBAL_COMBINATOR = 11; 510 547 511 548 /** … … 535 572 * @generated 536 573 */ 537 int RULE_COMBINATOR = 1 1;574 int RULE_COMBINATOR = 12; 538 575 539 576 /** … … 581 618 * @generated 582 619 */ 583 int HOOK_COMBINATOR = 1 2;620 int HOOK_COMBINATOR = 13; 584 621 585 622 /** … … 636 673 * @generated 637 674 */ 638 int DEFINITION_LIST = 1 3;675 int DEFINITION_LIST = 14; 639 676 640 677 /** … … 664 701 * @generated 665 702 */ 666 int SINGLE_DEFINITION = 1 4;703 int SINGLE_DEFINITION = 15; 667 704 668 705 /** … … 692 729 * @generated 693 730 */ 694 int TERM = 1 5;731 int TERM = 16; 695 732 696 733 /** … … 747 784 * @generated 748 785 */ 749 int ATOM = 1 6;786 int ATOM = 17; 750 787 751 788 /** … … 784 821 * @generated 785 822 */ 786 int RULE_REFERENCE = 1 7;823 int RULE_REFERENCE = 18; 787 824 788 825 /** … … 812 849 * @generated 813 850 */ 814 int STRING_RULE = 1 8;851 int STRING_RULE = 19; 815 852 816 853 /** … … 849 886 * @generated 850 887 */ 851 int GROUPED_SEQUENCE = 19;888 int GROUPED_SEQUENCE = 20; 852 889 853 890 /** … … 877 914 * @generated 878 915 */ 879 int OPTIONAL_SEQUENCE = 2 0;916 int OPTIONAL_SEQUENCE = 21; 880 917 881 918 /** … … 905 942 * @generated 906 943 */ 907 int REPEATED_SEQUENCE = 2 1;944 int REPEATED_SEQUENCE = 22; 908 945 909 946 /** … … 951 988 * @generated 952 989 */ 953 int REPEAT_RANGE = 2 2;990 int REPEAT_RANGE = 23; 954 991 955 992 /** … … 1111 1148 1112 1149 /** 1150 * Returns the meta object for the containment reference '{@link de.ugoe.cs.swe.bnftools.ebnf.BnfEntry#getComment <em>Comment</em>}'. 1151 * <!-- begin-user-doc --> 1152 * <!-- end-user-doc --> 1153 * @return the meta object for the containment reference '<em>Comment</em>'. 1154 * @see de.ugoe.cs.swe.bnftools.ebnf.BnfEntry#getComment() 1155 * @see #getBnfEntry() 1156 * @generated 1157 */ 1158 EReference getBnfEntry_Comment(); 1159 1160 /** 1113 1161 * Returns the meta object for class '{@link de.ugoe.cs.swe.bnftools.ebnf.DeltaEntry <em>Delta Entry</em>}'. 1114 1162 * <!-- begin-user-doc --> … … 1205 1253 */ 1206 1254 EAttribute getSectionHeading_SectionHeader(); 1255 1256 /** 1257 * Returns the meta object for class '{@link de.ugoe.cs.swe.bnftools.ebnf.Comment <em>Comment</em>}'. 1258 * <!-- begin-user-doc --> 1259 * <!-- end-user-doc --> 1260 * @return the meta object for class '<em>Comment</em>'. 1261 * @see de.ugoe.cs.swe.bnftools.ebnf.Comment 1262 * @generated 1263 */ 1264 EClass getComment(); 1265 1266 /** 1267 * Returns the meta object for the attribute '{@link de.ugoe.cs.swe.bnftools.ebnf.Comment#getContent <em>Content</em>}'. 1268 * <!-- begin-user-doc --> 1269 * <!-- end-user-doc --> 1270 * @return the meta object for the attribute '<em>Content</em>'. 1271 * @see de.ugoe.cs.swe.bnftools.ebnf.Comment#getContent() 1272 * @see #getComment() 1273 * @generated 1274 */ 1275 EAttribute getComment_Content(); 1207 1276 1208 1277 /** … … 1898 1967 1899 1968 /** 1969 * The meta object literal for the '<em><b>Comment</b></em>' containment reference feature. 1970 * <!-- begin-user-doc --> 1971 * <!-- end-user-doc --> 1972 * @generated 1973 */ 1974 EReference BNF_ENTRY__COMMENT = eINSTANCE.getBnfEntry_Comment(); 1975 1976 /** 1900 1977 * The meta object literal for the '{@link de.ugoe.cs.swe.bnftools.ebnf.impl.DeltaEntryImpl <em>Delta Entry</em>}' class. 1901 1978 * <!-- begin-user-doc --> … … 1976 2053 1977 2054 /** 2055 * The meta object literal for the '{@link de.ugoe.cs.swe.bnftools.ebnf.impl.CommentImpl <em>Comment</em>}' class. 2056 * <!-- begin-user-doc --> 2057 * <!-- end-user-doc --> 2058 * @see de.ugoe.cs.swe.bnftools.ebnf.impl.CommentImpl 2059 * @see de.ugoe.cs.swe.bnftools.ebnf.impl.EbnfPackageImpl#getComment() 2060 * @generated 2061 */ 2062 EClass COMMENT = eINSTANCE.getComment(); 2063 2064 /** 2065 * The meta object literal for the '<em><b>Content</b></em>' attribute feature. 2066 * <!-- begin-user-doc --> 2067 * <!-- end-user-doc --> 2068 * @generated 2069 */ 2070 EAttribute COMMENT__CONTENT = eINSTANCE.getComment_Content(); 2071 2072 /** 1978 2073 * The meta object literal for the '{@link de.ugoe.cs.swe.bnftools.ebnf.impl.ImportImpl <em>Import</em>}' class. 1979 2074 * <!-- begin-user-doc --> -
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/ebnf/impl/BnfEntryImpl.java
r88 r100 4 4 5 5 import de.ugoe.cs.swe.bnftools.ebnf.BnfEntry; 6 import de.ugoe.cs.swe.bnftools.ebnf.Comment; 6 7 import de.ugoe.cs.swe.bnftools.ebnf.EbnfPackage; 7 8 import de.ugoe.cs.swe.bnftools.ebnf.Rule; … … 26 27 * <li>{@link de.ugoe.cs.swe.bnftools.ebnf.impl.BnfEntryImpl#getSectionheader <em>Sectionheader</em>}</li> 27 28 * <li>{@link de.ugoe.cs.swe.bnftools.ebnf.impl.BnfEntryImpl#getRule <em>Rule</em>}</li> 29 * <li>{@link de.ugoe.cs.swe.bnftools.ebnf.impl.BnfEntryImpl#getComment <em>Comment</em>}</li> 28 30 * </ul> 29 31 * </p> … … 54 56 55 57 /** 58 * The cached value of the '{@link #getComment() <em>Comment</em>}' containment reference. 59 * <!-- begin-user-doc --> 60 * <!-- end-user-doc --> 61 * @see #getComment() 62 * @generated 63 * @ordered 64 */ 65 protected Comment comment; 66 67 /** 56 68 * <!-- begin-user-doc --> 57 69 * <!-- end-user-doc --> … … 175 187 * @generated 176 188 */ 189 public Comment getComment() 190 { 191 return comment; 192 } 193 194 /** 195 * <!-- begin-user-doc --> 196 * <!-- end-user-doc --> 197 * @generated 198 */ 199 public NotificationChain basicSetComment(Comment newComment, NotificationChain msgs) 200 { 201 Comment oldComment = comment; 202 comment = newComment; 203 if (eNotificationRequired()) 204 { 205 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EbnfPackage.BNF_ENTRY__COMMENT, oldComment, newComment); 206 if (msgs == null) msgs = notification; else msgs.add(notification); 207 } 208 return msgs; 209 } 210 211 /** 212 * <!-- begin-user-doc --> 213 * <!-- end-user-doc --> 214 * @generated 215 */ 216 public void setComment(Comment newComment) 217 { 218 if (newComment != comment) 219 { 220 NotificationChain msgs = null; 221 if (comment != null) 222 msgs = ((InternalEObject)comment).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EbnfPackage.BNF_ENTRY__COMMENT, null, msgs); 223 if (newComment != null) 224 msgs = ((InternalEObject)newComment).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EbnfPackage.BNF_ENTRY__COMMENT, null, msgs); 225 msgs = basicSetComment(newComment, msgs); 226 if (msgs != null) msgs.dispatch(); 227 } 228 else if (eNotificationRequired()) 229 eNotify(new ENotificationImpl(this, Notification.SET, EbnfPackage.BNF_ENTRY__COMMENT, newComment, newComment)); 230 } 231 232 /** 233 * <!-- begin-user-doc --> 234 * <!-- end-user-doc --> 235 * @generated 236 */ 177 237 @Override 178 238 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) … … 184 244 case EbnfPackage.BNF_ENTRY__RULE: 185 245 return basicSetRule(null, msgs); 246 case EbnfPackage.BNF_ENTRY__COMMENT: 247 return basicSetComment(null, msgs); 186 248 } 187 249 return super.eInverseRemove(otherEnd, featureID, msgs); … … 202 264 case EbnfPackage.BNF_ENTRY__RULE: 203 265 return getRule(); 266 case EbnfPackage.BNF_ENTRY__COMMENT: 267 return getComment(); 204 268 } 205 269 return super.eGet(featureID, resolve, coreType); … … 222 286 setRule((Rule)newValue); 223 287 return; 288 case EbnfPackage.BNF_ENTRY__COMMENT: 289 setComment((Comment)newValue); 290 return; 224 291 } 225 292 super.eSet(featureID, newValue); … … 242 309 setRule((Rule)null); 243 310 return; 311 case EbnfPackage.BNF_ENTRY__COMMENT: 312 setComment((Comment)null); 313 return; 244 314 } 245 315 super.eUnset(featureID); … … 260 330 case EbnfPackage.BNF_ENTRY__RULE: 261 331 return rule != null; 332 case EbnfPackage.BNF_ENTRY__COMMENT: 333 return comment != null; 262 334 } 263 335 return super.eIsSet(featureID); -
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/ebnf/impl/EbnfFactoryImpl.java
r95 r100 71 71 case EbnfPackage.MERGE_ENTRY: return createMergeEntry(); 72 72 case EbnfPackage.SECTION_HEADING: return createSectionHeading(); 73 case EbnfPackage.COMMENT: return createComment(); 73 74 case EbnfPackage.IMPORT: return createImport(); 74 75 case EbnfPackage.RULE: return createRule(); … … 164 165 * @generated 165 166 */ 167 public Comment createComment() 168 { 169 CommentImpl comment = new CommentImpl(); 170 return comment; 171 } 172 173 /** 174 * <!-- begin-user-doc --> 175 * <!-- end-user-doc --> 176 * @generated 177 */ 166 178 public Import createImport() 167 179 { -
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/ebnf/impl/EbnfPackageImpl.java
r95 r100 5 5 import de.ugoe.cs.swe.bnftools.ebnf.Atom; 6 6 import de.ugoe.cs.swe.bnftools.ebnf.BnfEntry; 7 import de.ugoe.cs.swe.bnftools.ebnf.Comment; 7 8 import de.ugoe.cs.swe.bnftools.ebnf.DefinitionList; 8 9 import de.ugoe.cs.swe.bnftools.ebnf.DeltaEntry; … … 91 92 * @generated 92 93 */ 94 private EClass commentEClass = null; 95 96 /** 97 * <!-- begin-user-doc --> 98 * <!-- end-user-doc --> 99 * @generated 100 */ 93 101 private EClass importEClass = null; 94 102 … … 393 401 * @generated 394 402 */ 403 public EReference getBnfEntry_Comment() 404 { 405 return (EReference)bnfEntryEClass.getEStructuralFeatures().get(2); 406 } 407 408 /** 409 * <!-- begin-user-doc --> 410 * <!-- end-user-doc --> 411 * @generated 412 */ 395 413 public EClass getDeltaEntry() 396 414 { … … 476 494 { 477 495 return (EAttribute)sectionHeadingEClass.getEStructuralFeatures().get(0); 496 } 497 498 /** 499 * <!-- begin-user-doc --> 500 * <!-- end-user-doc --> 501 * @generated 502 */ 503 public EClass getComment() 504 { 505 return commentEClass; 506 } 507 508 /** 509 * <!-- begin-user-doc --> 510 * <!-- end-user-doc --> 511 * @generated 512 */ 513 public EAttribute getComment_Content() 514 { 515 return (EAttribute)commentEClass.getEStructuralFeatures().get(0); 478 516 } 479 517 … … 1052 1090 createEReference(bnfEntryEClass, BNF_ENTRY__SECTIONHEADER); 1053 1091 createEReference(bnfEntryEClass, BNF_ENTRY__RULE); 1092 createEReference(bnfEntryEClass, BNF_ENTRY__COMMENT); 1054 1093 1055 1094 deltaEntryEClass = createEClass(DELTA_ENTRY); … … 1064 1103 sectionHeadingEClass = createEClass(SECTION_HEADING); 1065 1104 createEAttribute(sectionHeadingEClass, SECTION_HEADING__SECTION_HEADER); 1105 1106 commentEClass = createEClass(COMMENT); 1107 createEAttribute(commentEClass, COMMENT__CONTENT); 1066 1108 1067 1109 importEClass = createEClass(IMPORT); … … 1184 1226 initEReference(getBnfEntry_Sectionheader(), this.getSectionHeading(), null, "sectionheader", null, 0, 1, BnfEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1185 1227 initEReference(getBnfEntry_Rule(), this.getRule(), null, "rule", null, 0, 1, BnfEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1228 initEReference(getBnfEntry_Comment(), this.getComment(), null, "comment", null, 0, 1, BnfEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1186 1229 1187 1230 initEClass(deltaEntryEClass, DeltaEntry.class, "DeltaEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); … … 1196 1239 initEClass(sectionHeadingEClass, SectionHeading.class, "SectionHeading", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 1197 1240 initEAttribute(getSectionHeading_SectionHeader(), ecorePackage.getEString(), "sectionHeader", null, 0, 1, SectionHeading.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1241 1242 initEClass(commentEClass, Comment.class, "Comment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 1243 initEAttribute(getComment_Content(), ecorePackage.getEString(), "content", null, 0, 1, Comment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1198 1244 1199 1245 initEClass(importEClass, Import.class, "Import", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); -
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/ebnf/util/EbnfAdapterFactory.java
r95 r100 106 106 } 107 107 @Override 108 public Adapter caseComment(Comment object) 109 { 110 return createCommentAdapter(); 111 } 112 @Override 108 113 public Adapter caseImport(Import object) 109 114 { … … 303 308 304 309 /** 310 * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.Comment <em>Comment</em>}'. 311 * <!-- begin-user-doc --> 312 * This default implementation returns null so that we can easily ignore cases; 313 * it's useful to ignore a case when inheritance will catch all the cases anyway. 314 * <!-- end-user-doc --> 315 * @return the new adapter. 316 * @see de.ugoe.cs.swe.bnftools.ebnf.Comment 317 * @generated 318 */ 319 public Adapter createCommentAdapter() 320 { 321 return null; 322 } 323 324 /** 305 325 * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.Import <em>Import</em>}'. 306 326 * <!-- begin-user-doc --> -
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/ebnf/util/EbnfSwitch.java
r95 r100 115 115 return result; 116 116 } 117 case EbnfPackage.COMMENT: 118 { 119 Comment comment = (Comment)theEObject; 120 T result = caseComment(comment); 121 if (result == null) result = defaultCase(theEObject); 122 return result; 123 } 117 124 case EbnfPackage.IMPORT: 118 125 { … … 338 345 339 346 /** 347 * Returns the result of interpreting the object as an instance of '<em>Comment</em>'. 348 * <!-- begin-user-doc --> 349 * This implementation returns null; 350 * returning a non-null result will terminate the switch. 351 * <!-- end-user-doc --> 352 * @param object the target of the switch. 353 * @return the result of interpreting the object as an instance of '<em>Comment</em>'. 354 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 355 * @generated 356 */ 357 public T caseComment(Comment object) 358 { 359 return null; 360 } 361 362 /** 340 363 * Returns the result of interpreting the object as an instance of '<em>Import</em>'. 341 364 * <!-- begin-user-doc -->
Note: See TracChangeset
for help on using the changeset viewer.