/** | |
* Copyright (c) 2020 CEA LIST. | |
* | |
* All rights reserved. This program and the accompanying materials | |
* are made available under the terms of the Eclipse Public License v1.0 | |
* which accompanies this distribution, and is available at | |
* http://www.eclipse.org/legal/epl-v10.html\n\nContributors: | |
* Arnault Lapitre (CEA LIST) arnault.lapitre@cea.fr | |
* - Initial API and Implementation | |
*/ | |
package org.eclipse.efm.ecore.formalml.statement.util; | |
import org.eclipse.efm.ecore.formalml.common.AbstractElement; | |
import org.eclipse.efm.ecore.formalml.statement.*; | |
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.efm.ecore.formalml.statement.StatementPackage | |
* @generated | |
*/ | |
public class StatementAdapterFactory extends AdapterFactoryImpl { | |
/** | |
* The cached model package. | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
protected static StatementPackage modelPackage; | |
/** | |
* Creates an instance of the adapter factory. | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public StatementAdapterFactory() { | |
if (modelPackage == null) { | |
modelPackage = StatementPackage.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 StatementSwitch<Adapter> modelSwitch = | |
new StatementSwitch<Adapter>() { | |
@Override | |
public Adapter caseStatement(Statement object) { | |
return createStatementAdapter(); | |
} | |
@Override | |
public Adapter caseBlockStatement(BlockStatement object) { | |
return createBlockStatementAdapter(); | |
} | |
@Override | |
public Adapter caseExpressionStatement(ExpressionStatement object) { | |
return createExpressionStatementAdapter(); | |
} | |
@Override | |
public Adapter caseAbstractGuardStatement(AbstractGuardStatement object) { | |
return createAbstractGuardStatementAdapter(); | |
} | |
@Override | |
public Adapter caseGuardStatement(GuardStatement object) { | |
return createGuardStatementAdapter(); | |
} | |
@Override | |
public Adapter caseTimedGuardStatement(TimedGuardStatement object) { | |
return createTimedGuardStatementAdapter(); | |
} | |
@Override | |
public Adapter caseEventGuardStatement(EventGuardStatement object) { | |
return createEventGuardStatementAdapter(); | |
} | |
@Override | |
public Adapter caseCheckSatGuardStatement(CheckSatGuardStatement object) { | |
return createCheckSatGuardStatementAdapter(); | |
} | |
@Override | |
public Adapter caseAbstractComStatement(AbstractComStatement object) { | |
return createAbstractComStatementAdapter(); | |
} | |
@Override | |
public Adapter caseInputComStatement(InputComStatement object) { | |
return createInputComStatementAdapter(); | |
} | |
@Override | |
public Adapter caseOutputComStatement(OutputComStatement object) { | |
return createOutputComStatementAdapter(); | |
} | |
@Override | |
public Adapter caseConditionalBlockStatement(ConditionalBlockStatement object) { | |
return createConditionalBlockStatementAdapter(); | |
} | |
@Override | |
public Adapter caseIfStatement(IfStatement object) { | |
return createIfStatementAdapter(); | |
} | |
@Override | |
public Adapter caseWhileDoStatement(WhileDoStatement object) { | |
return createWhileDoStatementAdapter(); | |
} | |
@Override | |
public Adapter caseDoWhileStatement(DoWhileStatement object) { | |
return createDoWhileStatementAdapter(); | |
} | |
@Override | |
public Adapter caseForStatement(ForStatement object) { | |
return createForStatementAdapter(); | |
} | |
@Override | |
public Adapter caseForEachStatement(ForEachStatement object) { | |
return createForEachStatementAdapter(); | |
} | |
@Override | |
public Adapter caseInterruptStatement(InterruptStatement object) { | |
return createInterruptStatementAdapter(); | |
} | |
@Override | |
public Adapter caseActivityStatement(ActivityStatement object) { | |
return createActivityStatementAdapter(); | |
} | |
@Override | |
public Adapter caseInvokeStatement(InvokeStatement object) { | |
return createInvokeStatementAdapter(); | |
} | |
@Override | |
public Adapter caseObserverStatement(ObserverStatement object) { | |
return createObserverStatementAdapter(); | |
} | |
@Override | |
public Adapter caseMetaStatement(MetaStatement object) { | |
return createMetaStatementAdapter(); | |
} | |
@Override | |
public Adapter caseAbstractElement(AbstractElement object) { | |
return createAbstractElementAdapter(); | |
} | |
@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.efm.ecore.formalml.statement.Statement <em>Statement</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.efm.ecore.formalml.statement.Statement | |
* @generated | |
*/ | |
public Adapter createStatementAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.efm.ecore.formalml.statement.BlockStatement <em>Block Statement</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.efm.ecore.formalml.statement.BlockStatement | |
* @generated | |
*/ | |
public Adapter createBlockStatementAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.efm.ecore.formalml.statement.ExpressionStatement <em>Expression Statement</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.efm.ecore.formalml.statement.ExpressionStatement | |
* @generated | |
*/ | |
public Adapter createExpressionStatementAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.efm.ecore.formalml.statement.AbstractGuardStatement <em>Abstract Guard Statement</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.efm.ecore.formalml.statement.AbstractGuardStatement | |
* @generated | |
*/ | |
public Adapter createAbstractGuardStatementAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.efm.ecore.formalml.statement.GuardStatement <em>Guard Statement</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.efm.ecore.formalml.statement.GuardStatement | |
* @generated | |
*/ | |
public Adapter createGuardStatementAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.efm.ecore.formalml.statement.TimedGuardStatement <em>Timed Guard Statement</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.efm.ecore.formalml.statement.TimedGuardStatement | |
* @generated | |
*/ | |
public Adapter createTimedGuardStatementAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.efm.ecore.formalml.statement.EventGuardStatement <em>Event Guard Statement</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.efm.ecore.formalml.statement.EventGuardStatement | |
* @generated | |
*/ | |
public Adapter createEventGuardStatementAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.efm.ecore.formalml.statement.CheckSatGuardStatement <em>Check Sat Guard Statement</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.efm.ecore.formalml.statement.CheckSatGuardStatement | |
* @generated | |
*/ | |
public Adapter createCheckSatGuardStatementAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.efm.ecore.formalml.statement.AbstractComStatement <em>Abstract Com Statement</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.efm.ecore.formalml.statement.AbstractComStatement | |
* @generated | |
*/ | |
public Adapter createAbstractComStatementAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.efm.ecore.formalml.statement.InputComStatement <em>Input Com Statement</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.efm.ecore.formalml.statement.InputComStatement | |
* @generated | |
*/ | |
public Adapter createInputComStatementAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.efm.ecore.formalml.statement.OutputComStatement <em>Output Com Statement</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.efm.ecore.formalml.statement.OutputComStatement | |
* @generated | |
*/ | |
public Adapter createOutputComStatementAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.efm.ecore.formalml.statement.ConditionalBlockStatement <em>Conditional Block Statement</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.efm.ecore.formalml.statement.ConditionalBlockStatement | |
* @generated | |
*/ | |
public Adapter createConditionalBlockStatementAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.efm.ecore.formalml.statement.IfStatement <em>If Statement</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.efm.ecore.formalml.statement.IfStatement | |
* @generated | |
*/ | |
public Adapter createIfStatementAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.efm.ecore.formalml.statement.WhileDoStatement <em>While Do Statement</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.efm.ecore.formalml.statement.WhileDoStatement | |
* @generated | |
*/ | |
public Adapter createWhileDoStatementAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.efm.ecore.formalml.statement.DoWhileStatement <em>Do While Statement</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.efm.ecore.formalml.statement.DoWhileStatement | |
* @generated | |
*/ | |
public Adapter createDoWhileStatementAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.efm.ecore.formalml.statement.ForStatement <em>For Statement</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.efm.ecore.formalml.statement.ForStatement | |
* @generated | |
*/ | |
public Adapter createForStatementAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.efm.ecore.formalml.statement.ForEachStatement <em>For Each Statement</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.efm.ecore.formalml.statement.ForEachStatement | |
* @generated | |
*/ | |
public Adapter createForEachStatementAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.efm.ecore.formalml.statement.InterruptStatement <em>Interrupt Statement</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.efm.ecore.formalml.statement.InterruptStatement | |
* @generated | |
*/ | |
public Adapter createInterruptStatementAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.efm.ecore.formalml.statement.ActivityStatement <em>Activity Statement</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.efm.ecore.formalml.statement.ActivityStatement | |
* @generated | |
*/ | |
public Adapter createActivityStatementAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.efm.ecore.formalml.statement.InvokeStatement <em>Invoke Statement</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.efm.ecore.formalml.statement.InvokeStatement | |
* @generated | |
*/ | |
public Adapter createInvokeStatementAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.efm.ecore.formalml.statement.ObserverStatement <em>Observer Statement</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.efm.ecore.formalml.statement.ObserverStatement | |
* @generated | |
*/ | |
public Adapter createObserverStatementAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.efm.ecore.formalml.statement.MetaStatement <em>Meta Statement</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.efm.ecore.formalml.statement.MetaStatement | |
* @generated | |
*/ | |
public Adapter createMetaStatementAdapter() { | |
return null; | |
} | |
/** | |
* Creates a new adapter for an object of class '{@link org.eclipse.efm.ecore.formalml.common.AbstractElement <em>Abstract 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.efm.ecore.formalml.common.AbstractElement | |
* @generated | |
*/ | |
public Adapter createAbstractElementAdapter() { | |
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; | |
} | |
} //StatementAdapterFactory |