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

Classes of the DVM. More...

#include <types.hpp>

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

Public Member Functions

 DVMClass (std::string name)
 constructor of DVM class with the name of the class
 
 ~DVMClass ()=default
 default destructor of DVMClass
 
type_e get_type () const override
 get type_e enum value for Class object.
 
std::string print_type () const override
 get the type in string format
 
const std::string & get_name () const
 Get the name of the class.
 
std::string & get_name ()
 Return a reference to the name.
 
const std::string & pretty_print () override
 Pretty print the name of the type.
 
- 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
 

Additional Inherited Members

- 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...
 

Detailed Description

Classes of the DVM.

Constructor & Destructor Documentation

◆ DVMClass()

KUNAI::DEX::DVMClass::DVMClass ( std::string  name)
inline

constructor of DVM class with the name of the class

Parameters
namename of the class

Member Function Documentation

◆ get_name() [1/2]

std::string & KUNAI::DEX::DVMClass::get_name ( )
inline

Return a reference to the name.

Returns
name of the class

◆ get_name() [2/2]

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

Get the name of the class.

Returns
name of the class

◆ get_type()

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

get type_e enum value for Class object.

Returns
type_e with value CLASS.

Implements KUNAI::DEX::DVMType.

◆ pretty_print()

const std::string & KUNAI::DEX::DVMClass::pretty_print ( )
overridevirtual

Pretty print the name of the type.

Returns
pretty print version of the name

Reimplemented from KUNAI::DEX::DVMType.

◆ print_type()

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

get the type in string format

Returns
type in string format

Implements KUNAI::DEX::DVMType.


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