LLDB mainline
lldb_private::StructuredData::Object Class Referenceabstract

#include <StructuredData.h>

Inheritance diagram for lldb_private::StructuredData::Object:
[legend]

Public Member Functions

 Object (lldb::StructuredDataType t=lldb::eStructuredDataTypeInvalid)
virtual ~Object ()=default
virtual bool IsValid () const
virtual void Clear ()
lldb::StructuredDataType GetType () const
void SetType (lldb::StructuredDataType t)
ArrayGetAsArray ()
DictionaryGetAsDictionary ()
UnsignedIntegerGetAsUnsignedInteger ()
SignedIntegerGetAsSignedInteger ()
uint64_t GetUnsignedIntegerValue (uint64_t fail_value=0)
int64_t GetSignedIntegerValue (int64_t fail_value=0)
FloatGetAsFloat ()
double GetFloatValue (double fail_value=0.0)
BooleanGetAsBoolean ()
bool GetBooleanValue (bool fail_value=false)
StringGetAsString ()
llvm::StringRef GetStringValue (const char *fail_value=nullptr)
GenericGetAsGeneric ()
ObjectSP GetObjectForDotSeparatedPath (llvm::StringRef path)
void DumpToStdout (bool pretty_print=true) const
virtual void Serialize (llvm::json::OStream &s) const =0
void Dump (lldb_private::Stream &s, bool pretty_print=true) const
virtual void GetDescription (lldb_private::Stream &s) const

Private Attributes

lldb::StructuredDataType m_type

Detailed Description

Definition at line 78 of file StructuredData.h.

Constructor & Destructor Documentation

◆ Object()

◆ ~Object()

virtual lldb_private::StructuredData::Object::~Object ( )
virtualdefault

Member Function Documentation

◆ Clear()

virtual void lldb_private::StructuredData::Object::Clear ( )
inlinevirtual

Definition at line 87 of file StructuredData.h.

References lldb::eStructuredDataTypeInvalid, and m_type.

◆ Dump()

◆ DumpToStdout()

void StructuredData::Object::DumpToStdout ( bool pretty_print = true) const

◆ GetAsArray()

◆ GetAsBoolean()

◆ GetAsDictionary()

Dictionary * lldb_private::StructuredData::Object::GetAsDictionary ( )
inline

Definition at line 99 of file StructuredData.h.

References lldb::eStructuredDataTypeDictionary, and m_type.

Referenced by SystemRuntimeMacOSX::AddThreadExtendedInfoPacketHints(), CommandObjectScriptingObjectParsed::CommandObjectScriptingObjectParsed(), lldb_private::Target::CreateBreakpointsFromFile(), lldb_private::Breakpoint::CreateFromStructuredData(), SymbolVendorMacOSX::CreateInstance(), ThreadMachCore::CreateRegisterContextForFrame(), CommandObjectTargetModulesDumpSeparateDebugInfoFiles::DoExecute(), DumpDwoFilesTable(), DumpOsoFilesTable(), GenerateThreadName(), ObjectFileMachO::GetCorefileProcessMetadata(), ObjectFileMachO::GetCorefileThreadExtraInfos(), lldb_private::StructuredDataDarwinLog::GetDescription(), lldb_private::Thread::GetDescription(), SystemRuntimeMacOSX::GetExtendedBacktraceThread(), lldb::SBStructuredData::GetKeys(), lldb_private::ScriptedProcess::GetLoadedDynamicLibrariesInfos(), GetObjectForDotSeparatedPath(), DynamicLoaderMacOS::GetSharedCacheInformation(), lldb_private::Target::StopHookScripted::GetSubclassDescription(), lldb_private::StructuredData::Dictionary::GetValueForKeyAsDictionary(), CommandObjectBreakpointRead::CommandOptions::HandleOptionArgumentCompletion(), lldb_private::DynamicLoaderDarwin::JSONImageInformationIntoImageInfo(), lldb_private::RegisterContextUnifiedCore::RegisterContextUnifiedCore(), lldb_private::Process::RouteAsyncStructuredData(), lldb_private::Breakpoint::SerializedBreakpointMatchesNames(), CommandObjectScriptingObjectParsed::CommandOptions::SetOptionsFromArray(), lldb_private::process_gdb_remote::ProcessGDBRemote::SetThreadStopInfo(), lldb_private::trace_intel_pt::TraceIntelPT::Start(), and lldb_private::process_gdb_remote::ProcessGDBRemote::UpdateThreadIDList().

◆ GetAsFloat()

Float * lldb_private::StructuredData::Object::GetAsFloat ( )
inline

Definition at line 130 of file StructuredData.h.

References lldb::eStructuredDataTypeFloat, and m_type.

Referenced by GetFloatValue().

◆ GetAsGeneric()

Generic * lldb_private::StructuredData::Object::GetAsGeneric ( )
inline

Definition at line 166 of file StructuredData.h.

References lldb::eStructuredDataTypeGeneric, and m_type.

◆ GetAsSignedInteger()

SignedInteger * lldb_private::StructuredData::Object::GetAsSignedInteger ( )
inline

Definition at line 114 of file StructuredData.h.

References lldb::eStructuredDataTypeSignedInteger, and m_type.

Referenced by GetSignedIntegerValue().

◆ GetAsString()

String * lldb_private::StructuredData::Object::GetAsString ( )
inline

Definition at line 152 of file StructuredData.h.

References lldb::eStructuredDataTypeString, and m_type.

Referenced by GetStringValue().

◆ GetAsUnsignedInteger()

UnsignedInteger * lldb_private::StructuredData::Object::GetAsUnsignedInteger ( )
inline

◆ GetBooleanValue()

bool lldb_private::StructuredData::Object::GetBooleanValue ( bool fail_value = false)
inline

◆ GetDescription()

◆ GetFloatValue()

double lldb_private::StructuredData::Object::GetFloatValue ( double fail_value = 0.0)
inline

◆ GetObjectForDotSeparatedPath()

◆ GetSignedIntegerValue()

int64_t lldb_private::StructuredData::Object::GetSignedIntegerValue ( int64_t fail_value = 0)
inline

Definition at line 125 of file StructuredData.h.

References GetAsSignedInteger(), and integer.

◆ GetStringValue()

llvm::StringRef lldb_private::StructuredData::Object::GetStringValue ( const char * fail_value = nullptr)
inline

◆ GetType()

lldb::StructuredDataType lldb_private::StructuredData::Object::GetType ( ) const
inline

Definition at line 89 of file StructuredData.h.

References m_type.

Referenced by GetObjectForDotSeparatedPath().

◆ GetUnsignedIntegerValue()

uint64_t lldb_private::StructuredData::Object::GetUnsignedIntegerValue ( uint64_t fail_value = 0)
inline

◆ IsValid()

◆ Serialize()

◆ SetType()

void lldb_private::StructuredData::Object::SetType ( lldb::StructuredDataType t)
inline

Definition at line 91 of file StructuredData.h.

References m_type.

Member Data Documentation

◆ m_type


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