KUNAI Static Analyzer
Kunai is a library for doing static binary analysis of Dalvik.
|
Fundamental types from the DVM, these are the common from many other languages. More...
#include <types.hpp>
Public Types | |
enum | fundamental_e { BOOLEAN , BYTE , CHAR , DOUBLE , FLOAT , INT , LONG , SHORT , VOID } |
enum with the fundamental types | |
![]() | |
enum | type_e { FUNDAMENTAL , CLASS , ARRAY , UNKNOWN } |
Types of the DVM we have by default fundamental, classes and array types. More... | |
Public Member Functions | |
DVMFundamental (fundamental_e f_type, std::string name) | |
Constructor of the DVMFundamental. | |
~DVMFundamental ()=default | |
Destructor of the fundamental. | |
type_e | get_type () const override |
get the type of the object | |
std::string | print_type () const override |
Return a string with the name of the type. | |
fundamental_e | get_fundamental_type () const |
get the stored fundamental type | |
const std::string & | print_fundamental_type (fundamental_e type) const |
Return a reference to a string with the fundamental type. | |
const std::string & | get_name () const |
Return a reference to the fundamental name. | |
const std::string & | pretty_print () override |
Get a pretty printed version of the name. | |
![]() | |
DVMType (type_e type, std::string raw_type) | |
Constructor of DVMType. | |
virtual | ~DVMType ()=default |
Destructor of DVMType. | |
std::string & | get_raw () |
get raw string from the type object | |
Fundamental types from the DVM, these are the common from many other languages.
|
inline |
Constructor of the DVMFundamental.
f_type | enum of the fundamental type |
name | name of the fundamental |
|
inline |
get the stored fundamental type
|
inline |
Return a reference to the fundamental name.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Get a pretty printed version of the name.
Reimplemented from KUNAI::DEX::DVMType.
|
inline |
Return a reference to a string with the fundamental type.
type | fundamental value |
|
inlineoverridevirtual |
Return a string with the name of the type.
Implements KUNAI::DEX::DVMType.