FLEXObjectRef.h 877 B

12345678910111213141516171819202122232425262728
  1. //
  2. // FLEXObjectRef.h
  3. // FLEX
  4. //
  5. // Created by Tanner Bennett on 7/24/18.
  6. // Copyright (c) 2020 FLEX Team. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @interface FLEXObjectRef : NSObject
  10. + (instancetype)referencing:(id)object;
  11. + (instancetype)referencing:(id)object ivar:(NSString *)ivarName;
  12. + (NSArray<FLEXObjectRef *> *)referencingAll:(NSArray *)objects;
  13. /// Classes do not have a summary, and the reference is just the class name.
  14. + (NSArray<FLEXObjectRef *> *)referencingClasses:(NSArray<Class> *)classes;
  15. /// For example, "NSString 0x1d4085d0" or "NSLayoutConstraint _object"
  16. @property (nonatomic, readonly) NSString *reference;
  17. /// For instances, this is the result of -[FLEXRuntimeUtility summaryForObject:]
  18. /// For classes, there is no summary.
  19. @property (nonatomic, readonly) NSString *summary;
  20. @property (nonatomic, readonly) id object;
  21. @end