/** */ package expArithm.impl; import expArithm.*; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EDataType; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.impl.EFactoryImpl; import org.eclipse.emf.ecore.plugin.EcorePlugin; /** * <!-- begin-user-doc --> * An implementation of the model <b>Factory</b>. * <!-- end-user-doc --> * @generated */ public class ExpArithmFactoryImpl extends EFactoryImpl implements ExpArithmFactory { /** * Creates the default factory implementation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static ExpArithmFactory init() { try { ExpArithmFactory theExpArithmFactory = (ExpArithmFactory)EPackage.Registry.INSTANCE.getEFactory(ExpArithmPackage.eNS_URI); if (theExpArithmFactory != null) { return theExpArithmFactory; } } catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); } return new ExpArithmFactoryImpl(); } /** * Creates an instance of the factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ExpArithmFactoryImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public EObject create(EClass eClass) { switch (eClass.getClassifierID()) { case ExpArithmPackage.EXPRESSION_ARITHM: return createExpressionArithm(); case ExpArithmPackage.VALEUR: return createValeur(); case ExpArithmPackage.PLUS: return createPlus(); case ExpArithmPackage.MOINS: return createMoins(); case ExpArithmPackage.MULT: return createMult(); case ExpArithmPackage.DIVISION: return createDivision(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ExpressionArithm createExpressionArithm() { ExpressionArithmImpl expressionArithm = new ExpressionArithmImpl(); return expressionArithm; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Valeur createValeur() { ValeurImpl valeur = new ValeurImpl(); return valeur; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Plus createPlus() { PlusImpl plus = new PlusImpl(); return plus; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Moins createMoins() { MoinsImpl moins = new MoinsImpl(); return moins; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Mult createMult() { MultImpl mult = new MultImpl(); return mult; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Division createDivision() { DivisionImpl division = new DivisionImpl(); return division; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ExpArithmPackage getExpArithmPackage() { return (ExpArithmPackage)getEPackage(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @deprecated * @generated */ @Deprecated public static ExpArithmPackage getPackage() { return ExpArithmPackage.eINSTANCE; } } //ExpArithmFactoryImpl