ifish/Ifish/AlibcTradeSDK-3.1.1.96/Frameworks/AlibcTradeCommon.framework/Headers/AlibcReflectionUtil.h

39 lines
1.2 KiB
Objective-C
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* AlibcReflectionUtil.h
*
* 阿里百川电商
* 项目名称:阿里巴巴电商 AlibcTradeCommon
* 版本号3.1.1.93
* 发布时间2017-03-06
* 开发团队:阿里巴巴百川商业化团队
* 阿里巴巴电商SDK答疑群号1229144682(阿里旺旺)
* Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved.
*/
#import <Foundation/Foundation.h>
#ifndef AlibcReflectionUtil_h
#define AlibcReflectionUtil_h
@interface AlibcReflectionUtil : NSObject
+ (id)getSharedInstance:(NSString *)className;
+ (id)getInstance:(NSString *)className instanceMethodName:(NSString *)instanceMethodName;
+ (id)executeInstanceMethod:(NSString *)methodName instance:(id)instance params:(NSArray *)params;
+ (id)executeClassMethod:(NSString *)methodName clazz:(Class)clazz;
+ (id)executeInstanceMethod:(NSString *)methodName instanceAndargs:(id)instance, ...;
@end
#define BC_MAKE_SELECTOR(var_name, sel_name) _Pragma("clang diagnostic push")\
_Pragma("clang diagnostic ignored \"-Wundeclared-selector\"")\
SEL var_name = @selector(sel_name);\
_Pragma("clang diagnostic pop")
#define BC_FETCH_CLASS(className) [NSClassFromString(@#className) class]
#endif