forked from nygard/class-dump
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CDOCProtocol.h
64 lines (44 loc) · 1.86 KB
/
CDOCProtocol.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
// -*- mode: ObjC -*-
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2011 Steve Nygard.
#import <Foundation/Foundation.h>
@class CDClassDump, CDSymbolReferences, CDTypeController;
@class CDVisitor, CDVisitorPropertyState;
@class CDOCMethod, CDOCProperty;
@interface CDOCProtocol : NSObject
{
NSString *name;
NSMutableArray *protocols;
NSMutableArray *classMethods;
NSMutableArray *instanceMethods;
NSMutableArray *optionalClassMethods;
NSMutableArray *optionalInstanceMethods;
NSMutableArray *properties;
NSMutableSet *adoptedProtocolNames;
}
- (id)init;
- (NSString *)description;
@property (retain) NSString *name;
- (NSArray *)protocols;
- (void)addProtocol:(CDOCProtocol *)aProtocol;
- (void)removeProtocol:(CDOCProtocol *)aProtocol;
- (NSArray *)classMethods;
- (void)addClassMethod:(CDOCMethod *)method;
- (NSArray *)instanceMethods;
- (void)addInstanceMethod:(CDOCMethod *)method;
- (NSArray *)optionalClassMethods;
- (void)addOptionalClassMethod:(CDOCMethod *)method;
- (NSArray *)optionalInstanceMethods;
- (void)addOptionalInstanceMethod:(CDOCMethod *)method;
- (NSArray *)properties;
- (void)addProperty:(CDOCProperty *)property;
- (BOOL)hasMethods;
- (void)registerTypesWithObject:(CDTypeController *)typeController phase:(NSUInteger)phase;
- (void)registerTypesFromMethods:(NSArray *)methods withObject:(CDTypeController *)typeController phase:(NSUInteger)phase;
@property (readonly) NSString *sortableName;
- (NSComparisonResult)ascendingCompareByName:(CDOCProtocol *)otherProtocol;
- (NSString *)findTag:(CDSymbolReferences *)symbolReferences;
- (void)recursivelyVisit:(CDVisitor *)aVisitor;
- (void)visitMethods:(CDVisitor *)aVisitor propertyState:(CDVisitorPropertyState *)propertyState;
- (void)visitProperties:(CDVisitor *)aVisitor;
@end