Eclipse CDT
Pre-release 3.0

org.eclipse.cdt.core.dom.ast.cpp
Interface ICPPASTCatchHandler

All Superinterfaces:
IASTNode, IASTStatement

public interface ICPPASTCatchHandler
extends IASTStatement

Catch handler serves as a standalone stage.


Field Summary
static ASTNodeProperty CATCH_BODY
          CATCH_BODY represents the nested (compound) statement.
static ASTNodeProperty DECLARATION
          DECLARATION represnts the nested declaration within the catch handler.
static ICPPASTCatchHandler[] EMPTY_CATCHHANDLER_ARRAY
          Constant
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTStatement
EMPTY_STATEMENT_ARRAY
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
EMPTY_NODE_ARRAY
 
Method Summary
 IASTStatement getCatchBody()
          Get the cathc body.
 IASTDeclaration getDeclaration()
          Get the declaration.
 boolean isCatchAll()
          Is this catch handler for all exceptions?
 void setCatchBody(IASTStatement compoundStatement)
          Set the catch body.
 void setDeclaration(IASTDeclaration decl)
          Set the declaration.
 void setIsCatchAll(boolean isEllipsis)
          Set is catch all handler.
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
accept, getContainingFilename, getFileLocation, getNodeLocations, getParent, getPropertyInParent, getRawSignature, getTranslationUnit, setParent, setPropertyInParent
 

Field Detail

EMPTY_CATCHHANDLER_ARRAY

static final ICPPASTCatchHandler[] EMPTY_CATCHHANDLER_ARRAY
Constant


DECLARATION

static final ASTNodeProperty DECLARATION
DECLARATION represnts the nested declaration within the catch handler.


CATCH_BODY

static final ASTNodeProperty CATCH_BODY
CATCH_BODY represents the nested (compound) statement.

Method Detail

setIsCatchAll

void setIsCatchAll(boolean isEllipsis)
Set is catch all handler.

Parameters:
isEllipsis - boolean

isCatchAll

boolean isCatchAll()
Is this catch handler for all exceptions?

Returns:
boolean

setCatchBody

void setCatchBody(IASTStatement compoundStatement)
Set the catch body.

Parameters:
compoundStatement - IASTStatement

getCatchBody

IASTStatement getCatchBody()
Get the cathc body.

Returns:
IASTStatement

setDeclaration

void setDeclaration(IASTDeclaration decl)
Set the declaration.

Parameters:
decl - IASTDeclaration

getDeclaration

IASTDeclaration getDeclaration()
Get the declaration.

Returns:
IASTDeclaration

Eclipse CDT
Pre-release 3.0

Copyright (c) IBM Corp. and others 2004. All Rights Reserved.