Method.h
2.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#pragma once
#include <stdint.h>
#include <string>
#include "il2cpp-config.h"
struct MethodInfo;
struct PropertyInfo;
struct ParameterInfo;
struct Il2CppString;
struct Il2CppType;
struct Il2CppClass;
namespace il2cpp
{
namespace vm
{
class LIBIL2CPP_CODEGEN_API Method
{
public:
static const Il2CppType* GetReturnType(const MethodInfo* method);
static const char* GetName(const MethodInfo *method);
static std::string GetNameWithGenericTypes(const MethodInfo* method);
static std::string GetFullName(const MethodInfo* method);
static bool IsGeneric(const MethodInfo *method);
static bool IsInflated(const MethodInfo *method);
static bool IsInstance(const MethodInfo *method);
static bool IsGenericInstance(const MethodInfo *method);
static uint32_t GetParamCount(const MethodInfo *method);
static uint32_t GetGenericParamCount(const MethodInfo *method);
static const Il2CppType* GetParam(const MethodInfo *method, uint32_t index);
static Il2CppClass* GetClass(const MethodInfo *method);
static bool HasAttribute(const MethodInfo *method, Il2CppClass *attr_class);
static Il2CppClass *GetDeclaringType(const MethodInfo* method);
static uint32_t GetImplementationFlags(const MethodInfo *method);
static uint32_t GetFlags(const MethodInfo *method);
static uint32_t GetToken(const MethodInfo *method);
static const char* GetParamName(const MethodInfo *method, uint32_t index);
static bool IsSameOverloadSignature(const MethodInfo* method1, const MethodInfo* method2);
static bool IsSameOverloadSignature(const PropertyInfo* property1, const PropertyInfo* property2);
static int CompareOverloadSignature(const PropertyInfo* property1, const PropertyInfo* property2);
static const char* GetParameterDefaultValue(const MethodInfo *method, const ParameterInfo* parameter, const Il2CppType** type, bool* isExplicitySetNullDefaultValue);
};
} /* namespace vm */
} /* namespace il2cpp */