TBRuntimeController.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // FLEXRuntimeController.h
  3. // FLEX
  4. //
  5. // Created by Tanner on 3/23/17.
  6. //
  7. #import "TBKeyPath.h"
  8. @interface TBRuntimeController : NSObject
  9. /// @return An array of strings if the key path only evaluates
  10. /// to a class or bundle; otherwise, a list of lists of FLEXMethods.
  11. + (NSArray *)dataForKeyPath:(TBKeyPath *)keyPath;
  12. /// Useful when you need to specify which classes to search in.
  13. /// \c dataForKeyPath: will only search classes matching the class key.
  14. /// We use this elsewhere when we need to search a class hierarchy.
  15. + (NSArray<NSArray<FLEXMethod *> *> *)methodsForToken:(TBToken *)token
  16. instance:(NSNumber *)onlyInstanceMethods
  17. inClasses:(NSArray<NSString*> *)classes;
  18. /// Useful when you need the classes that are associated with the
  19. /// double list of methods returned from \c dataForKeyPath
  20. + (NSMutableArray<NSString *> *)classesForKeyPath:(TBKeyPath *)keyPath;
  21. + (NSString *)shortBundleNameForClass:(NSString *)name;
  22. + (NSString *)imagePathWithShortName:(NSString *)suffix;
  23. + (NSArray<NSString*> *)allBundleNames;
  24. @end