mirror of
https://github.com/VibeDarling/class-dump.git
synced 2026-11-15 09:48:10 -10:00
34 lines
650 B
Objective-C
34 lines
650 B
Objective-C
// -*- mode: ObjC -*-
|
|
|
|
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
|
|
// Copyright (C) 1997-2019 Steve Nygard.
|
|
|
|
#import "CDMethodType.h"
|
|
|
|
#import "CDType.h"
|
|
|
|
@implementation CDMethodType
|
|
{
|
|
CDType *_type;
|
|
NSString *_offset;
|
|
}
|
|
|
|
- (id)initWithType:(CDType *)type offset:(NSString *)offset;
|
|
{
|
|
if ((self = [super init])) {
|
|
_type = type;
|
|
_offset = offset;
|
|
}
|
|
|
|
return self;
|
|
}
|
|
|
|
#pragma mark - Debugging
|
|
|
|
- (NSString *)description;
|
|
{
|
|
return [NSString stringWithFormat:@"[%@] type: %@, offset: %@", NSStringFromClass([self class]), self.type, self.offset];
|
|
}
|
|
|
|
@end
|