FLEXMetadataSection.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // FLEXMetadataSection.h
  3. // FLEX
  4. //
  5. // Created by Tanner Bennett on 9/19/19.
  6. // Copyright © 2019 Flipboard. All rights reserved.
  7. //
  8. #import "FLEXExplorerSection.h"
  9. #import "FLEXObjectExplorer.h"
  10. typedef NS_ENUM(NSUInteger, FLEXMetadataKind) {
  11. FLEXMetadataKindProperties = 1,
  12. FLEXMetadataKindClassProperties,
  13. FLEXMetadataKindIvars,
  14. FLEXMetadataKindMethods,
  15. FLEXMetadataKindClassMethods,
  16. FLEXMetadataKindProtocols,
  17. };
  18. /// This section is used for displaying ObjC runtime metadata
  19. /// about a class or object, such as listing methods, properties, etc.
  20. @interface FLEXMetadataSection : FLEXExplorerSection
  21. + (instancetype)explorer:(FLEXObjectExplorer *)explorer kind:(FLEXMetadataKind)metadataKind;
  22. @property (nonatomic, readonly) FLEXMetadataKind metadataKind;
  23. /// The names of metadata to exclude. Useful if you wish to group specific
  24. /// properties or methods together in their own section outside of this one.
  25. ///
  26. /// Setting this property calls \c reloadData on this section.
  27. @property (nonatomic) NSSet<NSString *> *excludedMetadata;
  28. @end