blob: 90176e29dae5118022bcd63f9cc853001b0bd9a3 [file] [log] [blame]
// 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-2007 Steve Nygard
#import "CDVisitor.h"
#import "CDClassDump.h"
#import "CDObjCSegmentProcessor.h"
@implementation CDVisitor
- (id)init;
{
if ([super init] == nil)
return nil;
classDump = nil;
return self;
}
- (void)dealloc;
{
[classDump release];
[super dealloc];
}
- (CDClassDump *)classDump;
{
return classDump;
}
- (void)setClassDump:(CDClassDump *)newClassDump;
{
if (newClassDump == classDump)
return;
[classDump release];
classDump = [newClassDump retain];
}
- (void)willBeginVisiting;
{
}
- (void)didEndVisiting;
{
}
// Called before visiting.
- (void)willVisitObjectiveCSegment:(CDObjCSegmentProcessor *)anObjCSegment;
{
}
// This gets called before visiting the children, but only if it has children it will visit.
- (void)visitObjectiveCSegment:(CDObjCSegmentProcessor *)anObjCSegment;
{
}
// Called after visiting.
- (void)didVisitObjectiveCSegment:(CDObjCSegmentProcessor *)anObjCSegment;
{
}
- (void)willVisitProtocol:(CDOCProtocol *)aProtocol;
{
}
- (void)didVisitProtocol:(CDOCProtocol *)aProtocol;
{
}
- (void)willVisitClass:(CDOCClass *)aClass;
{
}
- (void)didVisitClass:(CDOCClass *)aClass;
{
}
- (void)willVisitIvarsOfClass:(CDOCClass *)aClass;
{
}
- (void)didVisitIvarsOfClass:(CDOCClass *)aClass;
{
}
- (void)willVisitCategory:(CDOCCategory *)aCategory;
{
}
- (void)didVisitCategory:(CDOCCategory *)aCategory;
{
}
- (void)visitClassMethod:(CDOCMethod *)aMethod;
{
}
- (void)visitInstanceMethod:(CDOCMethod *)aMethod;
{
}
- (void)visitIvar:(CDOCIvar *)anIvar;
{
}
@end