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

Canonical, DEX-portable identity for a method reference. More...

#include <common/ids.hpp>

Public Member Functions

bool operator== (const MethodId &) const =default
 

Public Attributes

std::string class_descriptor
 'L...;' form, e.g. "Ljava/lang/Object;"
 
std::string name
 Method name, e.g. "<init>", "main", "toString".
 
std::string proto
 Full prototype descriptor, e.g. "(I)V".
 

Detailed Description

Canonical, DEX-portable identity for a method reference.

The triple (declaring class descriptor, name, full prototype descriptor) uniquely identifies a method across all loaded DEX files. Owned strings — safe to store, log, and compare without lifetime concerns.

The proto field is the full descriptor (e.g. "(Ljava/lang/String;)V"), not the shorty. Shorty collapses every reference type to 'L' and would collide for overloads such as f(String)V vs f(Object)V.

Member Function Documentation

◆ operator==()

bool dex::MethodId::operator== ( const MethodId &  ) const
default

Member Data Documentation

◆ class_descriptor

std::string dex::MethodId::class_descriptor

'L...;' form, e.g. "Ljava/lang/Object;"

◆ name

std::string dex::MethodId::name

Method name, e.g. "<init>", "main", "toString".

◆ proto

std::string dex::MethodId::proto

Full prototype descriptor, e.g. "(I)V".


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