| /** |
| * Copyright (c) 2013 CEA LIST |
| * |
| * All rights reserved. This program and the accompanying materials are |
| * made available under the terms of the Eclipse Public License 2.0 which |
| * accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * CEA LIST - Initial API and implementation |
| * |
| */ |
| package org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.util; |
| |
| import org.eclipse.emf.ecore.EObject; |
| import org.eclipse.emf.ecore.EPackage; |
| import org.eclipse.emf.ecore.util.Switch; |
| import org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.*; |
| import org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.Array; |
| import org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.C_CppPackage; |
| import org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.Const; |
| import org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.ConstInit; |
| import org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.CppInit; |
| import org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.CppRoot; |
| import org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.EnumStyle; |
| import org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.ExternLibrary; |
| import org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.External; |
| import org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.Friend; |
| import org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.Include; |
| import org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.Inline; |
| import org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.ManualGeneration; |
| import org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.Mutable; |
| import org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.Ptr; |
| import org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.Ref; |
| import org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.StorageClass; |
| import org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.Template; |
| import org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.Typedef; |
| import org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.Union; |
| import org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.Variadic; |
| import org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.Virtual; |
| import org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.Visibility; |
| import org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.Volatile; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * The <b>Switch</b> for the model's inheritance hierarchy. |
| * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model, |
| * starting with the actual class of the object |
| * and proceeding up the inheritance hierarchy |
| * until a non-null result is returned, |
| * which is the result of the switch. |
| * <!-- end-user-doc --> |
| * @see org.eclipse.papyrus.designer.languages.cpp.profile.C_Cpp.C_CppPackage |
| * @generated |
| */ |
| public class C_CppSwitch<T> extends Switch<T> { |
| /** |
| * The cached model package |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected static C_CppPackage modelPackage; |
| |
| /** |
| * Creates an instance of the switch. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public C_CppSwitch() { |
| if (modelPackage == null) { |
| modelPackage = C_CppPackage.eINSTANCE; |
| } |
| } |
| |
| /** |
| * Checks whether this is a switch for the given package. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @param ePackage the package in question. |
| * @return whether this is a switch for the given package. |
| * @generated |
| */ |
| @Override |
| protected boolean isSwitchFor(EPackage ePackage) { |
| return ePackage == modelPackage; |
| } |
| |
| /** |
| * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @return the first non-null result returned by a <code>caseXXX</code> call. |
| * @generated |
| */ |
| @Override |
| protected T doSwitch(int classifierID, EObject theEObject) { |
| switch (classifierID) { |
| case C_CppPackage.PTR: { |
| Ptr ptr = (Ptr)theEObject; |
| T result = casePtr(ptr); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case C_CppPackage.INCLUDE: { |
| Include include = (Include)theEObject; |
| T result = caseInclude(include); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case C_CppPackage.MANUAL_GENERATION: { |
| ManualGeneration manualGeneration = (ManualGeneration)theEObject; |
| T result = caseManualGeneration(manualGeneration); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case C_CppPackage.EXTERN_LIBRARY: { |
| ExternLibrary externLibrary = (ExternLibrary)theEObject; |
| T result = caseExternLibrary(externLibrary); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case C_CppPackage.CPP_ROOT: { |
| CppRoot cppRoot = (CppRoot)theEObject; |
| T result = caseCppRoot(cppRoot); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case C_CppPackage.TYPEDEF: { |
| Typedef typedef = (Typedef)theEObject; |
| T result = caseTypedef(typedef); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case C_CppPackage.ENUM_STYLE: { |
| EnumStyle enumStyle = (EnumStyle)theEObject; |
| T result = caseEnumStyle(enumStyle); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case C_CppPackage.DEFAULT_CONSTRUCTOR: { |
| DefaultConstructor defaultConstructor = (DefaultConstructor)theEObject; |
| T result = caseDefaultConstructor(defaultConstructor); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case C_CppPackage.DELETE: { |
| Delete delete = (Delete)theEObject; |
| T result = caseDelete(delete); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case C_CppPackage.DEFAULT: { |
| Default default_ = (Default)theEObject; |
| T result = caseDefault(default_); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case C_CppPackage.ARRAY: { |
| Array array = (Array)theEObject; |
| T result = caseArray(array); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case C_CppPackage.CONST: { |
| Const const_ = (Const)theEObject; |
| T result = caseConst(const_); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case C_CppPackage.REF: { |
| Ref ref = (Ref)theEObject; |
| T result = caseRef(ref); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case C_CppPackage.EXTERNAL: { |
| External external = (External)theEObject; |
| T result = caseExternal(external); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case C_CppPackage.CONST_INIT: { |
| ConstInit constInit = (ConstInit)theEObject; |
| T result = caseConstInit(constInit); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case C_CppPackage.FRIEND: { |
| Friend friend = (Friend)theEObject; |
| T result = caseFriend(friend); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case C_CppPackage.INLINE: { |
| Inline inline = (Inline)theEObject; |
| T result = caseInline(inline); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case C_CppPackage.VIRTUAL: { |
| Virtual virtual = (Virtual)theEObject; |
| T result = caseVirtual(virtual); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case C_CppPackage.VISIBILITY: { |
| Visibility visibility = (Visibility)theEObject; |
| T result = caseVisibility(visibility); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case C_CppPackage.CPP_INIT: { |
| CppInit cppInit = (CppInit)theEObject; |
| T result = caseCppInit(cppInit); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case C_CppPackage.TEMPLATE: { |
| Template template = (Template)theEObject; |
| T result = caseTemplate(template); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case C_CppPackage.UNION: { |
| Union union = (Union)theEObject; |
| T result = caseUnion(union); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case C_CppPackage.STORAGE_CLASS: { |
| StorageClass storageClass = (StorageClass)theEObject; |
| T result = caseStorageClass(storageClass); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case C_CppPackage.VOLATILE: { |
| Volatile volatile_ = (Volatile)theEObject; |
| T result = caseVolatile(volatile_); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case C_CppPackage.VARIADIC: { |
| Variadic variadic = (Variadic)theEObject; |
| T result = caseVariadic(variadic); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| case C_CppPackage.MUTABLE: { |
| Mutable mutable = (Mutable)theEObject; |
| T result = caseMutable(mutable); |
| if (result == null) result = defaultCase(theEObject); |
| return result; |
| } |
| default: return defaultCase(theEObject); |
| } |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Ptr</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Ptr</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T casePtr(Ptr object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Include</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Include</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseInclude(Include object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Manual Generation</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Manual Generation</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseManualGeneration(ManualGeneration object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Extern Library</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Extern Library</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseExternLibrary(ExternLibrary object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Cpp Root</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Cpp Root</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseCppRoot(CppRoot object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Array</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Array</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseArray(Array object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Const</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Const</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseConst(Const object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Ref</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Ref</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseRef(Ref object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>External</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>External</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseExternal(External object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Const Init</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Const Init</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseConstInit(ConstInit object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Friend</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Friend</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseFriend(Friend object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Inline</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Inline</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseInline(Inline object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Virtual</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Virtual</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseVirtual(Virtual object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Typedef</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Typedef</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseTypedef(Typedef object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Visibility</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Visibility</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseVisibility(Visibility object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Cpp Init</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Cpp Init</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseCppInit(CppInit object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Template</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Template</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseTemplate(Template object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Union</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Union</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseUnion(Union object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Storage Class</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Storage Class</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseStorageClass(StorageClass object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Volatile</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Volatile</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseVolatile(Volatile object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Variadic</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Variadic</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseVariadic(Variadic object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Mutable</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Mutable</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseMutable(Mutable object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Enum Style</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Enum Style</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseEnumStyle(EnumStyle object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Default Constructor</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Default Constructor</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseDefaultConstructor(DefaultConstructor object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Delete</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Delete</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseDelete(Delete object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>Default</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>Default</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) |
| * @generated |
| */ |
| public T caseDefault(Default object) { |
| return null; |
| } |
| |
| /** |
| * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. |
| * <!-- begin-user-doc --> |
| * This implementation returns null; |
| * returning a non-null result will terminate the switch, but this is the last case anyway. |
| * <!-- end-user-doc --> |
| * @param object the target of the switch. |
| * @return the result of interpreting the object as an instance of '<em>EObject</em>'. |
| * @see #doSwitch(org.eclipse.emf.ecore.EObject) |
| * @generated |
| */ |
| @Override |
| public T defaultCase(EObject object) { |
| return null; |
| } |
| |
| } // C_CppSwitch |