mirror of
https://github.com/VibeDarling/class-dump.git
synced 2026-11-15 09:48:10 -10:00
28 lines
1.1 KiB
Objective-C
28 lines
1.1 KiB
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 <Foundation/Foundation.h>
|
|
|
|
@class CDOCClass, CDSymbol;
|
|
|
|
/*!
|
|
* CDOCClassReference acts as a proxy object to a class that may be external. It can thus be repesented
|
|
* as one of: a \c CDOCClass object (for internal classes), a \c CDSymbol object (for external classes),
|
|
* or an \c NSString of the class name (for ObjC1 compatibility). The class name can then be inferred from
|
|
* any of these representations.
|
|
*/
|
|
@interface CDOCClassReference : NSObject
|
|
|
|
@property (strong) CDOCClass *classObject;
|
|
@property (strong) CDSymbol *classSymbol;
|
|
@property (nonatomic, copy) NSString *className; // inferred from classObject / classSymbol if not set directly
|
|
@property (nonatomic, readonly, getter = isExternalClass) BOOL externalClass;
|
|
|
|
- (instancetype)initWithClassObject:(CDOCClass *)classObject;
|
|
- (instancetype)initWithClassSymbol:(CDSymbol *)symbol;
|
|
- (instancetype)initWithClassName:(NSString *)className;
|
|
|
|
@end
|