Proyectos de Subversion Iphone Microlearning

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
// Copyright 2020 Google LLC
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
//      http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
 
15
#import <Foundation/Foundation.h>
16
 
17
@class FPRSelectorInstrumentor;
18
 
19
NS_ASSUME_NONNULL_BEGIN
20
 
21
/**
22
 * Each instrumented class (even classes within class clusters) needs to have its own instrumentor.
23
 */
24
@interface FPRClassInstrumentor : NSObject
25
 
26
/** The class being instrumented. */
27
@property(nonatomic, readonly) Class instrumentedClass;
28
 
29
/** Please use the designated initializer. */
30
- (instancetype)init NS_UNAVAILABLE;
31
 
32
/** Initializes with a class name and stores a reference to that string. This is the designated
33
 *  initializer.
34
 *
35
 *  @param aClass The class to be instrumented.
36
 *  @return An instance of this class.
37
 */
38
- (instancetype)initWithClass:(Class)aClass NS_DESIGNATED_INITIALIZER;
39
 
40
/** Creates and adds a class selector instrumentor to this class instrumentor.
41
 *
42
 *  @param selector The selector to build and add to this class instrumentor;
43
 *  @return An FPRSelectorInstrumentor if the class/selector combination exists, nil otherwise.
44
 */
45
- (nullable FPRSelectorInstrumentor *)instrumentorForClassSelector:(SEL)selector;
46
 
47
/** Creates and adds an instance selector instrumentor to this class instrumentor.
48
 *
49
 *  @param selector The selector to build and add to this class instrumentor;
50
 *  @return An FPRSelectorInstrumentor if the class/selector combination exists, nil otherwise.
51
 */
52
- (nullable FPRSelectorInstrumentor *)instrumentorForInstanceSelector:(SEL)selector;
53
 
54
/** Swizzles the set of selector instrumentors. */
55
- (void)swizzle;
56
 
57
/** Removes all selector instrumentors and unswizzles their implementations. */
58
- (BOOL)unswizzle;
59
 
60
@end
61
 
62
NS_ASSUME_NONNULL_END