Interface ICPPASTFunctionWithTryBlock

All Superinterfaces:
IASTAttributeOwner, IASTDeclaration, IASTFunctionDefinition, IASTNode, ICPPASTFunctionDefinition

public interface ICPPASTFunctionWithTryBlock extends ICPPASTFunctionDefinition
Models a function defined with a try block, which is a function definition:
 void func() try {
 } catch (...) {
 }
Since:
5.1
Restriction:
This interface is not intended to be implemented by clients.
Restriction:
This interface is not intended to be extended by clients.
  • Field Details

    • CATCH_HANDLER

      static final ASTNodeProperty CATCH_HANDLER
      A CATCH_HANDLER is the role of an ICPPASTCatchHandler in this interface.
  • Method Details

    • addCatchHandler

      void addCatchHandler(ICPPASTCatchHandler statement)
      Adds a catch handler.
    • getCatchHandlers

      ICPPASTCatchHandler[] getCatchHandlers()
      Returns an array of catch handlers.
    • copy

      Description copied from interface: IASTNode
      Returns a mutable copy of the tree rooted at this node. The following postconditions hold:
       copy.getParent() == null
       copy.getPropertyInParent() == null
       copy.isFrozen() == false
       
      Preprocessor nodes do not currently support being copied. Implicit name nodes are not copied, instead they can be regenerated if required.

      Calling this method is equivalent to copy(CopyStyle.withoutLocations).

      Specified by:
      copy in interface IASTDeclaration
      Specified by:
      copy in interface IASTFunctionDefinition
      Specified by:
      copy in interface IASTNode
      Specified by:
      copy in interface ICPPASTFunctionDefinition
      Since:
      5.1