comma::RaiseStmt Class Reference

#include <Stmt.h>

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

List of all members.

Public Member Functions

 RaiseStmt (Location loc, ExceptionRef *exception, Expr *message=0)
bool hasMessage () const
 Returns true if this raise statement has a message associated with it.
void setMessage (Expr *message)
 Sets the message associated with this statement.
void setException (ExceptionRef *exception)
 Sets the exception reference associated with this statement.



const ExceptionDeclgetExceptionDecl () const
 Returns the associated exception declaration.
ExceptionDeclgetExceptionDecl ()
 Returns the associated exception declaration.
const ExceptionRefgetExceptionRef () const
 Returns the associated exception reference.
ExceptionRefgetExceptionRef ()
 Returns the associated exception declaration.
const ExprgetMessage () const
ExprgetMessage ()
 Returns the associated exception declaration.

Static Public Member Functions

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

Detailed Description

Definition at line 559 of file Stmt.h.


Constructor & Destructor Documentation

comma::RaiseStmt::RaiseStmt ( Location  loc,
ExceptionRef exception,
Expr message = 0 
) [inline]

Constructs a RaiseStmt node.

Parameters:
loc Location of the `raise' keyword.
exception ExceptionRef corresponding to the exception to raise.
message Optional expression of type String serving as the message to be attached to the exception.

Definition at line 570 of file Stmt.h.


Member Function Documentation

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

Reimplemented from comma::Stmt.

Definition at line 604 of file Stmt.h.

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

Support isa and dyn_cast.

Reimplemented from comma::Stmt.

Definition at line 603 of file Stmt.h.

ExceptionDecl * RaiseStmt::getExceptionDecl (  ) 

Returns the associated exception declaration.

Definition at line 128 of file Stmt.cpp.

const ExceptionDecl * RaiseStmt::getExceptionDecl (  )  const

Returns the associated exception declaration.

Definition at line 123 of file Stmt.cpp.

ExceptionRef* comma::RaiseStmt::getExceptionRef (  )  [inline]

Returns the associated exception declaration.

Definition at line 583 of file Stmt.h.

const ExceptionRef* comma::RaiseStmt::getExceptionRef (  )  const [inline]

Returns the associated exception reference.

Definition at line 582 of file Stmt.h.

Expr* comma::RaiseStmt::getMessage (  )  [inline]

Returns the associated exception declaration.

Definition at line 593 of file Stmt.h.

const Expr* comma::RaiseStmt::getMessage (  )  const [inline]

Returns the message associated with this raise statement, or null if there is none.

Definition at line 592 of file Stmt.h.

bool comma::RaiseStmt::hasMessage (  )  const [inline]

Returns true if this raise statement has a message associated with it.

Definition at line 587 of file Stmt.h.

void comma::RaiseStmt::setException ( ExceptionRef exception  )  [inline]

Sets the exception reference associated with this statement.

Definition at line 600 of file Stmt.h.

void comma::RaiseStmt::setMessage ( Expr message  )  [inline]

Sets the message associated with this statement.

Definition at line 597 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

Rabisu Mirror Service We provide mirrors to support Open source communities. Our mirror server is located in Istanbul/Turkey region.

Please do not hesitate to contact mirror@rabisu.com for new open source mirror submissions.