blob: 8fe934d69cffe9d5ac1d7d487ea93f0dc7aa78c8 [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
* *******************************************************************************
*/
package org.eclipse.modisco.java;
import org.eclipse.modisco.java.Block;
import org.eclipse.modisco.java.SingleVariableDeclaration;
import org.eclipse.modisco.java.Statement;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Catch Clause</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.modisco.java.CatchClause#getException <em>Exception</em>}</li>
* <li>{@link org.eclipse.modisco.java.CatchClause#getBody <em>Body</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.modisco.java.nousages.cdo.meta.JavaPackage#getCatchClause()
* @model
* @generated
*/
public interface CatchClause extends Statement {
/**
* Returns the value of the '<em><b>Exception</b></em>' containment reference.
* It is bidirectional and its opposite is '{@link org.eclipse.modisco.java.SingleVariableDeclaration#getCatchClause <em>Catch Clause</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Exception</em>' containment reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Exception</em>' containment reference.
* @see #setException(SingleVariableDeclaration)
* @see org.eclipse.modisco.java.nousages.cdo.meta.JavaPackage#getCatchClause_Exception()
* @see org.eclipse.modisco.java.SingleVariableDeclaration#getCatchClause
* @model opposite="catchClause" containment="true" required="true" ordered="false"
* @generated
*/
SingleVariableDeclaration getException();
/**
* Sets the value of the '{@link org.eclipse.modisco.java.CatchClause#getException <em>Exception</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Exception</em>' containment reference.
* @see #getException()
* @generated
*/
void setException(SingleVariableDeclaration value);
/**
* Returns the value of the '<em><b>Body</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Body</em>' containment reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Body</em>' containment reference.
* @see #setBody(Block)
* @see org.eclipse.modisco.java.nousages.cdo.meta.JavaPackage#getCatchClause_Body()
* @model containment="true" required="true" ordered="false"
* @generated
*/
Block getBody();
/**
* Sets the value of the '{@link org.eclipse.modisco.java.CatchClause#getBody <em>Body</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Body</em>' containment reference.
* @see #getBody()
* @generated
*/
void setBody(Block value);
} // CatchClause