-
-
Notifications
You must be signed in to change notification settings - Fork 59
/
TNSMethodCalls.h
174 lines (154 loc) · 5.77 KB
/
TNSMethodCalls.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
//
// TNSBaseMethods.h
// NativeScriptTests
//
// Created by Jason Zhekov on 2/21/14.
// Copyright (c) 2014 Jason Zhekov. All rights reserved.
//
@protocol TNSBaseProtocol1
@property int baseProtocolProperty1;
@property(class) int baseProtocolProperty1;
+ (void)baseProtocolMethod1;
- (instancetype)initBaseProtocolMethod1;
- (void)baseProtocolMethod1;
@optional
@property int baseProtocolProperty1Optional;
@property(class) int baseProtocolProperty1Optional;
+ (void)baseProtocolMethod1Optional;
- (instancetype)initBaseProtocolMethod1Optional;
- (void)baseProtocolMethod1Optional;
@end
@protocol TNSBaseProtocol2 <TNSBaseProtocol1>
@property int baseProtocolProperty2;
@property(class) int baseProtocolProperty2;
+ (void)baseProtocolMethod2;
- (instancetype)initBaseProtocolMethod2;
- (void)baseProtocolMethod2;
@optional
@property int baseProtocolProperty2Optional;
@property(class) int baseProtocolProperty2Optional;
+ (void)baseProtocolMethod2Optional;
- (instancetype)initBaseProtocolMethod2Optional;
- (void)baseProtocolMethod2Optional;
@end
@interface TNSBaseInterface : NSObject <TNSBaseProtocol2>
@property int baseProperty;
@property(readonly) int baseReadOnlyProperty;
@property(class) int baseProperty;
+ (void)baseMethod;
+ (void)baseMethod:(NSNumber*)param;
- (instancetype)initThrowingException;
- (instancetype)initBaseMethod;
- (void)baseMethod:(NSNumber*)param;
- (void)baseMethod;
- (void)methodWithParam:(NSNumber*)p1;
- (void)callBaseMethod:(BOOL)withArg;
@end
@protocol TNSBaseCategoryProtocol1
@property int baseCategoryProtocolProperty1;
@property(class) int baseCategoryProtocolProperty1;
+ (void)baseCategoryProtocolMethod1;
- (instancetype)initBaseCategoryProtocolMethod1;
- (void)baseCategoryProtocolMethod1;
@optional
@property int baseCategoryProtocolProperty1Optional;
@property(class) int baseCategoryProtocolProperty1Optional;
+ (void)baseCategoryProtocolMethod1Optional;
- (instancetype)initBaseCategoryProtocolMethod1Optional;
- (void)baseCategoryProtocolMethod1Optional;
@end
@protocol TNSBaseCategoryProtocol2 <TNSBaseCategoryProtocol1>
@property int baseCategoryProtocolProperty2;
@property(class) int baseCategoryProtocolProperty2;
+ (void)baseCategoryProtocolMethod2;
- (instancetype)initBaseCategoryProtocolMethod2;
- (void)baseCategoryProtocolMethod2;
@optional
@property int baseCategoryProtocolProperty2Optional;
@property(class) int baseCategoryProtocolProperty2Optional;
+ (void)baseCategoryProtocolMethod2Optional;
- (instancetype)initBaseCategoryProtocolMethod2Optional;
- (void)baseCategoryProtocolMethod2Optional;
@end
@interface TNSBaseInterface (TNSBaseCategory) <TNSBaseCategoryProtocol2>
@property int baseCategoryProperty;
@property(class) int baseCategoryProperty;
+ (void)baseCategoryMethod;
- (instancetype)initBaseCategoryMethod;
- (void)baseCategoryMethod;
@end
@protocol TNSDerivedProtocol1
@property int derivedProtocolProperty1;
@property(class) int derivedProtocolProperty1;
+ (void)derivedProtocolMethod1;
- (instancetype)initDerivedProtocolMethod1;
- (void)derivedProtocolMethod1;
@optional
@property int derivedProtocolProperty1Optional;
@property(class) int derivedProtocolProperty1Optional;
+ (void)derivedProtocolMethod1Optional;
- (instancetype)initDerivedProtocolMethod1Optional;
- (void)derivedProtocolMethod1Optional;
@end
@protocol TNSDerivedProtocol2 <TNSDerivedProtocol1>
// declare base writable property as readonly
@property(readonly) int baseProperty;
// declare base readonly property as writable
@property int baseReadOnlyProperty;
@property int derivedProtocolProperty2;
@property(class) int derivedProtocolProperty2;
+ (void)derivedProtocolMethod2;
- (instancetype)initDerivedProtocolMethod2;
- (void)derivedProtocolMethod2;
@optional
@property int derivedProtocolProperty2Optional;
@property(class) int derivedProtocolProperty2Optional;
+ (void)derivedProtocolMethod2Optional;
- (instancetype)initDerivedProtocolMethod2Optional;
- (void)derivedProtocolMethod2Optional;
@end
@interface TNSDerivedInterface : TNSBaseInterface <TNSDerivedProtocol2>
@property int derivedProperty;
@property(class) int derivedProperty;
@property(readonly) int derivedPropertyReadOnly;
@property(readonly) int derivedPropertyReadOnlyMadeWritable;
+ (void)derivedMethod;
- (instancetype)initDerivedMethod;
- (void)derivedMethod;
- (void)methodWith:(NSNumber*)p1 param:(NSNumber*)p2;
@end
@protocol TNSDerivedCategoryProtocol1
@property int derivedCategoryProtocolProperty1;
@property(class) int derivedCategoryProtocolProperty1;
+ (void)derivedCategoryProtocolMethod1;
- (instancetype)initDerivedCategoryProtocolMethod1;
- (void)derivedCategoryProtocolMethod1;
@optional
@property int derivedCategoryProtocolProperty1Optional;
@property(class) int derivedCategoryProtocolProperty1Optional;
+ (void)derivedCategoryProtocolMethod1Optional;
- (instancetype)initDerivedCategoryProtocolMethod1Optional;
- (void)derivedCategoryProtocolMethod1Optional;
@end
@protocol TNSDerivedCategoryProtocol2 <TNSDerivedCategoryProtocol1>
@property int derivedCategoryProtocolProperty2;
@property(class) int derivedCategoryProtocolProperty2;
+ (void)derivedCategoryProtocolMethod2;
- (instancetype)initDerivedCategoryProtocolMethod2;
- (void)derivedCategoryProtocolMethod2;
@optional
@property int derivedCategoryProtocolProperty2Optional;
@property(class) int derivedCategoryProtocolProperty2Optional;
+ (void)derivedCategoryProtocolMethod2Optional;
- (instancetype)initDerivedCategoryProtocolMethod2Optional;
- (void)derivedCategoryProtocolMethod2Optional;
@end
@interface TNSDerivedInterface (TNSDerivedCategory) <TNSDerivedCategoryProtocol2>
@property int derivedCategoryProperty;
@property(class) int derivedCategoryProperty;
@property(readwrite) int derivedPropertyReadOnlyMadeWritable;
+ (void)derivedCategoryMethod;
- (instancetype)initDerivedCategoryMethod;
- (void)derivedCategoryMethod;
- (void)baseMethod:(NSNumber*)param;
@end