comma::RaiseStmt Class Reference
#include <Stmt.h>
List of all members.
Detailed Description
Definition at line 559 of file Stmt.h.
Constructor & Destructor Documentation
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] |
static bool comma::RaiseStmt::classof |
( |
const RaiseStmt * |
node |
) |
[inline, static] |
Returns the associated exception declaration.
Definition at line 128 of file Stmt.cpp.
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: