clang  3.9.0
Public Member Functions | Static Public Member Functions | List of all members
clang::ObjCAtTryStmt Class Reference

Represents Objective-C's @try ... @catch ... @finally statement. More...

#include <StmtObjC.h>

Inheritance diagram for clang::ObjCAtTryStmt:
[legend]
Collaboration diagram for clang::ObjCAtTryStmt:
[legend]

Public Member Functions

SourceLocation getAtTryLoc () const
 Retrieve the location of the @ in the @try. More...
 
void setAtTryLoc (SourceLocation Loc)
 
const StmtgetTryBody () const
 Retrieve the @try body. More...
 
StmtgetTryBody ()
 
void setTryBody (Stmt *S)
 
unsigned getNumCatchStmts () const
 Retrieve the number of @catch statements in this try-catch-finally block. More...
 
const ObjCAtCatchStmtgetCatchStmt (unsigned I) const
 Retrieve a @catch statement. More...
 
ObjCAtCatchStmtgetCatchStmt (unsigned I)
 Retrieve a @catch statement. More...
 
void setCatchStmt (unsigned I, ObjCAtCatchStmt *S)
 Set a particular catch statement. More...
 
const ObjCAtFinallyStmtgetFinallyStmt () const
 Retrieve the @finally statement, if any. More...
 
ObjCAtFinallyStmtgetFinallyStmt ()
 
void setFinallyStmt (Stmt *S)
 
SourceLocation getLocStart () const LLVM_READONLY
 
SourceLocation getLocEnd () const LLVM_READONLY
 
child_range children ()
 

Static Public Member Functions

static ObjCAtTryStmtCreate (const ASTContext &Context, SourceLocation atTryLoc, Stmt *atTryStmt, Stmt **CatchStmts, unsigned NumCatchStmts, Stmt *atFinallyStmt)
 
static ObjCAtTryStmtCreateEmpty (const ASTContext &Context, unsigned NumCatchStmts, bool HasFinally)
 
static bool classof (const Stmt *T)
 

Detailed Description

Represents Objective-C's @try ... @catch ... @finally statement.

Definition at line 154 of file StmtObjC.h.

Member Function Documentation

child_range clang::ObjCAtTryStmt::children ( )
inline

Definition at line 248 of file StmtObjC.h.

static bool clang::ObjCAtTryStmt::classof ( const Stmt T)
inlinestatic

Definition at line 244 of file StmtObjC.h.

ObjCAtTryStmt * ObjCAtTryStmt::Create ( const ASTContext Context,
SourceLocation  atTryLoc,
Stmt atTryStmt,
Stmt **  CatchStmts,
unsigned  NumCatchStmts,
Stmt atFinallyStmt 
)
static
ObjCAtTryStmt * ObjCAtTryStmt::CreateEmpty ( const ASTContext Context,
unsigned  NumCatchStmts,
bool  HasFinally 
)
static

Definition at line 58 of file StmtObjC.cpp.

References clang::ASTContext::Allocate().

SourceLocation clang::ObjCAtTryStmt::getAtTryLoc ( ) const
inline

Retrieve the location of the @ in the @try.

Definition at line 193 of file StmtObjC.h.

Referenced by clang::ASTNodeImporter::VisitObjCAtTryStmt().

const ObjCAtCatchStmt* clang::ObjCAtTryStmt::getCatchStmt ( unsigned  I) const
inline

Retrieve a @catch statement.

Definition at line 206 of file StmtObjC.h.

Referenced by clang::CodeGen::CGObjCRuntime::EmitTryCatchStmt(), getLocEnd(), and clang::ASTNodeImporter::VisitObjCAtTryStmt().

ObjCAtCatchStmt* clang::ObjCAtTryStmt::getCatchStmt ( unsigned  I)
inline

Retrieve a @catch statement.

Definition at line 212 of file StmtObjC.h.

const ObjCAtFinallyStmt* clang::ObjCAtTryStmt::getFinallyStmt ( ) const
inline

Retrieve the @finally statement, if any.

Definition at line 224 of file StmtObjC.h.

Referenced by clang::CodeGen::CGObjCRuntime::EmitTryCatchStmt(), getLocEnd(), and clang::ASTNodeImporter::VisitObjCAtTryStmt().

ObjCAtFinallyStmt* clang::ObjCAtTryStmt::getFinallyStmt ( )
inline

Definition at line 230 of file StmtObjC.h.

SourceLocation ObjCAtTryStmt::getLocEnd ( ) const
SourceLocation clang::ObjCAtTryStmt::getLocStart ( ) const
inline

Definition at line 241 of file StmtObjC.h.

unsigned clang::ObjCAtTryStmt::getNumCatchStmts ( ) const
inline

Retrieve the number of @catch statements in this try-catch-finally block.

Definition at line 203 of file StmtObjC.h.

Referenced by clang::CodeGen::CGObjCRuntime::EmitTryCatchStmt(), and clang::ASTNodeImporter::VisitObjCAtTryStmt().

const Stmt* clang::ObjCAtTryStmt::getTryBody ( ) const
inline

Retrieve the @try body.

Definition at line 197 of file StmtObjC.h.

Referenced by clang::CodeGen::CGObjCRuntime::EmitTryCatchStmt(), getLocEnd(), and clang::ASTNodeImporter::VisitObjCAtTryStmt().

Stmt* clang::ObjCAtTryStmt::getTryBody ( )
inline

Definition at line 198 of file StmtObjC.h.

void clang::ObjCAtTryStmt::setAtTryLoc ( SourceLocation  Loc)
inline

Definition at line 194 of file StmtObjC.h.

void clang::ObjCAtTryStmt::setCatchStmt ( unsigned  I,
ObjCAtCatchStmt S 
)
inline

Set a particular catch statement.

Definition at line 218 of file StmtObjC.h.

References S.

void clang::ObjCAtTryStmt::setFinallyStmt ( Stmt S)
inline

Definition at line 236 of file StmtObjC.h.

References S.

void clang::ObjCAtTryStmt::setTryBody ( Stmt S)
inline

Definition at line 199 of file StmtObjC.h.

References S.


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