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

Public Member Functions

 ExternalClass (std::string &name)
 
std::string & get_name ()
 Get the name of the external class.
 
const std::vector< ExternalMethod * > & get_methods () const
 Get a constant reference to the methods of the class.
 
std::vector< ExternalMethod * > & get_methods ()
 Get a reference to the methods of the class.
 
void add_external_method (ExternalMethod *method)
 Add an external method to the list of methods.
 
void add_external_field (FieldID *field)
 Add a new EncodedField to the class, we do not know if this is static or any other kind of field.
 
const std::vector< std::unique_ptr< EncodedField > > & get_fields () const
 Get a constant reference to the fields of this class.
 
std::vector< std::unique_ptr< EncodedField > > & get_fields ()
 Get a reference to the fields of this class.
 

Member Function Documentation

◆ add_external_field()

void KUNAI::DEX::ExternalClass::add_external_field ( FieldID field)
inline

Add a new EncodedField to the class, we do not know if this is static or any other kind of field.

Parameters
fieldFieldID object used to create the EncodedField

◆ add_external_method()

void KUNAI::DEX::ExternalClass::add_external_method ( ExternalMethod method)
inline

Add an external method to the list of methods.

Parameters
methodnew method of the class

◆ get_fields() [1/2]

std::vector< std::unique_ptr< EncodedField > > & KUNAI::DEX::ExternalClass::get_fields ( )
inline

Get a reference to the fields of this class.

Returns
reference to fields

◆ get_fields() [2/2]

const std::vector< std::unique_ptr< EncodedField > > & KUNAI::DEX::ExternalClass::get_fields ( ) const
inline

Get a constant reference to the fields of this class.

Returns
constant reference to fields

◆ get_methods() [1/2]

std::vector< ExternalMethod * > & KUNAI::DEX::ExternalClass::get_methods ( )
inline

Get a reference to the methods of the class.

Returns
reference to methods

◆ get_methods() [2/2]

const std::vector< ExternalMethod * > & KUNAI::DEX::ExternalClass::get_methods ( ) const
inline

Get a constant reference to the methods of the class.

Returns
constant reference to methods

◆ get_name()

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

Get the name of the external class.

Returns
name of the class

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