LLDB  mainline
Public Types | Public Member Functions | Protected Attributes | List of all members
lldb_private::ObjCLanguage::MethodName Class Reference

#include <ObjCLanguage.h>

Collaboration diagram for lldb_private::ObjCLanguage::MethodName:
Collaboration graph

Public Types

enum  Type { eTypeUnspecified, eTypeClassMethod, eTypeInstanceMethod }

Public Member Functions

 MethodName ()
 MethodName (const char *name, bool strict)
 MethodName (llvm::StringRef name, bool strict)
void Clear ()
bool IsValid (bool strict) const
bool HasCategory ()
Type GetType () const
ConstString GetFullName () const
ConstString GetFullNameWithoutCategory (bool empty_if_no_category)
bool SetName (const char *name, bool strict)
bool SetName (llvm::StringRef name, bool strict)
ConstString GetClassName ()
ConstString GetClassNameWithCategory ()
ConstString GetCategory ()
ConstString GetSelector ()
size_t GetFullNames (std::vector< ConstString > &names, bool append)

Protected Attributes

ConstString m_full
ConstString m_class
ConstString m_class_category
ConstString m_category
ConstString m_selector
Type m_type
bool m_category_is_valid

Detailed Description

Definition at line 26 of file ObjCLanguage.h.

Member Enumeration Documentation

◆ Type


Definition at line 28 of file ObjCLanguage.h.

Constructor & Destructor Documentation

◆ MethodName() [1/3]

lldb_private::ObjCLanguage::MethodName::MethodName ( )

Definition at line 30 of file ObjCLanguage.h.

◆ MethodName() [2/3]

lldb_private::ObjCLanguage::MethodName::MethodName ( const char *  name,
bool  strict 

Definition at line 34 of file ObjCLanguage.h.

References SetName().

◆ MethodName() [3/3]

lldb_private::ObjCLanguage::MethodName::MethodName ( llvm::StringRef  name,
bool  strict 

Definition at line 39 of file ObjCLanguage.h.

References Clear(), and SetName().

Member Function Documentation

◆ Clear()

void ObjCLanguage::MethodName::Clear ( )

Definition at line 70 of file ObjCLanguage.cpp.

Referenced by MethodName().

◆ GetCategory()

ConstString ObjCLanguage::MethodName::GetCategory ( )

Definition at line 182 of file ObjCLanguage.cpp.

References lldb_private::ConstString::GetCString().

Referenced by GetFullName(), and HasCategory().

◆ GetClassName()

ConstString ObjCLanguage::MethodName::GetClassName ( )

◆ GetClassNameWithCategory()

ConstString ObjCLanguage::MethodName::GetClassNameWithCategory ( )

Definition at line 144 of file ObjCLanguage.cpp.

References lldb_private::ConstString::GetCString().

Referenced by GetFullName().

◆ GetFullName()

ConstString lldb_private::ObjCLanguage::MethodName::GetFullName ( ) const

◆ GetFullNames()

size_t ObjCLanguage::MethodName::GetFullNames ( std::vector< ConstString > &  names,
bool  append 

◆ GetFullNameWithoutCategory()

ConstString ObjCLanguage::MethodName::GetFullNameWithoutCategory ( bool  empty_if_no_category)

◆ GetSelector()

ConstString ObjCLanguage::MethodName::GetSelector ( )

◆ GetType()

Type lldb_private::ObjCLanguage::MethodName::GetType ( ) const

Definition at line 59 of file ObjCLanguage.h.

References m_type.

◆ HasCategory()

bool lldb_private::ObjCLanguage::MethodName::HasCategory ( )

Definition at line 57 of file ObjCLanguage.h.

References GetCategory(), and lldb_private::ConstString::IsEmpty().

◆ IsValid()

bool lldb_private::ObjCLanguage::MethodName::IsValid ( bool  strict) const

Definition at line 47 of file ObjCLanguage.h.

References eTypeUnspecified, m_full, and m_type.

Referenced by DWARFASTParserClang::ParseTypeFromDWARF().

◆ SetName() [1/2]

bool ObjCLanguage::MethodName::SetName ( const char *  name,
bool  strict 

Definition at line 114 of file ObjCLanguage.cpp.

Referenced by GetFullName(), and MethodName().

◆ SetName() [2/2]

bool ObjCLanguage::MethodName::SetName ( llvm::StringRef  name,
bool  strict 

Definition at line 79 of file ObjCLanguage.cpp.

Member Data Documentation

◆ m_category

ConstString lldb_private::ObjCLanguage::MethodName::m_category

Definition at line 94 of file ObjCLanguage.h.

◆ m_category_is_valid

bool lldb_private::ObjCLanguage::MethodName::m_category_is_valid

Definition at line 97 of file ObjCLanguage.h.

◆ m_class

ConstString lldb_private::ObjCLanguage::MethodName::m_class

Definition at line 91 of file ObjCLanguage.h.

◆ m_class_category

ConstString lldb_private::ObjCLanguage::MethodName::m_class_category

Definition at line 93 of file ObjCLanguage.h.

◆ m_full

ConstString lldb_private::ObjCLanguage::MethodName::m_full

Definition at line 90 of file ObjCLanguage.h.

Referenced by GetFullName(), and IsValid().

◆ m_selector

ConstString lldb_private::ObjCLanguage::MethodName::m_selector

Definition at line 95 of file ObjCLanguage.h.

◆ m_type

Type lldb_private::ObjCLanguage::MethodName::m_type

Definition at line 96 of file ObjCLanguage.h.

Referenced by GetType(), and IsValid().

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