-
Notifications
You must be signed in to change notification settings - Fork 634
/
Copy pathGBClassData.h
70 lines (53 loc) · 2.13 KB
/
GBClassData.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
//
// GBClassData.h
// appledoc
//
// Created by Tomaz Kragelj on 25.7.10.
// Copyright (C) 2010, Gentle Bytes. All rights reserved.
//
#import "GBModelBase.h"
#import "GBObjectDataProviding.h"
@class GBAdoptedProtocolsProvider;
@class GBIvarsProvider;
@class GBMethodsProvider;
/** Describes a class.
*/
@interface GBClassData : GBModelBase <GBObjectDataProviding> {
@private
NSString *_className;
GBAdoptedProtocolsProvider *_adoptedProtocols;
GBIvarsProvider *_ivars;
GBMethodsProvider *_methods;
}
///---------------------------------------------------------------------------------------
/// @name Initialization & disposal
///---------------------------------------------------------------------------------------
/** Returns autoreleased instance of the class data with the given name.
@param name The name of the class.
@return Returns initialized object.
@exception NSException Thrown if the given name is `nil` or empty.
*/
+ (id)classDataWithName:(NSString *)name;
/** Initializes the class with the given name.
This is the designated initializer.
@param name The name of the class.
@return Returns initialized object.
@exception NSException Thrown if the given name is `nil` or empty.
*/
- (id)initWithName:(NSString *)name;
///---------------------------------------------------------------------------------------
/// @name Class data
///---------------------------------------------------------------------------------------
/** The name of the class. */
@property (readonly) NSString *nameOfClass;
/** The name of the superclass or `nil` if this is root class. */
@property (copy) NSString *nameOfSuperclass;
/** Superclass object if known object or `nil` if `nameOfSuperclass` is `nil` or doesn't point to a known class. */
@property (strong) GBClassData *superclass;
/** Class's adopted protocols, available via `GBAdoptedProtocolsProvider`. */
@property (readonly) GBAdoptedProtocolsProvider *adoptedProtocols;
/** Class's ivars, available via `GBIvarsProvider`. */
@property (readonly) GBIvarsProvider *ivars;
/** Class's methods, available via `GBMethodsProvider`. */
@property (readonly) GBMethodsProvider *methods;
@end