| 1 | /** |
| 2 | * <copyright> |
| 3 | * </copyright> |
| 4 | * |
| 5 | * $Id$ |
| 6 | */ |
| 7 | package EssentialOCL.util; |
| 8 | |
| 9 | import EMOF.DataType; |
| 10 | import EMOF.Element; |
| 11 | import EMOF.NamedElement; |
| 12 | import EMOF.Type; |
| 13 | import EMOF.TypedElement; |
| 14 | |
| 15 | import EssentialOCL.*; |
| 16 | |
| 17 | import java.util.List; |
| 18 | |
| 19 | import org.eclipse.emf.ecore.EClass; |
| 20 | import org.eclipse.emf.ecore.EObject; |
| 21 | |
| 22 | /** |
| 23 | * <!-- begin-user-doc --> |
| 24 | * The <b>Switch</b> for the model's inheritance hierarchy. |
| 25 | * It supports the call {@link #doSwitch(EObject) doSwitch(object)} |
| 26 | * to invoke the <code>caseXXX</code> method for each class of the model, |
| 27 | * starting with the actual class of the object |
| 28 | * and proceeding up the inheritance hierarchy |
| 29 | * until a non-null result is returned, |
| 30 | * which is the result of the switch. |
| 31 | * <!-- end-user-doc --> |
| 32 | * @see EssentialOCL.EssentialOCLPackage |
| 33 | * @generated |
| 34 | */ |
| 35 | public class EssentialOCLSwitch<T> { |
| 36 | /** |
| 37 | * The cached model package |
| 38 | * <!-- begin-user-doc --> |
| 39 | * <!-- end-user-doc --> |
| 40 | * @generated |
| 41 | */ |
| 42 | protected static EssentialOCLPackage modelPackage; |
| 43 | |
| 44 | /** |
| 45 | * Creates an instance of the switch. |
| 46 | * <!-- begin-user-doc --> |
| 47 | * <!-- end-user-doc --> |
| 48 | * @generated |
| 49 | */ |
| 50 | public EssentialOCLSwitch() { |
| 51 | if (modelPackage == null) { |
| 52 | modelPackage = EssentialOCLPackage.eINSTANCE; |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. |
| 58 | * <!-- begin-user-doc --> |
| 59 | * <!-- end-user-doc --> |
| 60 | * @return the first non-null result returned by a <code>caseXXX</code> call. |
| 61 | * @generated |
| 62 | */ |
| 63 | public T doSwitch(EObject theEObject) { |
| 64 | return doSwitch(theEObject.eClass(), theEObject); |
| 65 | } |
| 66 | |
| 67 | /** |
| 68 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. |
| 69 | * <!-- begin-user-doc --> |
| 70 | * <!-- end-user-doc --> |
| 71 | * @return the first non-null result returned by a <code>caseXXX</code> call. |
| 72 | * @generated |
| 73 | */ |
| 74 | protected T doSwitch(EClass theEClass, EObject theEObject) { |
| 75 | if (theEClass.eContainer() == modelPackage) { |
| 76 | return doSwitch(theEClass.getClassifierID(), theEObject); |
| 77 | } |
| 78 | else { |
| 79 | List<EClass> eSuperTypes = theEClass.getESuperTypes(); |
| 80 | return |
| 81 | eSuperTypes.isEmpty() ? |
| 82 | defaultCase(theEObject) : |
| 83 | doSwitch(eSuperTypes.get(0), theEObject); |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | /** |
| 88 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. |
| 89 | * <!-- begin-user-doc --> |
| 90 | * <!-- end-user-doc --> |
| 91 | * @return the first non-null result returned by a <code>caseXXX</code> call. |
| 92 | * @generated |
| 93 | */ |
| 94 | protected T doSwitch(int classifierID, EObject theEObject) { |
| 95 | switch (classifierID) { |
| 96 | case EssentialOCLPackage.ANY_TYPE: { |
| 97 | AnyType anyType = (AnyType)theEObject; |
| 98 | T result = caseAnyType(anyType); |
| 99 | if (result == null) result = caseType(anyType); |
| 100 | if (result == null) result = caseNamedElement(anyType); |
| 101 | if (result == null) result = caseElement(anyType); |
| 102 | if (result == null) result = caseObject(anyType); |
| 103 | if (result == null) result = defaultCase(theEObject); |
| 104 | return result; |
| 105 | } |
| 106 | case EssentialOCLPackage.BAG_TYPE: { |
| 107 | BagType bagType = (BagType)theEObject; |
| 108 | T result = caseBagType(bagType); |
| 109 | if (result == null) result = caseCollectionType(bagType); |
| 110 | if (result == null) result = caseDataType(bagType); |
| 111 | if (result == null) result = caseType(bagType); |
| 112 | if (result == null) result = caseNamedElement(bagType); |
| 113 | if (result == null) result = caseElement(bagType); |
| 114 | if (result == null) result = caseObject(bagType); |
| 115 | if (result == null) result = defaultCase(theEObject); |
| 116 | return result; |
| 117 | } |
| 118 | case EssentialOCLPackage.BOOLEAN_LITERAL_EXP: { |
| 119 | BooleanLiteralExp booleanLiteralExp = (BooleanLiteralExp)theEObject; |
| 120 | T result = caseBooleanLiteralExp(booleanLiteralExp); |
| 121 | if (result == null) result = casePrimitiveLiteralExp(booleanLiteralExp); |
| 122 | if (result == null) result = caseLiteralExp(booleanLiteralExp); |
| 123 | if (result == null) result = caseOclExpression(booleanLiteralExp); |
| 124 | if (result == null) result = caseTypedElement(booleanLiteralExp); |
| 125 | if (result == null) result = caseNamedElement(booleanLiteralExp); |
| 126 | if (result == null) result = caseElement(booleanLiteralExp); |
| 127 | if (result == null) result = caseObject(booleanLiteralExp); |
| 128 | if (result == null) result = defaultCase(theEObject); |
| 129 | return result; |
| 130 | } |
| 131 | case EssentialOCLPackage.CALL_EXP: { |
| 132 | CallExp callExp = (CallExp)theEObject; |
| 133 | T result = caseCallExp(callExp); |
| 134 | if (result == null) result = caseOclExpression(callExp); |
| 135 | if (result == null) result = caseTypedElement(callExp); |
| 136 | if (result == null) result = caseNamedElement(callExp); |
| 137 | if (result == null) result = caseElement(callExp); |
| 138 | if (result == null) result = caseObject(callExp); |
| 139 | if (result == null) result = defaultCase(theEObject); |
| 140 | return result; |
| 141 | } |
| 142 | case EssentialOCLPackage.COLLECTION_ITEM: { |
| 143 | CollectionItem collectionItem = (CollectionItem)theEObject; |
| 144 | T result = caseCollectionItem(collectionItem); |
| 145 | if (result == null) result = caseCollectionLiteralPart(collectionItem); |
| 146 | if (result == null) result = caseTypedElement(collectionItem); |
| 147 | if (result == null) result = caseNamedElement(collectionItem); |
| 148 | if (result == null) result = caseElement(collectionItem); |
| 149 | if (result == null) result = caseObject(collectionItem); |
| 150 | if (result == null) result = defaultCase(theEObject); |
| 151 | return result; |
| 152 | } |
| 153 | case EssentialOCLPackage.COLLECTION_LITERAL_EXP: { |
| 154 | CollectionLiteralExp collectionLiteralExp = (CollectionLiteralExp)theEObject; |
| 155 | T result = caseCollectionLiteralExp(collectionLiteralExp); |
| 156 | if (result == null) result = caseLiteralExp(collectionLiteralExp); |
| 157 | if (result == null) result = caseOclExpression(collectionLiteralExp); |
| 158 | if (result == null) result = caseTypedElement(collectionLiteralExp); |
| 159 | if (result == null) result = caseNamedElement(collectionLiteralExp); |
| 160 | if (result == null) result = caseElement(collectionLiteralExp); |
| 161 | if (result == null) result = caseObject(collectionLiteralExp); |
| 162 | if (result == null) result = defaultCase(theEObject); |
| 163 | return result; |
| 164 | } |
| 165 | case EssentialOCLPackage.COLLECTION_LITERAL_PART: { |
| 166 | CollectionLiteralPart collectionLiteralPart = (CollectionLiteralPart)theEObject; |
| 167 | T result = caseCollectionLiteralPart(collectionLiteralPart); |
| 168 | if (result == null) result = caseTypedElement(collectionLiteralPart); |
| 169 | if (result == null) result = caseNamedElement(collectionLiteralPart); |
| 170 | if (result == null) result = caseElement(collectionLiteralPart); |
| 171 | if (result == null) result = caseObject(collectionLiteralPart); |
| 172 | if (result == null) result = defaultCase(theEObject); |
| 173 | return result; |
| 174 | } |
| 175 | case EssentialOCLPackage.COLLECTION_RANGE: { |
| 176 | CollectionRange collectionRange = (CollectionRange)theEObject; |
| 177 | T result = caseCollectionRange(collectionRange); |
| 178 | if (result == null) result = caseCollectionLiteralPart(collectionRange); |
| 179 | if (result == null) result = caseTypedElement(collectionRange); |
| 180 | if (result == null) result = caseNamedElement(collectionRange); |
| 181 | if (result == null) result = caseElement(collectionRange); |
| 182 | if (result == null) result = caseObject(collectionRange); |
| 183 | if (result == null) result = defaultCase(theEObject); |
| 184 | return result; |
| 185 | } |
| 186 | case EssentialOCLPackage.COLLECTION_TYPE: { |
| 187 | CollectionType collectionType = (CollectionType)theEObject; |
| 188 | T result = caseCollectionType(collectionType); |
| 189 | if (result == null) result = caseDataType(collectionType); |
| 190 | if (result == null) result = caseType(collectionType); |
| 191 | if (result == null) result = caseNamedElement(collectionType); |
| 192 | if (result == null) result = caseElement(collectionType); |
| 193 | if (result == null) result = caseObject(collectionType); |
| 194 | if (result == null) result = defaultCase(theEObject); |
| 195 | return result; |
| 196 | } |
| 197 | case EssentialOCLPackage.ENUM_LITERAL_EXP: { |
| 198 | EnumLiteralExp enumLiteralExp = (EnumLiteralExp)theEObject; |
| 199 | T result = caseEnumLiteralExp(enumLiteralExp); |
| 200 | if (result == null) result = caseLiteralExp(enumLiteralExp); |
| 201 | if (result == null) result = caseOclExpression(enumLiteralExp); |
| 202 | if (result == null) result = caseTypedElement(enumLiteralExp); |
| 203 | if (result == null) result = caseNamedElement(enumLiteralExp); |
| 204 | if (result == null) result = caseElement(enumLiteralExp); |
| 205 | if (result == null) result = caseObject(enumLiteralExp); |
| 206 | if (result == null) result = defaultCase(theEObject); |
| 207 | return result; |
| 208 | } |
| 209 | case EssentialOCLPackage.EXPRESSION_IN_OCL: { |
| 210 | ExpressionInOcl expressionInOcl = (ExpressionInOcl)theEObject; |
| 211 | T result = caseExpressionInOcl(expressionInOcl); |
| 212 | if (result == null) result = caseTypedElement(expressionInOcl); |
| 213 | if (result == null) result = caseNamedElement(expressionInOcl); |
| 214 | if (result == null) result = caseElement(expressionInOcl); |
| 215 | if (result == null) result = caseObject(expressionInOcl); |
| 216 | if (result == null) result = defaultCase(theEObject); |
| 217 | return result; |
| 218 | } |
| 219 | case EssentialOCLPackage.FEATURE_CALL_EXP: { |
| 220 | FeatureCallExp featureCallExp = (FeatureCallExp)theEObject; |
| 221 | T result = caseFeatureCallExp(featureCallExp); |
| 222 | if (result == null) result = caseCallExp(featureCallExp); |
| 223 | if (result == null) result = caseOclExpression(featureCallExp); |
| 224 | if (result == null) result = caseTypedElement(featureCallExp); |
| 225 | if (result == null) result = caseNamedElement(featureCallExp); |
| 226 | if (result == null) result = caseElement(featureCallExp); |
| 227 | if (result == null) result = caseObject(featureCallExp); |
| 228 | if (result == null) result = defaultCase(theEObject); |
| 229 | return result; |
| 230 | } |
| 231 | case EssentialOCLPackage.IF_EXP: { |
| 232 | IfExp ifExp = (IfExp)theEObject; |
| 233 | T result = caseIfExp(ifExp); |
| 234 | if (result == null) result = caseOclExpression(ifExp); |
| 235 | if (result == null) result = caseTypedElement(ifExp); |
| 236 | if (result == null) result = caseNamedElement(ifExp); |
| 237 | if (result == null) result = caseElement(ifExp); |
| 238 | if (result == null) result = caseObject(ifExp); |
| 239 | if (result == null) result = defaultCase(theEObject); |
| 240 | return result; |
| 241 | } |
| 242 | case EssentialOCLPackage.INTEGER_LITERAL_EXP: { |
| 243 | IntegerLiteralExp integerLiteralExp = (IntegerLiteralExp)theEObject; |
| 244 | T result = caseIntegerLiteralExp(integerLiteralExp); |
| 245 | if (result == null) result = caseNumericLiteralExp(integerLiteralExp); |
| 246 | if (result == null) result = casePrimitiveLiteralExp(integerLiteralExp); |
| 247 | if (result == null) result = caseLiteralExp(integerLiteralExp); |
| 248 | if (result == null) result = caseOclExpression(integerLiteralExp); |
| 249 | if (result == null) result = caseTypedElement(integerLiteralExp); |
| 250 | if (result == null) result = caseNamedElement(integerLiteralExp); |
| 251 | if (result == null) result = caseElement(integerLiteralExp); |
| 252 | if (result == null) result = caseObject(integerLiteralExp); |
| 253 | if (result == null) result = defaultCase(theEObject); |
| 254 | return result; |
| 255 | } |
| 256 | case EssentialOCLPackage.INVALID_LITERAL_EXP: { |
| 257 | InvalidLiteralExp invalidLiteralExp = (InvalidLiteralExp)theEObject; |
| 258 | T result = caseInvalidLiteralExp(invalidLiteralExp); |
| 259 | if (result == null) result = caseLiteralExp(invalidLiteralExp); |
| 260 | if (result == null) result = caseOclExpression(invalidLiteralExp); |
| 261 | if (result == null) result = caseTypedElement(invalidLiteralExp); |
| 262 | if (result == null) result = caseNamedElement(invalidLiteralExp); |
| 263 | if (result == null) result = caseElement(invalidLiteralExp); |
| 264 | if (result == null) result = caseObject(invalidLiteralExp); |
| 265 | if (result == null) result = defaultCase(theEObject); |
| 266 | return result; |
| 267 | } |
| 268 | case EssentialOCLPackage.INVALID_TYPE: { |
| 269 | InvalidType invalidType = (InvalidType)theEObject; |
| 270 | T result = caseInvalidType(invalidType); |
| 271 | if (result == null) result = caseType(invalidType); |
| 272 | if (result == null) result = caseNamedElement(invalidType); |
| 273 | if (result == null) result = caseElement(invalidType); |
| 274 | if (result == null) result = caseObject(invalidType); |
| 275 | if (result == null) result = defaultCase(theEObject); |
| 276 | return result; |
| 277 | } |
| 278 | case EssentialOCLPackage.ITERATE_EXP: { |
| 279 | IterateExp iterateExp = (IterateExp)theEObject; |
| 280 | T result = caseIterateExp(iterateExp); |
| 281 | if (result == null) result = caseLoopExp(iterateExp); |
| 282 | if (result == null) result = caseCallExp(iterateExp); |
| 283 | if (result == null) result = caseOclExpression(iterateExp); |
| 284 | if (result == null) result = caseTypedElement(iterateExp); |
| 285 | if (result == null) result = caseNamedElement(iterateExp); |
| 286 | if (result == null) result = caseElement(iterateExp); |
| 287 | if (result == null) result = caseObject(iterateExp); |
| 288 | if (result == null) result = defaultCase(theEObject); |
| 289 | return result; |
| 290 | } |
| 291 | case EssentialOCLPackage.ITERATOR_EXP: { |
| 292 | IteratorExp iteratorExp = (IteratorExp)theEObject; |
| 293 | T result = caseIteratorExp(iteratorExp); |
| 294 | if (result == null) result = caseLoopExp(iteratorExp); |
| 295 | if (result == null) result = caseCallExp(iteratorExp); |
| 296 | if (result == null) result = caseOclExpression(iteratorExp); |
| 297 | if (result == null) result = caseTypedElement(iteratorExp); |
| 298 | if (result == null) result = caseNamedElement(iteratorExp); |
| 299 | if (result == null) result = caseElement(iteratorExp); |
| 300 | if (result == null) result = caseObject(iteratorExp); |
| 301 | if (result == null) result = defaultCase(theEObject); |
| 302 | return result; |
| 303 | } |
| 304 | case EssentialOCLPackage.LET_EXP: { |
| 305 | LetExp letExp = (LetExp)theEObject; |
| 306 | T result = caseLetExp(letExp); |
| 307 | if (result == null) result = caseOclExpression(letExp); |
| 308 | if (result == null) result = caseTypedElement(letExp); |
| 309 | if (result == null) result = caseNamedElement(letExp); |
| 310 | if (result == null) result = caseElement(letExp); |
| 311 | if (result == null) result = caseObject(letExp); |
| 312 | if (result == null) result = defaultCase(theEObject); |
| 313 | return result; |
| 314 | } |
| 315 | case EssentialOCLPackage.LITERAL_EXP: { |
| 316 | LiteralExp literalExp = (LiteralExp)theEObject; |
| 317 | T result = caseLiteralExp(literalExp); |
| 318 | if (result == null) result = caseOclExpression(literalExp); |
| 319 | if (result == null) result = caseTypedElement(literalExp); |
| 320 | if (result == null) result = caseNamedElement(literalExp); |
| 321 | if (result == null) result = caseElement(literalExp); |
| 322 | if (result == null) result = caseObject(literalExp); |
| 323 | if (result == null) result = defaultCase(theEObject); |
| 324 | return result; |
| 325 | } |
| 326 | case EssentialOCLPackage.LOOP_EXP: { |
| 327 | LoopExp loopExp = (LoopExp)theEObject; |
| 328 | T result = caseLoopExp(loopExp); |
| 329 | if (result == null) result = caseCallExp(loopExp); |
| 330 | if (result == null) result = caseOclExpression(loopExp); |
| 331 | if (result == null) result = caseTypedElement(loopExp); |
| 332 | if (result == null) result = caseNamedElement(loopExp); |
| 333 | if (result == null) result = caseElement(loopExp); |
| 334 | if (result == null) result = caseObject(loopExp); |
| 335 | if (result == null) result = defaultCase(theEObject); |
| 336 | return result; |
| 337 | } |
| 338 | case EssentialOCLPackage.NAVIGATION_CALL_EXP: { |
| 339 | NavigationCallExp navigationCallExp = (NavigationCallExp)theEObject; |
| 340 | T result = caseNavigationCallExp(navigationCallExp); |
| 341 | if (result == null) result = caseFeatureCallExp(navigationCallExp); |
| 342 | if (result == null) result = caseCallExp(navigationCallExp); |
| 343 | if (result == null) result = caseOclExpression(navigationCallExp); |
| 344 | if (result == null) result = caseTypedElement(navigationCallExp); |
| 345 | if (result == null) result = caseNamedElement(navigationCallExp); |
| 346 | if (result == null) result = caseElement(navigationCallExp); |
| 347 | if (result == null) result = caseObject(navigationCallExp); |
| 348 | if (result == null) result = defaultCase(theEObject); |
| 349 | return result; |
| 350 | } |
| 351 | case EssentialOCLPackage.NULL_LITERAL_EXP: { |
| 352 | NullLiteralExp nullLiteralExp = (NullLiteralExp)theEObject; |
| 353 | T result = caseNullLiteralExp(nullLiteralExp); |
| 354 | if (result == null) result = caseLiteralExp(nullLiteralExp); |
| 355 | if (result == null) result = caseOclExpression(nullLiteralExp); |
| 356 | if (result == null) result = caseTypedElement(nullLiteralExp); |
| 357 | if (result == null) result = caseNamedElement(nullLiteralExp); |
| 358 | if (result == null) result = caseElement(nullLiteralExp); |
| 359 | if (result == null) result = caseObject(nullLiteralExp); |
| 360 | if (result == null) result = defaultCase(theEObject); |
| 361 | return result; |
| 362 | } |
| 363 | case EssentialOCLPackage.NUMERIC_LITERAL_EXP: { |
| 364 | NumericLiteralExp numericLiteralExp = (NumericLiteralExp)theEObject; |
| 365 | T result = caseNumericLiteralExp(numericLiteralExp); |
| 366 | if (result == null) result = casePrimitiveLiteralExp(numericLiteralExp); |
| 367 | if (result == null) result = caseLiteralExp(numericLiteralExp); |
| 368 | if (result == null) result = caseOclExpression(numericLiteralExp); |
| 369 | if (result == null) result = caseTypedElement(numericLiteralExp); |
| 370 | if (result == null) result = caseNamedElement(numericLiteralExp); |
| 371 | if (result == null) result = caseElement(numericLiteralExp); |
| 372 | if (result == null) result = caseObject(numericLiteralExp); |
| 373 | if (result == null) result = defaultCase(theEObject); |
| 374 | return result; |
| 375 | } |
| 376 | case EssentialOCLPackage.OCL_EXPRESSION: { |
| 377 | OclExpression oclExpression = (OclExpression)theEObject; |
| 378 | T result = caseOclExpression(oclExpression); |
| 379 | if (result == null) result = caseTypedElement(oclExpression); |
| 380 | if (result == null) result = caseNamedElement(oclExpression); |
| 381 | if (result == null) result = caseElement(oclExpression); |
| 382 | if (result == null) result = caseObject(oclExpression); |
| 383 | if (result == null) result = defaultCase(theEObject); |
| 384 | return result; |
| 385 | } |
| 386 | case EssentialOCLPackage.OPERATION_CALL_EXP: { |
| 387 | OperationCallExp operationCallExp = (OperationCallExp)theEObject; |
| 388 | T result = caseOperationCallExp(operationCallExp); |
| 389 | if (result == null) result = caseFeatureCallExp(operationCallExp); |
| 390 | if (result == null) result = caseCallExp(operationCallExp); |
| 391 | if (result == null) result = caseOclExpression(operationCallExp); |
| 392 | if (result == null) result = caseTypedElement(operationCallExp); |
| 393 | if (result == null) result = caseNamedElement(operationCallExp); |
| 394 | if (result == null) result = caseElement(operationCallExp); |
| 395 | if (result == null) result = caseObject(operationCallExp); |
| 396 | if (result == null) result = defaultCase(theEObject); |
| 397 | return result; |
| 398 | } |
| 399 | case EssentialOCLPackage.ORDERED_SET_TYPE: { |
| 400 | OrderedSetType orderedSetType = (OrderedSetType)theEObject; |
| 401 | T result = caseOrderedSetType(orderedSetType); |
| 402 | if (result == null) result = caseCollectionType(orderedSetType); |
| 403 | if (result == null) result = caseDataType(orderedSetType); |
| 404 | if (result == null) result = caseType(orderedSetType); |
| 405 | if (result == null) result = caseNamedElement(orderedSetType); |
| 406 | if (result == null) result = caseElement(orderedSetType); |
| 407 | if (result == null) result = caseObject(orderedSetType); |
| 408 | if (result == null) result = defaultCase(theEObject); |
| 409 | return result; |
| 410 | } |
| 411 | case EssentialOCLPackage.PRIMITIVE_LITERAL_EXP: { |
| 412 | PrimitiveLiteralExp primitiveLiteralExp = (PrimitiveLiteralExp)theEObject; |
| 413 | T result = casePrimitiveLiteralExp(primitiveLiteralExp); |
| 414 | if (result == null) result = caseLiteralExp(primitiveLiteralExp); |
| 415 | if (result == null) result = caseOclExpression(primitiveLiteralExp); |
| 416 | if (result == null) result = caseTypedElement(primitiveLiteralExp); |
| 417 | if (result == null) result = caseNamedElement(primitiveLiteralExp); |
| 418 | if (result == null) result = caseElement(primitiveLiteralExp); |
| 419 | if (result == null) result = caseObject(primitiveLiteralExp); |
| 420 | if (result == null) result = defaultCase(theEObject); |
| 421 | return result; |
| 422 | } |
| 423 | case EssentialOCLPackage.PROPERTY_CALL_EXP: { |
| 424 | PropertyCallExp propertyCallExp = (PropertyCallExp)theEObject; |
| 425 | T result = casePropertyCallExp(propertyCallExp); |
| 426 | if (result == null) result = caseNavigationCallExp(propertyCallExp); |
| 427 | if (result == null) result = caseFeatureCallExp(propertyCallExp); |
| 428 | if (result == null) result = caseCallExp(propertyCallExp); |
| 429 | if (result == null) result = caseOclExpression(propertyCallExp); |
| 430 | if (result == null) result = caseTypedElement(propertyCallExp); |
| 431 | if (result == null) result = caseNamedElement(propertyCallExp); |
| 432 | if (result == null) result = caseElement(propertyCallExp); |
| 433 | if (result == null) result = caseObject(propertyCallExp); |
| 434 | if (result == null) result = defaultCase(theEObject); |
| 435 | return result; |
| 436 | } |
| 437 | case EssentialOCLPackage.REAL_LITERAL_EXP: { |
| 438 | RealLiteralExp realLiteralExp = (RealLiteralExp)theEObject; |
| 439 | T result = caseRealLiteralExp(realLiteralExp); |
| 440 | if (result == null) result = caseNumericLiteralExp(realLiteralExp); |
| 441 | if (result == null) result = casePrimitiveLiteralExp(realLiteralExp); |
| 442 | if (result == null) result = caseLiteralExp(realLiteralExp); |
| 443 | if (result == null) result = caseOclExpression(realLiteralExp); |
| 444 | if (result == null) result = caseTypedElement(realLiteralExp); |
| 445 | if (result == null) result = caseNamedElement(realLiteralExp); |
| 446 | if (result == null) result = caseElement(realLiteralExp); |
| 447 | if (result == null) result = caseObject(realLiteralExp); |
| 448 | if (result == null) result = defaultCase(theEObject); |
| 449 | return result; |
| 450 | } |
| 451 | case EssentialOCLPackage.SEQUENCE_TYPE: { |
| 452 | SequenceType sequenceType = (SequenceType)theEObject; |
| 453 | T result = caseSequenceType(sequenceType); |
| 454 | if (result == null) result = caseCollectionType(sequenceType); |
| 455 | if (result == null) result = caseDataType(sequenceType); |
| 456 | if (result == null) result = caseType(sequenceType); |
| 457 | if (result == null) result = caseNamedElement(sequenceType); |
| 458 | if (result == null) result = caseElement(sequenceType); |
| 459 | if (result == null) result = caseObject(sequenceType); |
| 460 | if (result == null) result = defaultCase(theEObject); |
| 461 | return result; |
| 462 | } |
| 463 | case EssentialOCLPackage.SET_TYPE: { |
| 464 | SetType setType = (SetType)theEObject; |
| 465 | T result = caseSetType(setType); |
| 466 | if (result == null) result = caseCollectionType(setType); |
| 467 | if (result == null) result = caseDataType(setType); |
| 468 | if (result == null) result = caseType(setType); |
| 469 | if (result == null) result = caseNamedElement(setType); |
| 470 | if (result == null) result = caseElement(setType); |
| 471 | if (result == null) result = caseObject(setType); |
| 472 | if (result == null) result = defaultCase(theEObject); |
| 473 | return result; |
| 474 | } |
| 475 | case EssentialOCLPackage.STRING_LITERAL_EXP: { |
| 476 | StringLiteralExp stringLiteralExp = (StringLiteralExp)theEObject; |
| 477 | T result = caseStringLiteralExp(stringLiteralExp); |
| 478 | if (result == null) result = casePrimitiveLiteralExp(stringLiteralExp); |
| 479 | if (result == null) result = caseLiteralExp(stringLiteralExp); |
| 480 | if (result == null) result = caseOclExpression(stringLiteralExp); |
| 481 | if (result == null) result = caseTypedElement(stringLiteralExp); |
| 482 | if (result == null) result = caseNamedElement(stringLiteralExp); |
| 483 | if (result == null) result = caseElement(stringLiteralExp); |
| 484 | if (result == null) result = caseObject(stringLiteralExp); |
| 485 | if (result == null) result = defaultCase(theEObject); |
| 486 | return result; |
| 487 | } |
| 488 | case EssentialOCLPackage.TUPLE_LITERAL_EXP: { |
| 489 | TupleLiteralExp tupleLiteralExp = (TupleLiteralExp)theEObject; |
| 490 | T result = caseTupleLiteralExp(tupleLiteralExp); |
| 491 | if (result == null) result = caseLiteralExp(tupleLiteralExp); |
| 492 | if (result == null) result = caseOclExpression(tupleLiteralExp); |
| 493 | if (result == null) result = caseTypedElement(tupleLiteralExp); |
| 494 | if (result == null) result = caseNamedElement(tupleLiteralExp); |
| 495 | if (result == null) result = caseElement(tupleLiteralExp); |
| 496 | if (result == null) result = caseObject(tupleLiteralExp); |
| 497 | if (result == null) result = defaultCase(theEObject); |
| 498 | return result; |
| 499 | } |
| 500 | case EssentialOCLPackage.TUPLE_LITERAL_PART: { |
| 501 | TupleLiteralPart tupleLiteralPart = (TupleLiteralPart)theEObject; |
| 502 | T result = caseTupleLiteralPart(tupleLiteralPart); |
| 503 | if (result == null) result = caseTypedElement(tupleLiteralPart); |
| 504 | if (result == null) result = caseNamedElement(tupleLiteralPart); |
| 505 | if (result == null) result = caseElement(tupleLiteralPart); |
| 506 | if (result == null) result = caseObject(tupleLiteralPart); |
| 507 | if (result == null) result = defaultCase(theEObject); |
| 508 | return result; |
| 509 | } |
| 510 | case EssentialOCLPackage.TUPLE_TYPE: { |
| 511 | TupleType tupleType = (TupleType)theEObject; |
| 512 | T result = caseTupleType(tupleType); |
| 513 | if (result == null) result = caseClass(tupleType); |
| 514 | if (result == null) result = caseDataType(tupleType); |
| 515 | if (result == null) result = caseType(tupleType); |
| 516 | if (result == null) result = caseNamedElement(tupleType); |
| 517 | if (result == null) result = caseElement(tupleType); |
| 518 | if (result == null) result = caseObject(tupleType); |
| 519 | if (result == null) result = defaultCase(theEObject); |
| 520 | return result; |
| 521 | } |
| 522 | case EssentialOCLPackage.TYPE_EXP: { |
| 523 | TypeExp typeExp = (TypeExp)theEObject; |
| 524 | T result = caseTypeExp(typeExp); |
| 525 | if (result == null) result = caseOclExpression(typeExp); |
| 526 | if (result == null) result = caseTypedElement(typeExp); |
| 527 | if (result == null) result = caseNamedElement(typeExp); |
| 528 | if (result == null) result = caseElement(typeExp); |
| 529 | if (result == null) result = caseObject(typeExp); |
| 530 | if (result == null) result = defaultCase(theEObject); |
| 531 | return result; |
| 532 | } |
| 533 | case EssentialOCLPackage.TYPE_TYPE: { |
| 534 | TypeType typeType = (TypeType)theEObject; |
| 535 | T result = caseTypeType(typeType); |
| 536 | if (result == null) result = caseType(typeType); |
| 537 | if (result == null) result = caseNamedElement(typeType); |
| 538 | if (result == null) result = caseElement(typeType); |
| 539 | if (result == null) result = caseObject(typeType); |
| 540 | if (result == null) result = defaultCase(theEObject); |
| 541 | return result; |
| 542 | } |
| 543 | case EssentialOCLPackage.UNLIMITED_NATURAL_EXP: { |
| 544 | UnlimitedNaturalExp unlimitedNaturalExp = (UnlimitedNaturalExp)theEObject; |
| 545 | T result = caseUnlimitedNaturalExp(unlimitedNaturalExp); |
| 546 | if (result == null) result = caseNumericLiteralExp(unlimitedNaturalExp); |
| 547 | if (result == null) result = casePrimitiveLiteralExp(unlimitedNaturalExp); |
| 548 | if (result == null) result = caseLiteralExp(unlimitedNaturalExp); |
| 549 | if (result == null) result = caseOclExpression(unlimitedNaturalExp); |
| 550 | if (result == null) result = caseTypedElement(unlimitedNaturalExp); |
| 551 | if (result == null) result = caseNamedElement(unlimitedNaturalExp); |
| 552 | if (result == null) result = caseElement(unlimitedNaturalExp); |
| 553 | if (result == null) result = caseObject(unlimitedNaturalExp); |
| 554 | if (result == null) result = defaultCase(theEObject); |
| 555 | return result; |
| 556 | } |
| 557 | case EssentialOCLPackage.VARIABLE: { |
| 558 | Variable variable = (Variable)theEObject; |
| 559 | T result = caseVariable(variable); |
| 560 | if (result == null) result = caseTypedElement(variable); |
| 561 | if (result == null) result = caseNamedElement(variable); |
| 562 | if (result == null) result = caseElement(variable); |
| 563 | if (result == null) result = caseObject(variable); |
| 564 | if (result == null) result = defaultCase(theEObject); |
| 565 | return result; |
| 566 | } |
| 567 | case EssentialOCLPackage.VARIABLE_EXP: { |
| 568 | VariableExp variableExp = (VariableExp)theEObject; |
| 569 | T result = caseVariableExp(variableExp); |
| 570 | if (result == null) result = caseOclExpression(variableExp); |
| 571 | if (result == null) result = caseTypedElement(variableExp); |
| 572 | if (result == null) result = caseNamedElement(variableExp); |
| 573 | if (result == null) result = caseElement(variableExp); |
| 574 | if (result == null) result = caseObject(variableExp); |
| 575 | if (result == null) result = defaultCase(theEObject); |
| 576 | return result; |
| 577 | } |
| 578 | case EssentialOCLPackage.VOID_TYPE: { |
| 579 | VoidType voidType = (VoidType)theEObject; |
| 580 | T result = caseVoidType(voidType); |
| 581 | if (result == null) result = caseType(voidType); |
| 582 | if (result == null) result = caseNamedElement(voidType); |
| 583 | if (result == null) result = caseElement(voidType); |
| 584 | if (result == null) result = caseObject(voidType); |
| 585 | if (result == null) result = defaultCase(theEObject); |
| 586 | return result; |
| 587 | } |
| 588 | default: return defaultCase(theEObject); |
| 589 | } |
| 590 | } |
| 591 | |
| 592 | /** |
| 593 | * Returns the result of interpreting the object as an instance of '<em>Any Type</em>'. |
| 594 | * <!-- begin-user-doc --> |
| 595 | * This implementation returns null; |
| 596 | * returning a non-null result will terminate the switch. |
| 597 | * <!-- end-user-doc --> |
| 598 | * @param object the target of the switch. |
| 599 | * @return the result of interpreting the object as an instance of '<em>Any Type</em>'. |
| 600 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 601 | * @generated |
| 602 | */ |
| 603 | public T caseAnyType(AnyType object) { |
| 604 | return null; |
| 605 | } |
| 606 | |
| 607 | /** |
| 608 | * Returns the result of interpreting the object as an instance of '<em>Bag Type</em>'. |
| 609 | * <!-- begin-user-doc --> |
| 610 | * This implementation returns null; |
| 611 | * returning a non-null result will terminate the switch. |
| 612 | * <!-- end-user-doc --> |
| 613 | * @param object the target of the switch. |
| 614 | * @return the result of interpreting the object as an instance of '<em>Bag Type</em>'. |
| 615 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 616 | * @generated |
| 617 | */ |
| 618 | public T caseBagType(BagType object) { |
| 619 | return null; |
| 620 | } |
| 621 | |
| 622 | /** |
| 623 | * Returns the result of interpreting the object as an instance of '<em>Boolean Literal Exp</em>'. |
| 624 | * <!-- begin-user-doc --> |
| 625 | * This implementation returns null; |
| 626 | * returning a non-null result will terminate the switch. |
| 627 | * <!-- end-user-doc --> |
| 628 | * @param object the target of the switch. |
| 629 | * @return the result of interpreting the object as an instance of '<em>Boolean Literal Exp</em>'. |
| 630 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 631 | * @generated |
| 632 | */ |
| 633 | public T caseBooleanLiteralExp(BooleanLiteralExp object) { |
| 634 | return null; |
| 635 | } |
| 636 | |
| 637 | /** |
| 638 | * Returns the result of interpreting the object as an instance of '<em>Call Exp</em>'. |
| 639 | * <!-- begin-user-doc --> |
| 640 | * This implementation returns null; |
| 641 | * returning a non-null result will terminate the switch. |
| 642 | * <!-- end-user-doc --> |
| 643 | * @param object the target of the switch. |
| 644 | * @return the result of interpreting the object as an instance of '<em>Call Exp</em>'. |
| 645 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 646 | * @generated |
| 647 | */ |
| 648 | public T caseCallExp(CallExp object) { |
| 649 | return null; |
| 650 | } |
| 651 | |
| 652 | /** |
| 653 | * Returns the result of interpreting the object as an instance of '<em>Collection Item</em>'. |
| 654 | * <!-- begin-user-doc --> |
| 655 | * This implementation returns null; |
| 656 | * returning a non-null result will terminate the switch. |
| 657 | * <!-- end-user-doc --> |
| 658 | * @param object the target of the switch. |
| 659 | * @return the result of interpreting the object as an instance of '<em>Collection Item</em>'. |
| 660 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 661 | * @generated |
| 662 | */ |
| 663 | public T caseCollectionItem(CollectionItem object) { |
| 664 | return null; |
| 665 | } |
| 666 | |
| 667 | /** |
| 668 | * Returns the result of interpreting the object as an instance of '<em>Collection Literal Exp</em>'. |
| 669 | * <!-- begin-user-doc --> |
| 670 | * This implementation returns null; |
| 671 | * returning a non-null result will terminate the switch. |
| 672 | * <!-- end-user-doc --> |
| 673 | * @param object the target of the switch. |
| 674 | * @return the result of interpreting the object as an instance of '<em>Collection Literal Exp</em>'. |
| 675 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 676 | * @generated |
| 677 | */ |
| 678 | public T caseCollectionLiteralExp(CollectionLiteralExp object) { |
| 679 | return null; |
| 680 | } |
| 681 | |
| 682 | /** |
| 683 | * Returns the result of interpreting the object as an instance of '<em>Collection Literal Part</em>'. |
| 684 | * <!-- begin-user-doc --> |
| 685 | * This implementation returns null; |
| 686 | * returning a non-null result will terminate the switch. |
| 687 | * <!-- end-user-doc --> |
| 688 | * @param object the target of the switch. |
| 689 | * @return the result of interpreting the object as an instance of '<em>Collection Literal Part</em>'. |
| 690 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 691 | * @generated |
| 692 | */ |
| 693 | public T caseCollectionLiteralPart(CollectionLiteralPart object) { |
| 694 | return null; |
| 695 | } |
| 696 | |
| 697 | /** |
| 698 | * Returns the result of interpreting the object as an instance of '<em>Collection Range</em>'. |
| 699 | * <!-- begin-user-doc --> |
| 700 | * This implementation returns null; |
| 701 | * returning a non-null result will terminate the switch. |
| 702 | * <!-- end-user-doc --> |
| 703 | * @param object the target of the switch. |
| 704 | * @return the result of interpreting the object as an instance of '<em>Collection Range</em>'. |
| 705 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 706 | * @generated |
| 707 | */ |
| 708 | public T caseCollectionRange(CollectionRange object) { |
| 709 | return null; |
| 710 | } |
| 711 | |
| 712 | /** |
| 713 | * Returns the result of interpreting the object as an instance of '<em>Collection Type</em>'. |
| 714 | * <!-- begin-user-doc --> |
| 715 | * This implementation returns null; |
| 716 | * returning a non-null result will terminate the switch. |
| 717 | * <!-- end-user-doc --> |
| 718 | * @param object the target of the switch. |
| 719 | * @return the result of interpreting the object as an instance of '<em>Collection Type</em>'. |
| 720 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 721 | * @generated |
| 722 | */ |
| 723 | public T caseCollectionType(CollectionType object) { |
| 724 | return null; |
| 725 | } |
| 726 | |
| 727 | /** |
| 728 | * Returns the result of interpreting the object as an instance of '<em>Enum Literal Exp</em>'. |
| 729 | * <!-- begin-user-doc --> |
| 730 | * This implementation returns null; |
| 731 | * returning a non-null result will terminate the switch. |
| 732 | * <!-- end-user-doc --> |
| 733 | * @param object the target of the switch. |
| 734 | * @return the result of interpreting the object as an instance of '<em>Enum Literal Exp</em>'. |
| 735 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 736 | * @generated |
| 737 | */ |
| 738 | public T caseEnumLiteralExp(EnumLiteralExp object) { |
| 739 | return null; |
| 740 | } |
| 741 | |
| 742 | /** |
| 743 | * Returns the result of interpreting the object as an instance of '<em>Expression In Ocl</em>'. |
| 744 | * <!-- begin-user-doc --> |
| 745 | * This implementation returns null; |
| 746 | * returning a non-null result will terminate the switch. |
| 747 | * <!-- end-user-doc --> |
| 748 | * @param object the target of the switch. |
| 749 | * @return the result of interpreting the object as an instance of '<em>Expression In Ocl</em>'. |
| 750 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 751 | * @generated |
| 752 | */ |
| 753 | public T caseExpressionInOcl(ExpressionInOcl object) { |
| 754 | return null; |
| 755 | } |
| 756 | |
| 757 | /** |
| 758 | * Returns the result of interpreting the object as an instance of '<em>Feature Call Exp</em>'. |
| 759 | * <!-- begin-user-doc --> |
| 760 | * This implementation returns null; |
| 761 | * returning a non-null result will terminate the switch. |
| 762 | * <!-- end-user-doc --> |
| 763 | * @param object the target of the switch. |
| 764 | * @return the result of interpreting the object as an instance of '<em>Feature Call Exp</em>'. |
| 765 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 766 | * @generated |
| 767 | */ |
| 768 | public T caseFeatureCallExp(FeatureCallExp object) { |
| 769 | return null; |
| 770 | } |
| 771 | |
| 772 | /** |
| 773 | * Returns the result of interpreting the object as an instance of '<em>If Exp</em>'. |
| 774 | * <!-- begin-user-doc --> |
| 775 | * This implementation returns null; |
| 776 | * returning a non-null result will terminate the switch. |
| 777 | * <!-- end-user-doc --> |
| 778 | * @param object the target of the switch. |
| 779 | * @return the result of interpreting the object as an instance of '<em>If Exp</em>'. |
| 780 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 781 | * @generated |
| 782 | */ |
| 783 | public T caseIfExp(IfExp object) { |
| 784 | return null; |
| 785 | } |
| 786 | |
| 787 | /** |
| 788 | * Returns the result of interpreting the object as an instance of '<em>Integer Literal Exp</em>'. |
| 789 | * <!-- begin-user-doc --> |
| 790 | * This implementation returns null; |
| 791 | * returning a non-null result will terminate the switch. |
| 792 | * <!-- end-user-doc --> |
| 793 | * @param object the target of the switch. |
| 794 | * @return the result of interpreting the object as an instance of '<em>Integer Literal Exp</em>'. |
| 795 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 796 | * @generated |
| 797 | */ |
| 798 | public T caseIntegerLiteralExp(IntegerLiteralExp object) { |
| 799 | return null; |
| 800 | } |
| 801 | |
| 802 | /** |
| 803 | * Returns the result of interpreting the object as an instance of '<em>Invalid Literal Exp</em>'. |
| 804 | * <!-- begin-user-doc --> |
| 805 | * This implementation returns null; |
| 806 | * returning a non-null result will terminate the switch. |
| 807 | * <!-- end-user-doc --> |
| 808 | * @param object the target of the switch. |
| 809 | * @return the result of interpreting the object as an instance of '<em>Invalid Literal Exp</em>'. |
| 810 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 811 | * @generated |
| 812 | */ |
| 813 | public T caseInvalidLiteralExp(InvalidLiteralExp object) { |
| 814 | return null; |
| 815 | } |
| 816 | |
| 817 | /** |
| 818 | * Returns the result of interpreting the object as an instance of '<em>Invalid Type</em>'. |
| 819 | * <!-- begin-user-doc --> |
| 820 | * This implementation returns null; |
| 821 | * returning a non-null result will terminate the switch. |
| 822 | * <!-- end-user-doc --> |
| 823 | * @param object the target of the switch. |
| 824 | * @return the result of interpreting the object as an instance of '<em>Invalid Type</em>'. |
| 825 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 826 | * @generated |
| 827 | */ |
| 828 | public T caseInvalidType(InvalidType object) { |
| 829 | return null; |
| 830 | } |
| 831 | |
| 832 | /** |
| 833 | * Returns the result of interpreting the object as an instance of '<em>Iterate Exp</em>'. |
| 834 | * <!-- begin-user-doc --> |
| 835 | * This implementation returns null; |
| 836 | * returning a non-null result will terminate the switch. |
| 837 | * <!-- end-user-doc --> |
| 838 | * @param object the target of the switch. |
| 839 | * @return the result of interpreting the object as an instance of '<em>Iterate Exp</em>'. |
| 840 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 841 | * @generated |
| 842 | */ |
| 843 | public T caseIterateExp(IterateExp object) { |
| 844 | return null; |
| 845 | } |
| 846 | |
| 847 | /** |
| 848 | * Returns the result of interpreting the object as an instance of '<em>Iterator Exp</em>'. |
| 849 | * <!-- begin-user-doc --> |
| 850 | * This implementation returns null; |
| 851 | * returning a non-null result will terminate the switch. |
| 852 | * <!-- end-user-doc --> |
| 853 | * @param object the target of the switch. |
| 854 | * @return the result of interpreting the object as an instance of '<em>Iterator Exp</em>'. |
| 855 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 856 | * @generated |
| 857 | */ |
| 858 | public T caseIteratorExp(IteratorExp object) { |
| 859 | return null; |
| 860 | } |
| 861 | |
| 862 | /** |
| 863 | * Returns the result of interpreting the object as an instance of '<em>Let Exp</em>'. |
| 864 | * <!-- begin-user-doc --> |
| 865 | * This implementation returns null; |
| 866 | * returning a non-null result will terminate the switch. |
| 867 | * <!-- end-user-doc --> |
| 868 | * @param object the target of the switch. |
| 869 | * @return the result of interpreting the object as an instance of '<em>Let Exp</em>'. |
| 870 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 871 | * @generated |
| 872 | */ |
| 873 | public T caseLetExp(LetExp object) { |
| 874 | return null; |
| 875 | } |
| 876 | |
| 877 | /** |
| 878 | * Returns the result of interpreting the object as an instance of '<em>Literal Exp</em>'. |
| 879 | * <!-- begin-user-doc --> |
| 880 | * This implementation returns null; |
| 881 | * returning a non-null result will terminate the switch. |
| 882 | * <!-- end-user-doc --> |
| 883 | * @param object the target of the switch. |
| 884 | * @return the result of interpreting the object as an instance of '<em>Literal Exp</em>'. |
| 885 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 886 | * @generated |
| 887 | */ |
| 888 | public T caseLiteralExp(LiteralExp object) { |
| 889 | return null; |
| 890 | } |
| 891 | |
| 892 | /** |
| 893 | * Returns the result of interpreting the object as an instance of '<em>Loop Exp</em>'. |
| 894 | * <!-- begin-user-doc --> |
| 895 | * This implementation returns null; |
| 896 | * returning a non-null result will terminate the switch. |
| 897 | * <!-- end-user-doc --> |
| 898 | * @param object the target of the switch. |
| 899 | * @return the result of interpreting the object as an instance of '<em>Loop Exp</em>'. |
| 900 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 901 | * @generated |
| 902 | */ |
| 903 | public T caseLoopExp(LoopExp object) { |
| 904 | return null; |
| 905 | } |
| 906 | |
| 907 | /** |
| 908 | * Returns the result of interpreting the object as an instance of '<em>Navigation Call Exp</em>'. |
| 909 | * <!-- begin-user-doc --> |
| 910 | * This implementation returns null; |
| 911 | * returning a non-null result will terminate the switch. |
| 912 | * <!-- end-user-doc --> |
| 913 | * @param object the target of the switch. |
| 914 | * @return the result of interpreting the object as an instance of '<em>Navigation Call Exp</em>'. |
| 915 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 916 | * @generated |
| 917 | */ |
| 918 | public T caseNavigationCallExp(NavigationCallExp object) { |
| 919 | return null; |
| 920 | } |
| 921 | |
| 922 | /** |
| 923 | * Returns the result of interpreting the object as an instance of '<em>Null Literal Exp</em>'. |
| 924 | * <!-- begin-user-doc --> |
| 925 | * This implementation returns null; |
| 926 | * returning a non-null result will terminate the switch. |
| 927 | * <!-- end-user-doc --> |
| 928 | * @param object the target of the switch. |
| 929 | * @return the result of interpreting the object as an instance of '<em>Null Literal Exp</em>'. |
| 930 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 931 | * @generated |
| 932 | */ |
| 933 | public T caseNullLiteralExp(NullLiteralExp object) { |
| 934 | return null; |
| 935 | } |
| 936 | |
| 937 | /** |
| 938 | * Returns the result of interpreting the object as an instance of '<em>Numeric Literal Exp</em>'. |
| 939 | * <!-- begin-user-doc --> |
| 940 | * This implementation returns null; |
| 941 | * returning a non-null result will terminate the switch. |
| 942 | * <!-- end-user-doc --> |
| 943 | * @param object the target of the switch. |
| 944 | * @return the result of interpreting the object as an instance of '<em>Numeric Literal Exp</em>'. |
| 945 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 946 | * @generated |
| 947 | */ |
| 948 | public T caseNumericLiteralExp(NumericLiteralExp object) { |
| 949 | return null; |
| 950 | } |
| 951 | |
| 952 | /** |
| 953 | * Returns the result of interpreting the object as an instance of '<em>Ocl Expression</em>'. |
| 954 | * <!-- begin-user-doc --> |
| 955 | * This implementation returns null; |
| 956 | * returning a non-null result will terminate the switch. |
| 957 | * <!-- end-user-doc --> |
| 958 | * @param object the target of the switch. |
| 959 | * @return the result of interpreting the object as an instance of '<em>Ocl Expression</em>'. |
| 960 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 961 | * @generated |
| 962 | */ |
| 963 | public T caseOclExpression(OclExpression object) { |
| 964 | return null; |
| 965 | } |
| 966 | |
| 967 | /** |
| 968 | * Returns the result of interpreting the object as an instance of '<em>Operation Call Exp</em>'. |
| 969 | * <!-- begin-user-doc --> |
| 970 | * This implementation returns null; |
| 971 | * returning a non-null result will terminate the switch. |
| 972 | * <!-- end-user-doc --> |
| 973 | * @param object the target of the switch. |
| 974 | * @return the result of interpreting the object as an instance of '<em>Operation Call Exp</em>'. |
| 975 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 976 | * @generated |
| 977 | */ |
| 978 | public T caseOperationCallExp(OperationCallExp object) { |
| 979 | return null; |
| 980 | } |
| 981 | |
| 982 | /** |
| 983 | * Returns the result of interpreting the object as an instance of '<em>Ordered Set Type</em>'. |
| 984 | * <!-- begin-user-doc --> |
| 985 | * This implementation returns null; |
| 986 | * returning a non-null result will terminate the switch. |
| 987 | * <!-- end-user-doc --> |
| 988 | * @param object the target of the switch. |
| 989 | * @return the result of interpreting the object as an instance of '<em>Ordered Set Type</em>'. |
| 990 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 991 | * @generated |
| 992 | */ |
| 993 | public T caseOrderedSetType(OrderedSetType object) { |
| 994 | return null; |
| 995 | } |
| 996 | |
| 997 | /** |
| 998 | * Returns the result of interpreting the object as an instance of '<em>Primitive Literal Exp</em>'. |
| 999 | * <!-- begin-user-doc --> |
| 1000 | * This implementation returns null; |
| 1001 | * returning a non-null result will terminate the switch. |
| 1002 | * <!-- end-user-doc --> |
| 1003 | * @param object the target of the switch. |
| 1004 | * @return the result of interpreting the object as an instance of '<em>Primitive Literal Exp</em>'. |
| 1005 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1006 | * @generated |
| 1007 | */ |
| 1008 | public T casePrimitiveLiteralExp(PrimitiveLiteralExp object) { |
| 1009 | return null; |
| 1010 | } |
| 1011 | |
| 1012 | /** |
| 1013 | * Returns the result of interpreting the object as an instance of '<em>Property Call Exp</em>'. |
| 1014 | * <!-- begin-user-doc --> |
| 1015 | * This implementation returns null; |
| 1016 | * returning a non-null result will terminate the switch. |
| 1017 | * <!-- end-user-doc --> |
| 1018 | * @param object the target of the switch. |
| 1019 | * @return the result of interpreting the object as an instance of '<em>Property Call Exp</em>'. |
| 1020 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1021 | * @generated |
| 1022 | */ |
| 1023 | public T casePropertyCallExp(PropertyCallExp object) { |
| 1024 | return null; |
| 1025 | } |
| 1026 | |
| 1027 | /** |
| 1028 | * Returns the result of interpreting the object as an instance of '<em>Real Literal Exp</em>'. |
| 1029 | * <!-- begin-user-doc --> |
| 1030 | * This implementation returns null; |
| 1031 | * returning a non-null result will terminate the switch. |
| 1032 | * <!-- end-user-doc --> |
| 1033 | * @param object the target of the switch. |
| 1034 | * @return the result of interpreting the object as an instance of '<em>Real Literal Exp</em>'. |
| 1035 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1036 | * @generated |
| 1037 | */ |
| 1038 | public T caseRealLiteralExp(RealLiteralExp object) { |
| 1039 | return null; |
| 1040 | } |
| 1041 | |
| 1042 | /** |
| 1043 | * Returns the result of interpreting the object as an instance of '<em>Sequence Type</em>'. |
| 1044 | * <!-- begin-user-doc --> |
| 1045 | * This implementation returns null; |
| 1046 | * returning a non-null result will terminate the switch. |
| 1047 | * <!-- end-user-doc --> |
| 1048 | * @param object the target of the switch. |
| 1049 | * @return the result of interpreting the object as an instance of '<em>Sequence Type</em>'. |
| 1050 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1051 | * @generated |
| 1052 | */ |
| 1053 | public T caseSequenceType(SequenceType object) { |
| 1054 | return null; |
| 1055 | } |
| 1056 | |
| 1057 | /** |
| 1058 | * Returns the result of interpreting the object as an instance of '<em>Set Type</em>'. |
| 1059 | * <!-- begin-user-doc --> |
| 1060 | * This implementation returns null; |
| 1061 | * returning a non-null result will terminate the switch. |
| 1062 | * <!-- end-user-doc --> |
| 1063 | * @param object the target of the switch. |
| 1064 | * @return the result of interpreting the object as an instance of '<em>Set Type</em>'. |
| 1065 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1066 | * @generated |
| 1067 | */ |
| 1068 | public T caseSetType(SetType object) { |
| 1069 | return null; |
| 1070 | } |
| 1071 | |
| 1072 | /** |
| 1073 | * Returns the result of interpreting the object as an instance of '<em>String Literal Exp</em>'. |
| 1074 | * <!-- begin-user-doc --> |
| 1075 | * This implementation returns null; |
| 1076 | * returning a non-null result will terminate the switch. |
| 1077 | * <!-- end-user-doc --> |
| 1078 | * @param object the target of the switch. |
| 1079 | * @return the result of interpreting the object as an instance of '<em>String Literal Exp</em>'. |
| 1080 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1081 | * @generated |
| 1082 | */ |
| 1083 | public T caseStringLiteralExp(StringLiteralExp object) { |
| 1084 | return null; |
| 1085 | } |
| 1086 | |
| 1087 | /** |
| 1088 | * Returns the result of interpreting the object as an instance of '<em>Tuple Literal Exp</em>'. |
| 1089 | * <!-- begin-user-doc --> |
| 1090 | * This implementation returns null; |
| 1091 | * returning a non-null result will terminate the switch. |
| 1092 | * <!-- end-user-doc --> |
| 1093 | * @param object the target of the switch. |
| 1094 | * @return the result of interpreting the object as an instance of '<em>Tuple Literal Exp</em>'. |
| 1095 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1096 | * @generated |
| 1097 | */ |
| 1098 | public T caseTupleLiteralExp(TupleLiteralExp object) { |
| 1099 | return null; |
| 1100 | } |
| 1101 | |
| 1102 | /** |
| 1103 | * Returns the result of interpreting the object as an instance of '<em>Tuple Literal Part</em>'. |
| 1104 | * <!-- begin-user-doc --> |
| 1105 | * This implementation returns null; |
| 1106 | * returning a non-null result will terminate the switch. |
| 1107 | * <!-- end-user-doc --> |
| 1108 | * @param object the target of the switch. |
| 1109 | * @return the result of interpreting the object as an instance of '<em>Tuple Literal Part</em>'. |
| 1110 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1111 | * @generated |
| 1112 | */ |
| 1113 | public T caseTupleLiteralPart(TupleLiteralPart object) { |
| 1114 | return null; |
| 1115 | } |
| 1116 | |
| 1117 | /** |
| 1118 | * Returns the result of interpreting the object as an instance of '<em>Tuple Type</em>'. |
| 1119 | * <!-- begin-user-doc --> |
| 1120 | * This implementation returns null; |
| 1121 | * returning a non-null result will terminate the switch. |
| 1122 | * <!-- end-user-doc --> |
| 1123 | * @param object the target of the switch. |
| 1124 | * @return the result of interpreting the object as an instance of '<em>Tuple Type</em>'. |
| 1125 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1126 | * @generated |
| 1127 | */ |
| 1128 | public T caseTupleType(TupleType object) { |
| 1129 | return null; |
| 1130 | } |
| 1131 | |
| 1132 | /** |
| 1133 | * Returns the result of interpreting the object as an instance of '<em>Type Exp</em>'. |
| 1134 | * <!-- begin-user-doc --> |
| 1135 | * This implementation returns null; |
| 1136 | * returning a non-null result will terminate the switch. |
| 1137 | * <!-- end-user-doc --> |
| 1138 | * @param object the target of the switch. |
| 1139 | * @return the result of interpreting the object as an instance of '<em>Type Exp</em>'. |
| 1140 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1141 | * @generated |
| 1142 | */ |
| 1143 | public T caseTypeExp(TypeExp object) { |
| 1144 | return null; |
| 1145 | } |
| 1146 | |
| 1147 | /** |
| 1148 | * Returns the result of interpreting the object as an instance of '<em>Type Type</em>'. |
| 1149 | * <!-- begin-user-doc --> |
| 1150 | * This implementation returns null; |
| 1151 | * returning a non-null result will terminate the switch. |
| 1152 | * <!-- end-user-doc --> |
| 1153 | * @param object the target of the switch. |
| 1154 | * @return the result of interpreting the object as an instance of '<em>Type Type</em>'. |
| 1155 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1156 | * @generated |
| 1157 | */ |
| 1158 | public T caseTypeType(TypeType object) { |
| 1159 | return null; |
| 1160 | } |
| 1161 | |
| 1162 | /** |
| 1163 | * Returns the result of interpreting the object as an instance of '<em>Unlimited Natural Exp</em>'. |
| 1164 | * <!-- begin-user-doc --> |
| 1165 | * This implementation returns null; |
| 1166 | * returning a non-null result will terminate the switch. |
| 1167 | * <!-- end-user-doc --> |
| 1168 | * @param object the target of the switch. |
| 1169 | * @return the result of interpreting the object as an instance of '<em>Unlimited Natural Exp</em>'. |
| 1170 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1171 | * @generated |
| 1172 | */ |
| 1173 | public T caseUnlimitedNaturalExp(UnlimitedNaturalExp object) { |
| 1174 | return null; |
| 1175 | } |
| 1176 | |
| 1177 | /** |
| 1178 | * Returns the result of interpreting the object as an instance of '<em>Variable</em>'. |
| 1179 | * <!-- begin-user-doc --> |
| 1180 | * This implementation returns null; |
| 1181 | * returning a non-null result will terminate the switch. |
| 1182 | * <!-- end-user-doc --> |
| 1183 | * @param object the target of the switch. |
| 1184 | * @return the result of interpreting the object as an instance of '<em>Variable</em>'. |
| 1185 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1186 | * @generated |
| 1187 | */ |
| 1188 | public T caseVariable(Variable object) { |
| 1189 | return null; |
| 1190 | } |
| 1191 | |
| 1192 | /** |
| 1193 | * Returns the result of interpreting the object as an instance of '<em>Variable Exp</em>'. |
| 1194 | * <!-- begin-user-doc --> |
| 1195 | * This implementation returns null; |
| 1196 | * returning a non-null result will terminate the switch. |
| 1197 | * <!-- end-user-doc --> |
| 1198 | * @param object the target of the switch. |
| 1199 | * @return the result of interpreting the object as an instance of '<em>Variable Exp</em>'. |
| 1200 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1201 | * @generated |
| 1202 | */ |
| 1203 | public T caseVariableExp(VariableExp object) { |
| 1204 | return null; |
| 1205 | } |
| 1206 | |
| 1207 | /** |
| 1208 | * Returns the result of interpreting the object as an instance of '<em>Void Type</em>'. |
| 1209 | * <!-- begin-user-doc --> |
| 1210 | * This implementation returns null; |
| 1211 | * returning a non-null result will terminate the switch. |
| 1212 | * <!-- end-user-doc --> |
| 1213 | * @param object the target of the switch. |
| 1214 | * @return the result of interpreting the object as an instance of '<em>Void Type</em>'. |
| 1215 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1216 | * @generated |
| 1217 | */ |
| 1218 | public T caseVoidType(VoidType object) { |
| 1219 | return null; |
| 1220 | } |
| 1221 | |
| 1222 | /** |
| 1223 | * Returns the result of interpreting the object as an instance of '<em>Object</em>'. |
| 1224 | * <!-- begin-user-doc --> |
| 1225 | * This implementation returns null; |
| 1226 | * returning a non-null result will terminate the switch. |
| 1227 | * <!-- end-user-doc --> |
| 1228 | * @param object the target of the switch. |
| 1229 | * @return the result of interpreting the object as an instance of '<em>Object</em>'. |
| 1230 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1231 | * @generated |
| 1232 | */ |
| 1233 | public T caseObject(EMOF.Object object) { |
| 1234 | return null; |
| 1235 | } |
| 1236 | |
| 1237 | /** |
| 1238 | * Returns the result of interpreting the object as an instance of '<em>Element</em>'. |
| 1239 | * <!-- begin-user-doc --> |
| 1240 | * This implementation returns null; |
| 1241 | * returning a non-null result will terminate the switch. |
| 1242 | * <!-- end-user-doc --> |
| 1243 | * @param object the target of the switch. |
| 1244 | * @return the result of interpreting the object as an instance of '<em>Element</em>'. |
| 1245 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1246 | * @generated |
| 1247 | */ |
| 1248 | public T caseElement(Element object) { |
| 1249 | return null; |
| 1250 | } |
| 1251 | |
| 1252 | /** |
| 1253 | * Returns the result of interpreting the object as an instance of '<em>Named Element</em>'. |
| 1254 | * <!-- begin-user-doc --> |
| 1255 | * This implementation returns null; |
| 1256 | * returning a non-null result will terminate the switch. |
| 1257 | * <!-- end-user-doc --> |
| 1258 | * @param object the target of the switch. |
| 1259 | * @return the result of interpreting the object as an instance of '<em>Named Element</em>'. |
| 1260 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1261 | * @generated |
| 1262 | */ |
| 1263 | public T caseNamedElement(NamedElement object) { |
| 1264 | return null; |
| 1265 | } |
| 1266 | |
| 1267 | /** |
| 1268 | * Returns the result of interpreting the object as an instance of '<em>Type</em>'. |
| 1269 | * <!-- begin-user-doc --> |
| 1270 | * This implementation returns null; |
| 1271 | * returning a non-null result will terminate the switch. |
| 1272 | * <!-- end-user-doc --> |
| 1273 | * @param object the target of the switch. |
| 1274 | * @return the result of interpreting the object as an instance of '<em>Type</em>'. |
| 1275 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1276 | * @generated |
| 1277 | */ |
| 1278 | public T caseType(Type object) { |
| 1279 | return null; |
| 1280 | } |
| 1281 | |
| 1282 | /** |
| 1283 | * Returns the result of interpreting the object as an instance of '<em>Data Type</em>'. |
| 1284 | * <!-- begin-user-doc --> |
| 1285 | * This implementation returns null; |
| 1286 | * returning a non-null result will terminate the switch. |
| 1287 | * <!-- end-user-doc --> |
| 1288 | * @param object the target of the switch. |
| 1289 | * @return the result of interpreting the object as an instance of '<em>Data Type</em>'. |
| 1290 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1291 | * @generated |
| 1292 | */ |
| 1293 | public T caseDataType(DataType object) { |
| 1294 | return null; |
| 1295 | } |
| 1296 | |
| 1297 | /** |
| 1298 | * Returns the result of interpreting the object as an instance of '<em>Typed Element</em>'. |
| 1299 | * <!-- begin-user-doc --> |
| 1300 | * This implementation returns null; |
| 1301 | * returning a non-null result will terminate the switch. |
| 1302 | * <!-- end-user-doc --> |
| 1303 | * @param object the target of the switch. |
| 1304 | * @return the result of interpreting the object as an instance of '<em>Typed Element</em>'. |
| 1305 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1306 | * @generated |
| 1307 | */ |
| 1308 | public T caseTypedElement(TypedElement object) { |
| 1309 | return null; |
| 1310 | } |
| 1311 | |
| 1312 | /** |
| 1313 | * Returns the result of interpreting the object as an instance of '<em>Class</em>'. |
| 1314 | * <!-- begin-user-doc --> |
| 1315 | * This implementation returns null; |
| 1316 | * returning a non-null result will terminate the switch. |
| 1317 | * <!-- end-user-doc --> |
| 1318 | * @param object the target of the switch. |
| 1319 | * @return the result of interpreting the object as an instance of '<em>Class</em>'. |
| 1320 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| 1321 | * @generated |
| 1322 | */ |
| 1323 | public T caseClass(EMOF.Class object) { |
| 1324 | return null; |
| 1325 | } |
| 1326 | |
| 1327 | /** |
| 1328 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. |
| 1329 | * <!-- begin-user-doc --> |
| 1330 | * This implementation returns null; |
| 1331 | * returning a non-null result will terminate the switch, but this is the last case anyway. |
| 1332 | * <!-- end-user-doc --> |
| 1333 | * @param object the target of the switch. |
| 1334 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. |
| 1335 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) |
| 1336 | * @generated |
| 1337 | */ |
| 1338 | public T defaultCase(EObject object) { |
| 1339 | return null; |
| 1340 | } |
| 1341 | |
| 1342 | } //EssentialOCLSwitch |