FLEXMetadataSection.h 1.1 KB

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