|
KUNAI Static Analyzer
Kunai is a library for doing static binary analysis of Dalvik.
|
Represents the base class of a Type in the DVM we have different types. More...
#include <types.hpp>

Public 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 | |
| DVMType (type_e type, std::string raw_type) | |
| Constructor of DVMType. | |
| virtual | ~DVMType ()=default |
| Destructor of DVMType. | |
| virtual type_e | get_type () const =0 |
| Virtual method to return the type. | |
| virtual std::string | print_type () const =0 |
| Get the type on its string representation. | |
| std::string & | get_raw () |
| get raw string from the type object | |
| virtual const std::string & | pretty_print () |
| Pretty print the name of the type. | |
Represents the base class of a Type in the DVM we have different types.
Types of the DVM we have by default fundamental, classes and array types.
| Enumerator | |
|---|---|
| CLASS | fundamental type (int, float...) |
| ARRAY | user defined class |
| UNKNOWN | an array type maybe wrong? |
|
inline |
Constructor of DVMType.
| type | the type to overload |
| raw_type | string with the type in raw |
|
inline |
get raw string from the type object
|
pure virtual |
Virtual method to return the type.
Implemented in KUNAI::DEX::DVMFundamental, KUNAI::DEX::DVMClass, KUNAI::DEX::DVMArray, and KUNAI::DEX::Unknown.
|
inlinevirtual |
Pretty print the name of the type.
Reimplemented in KUNAI::DEX::DVMFundamental, KUNAI::DEX::DVMClass, and KUNAI::DEX::DVMArray.
|
pure virtual |
Get the type on its string representation.
Implemented in KUNAI::DEX::DVMFundamental, KUNAI::DEX::DVMClass, KUNAI::DEX::DVMArray, and KUNAI::DEX::Unknown.