Package org.eclipse.cdt.core.dom.ast.cpp
Interface ICPPASTFunctionWithTryBlock
- All Superinterfaces:
IASTAttributeOwner,IASTDeclaration,IASTFunctionDefinition,IASTNode,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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
IASTNode.CopyStyle -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ASTNodePropertyACATCH_HANDLERis the role of an ICPPASTCatchHandler in this interface.Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTAttributeOwner
ATTRIBUTE, ATTRIBUTE_SPECIFIERFields inherited from interface org.eclipse.cdt.core.dom.ast.IASTDeclaration
EMPTY_DECLARATION_ARRAYFields inherited from interface org.eclipse.cdt.core.dom.ast.IASTFunctionDefinition
DECL_SPECIFIER, DECLARATOR, FUNCTION_BODYFields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
EMPTY_NODE_ARRAYFields inherited from interface org.eclipse.cdt.core.dom.ast.cpp.ICPPASTFunctionDefinition
MEMBER_INITIALIZER -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCatchHandler(ICPPASTCatchHandler statement) Adds a catch handler.copy()Returns a mutable copy of the tree rooted at this node.Returns an array of catch handlers.Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTAttributeOwner
addAttribute, addAttributeSpecifier, getAttributes, getAttributeSpecifiersMethods inherited from interface org.eclipse.cdt.core.dom.ast.IASTFunctionDefinition
getBody, getDeclarator, getDeclSpecifier, getScope, setBody, setDeclarator, setDeclSpecifierMethods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
accept, contains, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getOriginalNode, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParentMethods inherited from interface org.eclipse.cdt.core.dom.ast.cpp.ICPPASTFunctionDefinition
addMemberInitializer, copy, getMemberInitializers, isDefaulted, isDeleted, setIsDefaulted, setIsDeleted
-
Field Details
-
CATCH_HANDLER
ACATCH_HANDLERis the role of an ICPPASTCatchHandler in this interface.
-
-
Method Details
-
addCatchHandler
Adds a catch handler. -
getCatchHandlers
ICPPASTCatchHandler[] getCatchHandlers()Returns an array of catch handlers. -
copy
ICPPASTFunctionWithTryBlock copy()Description copied from interface:IASTNodeReturns 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:
copyin interfaceIASTDeclaration- Specified by:
copyin interfaceIASTFunctionDefinition- Specified by:
copyin interfaceIASTNode- Specified by:
copyin interfaceICPPASTFunctionDefinition- Since:
- 5.1
-