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::DVMArray Class Reference

Class that represent the array types. More...

#include <types.hpp>

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

Public Member Functions

 DVMArray (std::string raw, size_t depth, dvmtype_t &array)
 Constructor of DVMArray.
 
 ~DVMArray ()=default
 Destructor of DVMArray.
 
type_e get_type () const override
 Return the type in this case an Array type.
 
std::string print_type () const override
 Return the string representation of the type.
 
const DVMTypeget_array_type () const
 Return a pointer to the type of the array.
 
size_t get_depth () const
 Get the depth of the array specified as [[.
 
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

Class that represent the array types.

Constructor & Destructor Documentation

◆ DVMArray()

KUNAI::DEX::DVMArray::DVMArray ( std::string  raw,
size_t  depth,
dvmtype_t &  array 
)
inline

Constructor of DVMArray.

Parameters
rawarray type in raw
depthhow many depth the array contains
arraytype of the array as a std::unique_ptr

Member Function Documentation

◆ get_array_type()

const DVMType * KUNAI::DEX::DVMArray::get_array_type ( ) const
inline

Return a pointer to the type of the array.

Returns
type of the array

◆ get_depth()

size_t KUNAI::DEX::DVMArray::get_depth ( ) const
inline

Get the depth of the array specified as [[.

Returns
depth of the array

◆ get_type()

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

Return the type in this case an Array type.

Returns
ARRAY value from type_e enum

Implements KUNAI::DEX::DVMType.

◆ pretty_print()

const std::string & KUNAI::DEX::DVMArray::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::DVMArray::print_type ( ) const
inlineoverridevirtual

Return the string representation of the type.

Returns
ARRAY as a string

Implements KUNAI::DEX::DVMType.


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