/** * <copyright> * </copyright> * * $Id$ */ package org.eclipse.gmt.modisco.java.emffrag.impl; import org.eclipse.emf.ecore.EClass; import org.eclipse.gmt.modisco.java.Expression; import org.eclipse.gmt.modisco.java.IfStatement; import org.eclipse.gmt.modisco.java.Statement; import org.eclipse.gmt.modisco.java.emffrag.metadata.JavaPackage; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>If Statement</b></em>'. * <!-- end-user-doc --> * <p> * The following features are implemented: * </p> * <ul> * <li>{@link org.eclipse.gmt.modisco.java.emffrag.impl.IfStatementImpl#getExpression <em>Expression</em>}</li> * <li>{@link org.eclipse.gmt.modisco.java.emffrag.impl.IfStatementImpl#getThenStatement <em>Then Statement</em>}</li> * <li>{@link org.eclipse.gmt.modisco.java.emffrag.impl.IfStatementImpl#getElseStatement <em>Else Statement</em>}</li> * </ul> * * @generated */ public class IfStatementImpl extends StatementImpl implements IfStatement { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected IfStatementImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return JavaPackage.eINSTANCE.getIfStatement(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Expression getExpression() { return (Expression)eGet(JavaPackage.eINSTANCE.getIfStatement_Expression(), true); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setExpression(Expression newExpression) { eSet(JavaPackage.eINSTANCE.getIfStatement_Expression(), newExpression); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Statement getThenStatement() { return (Statement)eGet(JavaPackage.eINSTANCE.getIfStatement_ThenStatement(), true); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setThenStatement(Statement newThenStatement) { eSet(JavaPackage.eINSTANCE.getIfStatement_ThenStatement(), newThenStatement); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Statement getElseStatement() { return (Statement)eGet(JavaPackage.eINSTANCE.getIfStatement_ElseStatement(), true); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setElseStatement(Statement newElseStatement) { eSet(JavaPackage.eINSTANCE.getIfStatement_ElseStatement(), newElseStatement); } } //IfStatementImpl