Package org.eclipse.gmt.modisco.java
Interface CatchClause
- All Superinterfaces:
ASTNode,org.eclipse.emf.ecore.EObject,org.eclipse.emf.common.notify.Notifier,Statement
- All Known Implementing Classes:
CatchClauseImpl
public interface CatchClause extends Statement
A representation of the model object 'Catch Clause'.
The following features are supported:
- See Also:
JavaPackage.getCatchClause()
-
Method Summary
Modifier and Type Method Description BlockgetBody()Returns the value of the 'Body' containment reference.SingleVariableDeclarationgetException()Returns the value of the 'Exception' containment reference.voidsetBody(Block value)Sets the value of the 'Body' containment reference.voidsetException(SingleVariableDeclaration value)Sets the value of the 'Exception' containment reference.Methods inherited from interface org.eclipse.gmt.modisco.java.ASTNode
getComments, getOriginalClassFile, getOriginalCompilationUnit, setOriginalClassFile, setOriginalCompilationUnitMethods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
getException
SingleVariableDeclaration getException()Returns the value of the 'Exception' containment reference. It is bidirectional and its opposite is 'Catch Clause'.- Returns:
- the value of the 'Exception' containment reference.
- See Also:
setException(SingleVariableDeclaration),JavaPackage.getCatchClause_Exception(),SingleVariableDeclaration.getCatchClause()
-
setException
Sets the value of the 'Exception' containment reference.- Parameters:
value- the new value of the 'Exception' containment reference.- See Also:
getException()
-
getBody
Block getBody()Returns the value of the 'Body' containment reference.- Returns:
- the value of the 'Body' containment reference.
- See Also:
setBody(Block),JavaPackage.getCatchClause_Body()
-
setBody
Sets the value of the 'Body' containment reference.- Parameters:
value- the new value of the 'Body' containment reference.- See Also:
getBody()
-