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

A method handle (java.lang.invoke.MethodHandle constant). More...

#include <model/types.hpp>

Public Member Functions

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

Public Attributes

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

Detailed Description

A method handle (java.lang.invoke.MethodHandle constant).

The four field kinds take a FieldId, the five invoke kinds a MethodId. The kind is dex::MethodHandleKind (common/method_handle_kind.hpp), shared with the analysis layer.

Member Function Documentation

◆ operator==()

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

Member Data Documentation

◆ kind

MethodHandleKind dex::model::MethodHandle::kind = MethodHandleKind::InvokeStatic

◆ member

std::variant<MethodId, FieldId> dex::model::MethodHandle::member

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