|
dex++ 0.3.1
C++ and C API 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". | |
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.
|
default |
| std::string dex::MethodId::class_descriptor |
'L...;' form, e.g. "Ljava/lang/Object;"
| std::string dex::MethodId::name |
Method name, e.g. "<init>", "main", "toString".
| std::string dex::MethodId::proto |
Full prototype descriptor, e.g. "(I)V".