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

Class with all the previos annotations. More...

#include <annotations.hpp>

Public Member Functions

 AnnotationDirectoryItem ()=default
 Constructor of AnnotationDirectoryItem.
 
 ~AnnotationDirectoryItem ()=default
 Destructor of AnnotationDirectoryItem.
 
void parse_annotation_directory_item (stream::KunaiStream *stream)
 Parse the annotation directory item.
 
const std::vector< fieldannotation_t > & get_field_annotations () const
 Get a constant reference to all the field annotations from the annotation directory.
 
std::vector< fieldannotation_t > & get_field_annotations ()
 Get a reference to all the field annotations from the annotation directory.
 
FieldAnnotationget_field_annotation_by_id (std::uint32_t idx)
 Get a pointer to a field annotation.
 
const std::vector< methodannotation_t > & get_method_annotations () const
 Get a constant reference to all method annotations from the annotation directory.
 
std::vector< methodannotation_t > & get_method_annotations ()
 Get a reference to all method annotations from the annotation directory.
 
MethodAnnotationget_method_annotation_by_id (std::uint32_t idx)
 Get a pointer to method annotation.
 
const std::vector< parameterannotation_t > & get_parameter_annotations () const
 Get a constant reference to all the parameter annotations from the annotation directory.
 
std::vector< parameterannotation_t > & get_parameter_annotations ()
 Get a reference to all the parameter annotations from the annotation directory.
 
ParameterAnnotationget_parameter_annotation_by_id (std::uint32_t idx)
 Get a pointer to a parameter annotation.
 

Detailed Description

Class with all the previos annotations.

Member Function Documentation

◆ get_field_annotation_by_id()

FieldAnnotation * KUNAI::DEX::AnnotationDirectoryItem::get_field_annotation_by_id ( std::uint32_t  idx)

Get a pointer to a field annotation.

Parameters
idxidx of the Field
Returns
field annotation pointer

◆ get_field_annotations() [1/2]

std::vector< fieldannotation_t > & KUNAI::DEX::AnnotationDirectoryItem::get_field_annotations ( )
inline

Get a reference to all the field annotations from the annotation directory.

Returns
reference to vector of field annotations

◆ get_field_annotations() [2/2]

const std::vector< fieldannotation_t > & KUNAI::DEX::AnnotationDirectoryItem::get_field_annotations ( ) const
inline

Get a constant reference to all the field annotations from the annotation directory.

Returns
constant reference to vector of field annotations

◆ get_method_annotation_by_id()

MethodAnnotation * KUNAI::DEX::AnnotationDirectoryItem::get_method_annotation_by_id ( std::uint32_t  idx)

Get a pointer to method annotation.

Parameters
idxidx of the Method
Returns
method annotation pointer

◆ get_method_annotations() [1/2]

std::vector< methodannotation_t > & KUNAI::DEX::AnnotationDirectoryItem::get_method_annotations ( )
inline

Get a reference to all method annotations from the annotation directory.

Returns
reference to all method annotations

◆ get_method_annotations() [2/2]

const std::vector< methodannotation_t > & KUNAI::DEX::AnnotationDirectoryItem::get_method_annotations ( ) const
inline

Get a constant reference to all method annotations from the annotation directory.

Returns
constant reference to all method annotations

◆ get_parameter_annotation_by_id()

ParameterAnnotation * KUNAI::DEX::AnnotationDirectoryItem::get_parameter_annotation_by_id ( std::uint32_t  idx)

Get a pointer to a parameter annotation.

Parameters
idxidx of the method
Returns
pointer to parameter annotations of the method

◆ get_parameter_annotations() [1/2]

std::vector< parameterannotation_t > & KUNAI::DEX::AnnotationDirectoryItem::get_parameter_annotations ( )
inline

Get a reference to all the parameter annotations from the annotation directory.

Returns
constant to parameter annotations

◆ get_parameter_annotations() [2/2]

const std::vector< parameterannotation_t > & KUNAI::DEX::AnnotationDirectoryItem::get_parameter_annotations ( ) const
inline

Get a constant reference to all the parameter annotations from the annotation directory.

Returns
constant reference to parameter annotations

◆ parse_annotation_directory_item()

void KUNAI::DEX::AnnotationDirectoryItem::parse_annotation_directory_item ( stream::KunaiStream stream)

Parse the annotation directory item.

Parameters
streamstream with the DEX file

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