|
LIEF: Library to Instrument Executable Formats Version 1.0.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> |
| using | categories_it = iterator_range<Category::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). | |
| categories_it | categories () const |
| Return an iterator over the Objective-C categories declared in this binary (e.g. @interface NSString (MyAdditions)). | |
| 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 | ) |
Referenced by ~Metadata().
| LIEF::objc::Metadata::~Metadata | ( | ) |
References Metadata().
| categories_it LIEF::objc::Metadata::categories | ( | ) | const |
Return an iterator over the Objective-C categories declared in this binary (e.g. @interface NSString (MyAdditions)).
References categories(), and LIEF_LIFETIMEBOUND.
Referenced by categories().
| classes_it LIEF::objc::Metadata::classes | ( | ) | const |
Return an iterator over the different Objective-C classes (@interface).
References LIEF_LIFETIMEBOUND.
| 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.
References get_class(), and LIEF_LIFETIMEBOUND.
Referenced by get_class().
| 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.
References get_protocol(), and LIEF_LIFETIMEBOUND.
Referenced by get_protocol().
| protocols_it LIEF::objc::Metadata::protocols | ( | ) | const |
Return an iterator over the Objective-C protocols declared in this binary (@protocol).
References LIEF_LIFETIMEBOUND, and protocols().
Referenced by protocols().