Changeset 95 in default for v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/ebnf
- Timestamp:
- 10/12/16 14:34:24 (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/EbnfFactory.java
r88 r95 222 222 223 223 /** 224 * Returns a new object of class '<em>Repeat Range</em>'. 225 * <!-- begin-user-doc --> 226 * <!-- end-user-doc --> 227 * @return a new object of class '<em>Repeat Range</em>'. 228 * @generated 229 */ 230 RepeatRange createRepeatRange(); 231 232 /** 224 233 * Returns the package supported by this factory. 225 234 * <!-- begin-user-doc --> -
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/ebnf/EbnfPackage.java
r88 r95 926 926 927 927 /** 928 * The feature id for the '<em><b>Range</b></em>' containment reference. 929 * <!-- begin-user-doc --> 930 * <!-- end-user-doc --> 931 * @generated 932 * @ordered 933 */ 934 int REPEATED_SEQUENCE__RANGE = 2; 935 936 /** 928 937 * The number of structural features of the '<em>Repeated Sequence</em>' class. 929 938 * <!-- begin-user-doc --> … … 932 941 * @ordered 933 942 */ 934 int REPEATED_SEQUENCE_FEATURE_COUNT = 2; 943 int REPEATED_SEQUENCE_FEATURE_COUNT = 3; 944 945 /** 946 * The meta object id for the '{@link de.ugoe.cs.swe.bnftools.ebnf.impl.RepeatRangeImpl <em>Repeat Range</em>}' class. 947 * <!-- begin-user-doc --> 948 * <!-- end-user-doc --> 949 * @see de.ugoe.cs.swe.bnftools.ebnf.impl.RepeatRangeImpl 950 * @see de.ugoe.cs.swe.bnftools.ebnf.impl.EbnfPackageImpl#getRepeatRange() 951 * @generated 952 */ 953 int REPEAT_RANGE = 22; 954 955 /** 956 * The feature id for the '<em><b>From</b></em>' attribute. 957 * <!-- begin-user-doc --> 958 * <!-- end-user-doc --> 959 * @generated 960 * @ordered 961 */ 962 int REPEAT_RANGE__FROM = 0; 963 964 /** 965 * The feature id for the '<em><b>To</b></em>' attribute. 966 * <!-- begin-user-doc --> 967 * <!-- end-user-doc --> 968 * @generated 969 * @ordered 970 */ 971 int REPEAT_RANGE__TO = 1; 972 973 /** 974 * The number of structural features of the '<em>Repeat Range</em>' class. 975 * <!-- begin-user-doc --> 976 * <!-- end-user-doc --> 977 * @generated 978 * @ordered 979 */ 980 int REPEAT_RANGE_FEATURE_COUNT = 2; 935 981 936 982 … … 1682 1728 */ 1683 1729 EAttribute getRepeatedSequence_Morethanonce(); 1730 1731 /** 1732 * Returns the meta object for the containment reference '{@link de.ugoe.cs.swe.bnftools.ebnf.RepeatedSequence#getRange <em>Range</em>}'. 1733 * <!-- begin-user-doc --> 1734 * <!-- end-user-doc --> 1735 * @return the meta object for the containment reference '<em>Range</em>'. 1736 * @see de.ugoe.cs.swe.bnftools.ebnf.RepeatedSequence#getRange() 1737 * @see #getRepeatedSequence() 1738 * @generated 1739 */ 1740 EReference getRepeatedSequence_Range(); 1741 1742 /** 1743 * Returns the meta object for class '{@link de.ugoe.cs.swe.bnftools.ebnf.RepeatRange <em>Repeat Range</em>}'. 1744 * <!-- begin-user-doc --> 1745 * <!-- end-user-doc --> 1746 * @return the meta object for class '<em>Repeat Range</em>'. 1747 * @see de.ugoe.cs.swe.bnftools.ebnf.RepeatRange 1748 * @generated 1749 */ 1750 EClass getRepeatRange(); 1751 1752 /** 1753 * Returns the meta object for the attribute '{@link de.ugoe.cs.swe.bnftools.ebnf.RepeatRange#getFrom <em>From</em>}'. 1754 * <!-- begin-user-doc --> 1755 * <!-- end-user-doc --> 1756 * @return the meta object for the attribute '<em>From</em>'. 1757 * @see de.ugoe.cs.swe.bnftools.ebnf.RepeatRange#getFrom() 1758 * @see #getRepeatRange() 1759 * @generated 1760 */ 1761 EAttribute getRepeatRange_From(); 1762 1763 /** 1764 * Returns the meta object for the attribute '{@link de.ugoe.cs.swe.bnftools.ebnf.RepeatRange#getTo <em>To</em>}'. 1765 * <!-- begin-user-doc --> 1766 * <!-- end-user-doc --> 1767 * @return the meta object for the attribute '<em>To</em>'. 1768 * @see de.ugoe.cs.swe.bnftools.ebnf.RepeatRange#getTo() 1769 * @see #getRepeatRange() 1770 * @generated 1771 */ 1772 EAttribute getRepeatRange_To(); 1684 1773 1685 1774 /** … … 2310 2399 EAttribute REPEATED_SEQUENCE__MORETHANONCE = eINSTANCE.getRepeatedSequence_Morethanonce(); 2311 2400 2401 /** 2402 * The meta object literal for the '<em><b>Range</b></em>' containment reference feature. 2403 * <!-- begin-user-doc --> 2404 * <!-- end-user-doc --> 2405 * @generated 2406 */ 2407 EReference REPEATED_SEQUENCE__RANGE = eINSTANCE.getRepeatedSequence_Range(); 2408 2409 /** 2410 * The meta object literal for the '{@link de.ugoe.cs.swe.bnftools.ebnf.impl.RepeatRangeImpl <em>Repeat Range</em>}' class. 2411 * <!-- begin-user-doc --> 2412 * <!-- end-user-doc --> 2413 * @see de.ugoe.cs.swe.bnftools.ebnf.impl.RepeatRangeImpl 2414 * @see de.ugoe.cs.swe.bnftools.ebnf.impl.EbnfPackageImpl#getRepeatRange() 2415 * @generated 2416 */ 2417 EClass REPEAT_RANGE = eINSTANCE.getRepeatRange(); 2418 2419 /** 2420 * The meta object literal for the '<em><b>From</b></em>' attribute feature. 2421 * <!-- begin-user-doc --> 2422 * <!-- end-user-doc --> 2423 * @generated 2424 */ 2425 EAttribute REPEAT_RANGE__FROM = eINSTANCE.getRepeatRange_From(); 2426 2427 /** 2428 * The meta object literal for the '<em><b>To</b></em>' attribute feature. 2429 * <!-- begin-user-doc --> 2430 * <!-- end-user-doc --> 2431 * @generated 2432 */ 2433 EAttribute REPEAT_RANGE__TO = eINSTANCE.getRepeatRange_To(); 2434 2312 2435 } 2313 2436 -
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/ebnf/RepeatedSequence.java
r88 r95 17 17 * <li>{@link de.ugoe.cs.swe.bnftools.ebnf.RepeatedSequence#getDefinitions <em>Definitions</em>}</li> 18 18 * <li>{@link de.ugoe.cs.swe.bnftools.ebnf.RepeatedSequence#isMorethanonce <em>Morethanonce</em>}</li> 19 * <li>{@link de.ugoe.cs.swe.bnftools.ebnf.RepeatedSequence#getRange <em>Range</em>}</li> 19 20 * </ul> 20 21 * </p> … … 68 69 void setMorethanonce(boolean value); 69 70 71 /** 72 * Returns the value of the '<em><b>Range</b></em>' containment reference. 73 * <!-- begin-user-doc --> 74 * <p> 75 * If the meaning of the '<em>Range</em>' containment reference isn't clear, 76 * there really should be more of a description here... 77 * </p> 78 * <!-- end-user-doc --> 79 * @return the value of the '<em>Range</em>' containment reference. 80 * @see #setRange(RepeatRange) 81 * @see de.ugoe.cs.swe.bnftools.ebnf.EbnfPackage#getRepeatedSequence_Range() 82 * @model containment="true" 83 * @generated 84 */ 85 RepeatRange getRange(); 86 87 /** 88 * Sets the value of the '{@link de.ugoe.cs.swe.bnftools.ebnf.RepeatedSequence#getRange <em>Range</em>}' containment reference. 89 * <!-- begin-user-doc --> 90 * <!-- end-user-doc --> 91 * @param value the new value of the '<em>Range</em>' containment reference. 92 * @see #getRange() 93 * @generated 94 */ 95 void setRange(RepeatRange value); 96 70 97 } // RepeatedSequence -
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/ebnf/impl/EbnfFactoryImpl.java
r88 r95 87 87 case EbnfPackage.OPTIONAL_SEQUENCE: return createOptionalSequence(); 88 88 case EbnfPackage.REPEATED_SEQUENCE: return createRepeatedSequence(); 89 case EbnfPackage.REPEAT_RANGE: return createRepeatRange(); 89 90 default: 90 91 throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); … … 339 340 * @generated 340 341 */ 342 public RepeatRange createRepeatRange() 343 { 344 RepeatRangeImpl repeatRange = new RepeatRangeImpl(); 345 return repeatRange; 346 } 347 348 /** 349 * <!-- begin-user-doc --> 350 * <!-- end-user-doc --> 351 * @generated 352 */ 341 353 public EbnfPackage getEbnfPackage() 342 354 { -
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/ebnf/impl/EbnfPackageImpl.java
r88 r95 19 19 import de.ugoe.cs.swe.bnftools.ebnf.MergeRule; 20 20 import de.ugoe.cs.swe.bnftools.ebnf.OptionalSequence; 21 import de.ugoe.cs.swe.bnftools.ebnf.RepeatRange; 21 22 import de.ugoe.cs.swe.bnftools.ebnf.RepeatedSequence; 22 23 import de.ugoe.cs.swe.bnftools.ebnf.Rule; … … 198 199 199 200 /** 201 * <!-- begin-user-doc --> 202 * <!-- end-user-doc --> 203 * @generated 204 */ 205 private EClass repeatRangeEClass = null; 206 207 /** 200 208 * Creates an instance of the model <b>Package</b>, registered with 201 209 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package … … 958 966 { 959 967 return (EAttribute)repeatedSequenceEClass.getEStructuralFeatures().get(1); 968 } 969 970 /** 971 * <!-- begin-user-doc --> 972 * <!-- end-user-doc --> 973 * @generated 974 */ 975 public EReference getRepeatedSequence_Range() 976 { 977 return (EReference)repeatedSequenceEClass.getEStructuralFeatures().get(2); 978 } 979 980 /** 981 * <!-- begin-user-doc --> 982 * <!-- end-user-doc --> 983 * @generated 984 */ 985 public EClass getRepeatRange() 986 { 987 return repeatRangeEClass; 988 } 989 990 /** 991 * <!-- begin-user-doc --> 992 * <!-- end-user-doc --> 993 * @generated 994 */ 995 public EAttribute getRepeatRange_From() 996 { 997 return (EAttribute)repeatRangeEClass.getEStructuralFeatures().get(0); 998 } 999 1000 /** 1001 * <!-- begin-user-doc --> 1002 * <!-- end-user-doc --> 1003 * @generated 1004 */ 1005 public EAttribute getRepeatRange_To() 1006 { 1007 return (EAttribute)repeatRangeEClass.getEStructuralFeatures().get(1); 960 1008 } 961 1009 … … 1081 1129 createEReference(repeatedSequenceEClass, REPEATED_SEQUENCE__DEFINITIONS); 1082 1130 createEAttribute(repeatedSequenceEClass, REPEATED_SEQUENCE__MORETHANONCE); 1131 createEReference(repeatedSequenceEClass, REPEATED_SEQUENCE__RANGE); 1132 1133 repeatRangeEClass = createEClass(REPEAT_RANGE); 1134 createEAttribute(repeatRangeEClass, REPEAT_RANGE__FROM); 1135 createEAttribute(repeatRangeEClass, REPEAT_RANGE__TO); 1083 1136 } 1084 1137 … … 1208 1261 initEReference(getRepeatedSequence_Definitions(), this.getDefinitionList(), null, "definitions", null, 0, -1, RepeatedSequence.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1209 1262 initEAttribute(getRepeatedSequence_Morethanonce(), ecorePackage.getEBoolean(), "morethanonce", null, 0, 1, RepeatedSequence.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1263 initEReference(getRepeatedSequence_Range(), this.getRepeatRange(), null, "range", null, 0, 1, RepeatedSequence.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1264 1265 initEClass(repeatRangeEClass, RepeatRange.class, "RepeatRange", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); 1266 initEAttribute(getRepeatRange_From(), ecorePackage.getEInt(), "from", null, 0, 1, RepeatRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1267 initEAttribute(getRepeatRange_To(), ecorePackage.getEInt(), "to", null, 0, 1, RepeatRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 1210 1268 1211 1269 // Create resource -
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/ebnf/impl/RepeatedSequenceImpl.java
r88 r95 5 5 import de.ugoe.cs.swe.bnftools.ebnf.DefinitionList; 6 6 import de.ugoe.cs.swe.bnftools.ebnf.EbnfPackage; 7 import de.ugoe.cs.swe.bnftools.ebnf.RepeatRange; 7 8 import de.ugoe.cs.swe.bnftools.ebnf.RepeatedSequence; 8 9 … … 32 33 * <li>{@link de.ugoe.cs.swe.bnftools.ebnf.impl.RepeatedSequenceImpl#getDefinitions <em>Definitions</em>}</li> 33 34 * <li>{@link de.ugoe.cs.swe.bnftools.ebnf.impl.RepeatedSequenceImpl#isMorethanonce <em>Morethanonce</em>}</li> 35 * <li>{@link de.ugoe.cs.swe.bnftools.ebnf.impl.RepeatedSequenceImpl#getRange <em>Range</em>}</li> 34 36 * </ul> 35 37 * </p> … … 70 72 71 73 /** 74 * The cached value of the '{@link #getRange() <em>Range</em>}' containment reference. 75 * <!-- begin-user-doc --> 76 * <!-- end-user-doc --> 77 * @see #getRange() 78 * @generated 79 * @ordered 80 */ 81 protected RepeatRange range; 82 83 /** 72 84 * <!-- begin-user-doc --> 73 85 * <!-- end-user-doc --> … … 132 144 * @generated 133 145 */ 146 public RepeatRange getRange() 147 { 148 return range; 149 } 150 151 /** 152 * <!-- begin-user-doc --> 153 * <!-- end-user-doc --> 154 * @generated 155 */ 156 public NotificationChain basicSetRange(RepeatRange newRange, NotificationChain msgs) 157 { 158 RepeatRange oldRange = range; 159 range = newRange; 160 if (eNotificationRequired()) 161 { 162 ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EbnfPackage.REPEATED_SEQUENCE__RANGE, oldRange, newRange); 163 if (msgs == null) msgs = notification; else msgs.add(notification); 164 } 165 return msgs; 166 } 167 168 /** 169 * <!-- begin-user-doc --> 170 * <!-- end-user-doc --> 171 * @generated 172 */ 173 public void setRange(RepeatRange newRange) 174 { 175 if (newRange != range) 176 { 177 NotificationChain msgs = null; 178 if (range != null) 179 msgs = ((InternalEObject)range).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EbnfPackage.REPEATED_SEQUENCE__RANGE, null, msgs); 180 if (newRange != null) 181 msgs = ((InternalEObject)newRange).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EbnfPackage.REPEATED_SEQUENCE__RANGE, null, msgs); 182 msgs = basicSetRange(newRange, msgs); 183 if (msgs != null) msgs.dispatch(); 184 } 185 else if (eNotificationRequired()) 186 eNotify(new ENotificationImpl(this, Notification.SET, EbnfPackage.REPEATED_SEQUENCE__RANGE, newRange, newRange)); 187 } 188 189 /** 190 * <!-- begin-user-doc --> 191 * <!-- end-user-doc --> 192 * @generated 193 */ 134 194 @Override 135 195 public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) … … 139 199 case EbnfPackage.REPEATED_SEQUENCE__DEFINITIONS: 140 200 return ((InternalEList<?>)getDefinitions()).basicRemove(otherEnd, msgs); 201 case EbnfPackage.REPEATED_SEQUENCE__RANGE: 202 return basicSetRange(null, msgs); 141 203 } 142 204 return super.eInverseRemove(otherEnd, featureID, msgs); … … 157 219 case EbnfPackage.REPEATED_SEQUENCE__MORETHANONCE: 158 220 return isMorethanonce(); 221 case EbnfPackage.REPEATED_SEQUENCE__RANGE: 222 return getRange(); 159 223 } 160 224 return super.eGet(featureID, resolve, coreType); … … 179 243 setMorethanonce((Boolean)newValue); 180 244 return; 245 case EbnfPackage.REPEATED_SEQUENCE__RANGE: 246 setRange((RepeatRange)newValue); 247 return; 181 248 } 182 249 super.eSet(featureID, newValue); … … 198 265 case EbnfPackage.REPEATED_SEQUENCE__MORETHANONCE: 199 266 setMorethanonce(MORETHANONCE_EDEFAULT); 267 return; 268 case EbnfPackage.REPEATED_SEQUENCE__RANGE: 269 setRange((RepeatRange)null); 200 270 return; 201 271 } … … 217 287 case EbnfPackage.REPEATED_SEQUENCE__MORETHANONCE: 218 288 return morethanonce != MORETHANONCE_EDEFAULT; 289 case EbnfPackage.REPEATED_SEQUENCE__RANGE: 290 return range != null; 219 291 } 220 292 return super.eIsSet(featureID); -
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/ebnf/util/EbnfAdapterFactory.java
r88 r95 186 186 } 187 187 @Override 188 public Adapter caseRepeatRange(RepeatRange object) 189 { 190 return createRepeatRangeAdapter(); 191 } 192 @Override 188 193 public Adapter defaultCase(EObject object) 189 194 { … … 538 543 539 544 /** 545 * Creates a new adapter for an object of class '{@link de.ugoe.cs.swe.bnftools.ebnf.RepeatRange <em>Repeat Range</em>}'. 546 * <!-- begin-user-doc --> 547 * This default implementation returns null so that we can easily ignore cases; 548 * it's useful to ignore a case when inheritance will catch all the cases anyway. 549 * <!-- end-user-doc --> 550 * @return the new adapter. 551 * @see de.ugoe.cs.swe.bnftools.ebnf.RepeatRange 552 * @generated 553 */ 554 public Adapter createRepeatRangeAdapter() 555 { 556 return null; 557 } 558 559 /** 540 560 * Creates a new adapter for the default case. 541 561 * <!-- begin-user-doc --> -
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/ebnf/util/EbnfSwitch.java
r88 r95 230 230 return result; 231 231 } 232 case EbnfPackage.REPEAT_RANGE: 233 { 234 RepeatRange repeatRange = (RepeatRange)theEObject; 235 T result = caseRepeatRange(repeatRange); 236 if (result == null) result = defaultCase(theEObject); 237 return result; 238 } 232 239 default: return defaultCase(theEObject); 233 240 } … … 587 594 588 595 /** 596 * Returns the result of interpreting the object as an instance of '<em>Repeat Range</em>'. 597 * <!-- begin-user-doc --> 598 * This implementation returns null; 599 * returning a non-null result will terminate the switch. 600 * <!-- end-user-doc --> 601 * @param object the target of the switch. 602 * @return the result of interpreting the object as an instance of '<em>Repeat Range</em>'. 603 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) 604 * @generated 605 */ 606 public T caseRepeatRange(RepeatRange object) 607 { 608 return null; 609 } 610 611 /** 589 612 * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. 590 613 * <!-- begin-user-doc -->
Note: See TracChangeset
for help on using the changeset viewer.