LIEF: Library to Instrument Executable Formats Version 0.15.1
Loading...
Searching...
No Matches
LIEF::objc::Metadata Class Reference

This class is the main interface to inspect Objective-C metadata. More...

#include <Metadata.hpp>

Public Types

using classes_it = iterator_range<Class::Iterator>
 
using protocols_it = iterator_range<Protocol::Iterator>
 

Public Member Functions

 Metadata (std::unique_ptr< details::Metadata > impl)
 
classes_it classes () const
 Return an iterator over the different Objective-C classes (@interface)
 
protocols_it protocols () const
 Return an iterator over the Objective-C protocols declared in this binary (@protocol).
 
std::unique_ptr< Classget_class (const std::string &name) const
 Try to find the Objective-C class with the given mangled name.
 
std::unique_ptr< Protocolget_protocol (const std::string &name) const
 Try to find the Objective-C protocol with the given mangled name.
 
std::string to_decl () const
 Generate a header-like of all the Objective-C metadata identified in the binary.
 
 ~Metadata ()
 

Detailed Description

This class is the main interface to inspect Objective-C metadata.

It can be instantiated using the function LIEF::MachO::Binary::objc_metadata

Member Typedef Documentation

◆ classes_it

◆ protocols_it

Constructor & Destructor Documentation

◆ Metadata()

LIEF::objc::Metadata::Metadata ( std::unique_ptr< details::Metadata > impl)

◆ ~Metadata()

LIEF::objc::Metadata::~Metadata ( )

Member Function Documentation

◆ classes()

classes_it LIEF::objc::Metadata::classes ( ) const

Return an iterator over the different Objective-C classes (@interface)

◆ get_class()

std::unique_ptr< Class > LIEF::objc::Metadata::get_class ( const std::string & name) const

Try to find the Objective-C class with the given mangled name.

◆ get_protocol()

std::unique_ptr< Protocol > LIEF::objc::Metadata::get_protocol ( const std::string & name) const

Try to find the Objective-C protocol with the given mangled name.

◆ protocols()

protocols_it LIEF::objc::Metadata::protocols ( ) const

Return an iterator over the Objective-C protocols declared in this binary (@protocol).

◆ to_decl()

std::string LIEF::objc::Metadata::to_decl ( ) const

Generate a header-like of all the Objective-C metadata identified in the binary.


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