LLDB mainline
Public Member Functions | Private Attributes | List of all members
lldb_private::StructuredData::Object Class Referenceabstract

#include <StructuredData.h>

Inheritance diagram for lldb_private::StructuredData::Object:
Inheritance graph
[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()

lldb_private::StructuredData::Object::Object ( lldb::StructuredDataType  t = lldb::eStructuredDataTypeInvalid)
inline

Definition at line 80 of file StructuredData.h.

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

void lldb_private::StructuredData::Object::Dump ( lldb_private::Stream s,
bool  pretty_print = true 
) const
inline

◆ DumpToStdout()

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

◆ GetAsArray()

Array * lldb_private::StructuredData::Object::GetAsArray ( )
inline

◆ GetAsBoolean()

Boolean * lldb_private::StructuredData::Object::GetAsBoolean ( )
inline

◆ 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(), lldb_private::StructuredData::Dictionary::Dictionary(), CommandObjectTargetModulesDumpSeparateDebugInfoFiles::DoExecute(), DumpDwoFilesTable(), DumpOsoFilesTable(), GenerateThreadName(), ObjectFileMachO::GetCorefileThreadExtraInfos(), lldb_private::StructuredDataDarwinLog::GetDescription(), lldb_private::Thread::GetDescription(), SystemRuntimeMacOSX::GetExtendedBacktraceThread(), lldb::SBStructuredData::GetKeys(), lldb_private::ScriptedProcess::GetLoadedDynamicLibrariesInfos(), GetObjectForDotSeparatedPath(), lldb_private::platform_gdb_server::PlatformRemoteGDBServer::GetRemoteUnixSignals(), lldb_private::AppleObjCRuntimeV2::GetSharedCacheBaseAddress(), DynamicLoaderMacOS::GetSharedCacheInformation(), lldb_private::Target::StopHookScripted::GetSubclassDescription(), lldb_private::StructuredData::Dictionary::GetValueForKeyAsDictionary(), CommandObjectBreakpointRead::CommandOptions::HandleOptionArgumentCompletion(), lldb_private::DynamicLoaderDarwin::JSONImageInformationIntoImageInfo(), 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 SymbolVendorMacOSX::CreateInstance(), and GetStringValue().

◆ GetAsUnsignedInteger()

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

◆ GetBooleanValue()

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

◆ GetDescription()

virtual void lldb_private::StructuredData::Object::GetDescription ( lldb_private::Stream s) const
inlinevirtual

◆ GetFloatValue()

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

◆ GetObjectForDotSeparatedPath()

StructuredData::ObjectSP StructuredData::Object::GetObjectForDotSeparatedPath ( llvm::StringRef  path)

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

virtual bool lldb_private::StructuredData::Object::IsValid ( ) const
inlinevirtual

◆ Serialize()

virtual void lldb_private::StructuredData::Object::Serialize ( llvm::json::OStream &  s) const
pure virtual

◆ SetType()

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

Definition at line 91 of file StructuredData.h.

References m_type.

Referenced by lldb_private::StructuredData::Dictionary::Dictionary().

Member Data Documentation

◆ m_type

lldb::StructuredDataType lldb_private::StructuredData::Object::m_type
private

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