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

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

#include <common/ids.hpp>

Public Member Functions

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

Public Attributes

std::string class_descriptor
 'L...;' form, e.g. "Ljava/lang/System;"
 
std::string name
 Field name, e.g. "out".
 
std::string type
 Field type descriptor, e.g. "Ljava/io/PrintStream;".
 

Detailed Description

Canonical, DEX-portable identity for a field reference.

The triple (declaring class descriptor, name, type descriptor) uniquely identifies a field across all loaded DEX files — two fields may share a name and differ only in type. Owned strings; safe to store and compare.

Member Function Documentation

◆ operator==()

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

Member Data Documentation

◆ class_descriptor

std::string dex::FieldId::class_descriptor

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

◆ name

std::string dex::FieldId::name

Field name, e.g. "out".

◆ type

std::string dex::FieldId::type

Field type descriptor, e.g. "Ljava/io/PrintStream;".


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