项目作者: leptos-null

项目描述 :
Library to parse Objective-C classes at runtime
高级语言: Objective-C
项目地址: git://github.com/leptos-null/ClassDumpRuntime.git
创建时间: 2019-12-21T05:51:24Z
项目社区:https://github.com/leptos-null/ClassDumpRuntime

开源协议:Other

下载


ClassDumpRuntime

Create human readable interfaces from runtime Objective-C environments.

This library is intended to be compiled with Xcode or Theos.
The library can be loaded into an Objective-C runtime to view class or protocol headers.

Example:

  1. CDClassModel *ortho = [CDClassModel modelWithClass:[NSOrthography class]];
  2. [ortho linesWithComments:NO synthesizeStrip:YES];
  3. /*
  4. @interface NSOrthography : NSObject <NSCopying, NSSecureCoding>
  5. @property (class, readonly) BOOL supportsSecureCoding;
  6. @property (readonly, copy) NSString *dominantScript;
  7. @property (readonly, copy) NSDictionary *languageMap;
  8. + (id)orthographyWithDominantScript:(id)a0 languageMap:(id)a1;
  9. + (id)_scriptNameForScriptIndex:(unsigned long long)a0;
  10. + (void)initialize;
  11. + (id)allocWithZone:(struct _NSZone { } *)a0;
  12. - (id)initWithDominantScript:(id)a0 languageMap:(id)a1;
  13. - (unsigned int)orthographyFlags;
  14. - (id)dominantLanguage;
  15. - (id)allScripts;
  16. - (id)languagesForScript:(id)a0;
  17. - (id)replacementObjectForPortCoder:(id)a0;
  18. - (id)dominantLanguageForScript:(id)a0;
  19. - (id)allLanguages;
  20. - (id)initWithCoder:(id)a0;
  21. - (void)encodeWithCoder:(id)a0;
  22. - (BOOL)isEqual:(id)a0;
  23. - (unsigned long long)hash;
  24. - (id)description;
  25. - (id)copyWithZone:(struct _NSZone { } *)a0;
  26. - (Class)classForCoder;
  27. @end
  28. */
  29. [ortho linesWithComments:NO synthesizeStrip:NO];
  30. /*
  31. @interface NSOrthography : NSObject <NSCopying, NSSecureCoding>
  32. @property (class, readonly) BOOL supportsSecureCoding;
  33. @property (readonly, copy) NSString *dominantScript;
  34. @property (readonly, copy) NSDictionary *languageMap;
  35. + (id)orthographyWithDominantScript:(id)a0 languageMap:(id)a1;
  36. + (id)_scriptNameForScriptIndex:(unsigned long long)a0;
  37. + (void)initialize;
  38. + (id)allocWithZone:(struct _NSZone { } *)a0;
  39. + (BOOL)supportsSecureCoding;
  40. - (id)initWithDominantScript:(id)a0 languageMap:(id)a1;
  41. - (unsigned int)orthographyFlags;
  42. - (id)dominantScript;
  43. - (id)languageMap;
  44. - (id)dominantLanguage;
  45. - (id)allScripts;
  46. - (id)languagesForScript:(id)a0;
  47. - (id)replacementObjectForPortCoder:(id)a0;
  48. - (id)dominantLanguageForScript:(id)a0;
  49. - (id)allLanguages;
  50. - (id)initWithCoder:(id)a0;
  51. - (void)encodeWithCoder:(id)a0;
  52. - (BOOL)isEqual:(id)a0;
  53. - (unsigned long long)hash;
  54. - (id)description;
  55. - (id)copyWithZone:(struct _NSZone { } *)a0;
  56. - (Class)classForCoder;
  57. @end
  58. */
  59. [ortho.protocols[1] linesWithComments:NO synthesizeStrip:YES];
  60. /*
  61. @protocol NSSecureCoding <NSCoding>
  62. + (BOOL)supportsSecureCoding;
  63. @end
  64. */