Method.h 1.9 KB

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