LIEF: Library to Instrument Executable Formats Version 0.16.0
|
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< Class > | get_class (const std::string &name) const |
Try to find the Objective-C class with the given mangled name. | |
std::unique_ptr< Protocol > | get_protocol (const std::string &name) const |
Try to find the Objective-C protocol with the given mangled name. | |
std::string | to_decl (const DeclOpt &opt=DeclOpt()) const |
Generate a header-like of all the Objective-C metadata identified in the binary. The generated output can be configured with the DeclOpt. | |
~Metadata () | |
This class is the main interface to inspect Objective-C metadata.
It can be instantiated using the function LIEF::MachO::Binary::objc_metadata
LIEF::objc::Metadata::Metadata | ( | std::unique_ptr< details::Metadata > | impl | ) |
LIEF::objc::Metadata::~Metadata | ( | ) |
classes_it LIEF::objc::Metadata::classes | ( | ) | const |
Return an iterator over the different Objective-C classes (@interface
)
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.
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_it LIEF::objc::Metadata::protocols | ( | ) | const |
Return an iterator over the Objective-C protocols declared in this binary (@protocol
).
Generate a header-like of all the Objective-C metadata identified in the binary. The generated output can be configured with the DeclOpt.