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

A resolved annotation instance attached to a class, method, or field. More...

#include <analysis/annotations.hpp>

Public Member Functions

const AnnotationValue * find (std::string_view name) const
 Value of the element named name, or nullptr if not explicitly set.
 

Public Attributes

std::string type_descriptor
 Annotation class, 'L...;' form.
 
AnnotationVisibility visibility
 
std::vector< AnnotationElement > elements
 In DEX (name-ascending) order.
 

Detailed Description

A resolved annotation instance attached to a class, method, or field.

Only explicitly written elements appear in elements — values left at their @interface defaults are absent (DEX stores defaults separately, in the dalvik.annotation.AnnotationDefault system annotation on the annotation class itself).

Member Function Documentation

◆ find()

const AnnotationValue * dex::Annotation::find ( std::string_view  name) const
inline

Value of the element named name, or nullptr if not explicitly set.

Member Data Documentation

◆ type_descriptor

std::string dex::Annotation::type_descriptor

Annotation class, 'L...;' form.

◆ visibility

AnnotationVisibility dex::Annotation::visibility

◆ elements

std::vector<AnnotationElement> dex::Annotation::elements

In DEX (name-ascending) order.


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