KUNAI Static Analyzer
Kunai is a library for doing static binary analysis of Dalvik.
|
Class that contains the fields and methods from a class in a DEX file. More...
#include <classes.hpp>
Public Member Functions | |
ClassDataItem ()=default | |
Constructor of ClassDataItem. | |
~ClassDataItem ()=default | |
Destructor of ClassDataItem. | |
void | parse_class_data_item (stream::KunaiStream *stream, Fields *fields, Methods *methods, Types *types) |
Method to parse the ClassDataItem. | |
std::size_t | get_number_of_static_fields () const |
Get the number of the static fields. | |
std::size_t | get_number_of_instance_fields () const |
Get number of instance fields. | |
std::size_t | get_number_of_direct_methods () const |
Get number of direct methods. | |
std::size_t | get_number_of_virtual_methods () const |
Get number of virtual methods. | |
EncodedField * | get_static_field_by_order (std::uint32_t ord) |
Get a pointer to static field from the reading order (recommended) | |
EncodedField * | get_static_field_by_id (std::uint32_t id) |
Get a pointer to static field by the id of the FieldID. | |
EncodedField * | get_instance_field_by_order (std::uint32_t ord) |
Get an instance field from the reading order (recommended) | |
EncodedField * | get_instance_field_by_id (std::uint32_t id) |
Get an instance field by the id of the FieldID. | |
EncodedMethod * | get_direct_method_by_order (std::uint32_t ord) |
Get a direct method from the reading order (recommended) | |
EncodedMethod * | get_direct_method_by_id (std::uint32_t id) |
Get a direct method by the id of the MethodID. | |
EncodedMethod * | get_virtual_method_by_order (std::uint32_t ord) |
Get a virtual method from the reading order (recommended) | |
EncodedMethod * | get_virtual_method_by_id (std::uint32_t id) |
Get a virtual method by the id of the MethodID. | |
std::vector< EncodedField * > & | get_fields () |
Get all the fields from the class. | |
std::vector< EncodedMethod * > & | get_methods () |
Get all the methods from the class. | |
Class that contains the fields and methods from a class in a DEX file.
EncodedMethod * KUNAI::DEX::ClassDataItem::get_direct_method_by_id | ( | std::uint32_t | id | ) |
EncodedMethod * KUNAI::DEX::ClassDataItem::get_direct_method_by_order | ( | std::uint32_t | ord | ) |
Get a direct method from the reading order (recommended)
ord | order of the direct method |
std::vector< EncodedField * > & KUNAI::DEX::ClassDataItem::get_fields | ( | ) |
Get all the fields from the class.
EncodedField * KUNAI::DEX::ClassDataItem::get_instance_field_by_id | ( | std::uint32_t | id | ) |
EncodedField * KUNAI::DEX::ClassDataItem::get_instance_field_by_order | ( | std::uint32_t | ord | ) |
Get an instance field from the reading order (recommended)
ord | order of the instance field |
std::vector< EncodedMethod * > & KUNAI::DEX::ClassDataItem::get_methods | ( | ) |
Get all the methods from the class.
|
inline |
Get number of direct methods.
|
inline |
Get number of instance fields.
|
inline |
Get the number of the static fields.
|
inline |
Get number of virtual methods.
EncodedField * KUNAI::DEX::ClassDataItem::get_static_field_by_id | ( | std::uint32_t | id | ) |
EncodedField * KUNAI::DEX::ClassDataItem::get_static_field_by_order | ( | std::uint32_t | ord | ) |
Get a pointer to static field from the reading order (recommended)
ord | order of the static field |
EncodedMethod * KUNAI::DEX::ClassDataItem::get_virtual_method_by_id | ( | std::uint32_t | id | ) |
EncodedMethod * KUNAI::DEX::ClassDataItem::get_virtual_method_by_order | ( | std::uint32_t | ord | ) |
Get a virtual method from the reading order (recommended)
ord | order of the virtual method |
void KUNAI::DEX::ClassDataItem::parse_class_data_item | ( | stream::KunaiStream * | stream, |
Fields * | fields, | ||
Methods * | methods, | ||
Types * | types | ||
) |
Method to parse the ClassDataItem.
stream | stream DEX file |
fields | fields of the DEX file |
methods | methods of the DEX file |
types | types of the DEX file |