forked from Polidea/ios-class-guard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CDOCSymtab.m
46 lines (34 loc) · 926 Bytes
/
CDOCSymtab.m
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
// -*- 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-2014 Steve Nygard.
#import "CDOCSymtab.h"
#import "CDOCCategory.h"
#import "CDOCClass.h"
@implementation CDOCSymtab
{
NSMutableArray *_classes;
NSMutableArray *_categories;
}
- (id)init;
{
if ((self = [super init])) {
_classes = [[NSMutableArray alloc] init];
_categories = [[NSMutableArray alloc] init];
}
return self;
}
#pragma mark - Debugging
- (NSString *)description;
{
return [NSString stringWithFormat:@"[%@] classes: %@, categories: %@", NSStringFromClass([self class]), self.classes, self.categories];
}
#pragma mark -
- (void)addClass:(CDOCClass *)aClass;
{
[self.classes addObject:aClass];
}
- (void)addCategory:(CDOCCategory *)category;
{
[self.categories addObject:category];
}
@end