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

FieldID represent one of the fields from the DEX file. More...

#include <fields.hpp>

Public Member Functions

 FieldID (DVMType *class_, DVMType *type_, std::string &name_)
 Constructor of the FieldID.
 
void set_encoded_field (EncodedField *encoded_field)
 
EncodedFieldget_encoded_field ()
 
 ~FieldID ()=default
 Destructor of the FieldID.
 
const DVMTypeget_class () const
 Get a constant pointer to the class where field is.
 
DVMTypeget_class ()
 Get a pointer to the class where field is.
 
const DVMTypeget_type () const
 Get a constant pointer to the type of the field.
 
DVMTypeget_type ()
 Get a pointer to the type of the field.
 
const std::string & get_name () const
 Get a constant reference to the name of the field.
 
std::string & get_name ()
 Get a reference to the name of the field.
 
std::string & pretty_field ()
 Get a string representation of the field.
 

Detailed Description

FieldID represent one of the fields from the DEX file.

Constructor & Destructor Documentation

◆ FieldID()

KUNAI::DEX::FieldID::FieldID ( DVMType class_,
DVMType type_,
std::string &  name_ 
)
inline

Constructor of the FieldID.

Parameters
class_class of the field
type_type of the field
name_name of the field

Member Function Documentation

◆ get_class() [1/2]

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

Get a pointer to the class where field is.

Returns
pointer to class_

◆ get_class() [2/2]

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

Get a constant pointer to the class where field is.

Returns
constant pointer to class_

◆ get_name() [1/2]

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

Get a reference to the name of the field.

Returns
reference to name_

◆ get_name() [2/2]

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

Get a constant reference to the name of the field.

Returns
constant reference to name_

◆ get_type() [1/2]

DVMType * KUNAI::DEX::FieldID::get_type ( )
inline

Get a pointer to the type of the field.

Returns
pointer to type_

◆ get_type() [2/2]

const DVMType * KUNAI::DEX::FieldID::get_type ( ) const
inline

Get a constant pointer to the type of the field.

Returns
constant pointer to type_

◆ pretty_field()

std::string & KUNAI::DEX::FieldID::pretty_field ( )

Get a string representation of the field.

Returns
reference to pretty print of field

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