/*
* 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 org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.InternalEObject;
import tefkat.model.CompoundExpr;
import tefkat.model.Expression;
import tefkat.model.StringConstant;
import tefkat.model.TefkatFactory;
import tefkat.model.TefkatPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>String Constant</b></em>'.
* <!-- end-user-doc -->
* <p>
* </p>
*
* @generated
*/
public class StringConstantImpl extends SimpleExprImpl implements StringConstant {
/**
* <!-- 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 StringConstantImpl() {
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() {
StringConstant copy = TefkatFactory.eINSTANCE.createStringConstant();
copy.setRepresentation(getRepresentation());
return copy;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected EClass eStaticClass() {
return TefkatPackage.Literals.STRING_CONSTANT;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
public String toString() {
if (eIsProxy()) return super.toString();
return "\"" + representation + "\"";
}
} //StringConstantImpl