blob: 930fec25edb32b637a00b23796eed74c1110ef26 [file] [log] [blame]
/**
* *******************************************************************************
* Copyright (c) 2009, 2019 Mia-Software 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:
*
* Fabien Giquel (Mia-Software) - initial API and implementation
* Gregoire DUPE (Mia-Software) - initial API and implementation
* *******************************************************************************
*
* $Id$
*/
package org.eclipse.modisco.java.cdo.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.modisco.java.Expression;
import org.eclipse.modisco.java.Statement;
import org.eclipse.modisco.java.WhileStatement;
import org.eclipse.modisco.java.cdo.meta.JavaPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>While Statement</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.eclipse.modisco.java.cdo.impl.WhileStatementImpl#getExpression <em>Expression</em>}</li>
* <li>{@link org.eclipse.modisco.java.cdo.impl.WhileStatementImpl#getBody <em>Body</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class WhileStatementImpl extends StatementImpl implements WhileStatement {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected WhileStatementImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return JavaPackage.eINSTANCE.getWhileStatement();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Expression getExpression() {
return (Expression)eGet(JavaPackage.eINSTANCE.getWhileStatement_Expression(), true);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setExpression(Expression newExpression) {
eSet(JavaPackage.eINSTANCE.getWhileStatement_Expression(), newExpression);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Statement getBody() {
return (Statement)eGet(JavaPackage.eINSTANCE.getWhileStatement_Body(), true);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setBody(Statement newBody) {
eSet(JavaPackage.eINSTANCE.getWhileStatement_Body(), newBody);
}
} //WhileStatementImpl