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

Class that represent the information from a Method. More...

#include <encoded.hpp>

Public Member Functions

 EncodedMethod (MethodID *method_id, TYPES::access_flags access_flags)
 Constructor of Encoded method.
 
 ~EncodedMethod ()=default
 Destructor of Encoded method.
 
void parse_encoded_method (stream::KunaiStream *stream, std::uint64_t code_off, Types *types)
 Parse the encoded method, this will parse the code item.
 
const MethodIDgetMethodID () const
 Get a constant pointer to the MethodID of the method.
 
MethodIDgetMethodID ()
 Get a pointer to the MethodID of the encoded method.
 
TYPES::access_flags get_access_flags () const
 Get access flags from the encoded method.
 
const CodeItemStructget_code_item () const
 Get the code item from the encoded method.
 
CodeItemStructget_code_item ()
 Get the code item from the encoded method.
 

Detailed Description

Class that represent the information from a Method.

Constructor & Destructor Documentation

◆ EncodedMethod()

KUNAI::DEX::EncodedMethod::EncodedMethod ( MethodID method_id,
TYPES::access_flags  access_flags 
)
inline

Constructor of Encoded method.

Parameters
method_idmethod of the current encoded method
access_flagsaccess flags of access of the method

Member Function Documentation

◆ get_access_flags()

TYPES::access_flags KUNAI::DEX::EncodedMethod::get_access_flags ( ) const
inline

Get access flags from the encoded method.

Returns
access flags of method

◆ get_code_item() [1/2]

CodeItemStruct & KUNAI::DEX::EncodedMethod::get_code_item ( )
inline

Get the code item from the encoded method.

Returns
reference to code item

◆ get_code_item() [2/2]

const CodeItemStruct & KUNAI::DEX::EncodedMethod::get_code_item ( ) const
inline

Get the code item from the encoded method.

Returns
constant reference to code item

◆ getMethodID() [1/2]

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

Get a pointer to the MethodID of the encoded method.

Returns
pointer to the MethodID

◆ getMethodID() [2/2]

const MethodID * KUNAI::DEX::EncodedMethod::getMethodID ( ) const
inline

Get a constant pointer to the MethodID of the method.

Returns
constant pointer to the MethodID

◆ parse_encoded_method()

void KUNAI::DEX::EncodedMethod::parse_encoded_method ( stream::KunaiStream stream,
std::uint64_t  code_off,
Types types 
)

Parse the encoded method, this will parse the code item.

Parameters
streamstream with DEX file
code_offoffset where code item struct
typestypes from the DEX

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