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

A single call-site edge from one method to another. More...

#include <analysis/call_graph.hpp>

Public Attributes

uint32_t caller_node
 Index into CallGraph::nodes().
 
uint32_t callee_node
 Index into CallGraph::nodes().
 
InvokeKind kind
 
uint32_t code_offset
 Code-unit offset of the invoke within the caller's code_item.
 
EdgeOrigin origin = EdgeOrigin::Declared
 

Detailed Description

A single call-site edge from one method to another.

A call site has one Declared edge and at most one InheritedResolution edge; both share caller_node, kind, and code_offset. The site's possible callees — those edges' callees plus CallGraph::dispatch_targets(edge) — are pairwise distinct, and every one except the Declared callee is a Defined node.

Member Data Documentation

◆ caller_node

uint32_t dex::CallEdge::caller_node

Index into CallGraph::nodes().

◆ callee_node

uint32_t dex::CallEdge::callee_node

Index into CallGraph::nodes().

◆ kind

InvokeKind dex::CallEdge::kind

◆ code_offset

uint32_t dex::CallEdge::code_offset

Code-unit offset of the invoke within the caller's code_item.

◆ origin

EdgeOrigin dex::CallEdge::origin = EdgeOrigin::Declared

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