clang API Documentation

Public Member Functions | Static Public Member Functions | Friends
clang::ObjCCategoryImplDecl Class Reference

#include <DeclObjC.h>

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

List of all members.

Public Member Functions

IdentifierInfogetIdentifier () const
void setIdentifier (IdentifierInfo *II)
ObjCCategoryDeclgetCategoryDecl () const
SourceLocation getCategoryNameLoc () const
StringRef getName () const
std::string getNameAsString () const
 Get the name of the class associated with this interface.

Static Public Member Functions

static ObjCCategoryImplDeclCreate (ASTContext &C, DeclContext *DC, IdentifierInfo *Id, ObjCInterfaceDecl *classInterface, SourceLocation nameLoc, SourceLocation atStartLoc, SourceLocation CategoryNameLoc)
static ObjCCategoryImplDeclCreateDeserialized (ASTContext &C, unsigned ID)
static bool classof (const Decl *D)
static bool classofKind (Kind K)

Friends

class ASTDeclReader
class ASTDeclWriter

Detailed Description

ObjCCategoryImplDecl - An object of this class encapsulates a category @implementation declaration. If a category class has declaration of a property, its implementation must be specified in the category's @implementation declaration. Example: @interface I @end @interface I(CATEGORY) @property int p1, d1; @end @implementation I(CATEGORY) @dynamic p1,d1; @end

ObjCCategoryImplDecl

Definition at line 1912 of file DeclObjC.h.


Member Function Documentation

static bool clang::ObjCCategoryImplDecl::classof ( const Decl D) [inline, static]

Reimplemented from clang::ObjCImplDecl.

Definition at line 1967 of file DeclObjC.h.

References classofKind(), and clang::Decl::getKind().

static bool clang::ObjCCategoryImplDecl::classofKind ( Kind  K) [inline, static]

Reimplemented from clang::ObjCImplDecl.

Definition at line 1968 of file DeclObjC.h.

Referenced by classof().

ObjCCategoryImplDecl * ObjCCategoryImplDecl::Create ( ASTContext C,
DeclContext DC,
IdentifierInfo Id,
ObjCInterfaceDecl classInterface,
SourceLocation  nameLoc,
SourceLocation  atStartLoc,
SourceLocation  CategoryNameLoc 
) [static]

Definition at line 1712 of file DeclObjC.cpp.

References AttributeLangSupport::C.

getIdentifier - Get the identifier that names the category interface associated with this implementation. FIXME: This is a bad API, we are hiding NamedDecl::getIdentifier() with a different meaning. For example: ((NamedDecl *)SomeCategoryImplDecl)->getIdentifier() returns the class interface name, whereas ((ObjCCategoryImplDecl *)SomeCategoryImplDecl)->getIdentifier() returns the category name.

Reimplemented from clang::NamedDecl.

Definition at line 1944 of file DeclObjC.h.

Referenced by clang::Sema::ActOnPropertyImplDecl(), getCategoryDecl(), clang::ASTDeclWriter::VisitObjCCategoryImplDecl(), and clang::ASTNodeImporter::VisitObjCCategoryImplDecl().

StringRef clang::ObjCCategoryImplDecl::getName ( ) const [inline]

getName - Get the name of identifier for the class interface associated with this implementation as a StringRef.

Reimplemented from clang::NamedDecl.

Definition at line 1958 of file DeclObjC.h.

References clang::IdentifierInfo::getName().

Referenced by getNameAsString(), and clang::operator<<().

std::string clang::ObjCCategoryImplDecl::getNameAsString ( ) const [inline]

Get the name of the class associated with this interface.

Reimplemented from clang::NamedDecl.

Definition at line 1963 of file DeclObjC.h.

References getName().

Definition at line 1947 of file DeclObjC.h.

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


Friends And Related Function Documentation

friend class ASTDeclReader [friend]

Reimplemented from clang::DeclContext.

Definition at line 1970 of file DeclObjC.h.

friend class ASTDeclWriter [friend]

Reimplemented from clang::Decl.

Definition at line 1971 of file DeclObjC.h.


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