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

Class with static functions to manage information about the dalvik opcodes. More...

#include <dalvik_opcodes.hpp>

Public Member Functions

 DalvikOpcodes ()=default
 Constructor of Dalvik Opcodes.
 
 ~DalvikOpcodes ()=default
 Destructor of Dalvik Opcodes.
 

Static Public Member Functions

static const std::string & get_instruction_name (std::uint32_t instruction)
 Find the instruction opcode in a map to obtain the instruction name.
 
static TYPES::Kind get_instruction_type (std::uint32_t instruction)
 Find the instruction type given an instruction opcode.
 
static const std::string & get_instruction_type_string (std::uint32_t instruction)
 Get an instruction type given an instruction opcode in string format.
 
static TYPES::Operation get_instruction_operation (std::uint32_t instruction)
 Find the instruction operation given an instruction opcode.
 
static std::string get_method_access_flags (EncodedMethod *method)
 Get a string representation of the access flags from a method.
 
static std::string get_field_access_flags (EncodedField *field)
 Get a string representation of the access flags from a field.
 
static std::string get_access_flags_str (TYPES::access_flags flags)
 Get a string representation of any access flags.
 

Detailed Description

Class with static functions to manage information about the dalvik opcodes.

Member Function Documentation

◆ get_access_flags_str()

static std::string KUNAI::DEX::DalvikOpcodes::get_access_flags_str ( TYPES::access_flags  flags)
static

Get a string representation of any access flags.

Parameters
access_flagsaccess flags value
Returns
string representation of access flags

◆ get_field_access_flags()

static std::string KUNAI::DEX::DalvikOpcodes::get_field_access_flags ( EncodedField field)
static

Get a string representation of the access flags from a field.

Parameters
methodfield to retrieve its access flags
Returns
string representation of access flags

◆ get_instruction_name()

static const std::string & KUNAI::DEX::DalvikOpcodes::get_instruction_name ( std::uint32_t  instruction)
static

Find the instruction opcode in a map to obtain the instruction name.

Parameters
instructionopcode of the instruction
Returns
reference to instruction name

◆ get_instruction_operation()

static TYPES::Operation KUNAI::DEX::DalvikOpcodes::get_instruction_operation ( std::uint32_t  instruction)
static

Find the instruction operation given an instruction opcode.

Parameters
instructionopcode of the instruction
Returns
operation of a instruction

◆ get_instruction_type()

static TYPES::Kind KUNAI::DEX::DalvikOpcodes::get_instruction_type ( std::uint32_t  instruction)
static

Find the instruction type given an instruction opcode.

Parameters
instructionopcode of the instruction
Returns
kind of a instruction

◆ get_instruction_type_string()

static const std::string & KUNAI::DEX::DalvikOpcodes::get_instruction_type_string ( std::uint32_t  instruction)
static

Get an instruction type given an instruction opcode in string format.

Parameters
instruction
Returns
constant reference to string with the Kind

◆ get_method_access_flags()

static std::string KUNAI::DEX::DalvikOpcodes::get_method_access_flags ( EncodedMethod method)
static

Get a string representation of the access flags from a method.

Parameters
methodmethod to retrieve its access flags
Returns
string representation of access flags

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