Welcome to the NetCologne GmbH open source mirroring service!

This machine mirrors various open-source projects. 20 Gbit/s uplink.

If there are any issues or you want another project mirrored, please contact mirror-service -=AT=- netcologne DOT de !

Comma: comma::HandlerStmt Class Reference

comma::HandlerStmt Class Reference

HandlerStmt nodes represent an exception handler. More...

#include <Stmt.h>

Inheritance diagram for comma::HandlerStmt:
Inheritance graph
[legend]
Collaboration diagram for comma::HandlerStmt:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 HandlerStmt (Location loc, ExceptionRef **choices, unsigned numChoices)
unsigned getNumChoices () const
 Returns the number of exception choices associated with this handlers.
bool isCatchAll () const
 Returns true if this handler denotes a "catch-all".
bool handles (const ExceptionDecl *exception) const
 Returns true if this handler covers the given exception.

Static Public Member Functions

static bool classof (const HandlerStmt *node)
 Support isa and dyn_cast.
static bool classof (const Ast *node)



typedef ExceptionRef ** choice_iterator
typedef const ExceptionRef *const * const_choice_iterator
choice_iterator choice_begin ()
choice_iterator choice_end ()
const_choice_iterator choice_begin () const
const_choice_iterator choice_end () const

Detailed Description

HandlerStmt nodes represent an exception handler.

Definition at line 158 of file Stmt.h.


Member Typedef Documentation

Iterators over the set of exception choices associated with this handler.

Definition at line 179 of file Stmt.h.

Iterators over the set of exception choices associated with this handler.

Definition at line 183 of file Stmt.h.


Constructor & Destructor Documentation

HandlerStmt::HandlerStmt ( Location  loc,
ExceptionRef **  choices,
unsigned  numChoices 
)

Constructs a HandlerStmt over the given set of execption choices.

If numChoices is zero, then the resulting handler is considered a "catch-all", corresponding to the code when others.

Definition at line 57 of file Stmt.cpp.


Member Function Documentation

const_choice_iterator comma::HandlerStmt::choice_begin (  )  const [inline]

Iterators over the set of exception choices associated with this handler.

Definition at line 184 of file Stmt.h.

choice_iterator comma::HandlerStmt::choice_begin (  )  [inline]

Iterators over the set of exception choices associated with this handler.

Definition at line 180 of file Stmt.h.

const_choice_iterator comma::HandlerStmt::choice_end (  )  const [inline]

Iterators over the set of exception choices associated with this handler.

Definition at line 185 of file Stmt.h.

choice_iterator comma::HandlerStmt::choice_end (  )  [inline]

Iterators over the set of exception choices associated with this handler.

Definition at line 181 of file Stmt.h.

static bool comma::HandlerStmt::classof ( const Ast node  )  [inline, static]

Reimplemented from comma::StmtSequence.

Definition at line 190 of file Stmt.h.

static bool comma::HandlerStmt::classof ( const HandlerStmt node  )  [inline, static]

Support isa and dyn_cast.

Reimplemented from comma::StmtSequence.

Definition at line 189 of file Stmt.h.

unsigned comma::HandlerStmt::getNumChoices (  )  const [inline]

Returns the number of exception choices associated with this handlers.

Definition at line 168 of file Stmt.h.

bool HandlerStmt::handles ( const ExceptionDecl exception  )  const

Returns true if this handler covers the given exception.

Reimplemented from comma::StmtSequence.

Definition at line 65 of file Stmt.cpp.

bool comma::HandlerStmt::isCatchAll (  )  const [inline]

Returns true if this handler denotes a "catch-all".

Definition at line 171 of file Stmt.h.


The documentation for this class was generated from the following files:

Generated on 1 Feb 2010 for Comma by  doxygen 1.6.1