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
[legend]

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 ()
 

Protected Attributes

ConstString m_full
 
ConstString m_class
 
ConstString m_class_category
 
ConstString m_category
 
ConstString m_selector
 
Type m_type = eTypeUnspecified
 
bool m_category_is_valid = false
 

Detailed Description

Definition at line 26 of file ObjCLanguage.h.

Member Enumeration Documentation

◆ Type

Enumerator
eTypeUnspecified 
eTypeClassMethod 
eTypeInstanceMethod 

Definition at line 28 of file ObjCLanguage.h.

Constructor & Destructor Documentation

◆ MethodName() [1/3]

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

Definition at line 30 of file ObjCLanguage.h.

◆ MethodName() [2/3]

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

Definition at line 32 of file ObjCLanguage.h.

References SetName().

◆ MethodName() [3/3]

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

Definition at line 37 of file ObjCLanguage.h.

References SetName().

Member Function Documentation

◆ Clear()

void ObjCLanguage::MethodName::Clear ( )

Definition at line 67 of file ObjCLanguage.cpp.

◆ GetCategory()

ConstString ObjCLanguage::MethodName::GetCategory ( )

Definition at line 179 of file ObjCLanguage.cpp.

References lldb_private::ConstString::GetCString().

Referenced by HasCategory().

◆ GetClassName()

ConstString ObjCLanguage::MethodName::GetClassName ( )

◆ GetClassNameWithCategory()

ConstString ObjCLanguage::MethodName::GetClassNameWithCategory ( )

◆ GetFullName()

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

Definition at line 59 of file ObjCLanguage.h.

References m_full.

Referenced by lldb_private::ObjCLanguage::GetMethodNameVariants().

◆ GetFullNameWithoutCategory()

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

◆ GetSelector()

ConstString ObjCLanguage::MethodName::GetSelector ( )

◆ GetType()

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

Definition at line 57 of file ObjCLanguage.h.

References m_type.

Referenced by lldb_private::ObjCLanguage::GetMethodNameVariants().

◆ HasCategory()

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

Definition at line 55 of file ObjCLanguage.h.

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

◆ IsValid()

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

◆ SetName() [1/2]

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

Definition at line 111 of file ObjCLanguage.cpp.

Referenced by MethodName().

◆ SetName() [2/2]

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

Definition at line 76 of file ObjCLanguage.cpp.

Member Data Documentation

◆ m_category

ConstString lldb_private::ObjCLanguage::MethodName::m_category
protected

Definition at line 80 of file ObjCLanguage.h.

◆ m_category_is_valid

bool lldb_private::ObjCLanguage::MethodName::m_category_is_valid = false
protected

Definition at line 83 of file ObjCLanguage.h.

◆ m_class

ConstString lldb_private::ObjCLanguage::MethodName::m_class
protected

Definition at line 77 of file ObjCLanguage.h.

◆ m_class_category

ConstString lldb_private::ObjCLanguage::MethodName::m_class_category
protected

Definition at line 79 of file ObjCLanguage.h.

◆ m_full

ConstString lldb_private::ObjCLanguage::MethodName::m_full
protected

Definition at line 76 of file ObjCLanguage.h.

Referenced by GetFullName(), and IsValid().

◆ m_selector

ConstString lldb_private::ObjCLanguage::MethodName::m_selector
protected

Definition at line 81 of file ObjCLanguage.h.

◆ m_type

Type lldb_private::ObjCLanguage::MethodName::m_type = eTypeUnspecified
protected

Definition at line 82 of file ObjCLanguage.h.

Referenced by GetType(), and IsValid().


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