-
Notifications
You must be signed in to change notification settings - Fork 2
/
libFlex.h
52 lines (47 loc) · 1.9 KB
/
libFlex.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
@import Foundation;
@import UIKit;
@interface FLEXProperty : NSObject
@property (nonatomic, readonly) NSString *fullDescription;
@end
@interface FLEXIvar : NSObject
@end
@interface FLEXMethod : NSObject
@property (nonatomic,strong) NSMutableString *listOfArgs;
@property (nonatomic, readonly) NSMethodSignature *signature;
@property (nonatomic, readonly) NSUInteger numberOfArguments;
@property (nonatomic, readonly) NSString *selectorString;
@property (nonatomic, readonly) BOOL isInstanceMethod;
-(NSString *)returnOrigSpecifierName:(NSString *)argType;
-(NSString *)returnArgName:(NSString *)argType forIndex:(int)index;
- (NSArray *)prettyArgumentComponents;
-(NSString *)prettyName;
- (NSString *)prettyNameForLogging;
- (NSArray *)prettyArgumentComponentsForLogging;
-(NSString *)returnTypeSpecifier:(NSString *)type;
@end
@interface FLEXObjectExplorer : NSObject
@property (nonatomic, readonly) id object;
@property (nonatomic, readonly) NSArray<FLEXProperty *> *properties;
@property (nonatomic, readonly) NSArray<FLEXIvar *> *ivars;
@property (nonatomic, readonly) NSArray<FLEXMethod *> *methods;
@property (nonatomic, readonly) NSArray<FLEXMethod *> *classMethods;
-(void)convertMethodsToText;
-(NSString *)getClassHeirarchy;
-(NSString *)getProperties;
-(NSString *)getIvars;
-(NSString *)getInstanceMethods;
-(NSString *)getClassMethods;
-(NSString *)logInstanceMethods;
-(NSString *)logClassMethods;
-(NSString *)joinAndGenerateHeader;
@end
@interface FLEXObjectExplorerViewController : UIViewController
@property (nonatomic, readonly) FLEXObjectExplorer *explorer;
- (void)loggingButtonPressed:(UIBarButtonItem *)sender;
- (void)addToolbarItems:(NSArray<UIBarButtonItem *> *)items;
@end
@interface FLEXRuntimeUtility : NSObject
+ (NSArray<Class> *)classHierarchyOfObject:(id)objectOrClass;
+ (NSString *)safeClassNameForObject:(id)object;
+ (NSString *)readableTypeForEncoding:(NSString *)encodingString;
@end