KUNAI Static Analyzer
Kunai is a library for doing static binary analysis of Dalvik.
|
Definition of class with all the ids and offsets for all the other data. More...
#include <classes.hpp>
Classes | |
struct | classdefstruct_t |
Definition of offsets and IDs. More... | |
Public Member Functions | |
ClassDef ()=default | |
Constructor of ClassDef. | |
~ClassDef ()=default | |
Destructor of ClassDef. | |
void | parse_class_def (stream::KunaiStream *stream, Strings *strings, Types *types, Fields *fields, Methods *methods) |
Parse the current ClassDef for that we will parse the classdef_t structure, and then all the other fields. | |
const classdefstruct_t & | get_class_def_struct () const |
Get a constant reference to the classdefstruct_t of the class, this structure contains information about the class. | |
classdefstruct_t & | get_class_def_struct () |
Get a reference to the classdefstruct_t of the class, this structure contains information about the class. | |
DVMClass * | get_class_idx () |
Get a pointer to the DVMClass of the current class. | |
TYPES::access_flags | get_access_flags () const |
Get the access flags of the current class. | |
DVMClass * | get_superclass () |
Get a pointer to the DVMClass of the super class of the current one. | |
const std::string & | get_source_file () const |
Get a constant reference to the string with the source file. | |
const std::vector< DVMClass * > & | get_interfaces () const |
Get a constant reference to the vector with the interfaces implemented. | |
std::vector< DVMClass * > & | get_interfaces () |
Get a reference to the vector with the interfaces implemented. | |
const ClassDataItem & | get_class_data_item () const |
Get a constant reference to the class data item. | |
ClassDataItem & | get_class_data_item () |
Get a reference to the class data item. | |
Definition of class with all the ids and offsets for all the other data.
|
inline |
Get the access flags of the current class.
|
inline |
Get a reference to the class data item.
|
inline |
Get a constant reference to the class data item.
|
inline |
Get a reference to the classdefstruct_t of the class, this structure contains information about the class.
|
inline |
Get a constant reference to the classdefstruct_t of the class, this structure contains information about the class.
|
inline |
|
inline |
Get a reference to the vector with the interfaces implemented.
|
inline |
Get a constant reference to the vector with the interfaces implemented.
|
inline |
Get a constant reference to the string with the source file.
|
inline |
void KUNAI::DEX::ClassDef::parse_class_def | ( | stream::KunaiStream * | stream, |
Strings * | strings, | ||
Types * | types, | ||
Fields * | fields, | ||
Methods * | methods | ||
) |
Parse the current ClassDef for that we will parse the classdef_t structure, and then all the other fields.
stream | stream with DEX file currently parsed |
strings | strings of the DEX file |
types | types of the DEX file |
fields | fields of the DEX file |
methods | methods of the DEX file |