KUNAI Static Analyzer
Kunai is a library for doing static binary analysis of Dalvik.
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
KUNAI::DEX::DVMFundamental Class Reference

Fundamental types from the DVM, these are the common from many other languages. More...

#include <types.hpp>

Inheritance diagram for KUNAI::DEX::DVMFundamental:
Inheritance graph
[legend]
Collaboration diagram for KUNAI::DEX::DVMFundamental:
Collaboration graph
[legend]

Public Types

enum  fundamental_e {
  BOOLEAN , BYTE , CHAR , DOUBLE ,
  FLOAT , INT , LONG , SHORT ,
  VOID
}
 enum with the fundamental types
 
- Public Types inherited from KUNAI::DEX::DVMType
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.
 
- Public Member Functions inherited from KUNAI::DEX::DVMType
 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
 

Detailed Description

Fundamental types from the DVM, these are the common from many other languages.

Constructor & Destructor Documentation

◆ DVMFundamental()

KUNAI::DEX::DVMFundamental::DVMFundamental ( fundamental_e  f_type,
std::string  name 
)
inline

Constructor of the DVMFundamental.

Parameters
f_typeenum of the fundamental type
namename of the fundamental

Member Function Documentation

◆ get_fundamental_type()

fundamental_e KUNAI::DEX::DVMFundamental::get_fundamental_type ( ) const
inline

get the stored fundamental type

Returns
fundamental type enum

◆ get_name()

const std::string & KUNAI::DEX::DVMFundamental::get_name ( ) const
inline

Return a reference to the fundamental name.

Returns
fundamental name

◆ get_type()

type_e KUNAI::DEX::DVMFundamental::get_type ( ) const
inlineoverridevirtual

get the type of the object

Returns
return FUNDAMENTAL type

Implements KUNAI::DEX::DVMType.

◆ pretty_print()

const std::string & KUNAI::DEX::DVMFundamental::pretty_print ( )
inlineoverridevirtual

Get a pretty printed version of the name.

Returns
pretty printed name

Reimplemented from KUNAI::DEX::DVMType.

◆ print_fundamental_type()

const std::string & KUNAI::DEX::DVMFundamental::print_fundamental_type ( fundamental_e  type) const
inline

Return a reference to a string with the fundamental type.

Parameters
typefundamental value
Returns
fundamental in string format

◆ print_type()

std::string KUNAI::DEX::DVMFundamental::print_type ( ) const
inlineoverridevirtual

Return a string with the name of the type.

Returns
string with the type

Implements KUNAI::DEX::DVMType.


The documentation for this class was generated from the following file: