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_INITIALIZERDECL_SPECIFIER, DECLARATOR, FUNCTION_BODYEMPTY_DECLARATION_ARRAYEMPTY_NODE_ARRAYATTRIBUTE, 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, setIsDeletedgetBody, getDeclarator, getDeclSpecifier, getScope, setBody, setDeclarator, setDeclSpecifieraccept, contains, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getOriginalNode, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParentaddAttribute, addAttributeSpecifier, getAttributes, getAttributeSpecifiersstatic final ASTNodeProperty CATCH_HANDLER
CATCH_HANDLER is the role of an ICPPASTCatchHandler in
this interface.void addCatchHandler(ICPPASTCatchHandler statement)
ICPPASTCatchHandler[] getCatchHandlers()
ICPPASTFunctionWithTryBlock copy()
IASTNodecopy.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 IASTDeclarationcopy in interface IASTFunctionDefinitioncopy in interface IASTNodecopy in interface ICPPASTFunctionDefinitionCopyright (c) IBM Corp. and others 2004, 2014. All Rights Reserved.