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

Store the information of a ProtoID, this is a string with the return type, the list of parameters and a string with the prototype. More...

#include <protos.hpp>

Public Member Functions

 ProtoID (stream::KunaiStream *stream, Types *types, std::string &shorty_idx, std::uint32_t return_type_idx, std::uint32_t parameters_off)
 Constructor of a ProtoID, the ProtoID parses its own parameters.
 
const std::string & get_shorty_idx () const
 Get constant reference to shorty_idx string.
 
std::string & get_shorty_idx ()
 Get a reference to shorty_idx string.
 
const DVMTypeget_return_type () const
 Get a constant reference to the return type.
 
DVMTypeget_return_type ()
 Get a reference to the return type.
 
const std::vector< DVMType * > & get_parameters () const
 Get a constant reference to the parameters.
 
std::vector< DVMType * > & get_parameters ()
 Get a reference to the parameters.
 

Detailed Description

Store the information of a ProtoID, this is a string with the return type, the list of parameters and a string with the prototype.

Constructor & Destructor Documentation

◆ ProtoID()

KUNAI::DEX::ProtoID::ProtoID ( stream::KunaiStream stream,
Types types,
std::string &  shorty_idx,
std::uint32_t  return_type_idx,
std::uint32_t  parameters_off 
)
inline

Constructor of a ProtoID, the ProtoID parses its own parameters.

Parameters
streamstream to read the parameter types ids
typestypes to obtain result and parameter types
shorty_idxstring with prototype
return_type_idxid of the return type
parameters_offoffset where parameter type ids are stored

Member Function Documentation

◆ get_parameters() [1/2]

std::vector< DVMType * > & KUNAI::DEX::ProtoID::get_parameters ( )
inline

Get a reference to the parameters.

Returns
reference to vector with the parameters

◆ get_parameters() [2/2]

const std::vector< DVMType * > & KUNAI::DEX::ProtoID::get_parameters ( ) const
inline

Get a constant reference to the parameters.

Returns
const reference to vector with the parameters

◆ get_return_type() [1/2]

DVMType * KUNAI::DEX::ProtoID::get_return_type ( )
inline

Get a reference to the return type.

Returns
reference to return type

◆ get_return_type() [2/2]

const DVMType * KUNAI::DEX::ProtoID::get_return_type ( ) const
inline

Get a constant reference to the return type.

Returns
constant reference to return type

◆ get_shorty_idx() [1/2]

std::string & KUNAI::DEX::ProtoID::get_shorty_idx ( )
inline

Get a reference to shorty_idx string.

Returns
reference to shorty_idx

◆ get_shorty_idx() [2/2]

const std::string & KUNAI::DEX::ProtoID::get_shorty_idx ( ) const
inline

Get constant reference to shorty_idx string.

Returns
constant reference to shorty_idx

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