diff options
Diffstat (limited to 'plugins/org.eclipse.jem/javainst/org/eclipse/jem/internal/instantiation/impl/PTNumberLiteralImpl.java')
-rw-r--r-- | plugins/org.eclipse.jem/javainst/org/eclipse/jem/internal/instantiation/impl/PTNumberLiteralImpl.java | 176 |
1 files changed, 0 insertions, 176 deletions
diff --git a/plugins/org.eclipse.jem/javainst/org/eclipse/jem/internal/instantiation/impl/PTNumberLiteralImpl.java b/plugins/org.eclipse.jem/javainst/org/eclipse/jem/internal/instantiation/impl/PTNumberLiteralImpl.java deleted file mode 100644 index 56d94b39a..000000000 --- a/plugins/org.eclipse.jem/javainst/org/eclipse/jem/internal/instantiation/impl/PTNumberLiteralImpl.java +++ /dev/null @@ -1,176 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004, 2005 IBM Corporation and others. - * 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 - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jem.internal.instantiation.impl; -/* - * $RCSfile: PTNumberLiteralImpl.java,v $ - * $Revision: 1.3 $ $Date: 2005/08/24 20:20:24 $ - */ -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import org.eclipse.jem.internal.instantiation.*; -import org.eclipse.jem.internal.instantiation.InstantiationPackage; -import org.eclipse.jem.internal.instantiation.PTNumberLiteral; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Number Literal</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.jem.internal.instantiation.impl.PTNumberLiteralImpl#getToken <em>Token</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class PTNumberLiteralImpl extends PTExpressionImpl implements PTNumberLiteral { - /** - * The default value of the '{@link #getToken() <em>Token</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getToken() - * @generated - * @ordered - */ - protected static final String TOKEN_EDEFAULT = null; - - /** - * The cached value of the '{@link #getToken() <em>Token</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getToken() - * @generated - * @ordered - */ - protected String token = TOKEN_EDEFAULT; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected PTNumberLiteralImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EClass eStaticClass() { - return InstantiationPackage.eINSTANCE.getPTNumberLiteral(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getToken() { - return token; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setToken(String newToken) { - String oldToken = token; - token = newToken; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, InstantiationPackage.PT_NUMBER_LITERAL__TOKEN, oldToken, token)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public Object eGet(EStructuralFeature eFeature, boolean resolve) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case InstantiationPackage.PT_NUMBER_LITERAL__TOKEN: - return getToken(); - } - return eDynamicGet(eFeature, resolve); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eSet(EStructuralFeature eFeature, Object newValue) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case InstantiationPackage.PT_NUMBER_LITERAL__TOKEN: - setToken((String)newValue); - return; - } - eDynamicSet(eFeature, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void eUnset(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case InstantiationPackage.PT_NUMBER_LITERAL__TOKEN: - setToken(TOKEN_EDEFAULT); - return; - } - eDynamicUnset(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean eIsSet(EStructuralFeature eFeature) { - switch (eDerivedStructuralFeatureID(eFeature)) { - case InstantiationPackage.PT_NUMBER_LITERAL__TOKEN: - return TOKEN_EDEFAULT == null ? token != null : !TOKEN_EDEFAULT.equals(token); - } - return eDynamicIsSet(eFeature); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (token: "); - result.append(token); - result.append(')'); - return result.toString(); - } - - /* (non-Javadoc) - * @see org.eclipse.jem.internal.instantiation.impl.ExpressionImpl#accept0(org.eclipse.jem.internal.instantiation.ParseVisitor) - */ - protected void accept0(ParseVisitor visitor) { - visitor.visit(this); - visitor.endVisit(this); - } -} //NumberLiteralImpl |