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

#include <model/types.hpp>

Public Member Functions

FieldDef * find_field (std::string_view name, std::string_view type)
 
const FieldDef * find_field (std::string_view name, std::string_view type) const
 
MethodDef * find_method (std::string_view name, std::string_view proto)
 
const MethodDef * find_method (std::string_view name, std::string_view proto) const
 
bool operator== (const ClassDef &) const =default
 

Public Attributes

std::string type
 Class descriptor, e.g. "Lcom/example/Foo;".
 
AccessFlags access {}
 
std::optional< std::string > superclass
 nullopt only for java.lang.Object.
 
std::vector< std::string > interfaces
 
std::optional< std::string > source_file
 
std::vector< AnnotationItem > annotations
 
std::vector< FieldDef > fields
 Static and instance fields, in any order.
 
std::vector< MethodDef > methods
 Direct and virtual methods, in any order.
 

Member Function Documentation

◆ find_field() [1/2]

FieldDef * dex::model::ClassDef::find_field ( std::string_view  name,
std::string_view  type 
)

◆ find_field() [2/2]

const FieldDef * dex::model::ClassDef::find_field ( std::string_view  name,
std::string_view  type 
) const

◆ find_method() [1/2]

MethodDef * dex::model::ClassDef::find_method ( std::string_view  name,
std::string_view  proto 
)

◆ find_method() [2/2]

const MethodDef * dex::model::ClassDef::find_method ( std::string_view  name,
std::string_view  proto 
) const

◆ operator==()

bool dex::model::ClassDef::operator== ( const ClassDef &  ) const
default

Member Data Documentation

◆ type

std::string dex::model::ClassDef::type

Class descriptor, e.g. "Lcom/example/Foo;".

◆ access

AccessFlags dex::model::ClassDef::access {}

◆ superclass

std::optional<std::string> dex::model::ClassDef::superclass

nullopt only for java.lang.Object.

◆ interfaces

std::vector<std::string> dex::model::ClassDef::interfaces

◆ source_file

std::optional<std::string> dex::model::ClassDef::source_file

◆ annotations

std::vector<AnnotationItem> dex::model::ClassDef::annotations

◆ fields

std::vector<FieldDef> dex::model::ClassDef::fields

Static and instance fields, in any order.

◆ methods

std::vector<MethodDef> dex::model::ClassDef::methods

Direct and virtual methods, in any order.


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