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

MethodID represents a single method from DEX file. More...

#include <methods.hpp>

Public Member Functions

 MethodID (DVMType *class_, ProtoID *proto_, std::string &name_)
 Constructor of the MethodID.
 
 ~MethodID ()=default
 Destructor of the MethodID.
 
EncodedMethodget_encoded_method ()
 get the encoded method set in this MethodID*
 
void set_encoded_method (EncodedMethod *e)
 Set the encoded method from this MethodID.
 
const DVMTypeget_class () const
 Get a constant pointer to the class where method is.
 
DVMTypeget_class ()
 Get a pointer to the class where method is.
 
const ProtoIDget_proto () const
 Get a constant pointer to the proto of the method.
 
ProtoIDget_proto ()
 Get a pointer to the proto of the method.
 
const std::string & get_name () const
 Get a constant reference to the name of the method.
 
std::string & get_name ()
 Get a reference to the name of the method.
 
std::string & pretty_method ()
 Get a string representation of the method.
 

Detailed Description

MethodID represents a single method from DEX file.

Constructor & Destructor Documentation

◆ MethodID()

KUNAI::DEX::MethodID::MethodID ( DVMType class_,
ProtoID proto_,
std::string &  name_ 
)
inline

Constructor of the MethodID.

Parameters
class_class of the method
return_typetype returned by prototype of the method
name_name of the method

Member Function Documentation

◆ get_class() [1/2]

DVMType * KUNAI::DEX::MethodID::get_class ( )
inline

Get a pointer to the class where method is.

Returns
pointer to class_

◆ get_class() [2/2]

const DVMType * KUNAI::DEX::MethodID::get_class ( ) const
inline

Get a constant pointer to the class where method is.

Returns
constant pointer to class_

◆ get_encoded_method()

EncodedMethod * KUNAI::DEX::MethodID::get_encoded_method ( )
inline

get the encoded method set in this MethodID*

Returns
the encoded method from this method

◆ get_name() [1/2]

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

Get a reference to the name of the method.

Returns
reference to name_

◆ get_name() [2/2]

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

Get a constant reference to the name of the method.

Returns
constant reference to name_

◆ get_proto() [1/2]

ProtoID * KUNAI::DEX::MethodID::get_proto ( )
inline

Get a pointer to the proto of the method.

Returns
pointer to proto_

◆ get_proto() [2/2]

const ProtoID * KUNAI::DEX::MethodID::get_proto ( ) const
inline

Get a constant pointer to the proto of the method.

Returns
constant pointer to proto_

◆ pretty_method()

std::string & KUNAI::DEX::MethodID::pretty_method ( )

Get a string representation of the method.

Returns
reference to pretty print of method

◆ set_encoded_method()

void KUNAI::DEX::MethodID::set_encoded_method ( EncodedMethod e)
inline

Set the encoded method from this MethodID.

Parameters
encoded_methodproper encoded method

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