/* * Copyright (c) 2003- michael lawley and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation * which accompanies this distribution, and is available by writing to * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * * Contributors: * michael lawley * * */ package tefkat.model.impl; import java.util.Collection; import java.util.Iterator; import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EStructuralFeature; import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.util.InternalEList; import tefkat.model.CompoundExpr; import tefkat.model.EnumConstant; import tefkat.model.Expression; import tefkat.model.TefkatFactory; import tefkat.model.TefkatPackage; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Enum Constant</b></em>'. * <!-- end-user-doc --> * <p> * </p> * * @generated */ public class EnumConstantImpl extends CompoundExprImpl implements EnumConstant { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final String copyright = "Copyright michael lawley Pty Ltd 2003-2007"; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected EnumConstantImpl() { super(); } /** * <!-- begin-user-doc --> * Create a (deep) copy of this instance. * Contained EObjects are also copied while referenced EObjects are not. * <!-- end-user-doc --> */ public Expression copy() { EnumConstant copy = TefkatFactory.eINSTANCE.createEnumConstant(); EList argCopy = copy.getArg(); for (final Iterator itr = getArg().iterator(); itr.hasNext(); ) { Expression expr = (Expression) itr.next(); argCopy.add(expr.copy()); } return copy; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected EClass eStaticClass() { return TefkatPackage.Literals.ENUM_CONSTANT; } } //EnumConstantImpl