dex++ 0.3.1
C++ and C API reference
Loading...
Searching...
No Matches
dex::CfgEdge Struct Reference

A single outgoing edge from one basic block to another. More...

#include <analysis/cfg.hpp>

Public Attributes

uint32_t target_block
 
CfgEdgeKind kind
 
std::optional< int32_t > case_key
 The case key.
 
std::optional< std::string_view > catch_type
 Descriptor of the caught exception class, e.g. "Ljava/io/IOException;".
 

Detailed Description

A single outgoing edge from one basic block to another.

Member Data Documentation

◆ target_block

uint32_t dex::CfgEdge::target_block

◆ kind

CfgEdgeKind dex::CfgEdge::kind

◆ case_key

std::optional<int32_t> dex::CfgEdge::case_key

The case key.

Set for SwitchCase edges only.

◆ catch_type

std::optional<std::string_view> dex::CfgEdge::catch_type

Descriptor of the caught exception class, e.g. "Ljava/io/IOException;".

Set for Exception edges only; an ExceptionCatchAll edge catches everything and has none. The view points into the AnalysisContext's string cache and stays valid for the context's lifetime. It is empty when the DEX file names a type index past its type table.


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