// // FLEXRuntime.h // FLEX // // Created by Tanner on 3/22/17. // Copyright © 2017 Tanner Bennett. All rights reserved. // #import "TBToken.h" @class FLEXMethod; /// Accepts runtime queries given a token. @interface TBRuntime : NSObject + (instancetype)runtime; /// Called automatically when \c TBRuntime is first used. /// You may call it again when you think a library has /// been loaded since this method was first called. - (void)reloadLibrariesList; /// An array of strings representing the currently loaded libraries. @property (nonatomic, readonly) NSArray *imageDisplayNames; /// "Image name" is the path of the bundle - (NSString *)shortNameForImageName:(NSString *)imageName; /// "Image name" is the path of the bundle - (NSString *)imageNameForShortName:(NSString *)imageName; /// @return Bundle names for the UI - (NSMutableArray *)bundleNamesForToken:(TBToken *)token; /// @return Bundle paths for more queries - (NSMutableArray *)bundlePathsForToken:(TBToken *)token; /// @return Class names - (NSMutableArray *)classesForToken:(TBToken *)token inBundles:(NSMutableArray *)bundlePaths; /// @return A list of lists of \c FLEXMethods where /// each list corresponds to one of the given classes - (NSArray *> *)methodsForToken:(TBToken *)token instance:(NSNumber *)onlyInstanceMethods inClasses:(NSArray *)classes; @end