mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-10-31 21:04:13 -04:00
44 lines
1.3 KiB
Objective-C
44 lines
1.3 KiB
Objective-C
//
|
|
// FLEXMethodBase.h
|
|
// FLEX
|
|
//
|
|
// Derived from MirrorKit.
|
|
// Created by Tanner on 7/5/15.
|
|
// Copyright (c) 2020 FLEX Team. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
/// A base class for methods which encompasses those that may not
|
|
/// have been added to a class yet. Useful on it's own for adding
|
|
/// methods to a class, or building a new class from the ground up.
|
|
@interface FLEXMethodBase : NSObject {
|
|
@protected
|
|
SEL _selector;
|
|
NSString *_name;
|
|
NSString *_typeEncoding;
|
|
IMP _implementation;
|
|
|
|
NSString *_flex_description;
|
|
}
|
|
|
|
/// Constructs and returns an \c FLEXSimpleMethod instance with the given name, type encoding, and implementation.
|
|
+ (instancetype)buildMethodNamed:(NSString *)name withTypes:(NSString *)typeEncoding implementation:(IMP)implementation;
|
|
|
|
/// The selector of the method.
|
|
@property (nonatomic, readonly) SEL selector;
|
|
/// The selector string of the method.
|
|
@property (nonatomic, readonly) NSString *selectorString;
|
|
/// Same as selectorString.
|
|
@property (nonatomic, readonly) NSString *name;
|
|
/// The type encoding of the method.
|
|
@property (nonatomic, readonly) NSString *typeEncoding;
|
|
/// The implementation of the method.
|
|
@property (nonatomic, readonly) IMP implementation;
|
|
|
|
/// For internal use
|
|
@property (nonatomic) id tag;
|
|
|
|
@end
|