16#ifndef LIEF_OAT_METHOD_H
17#define LIEF_OAT_METHOD_H
37 using quick_code_t = std::vector<uint8_t>;
43 Method(DEX::Method* method, Class* oat_class, std::vector<uint8_t> code = {});
47 std::string
name()
const;
75 void accept(Visitor& visitor)
const override;
83 DEX::Method* dex_method_ =
nullptr;
84 Class* class_ =
nullptr;
86 quick_code_t quick_code_;
Class which represents a DEX::Method.
Definition DEX/Method.hpp:36
Definition OAT/Class.hpp:36
Definition OAT/Method.hpp:34
const DEX::dex2dex_method_info_t & dex2dex_info() const
bool has_dex_method() const
Check if a LIEF::DEX::Method is associated with this Method.
DEX::Method * dex_method()
Method(DEX::Method *method, Class *oat_class, std::vector< uint8_t > code={})
const DEX::Method * dex_method() const
LIEF::DEX::Method associated (if any)
bool is_dex2dex_optimized() const
True if the optimization is DEX.
std::string name() const
Method's name.
friend std::ostream & operator<<(std::ostream &os, const Method &meth)
void accept(Visitor &visitor) const override
const Class * oat_class() const
OAT Class associated with this Method.
Method & operator=(const Method &)
void quick_code(const quick_code_t &code)
const quick_code_t & quick_code() const
Quick code associated with the method.
Class to parse an OAT file to produce an OAT::Binary.
Definition OAT/Parser.hpp:38
Definition DEX/Class.hpp:30
Definition ELF/Parser.hpp:32
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41