public interface ICPPASTFunctionWithTryBlock extends ICPPASTFunctionDefinition
void func() try { } catch (...) { }
IASTNode.CopyStyle
Modifier and Type | Field and Description |
---|---|
static ASTNodeProperty |
CATCH_HANDLER
A
CATCH_HANDLER is the role of an ICPPASTCatchHandler in
this interface. |
MEMBER_INITIALIZER
DECL_SPECIFIER, DECLARATOR, FUNCTION_BODY
EMPTY_DECLARATION_ARRAY
EMPTY_NODE_ARRAY
ATTRIBUTE, ATTRIBUTE_SPECIFIER
Modifier and Type | Method and Description |
---|---|
void |
addCatchHandler(ICPPASTCatchHandler statement)
Adds a catch handler.
|
ICPPASTFunctionWithTryBlock |
copy()
Returns a mutable copy of the tree rooted at this node.
|
ICPPASTCatchHandler[] |
getCatchHandlers()
Returns an array of catch handlers.
|
addMemberInitializer, copy, getMemberInitializers, isDefaulted, isDeleted, setIsDefaulted, setIsDeleted
getBody, getDeclarator, getDeclSpecifier, getScope, setBody, setDeclarator, setDeclSpecifier
accept, contains, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getOriginalNode, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParent
addAttribute, addAttributeSpecifier, getAttributes, getAttributeSpecifiers
static final ASTNodeProperty CATCH_HANDLER
CATCH_HANDLER
is the role of an ICPPASTCatchHandler in
this interface.void addCatchHandler(ICPPASTCatchHandler statement)
ICPPASTCatchHandler[] getCatchHandlers()
ICPPASTFunctionWithTryBlock copy()
IASTNode
copy.getParent() == null copy.getPropertyInParent() == null copy.isFrozen() == falsePreprocessor 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)
.
copy
in interface IASTDeclaration
copy
in interface IASTFunctionDefinition
copy
in interface IASTNode
copy
in interface ICPPASTFunctionDefinition
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.