clang API Documentation

Public Types | Public Member Functions | Static Public Member Functions
clang::ObjCContainerDecl Class Reference

#include <DeclObjC.h>

Inheritance diagram for clang::ObjCContainerDecl:
Inheritance graph
[legend]
Collaboration diagram for clang::ObjCContainerDecl:
Collaboration graph
[legend]

List of all members.

Public Types

typedef specific_decl_iterator
< ObjCPropertyDecl
prop_iterator
typedef specific_decl_iterator
< ObjCMethodDecl
method_iterator
typedef filtered_decl_iterator
< ObjCMethodDecl,&ObjCMethodDecl::isInstanceMethod > 
instmeth_iterator
typedef filtered_decl_iterator
< ObjCMethodDecl,&ObjCMethodDecl::isClassMethod > 
classmeth_iterator

Public Member Functions

 ObjCContainerDecl (Kind DK, DeclContext *DC, IdentifierInfo *Id, SourceLocation nameLoc, SourceLocation atStartLoc)
prop_iterator prop_begin () const
prop_iterator prop_end () const
method_iterator meth_begin () const
method_iterator meth_end () const
instmeth_iterator instmeth_begin () const
instmeth_iterator instmeth_end () const
classmeth_iterator classmeth_begin () const
classmeth_iterator classmeth_end () const
ObjCMethodDeclgetMethod (Selector Sel, bool isInstance) const
ObjCMethodDeclgetInstanceMethod (Selector Sel) const
ObjCMethodDeclgetClassMethod (Selector Sel) const
ObjCIvarDeclgetIvarDecl (IdentifierInfo *Id) const
ObjCPropertyDeclFindPropertyDeclaration (IdentifierInfo *PropertyId) const
SourceLocation getAtStartLoc () const
void setAtStartLoc (SourceLocation Loc)
SourceRange getAtEndRange () const
void setAtEndRange (SourceRange atEnd)
virtual SourceRange getSourceRange () const
 Source range that this declaration covers.

Static Public Member Functions

static bool classof (const Decl *D)
static bool classof (const ObjCContainerDecl *D)
static bool classofKind (Kind K)
static DeclContextcastToDeclContext (const ObjCContainerDecl *D)
static ObjCContainerDeclcastFromDeclContext (const DeclContext *DC)

Detailed Description

ObjCContainerDecl - Represents a container for method declarations. Current sub-classes are ObjCInterfaceDecl, ObjCCategoryDecl, ObjCProtocolDecl, and ObjCImplDecl.

Definition at line 434 of file DeclObjC.h.


Member Typedef Documentation

Definition at line 479 of file DeclObjC.h.

Definition at line 469 of file DeclObjC.h.

Definition at line 459 of file DeclObjC.h.

Definition at line 450 of file DeclObjC.h.


Constructor & Destructor Documentation

clang::ObjCContainerDecl::ObjCContainerDecl ( Kind  DK,
DeclContext DC,
IdentifierInfo Id,
SourceLocation  nameLoc,
SourceLocation  atStartLoc 
) [inline]

Definition at line 444 of file DeclObjC.h.


Member Function Documentation

static ObjCContainerDecl* clang::ObjCContainerDecl::castFromDeclContext ( const DeclContext DC) [inline, static]

Reimplemented from clang::Decl.

Definition at line 525 of file DeclObjC.h.

static DeclContext* clang::ObjCContainerDecl::castToDeclContext ( const ObjCContainerDecl D) [inline, static]

Definition at line 522 of file DeclObjC.h.

classmeth_iterator clang::ObjCContainerDecl::classmeth_begin ( ) const [inline]
classmeth_iterator clang::ObjCContainerDecl::classmeth_end ( ) const [inline]
static bool clang::ObjCContainerDecl::classof ( const Decl D) [inline, static]
static bool clang::ObjCContainerDecl::classof ( const ObjCContainerDecl D) [inline, static]

Definition at line 516 of file DeclObjC.h.

static bool clang::ObjCContainerDecl::classofKind ( Kind  K) [inline, static]
ObjCPropertyDecl * ObjCContainerDecl::FindPropertyDeclaration ( IdentifierInfo PropertyId) const
SourceRange clang::ObjCContainerDecl::getAtEndRange ( ) const [inline]

Definition at line 503 of file DeclObjC.h.

Referenced by getSourceRange(), and clang::ASTDeclWriter::VisitObjCContainerDecl().

SourceLocation clang::ObjCContainerDecl::getAtStartLoc ( ) const [inline]
ObjCMethodDecl* clang::ObjCContainerDecl::getClassMethod ( Selector  Sel) const [inline]
ObjCMethodDecl* clang::ObjCContainerDecl::getInstanceMethod ( Selector  Sel) const [inline]
ObjCIvarDecl * ObjCContainerDecl::getIvarDecl ( IdentifierInfo Id) const

getIvarDecl - This method looks up an ivar in this ContextDecl.

Definition at line 54 of file DeclObjC.cpp.

References clang::DeclContext::lookup().

Referenced by clang::Sema::ActOnFields(), and clang::ObjCInterfaceDecl::lookupInstanceVariable().

ObjCMethodDecl * ObjCContainerDecl::getMethod ( Selector  Sel,
bool  isInstance 
) const
virtual SourceRange clang::ObjCContainerDecl::getSourceRange ( ) const [inline, virtual]

Source range that this declaration covers.

Reimplemented from clang::Decl.

Reimplemented in clang::ObjCProtocolDecl, and clang::ObjCInterfaceDecl.

Definition at line 510 of file DeclObjC.h.

References getAtEndRange().

instmeth_iterator clang::ObjCContainerDecl::instmeth_begin ( ) const [inline]
instmeth_iterator clang::ObjCContainerDecl::instmeth_end ( ) const [inline]
method_iterator clang::ObjCContainerDecl::meth_begin ( ) const [inline]
method_iterator clang::ObjCContainerDecl::meth_end ( ) const [inline]
prop_iterator clang::ObjCContainerDecl::prop_begin ( ) const [inline]
prop_iterator clang::ObjCContainerDecl::prop_end ( ) const [inline]
void clang::ObjCContainerDecl::setAtEndRange ( SourceRange  atEnd) [inline]

Definition at line 506 of file DeclObjC.h.

Referenced by clang::ASTDeclReader::VisitObjCContainerDecl().

void clang::ObjCContainerDecl::setAtStartLoc ( SourceLocation  Loc) [inline]

Definition at line 500 of file DeclObjC.h.

Referenced by clang::ASTDeclReader::VisitObjCContainerDecl().


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