/** * <copyright> * </copyright> * * $Id$ */ package org.eclipse.gmt.modisco.java.emffrag.impl; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EClass; import org.eclipse.gmt.modisco.java.Expression; import org.eclipse.gmt.modisco.java.Statement; import org.eclipse.gmt.modisco.java.SwitchStatement; import org.eclipse.gmt.modisco.java.emffrag.metadata.JavaPackage; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Switch Statement</b></em>'. * <!-- end-user-doc --> * <p> * The following features are implemented: * </p> * <ul> * <li>{@link org.eclipse.gmt.modisco.java.emffrag.impl.SwitchStatementImpl#getExpression <em>Expression</em>}</li> * <li>{@link org.eclipse.gmt.modisco.java.emffrag.impl.SwitchStatementImpl#getStatements <em>Statements</em>}</li> * </ul> * * @generated */ public class SwitchStatementImpl extends StatementImpl implements SwitchStatement { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected SwitchStatementImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return JavaPackage.eINSTANCE.getSwitchStatement(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Expression getExpression() { return (Expression)eGet(JavaPackage.eINSTANCE.getSwitchStatement_Expression(), true); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setExpression(Expression newExpression) { eSet(JavaPackage.eINSTANCE.getSwitchStatement_Expression(), newExpression); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") public EList<Statement> getStatements() { return (EList<Statement>)eGet(JavaPackage.eINSTANCE.getSwitchStatement_Statements(), true); } } //SwitchStatementImpl