blob: b5f349bdfbe8a62a73deca2b559de6cb2dfe7e6c [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007, 2018 IBM Corporation, Zeligsoft Inc., and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* IBM - Initial API and implementation
* Zeligsoft - Bug 207365 - Maintain currency with JDT compiler
*******************************************************************************/
package org.eclipse.ocl.ecore.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.ocl.ecore.EcorePackage;
import org.eclipse.ocl.ecore.LiteralExp;
import org.eclipse.ocl.ecore.utilities.ToStringVisitor;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Literal Exp</b></em>'.
* <!-- end-user-doc -->
*
* @generated
*/
public abstract class LiteralExpImpl
extends OCLExpressionImpl
implements LiteralExp {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected LiteralExpImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return EcorePackage.Literals.LITERAL_EXP;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
@Override
public String toString() {
if (eIsProxy()) {
return super.toString();
}
return accept(ToStringVisitor.getInstance(this));
}
} //LiteralExpImpl