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

Method handle (VALUE_METHOD_HANDLE): what it does and the member it does it to. More...

#include <analysis/annotations.hpp>

Public Member Functions

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

Public Attributes

MethodHandleKind kind
 
std::variant< MethodId, FieldId > member
 

Detailed Description

Method handle (VALUE_METHOD_HANDLE): what it does and the member it does it to.

The four field kinds hold a FieldId, the five invoke kinds a MethodId. In a damaged file whose handle index is past the method handle table, or whose handle type is not one of the nine kinds, the kind is InvokeStatic and the member an empty MethodId (the "malformed pool index gives an empty identity" rule).

Member Function Documentation

◆ operator==()

bool dex::AnnotationValue::MethodHandleValue::operator== ( const MethodHandleValue &  ) const
default

Member Data Documentation

◆ kind

MethodHandleKind dex::AnnotationValue::MethodHandleValue::kind

◆ member

std::variant<MethodId, FieldId> dex::AnnotationValue::MethodHandleValue::member

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