/** | |
* ******************************************************************************* | |
* Copyright (c) 2009 Mia-Software. | |
* 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.nousages.cdo.impl; | |
import org.eclipse.emf.ecore.EClass; | |
import org.eclipse.modisco.java.Block; | |
import org.eclipse.modisco.java.CatchClause; | |
import org.eclipse.modisco.java.SingleVariableDeclaration; | |
import org.eclipse.modisco.java.nousages.cdo.meta.JavaPackage; | |
/** | |
* <!-- begin-user-doc --> | |
* An implementation of the model object '<em><b>Catch Clause</b></em>'. | |
* <!-- end-user-doc --> | |
* <p> | |
* The following features are implemented: | |
* <ul> | |
* <li>{@link org.eclipse.modisco.java.nousages.cdo.impl.CatchClauseImpl#getException <em>Exception</em>}</li> | |
* <li>{@link org.eclipse.modisco.java.nousages.cdo.impl.CatchClauseImpl#getBody <em>Body</em>}</li> | |
* </ul> | |
* </p> | |
* | |
* @generated | |
*/ | |
public class CatchClauseImpl extends StatementImpl implements CatchClause { | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
protected CatchClauseImpl() { | |
super(); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
@Override | |
protected EClass eStaticClass() { | |
return JavaPackage.eINSTANCE.getCatchClause(); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public SingleVariableDeclaration getException() { | |
return (SingleVariableDeclaration)eGet(JavaPackage.eINSTANCE.getCatchClause_Exception(), true); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public void setException(SingleVariableDeclaration newException) { | |
eSet(JavaPackage.eINSTANCE.getCatchClause_Exception(), newException); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public Block getBody() { | |
return (Block)eGet(JavaPackage.eINSTANCE.getCatchClause_Body(), true); | |
} | |
/** | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public void setBody(Block newBody) { | |
eSet(JavaPackage.eINSTANCE.getCatchClause_Body(), newBody); | |
} | |
} //CatchClauseImpl |