Package org.eclipse.gmt.modisco.java
Interface TryStatement
- All Superinterfaces:
ASTNode,org.eclipse.emf.ecore.EObject,org.eclipse.emf.common.notify.Notifier,Statement
- All Known Implementing Classes:
TryStatementImpl
public interface TryStatement extends Statement
A representation of the model object 'Try Statement'.
The following features are supported:
- See Also:
JavaPackage.getTryStatement()
-
Method Summary
Modifier and Type Method Description BlockgetBody()Returns the value of the 'Body' containment reference.org.eclipse.emf.common.util.EList<CatchClause>getCatchClauses()Returns the value of the 'Catch Clauses' containment reference list.BlockgetFinally()Returns the value of the 'Finally' containment reference.voidsetBody(Block value)Sets the value of the 'Body' containment reference.voidsetFinally(Block value)Sets the value of the 'Finally' 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
-
getBody
Block getBody()Returns the value of the 'Body' containment reference.- Returns:
- the value of the 'Body' containment reference.
- See Also:
setBody(Block),JavaPackage.getTryStatement_Body()
-
setBody
Sets the value of the 'Body' containment reference.- Parameters:
value- the new value of the 'Body' containment reference.- See Also:
getBody()
-
getFinally
Block getFinally()Returns the value of the 'Finally' containment reference.- Returns:
- the value of the 'Finally' containment reference.
- See Also:
setFinally(Block),JavaPackage.getTryStatement_Finally()
-
setFinally
Sets the value of the 'Finally' containment reference.- Parameters:
value- the new value of the 'Finally' containment reference.- See Also:
getFinally()
-
getCatchClauses
org.eclipse.emf.common.util.EList<CatchClause> getCatchClauses()Returns the value of the 'Catch Clauses' containment reference list. The list contents are of typeCatchClause.- Returns:
- the value of the 'Catch Clauses' containment reference list.
- See Also:
JavaPackage.getTryStatement_CatchClauses()
-