/** | |
* ******************************************************************************* | |
* Copyright (c) 2017-2020 Robert Bosch GmbH and others. | |
* | |
* This program and the accompanying materials are made | |
* available under the terms of the Eclipse Public License 2.0 | |
* which is available at https://www.eclipse.org/legal/epl-2.0/ | |
* | |
* SPDX-License-Identifier: EPL-2.0 | |
* | |
* Generated using Eclipse EMF | |
* | |
* ******************************************************************************* | |
*/ | |
package org.eclipse.app4mc.sca2amalthea.ir.scair.util; | |
import org.eclipse.app4mc.sca2amalthea.ir.scair.*; | |
import org.eclipse.emf.common.notify.Adapter; | |
import org.eclipse.emf.common.notify.Notifier; | |
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; | |
import org.eclipse.emf.ecore.EObject; | |
/** | |
* <!-- begin-user-doc --> | |
* The <b>Adapter Factory</b> for the model. | |
* It provides an adapter <code>createXXX</code> method for each class of the model. | |
* <!-- end-user-doc --> | |
* @see org.eclipse.app4mc.sca2amalthea.ir.scair.scairPackage | |
* @generated | |
*/ | |
public class scairAdapterFactory extends AdapterFactoryImpl { | |
/** | |
* The cached model package. | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
protected static scairPackage modelPackage; | |
/** | |
* Creates an instance of the adapter factory. | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public scairAdapterFactory() { | |
if (modelPackage == null) { | |
modelPackage = scairPackage.eINSTANCE; | |
} | |
} | |
/** | |
* Returns whether this factory is applicable for the type of the object. | |
* <!-- begin-user-doc --> | |
* This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. | |
* <!-- end-user-doc --> | |
* @return whether this factory is applicable for the type of the object. | |
* @generated | |
*/ | |
@Override | |
public boolean isFactoryForType(Object object) { | |
if (object == modelPackage) { | |
return true; | |
} | |
if (object instanceof EObject) { | |
return ((EObject)object).eClass().getEPackage() == modelPackage; | |
} | |
return false; | |
} | |
/** | |
* The switch that delegates to the <code>createXXX</code> methods. | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
protected scairSwitch<Adapter> modelSwitch = | |
new scairSwitch<Adapter>() { | |
@Override | |
public Adapter caseFunction(Function object) { | |
return createFunctionAdapter(); | |
} | |
@Override | |
public Adapter caseLabel(Label object) { | |
return createLabelAdapter(); | |
} | |
@Override | |
public Adapter caseCallGraph(CallGraph object) { | |
return createCallGraphAdapter(); | |
} | |
@Override | |
public Adapter caseContainer(Container object) { | |
return createContainerAdapter(); | |
} | |
@Override | |
public Adapter caseProject(Project object) { | |
return createProjectAdapter(); | |
} | |
@Override | |
public Adapter caseLabelAccess(LabelAccess object) { | |
return createLabelAccessAdapter(); | |
} | |
@Override | |
public Adapter caseTypeDef(TypeDef object) { | |
return createTypeDefAdapter(); | |
} | |
@Override | |
public Adapter caseTypeDefMember(TypeDefMember object) { | |
return createTypeDefMemberAdapter(); | |
} | |
@Override | |
public Adapter caseStmtCall(StmtCall object) { | |
return createStmtCallAdapter(); | |
} | |
@Override | |
public Adapter caseFunctionCall(FunctionCall object) { | |
return createFunctionCallAdapter(); | |
} | |
@Override | |
public Adapter caseIIdentifiable(IIdentifiable object) { | |
return createIIdentifiableAdapter(); | |
} | |
@Override | |
public Adapter caseIdentifiableElement(IdentifiableElement object) { | |
return createIdentifiableElementAdapter(); | |
} | |
@Override | |
public Adapter defaultCase(EObject object) { | |
return createEObjectAdapter(); | |
} | |
}; | |
/** | |
* Creates an adapter for the <code>target</code>. | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @param target the object to adapt. | |
* @return the adapter for the <code>target</code>. | |
* @generated | |
*/ | |
@Override | |
public Adapter createAdapter(Notifier target) { | |
return modelSwitch.doSwitch((EObject)target); | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.app4mc.sca2amalthea.ir.scair.Function <em>Function</em>}'. | |
* <!-- begin-user-doc --> | |
* This default implementation returns null so that we can easily ignore cases; | |
* it's useful to ignore a case when inheritance will catch all the cases anyway. | |
* <!-- end-user-doc --> | |
* @return the new adapter. | |
* @see org.eclipse.app4mc.sca2amalthea.ir.scair.Function | |
* @generated | |
*/ | |
public Adapter createFunctionAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.app4mc.sca2amalthea.ir.scair.Label <em>Label</em>}'. | |
* <!-- begin-user-doc --> | |
* This default implementation returns null so that we can easily ignore cases; | |
* it's useful to ignore a case when inheritance will catch all the cases anyway. | |
* <!-- end-user-doc --> | |
* @return the new adapter. | |
* @see org.eclipse.app4mc.sca2amalthea.ir.scair.Label | |
* @generated | |
*/ | |
public Adapter createLabelAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.app4mc.sca2amalthea.ir.scair.CallGraph <em>Call Graph</em>}'. | |
* <!-- begin-user-doc --> | |
* This default implementation returns null so that we can easily ignore cases; | |
* it's useful to ignore a case when inheritance will catch all the cases anyway. | |
* <!-- end-user-doc --> | |
* @return the new adapter. | |
* @see org.eclipse.app4mc.sca2amalthea.ir.scair.CallGraph | |
* @generated | |
*/ | |
public Adapter createCallGraphAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.app4mc.sca2amalthea.ir.scair.Container <em>Container</em>}'. | |
* <!-- begin-user-doc --> | |
* This default implementation returns null so that we can easily ignore cases; | |
* it's useful to ignore a case when inheritance will catch all the cases anyway. | |
* <!-- end-user-doc --> | |
* @return the new adapter. | |
* @see org.eclipse.app4mc.sca2amalthea.ir.scair.Container | |
* @generated | |
*/ | |
public Adapter createContainerAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.app4mc.sca2amalthea.ir.scair.Project <em>Project</em>}'. | |
* <!-- begin-user-doc --> | |
* This default implementation returns null so that we can easily ignore cases; | |
* it's useful to ignore a case when inheritance will catch all the cases anyway. | |
* <!-- end-user-doc --> | |
* @return the new adapter. | |
* @see org.eclipse.app4mc.sca2amalthea.ir.scair.Project | |
* @generated | |
*/ | |
public Adapter createProjectAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.app4mc.sca2amalthea.ir.scair.LabelAccess <em>Label Access</em>}'. | |
* <!-- begin-user-doc --> | |
* This default implementation returns null so that we can easily ignore cases; | |
* it's useful to ignore a case when inheritance will catch all the cases anyway. | |
* <!-- end-user-doc --> | |
* @return the new adapter. | |
* @see org.eclipse.app4mc.sca2amalthea.ir.scair.LabelAccess | |
* @generated | |
*/ | |
public Adapter createLabelAccessAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.app4mc.sca2amalthea.ir.scair.TypeDef <em>Type Def</em>}'. | |
* <!-- begin-user-doc --> | |
* This default implementation returns null so that we can easily ignore cases; | |
* it's useful to ignore a case when inheritance will catch all the cases anyway. | |
* <!-- end-user-doc --> | |
* @return the new adapter. | |
* @see org.eclipse.app4mc.sca2amalthea.ir.scair.TypeDef | |
* @generated | |
*/ | |
public Adapter createTypeDefAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.app4mc.sca2amalthea.ir.scair.TypeDefMember <em>Type Def Member</em>}'. | |
* <!-- begin-user-doc --> | |
* This default implementation returns null so that we can easily ignore cases; | |
* it's useful to ignore a case when inheritance will catch all the cases anyway. | |
* <!-- end-user-doc --> | |
* @return the new adapter. | |
* @see org.eclipse.app4mc.sca2amalthea.ir.scair.TypeDefMember | |
* @generated | |
*/ | |
public Adapter createTypeDefMemberAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.app4mc.sca2amalthea.ir.scair.StmtCall <em>Stmt Call</em>}'. | |
* <!-- begin-user-doc --> | |
* This default implementation returns null so that we can easily ignore cases; | |
* it's useful to ignore a case when inheritance will catch all the cases anyway. | |
* <!-- end-user-doc --> | |
* @return the new adapter. | |
* @see org.eclipse.app4mc.sca2amalthea.ir.scair.StmtCall | |
* @generated | |
*/ | |
public Adapter createStmtCallAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.app4mc.sca2amalthea.ir.scair.FunctionCall <em>Function Call</em>}'. | |
* <!-- begin-user-doc --> | |
* This default implementation returns null so that we can easily ignore cases; | |
* it's useful to ignore a case when inheritance will catch all the cases anyway. | |
* <!-- end-user-doc --> | |
* @return the new adapter. | |
* @see org.eclipse.app4mc.sca2amalthea.ir.scair.FunctionCall | |
* @generated | |
*/ | |
public Adapter createFunctionCallAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.app4mc.sca2amalthea.ir.scair.IIdentifiable <em>IIdentifiable</em>}'. | |
* <!-- begin-user-doc --> | |
* This default implementation returns null so that we can easily ignore cases; | |
* it's useful to ignore a case when inheritance will catch all the cases anyway. | |
* <!-- end-user-doc --> | |
* @return the new adapter. | |
* @see org.eclipse.app4mc.sca2amalthea.ir.scair.IIdentifiable | |
* @generated | |
*/ | |
public Adapter createIIdentifiableAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.app4mc.sca2amalthea.ir.scair.IdentifiableElement <em>Identifiable Element</em>}'. | |
* <!-- begin-user-doc --> | |
* This default implementation returns null so that we can easily ignore cases; | |
* it's useful to ignore a case when inheritance will catch all the cases anyway. | |
* <!-- end-user-doc --> | |
* @return the new adapter. | |
* @see org.eclipse.app4mc.sca2amalthea.ir.scair.IdentifiableElement | |
* @generated | |
*/ | |
public Adapter createIdentifiableElementAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for the default case. | |
* <!-- begin-user-doc --> | |
* This default implementation returns null. | |
* <!-- end-user-doc --> | |
* @return the new adapter. | |
* @generated | |
*/ | |
public Adapter createEObjectAdapter() { | |
return null; | |
} | |
} //scairAdapterFactory |