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
    Block getBody()
    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.
    Block getFinally()
    Returns the value of the 'Finally' containment reference.
    void setBody​(Block value)
    Sets the value of the 'Body' containment reference.
    void setFinally​(Block value)
    Sets the value of the 'Finally' containment reference.

    Methods inherited from interface org.eclipse.emf.ecore.EObject

    eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset

    Methods 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

      void setBody​(Block value)
      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

      void setFinally​(Block value)
      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 type CatchClause.
      Returns:
      the value of the 'Catch Clauses' containment reference list.
      See Also:
      JavaPackage.getTryStatement_CatchClauses()