Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

52 lines (37 sloc) 1.14 kB
//
// Licensed under the terms in License.txt
//
// Copyright 2010 Allen Ding. All rights reserved.
//
#import "KWRegisterMatchersNode.h"
#import "KWExampleNodeVisitor.h"
@implementation KWRegisterMatchersNode
#pragma mark -
#pragma mark Initializing
- (id)initWithCallSite:(KWCallSite *)aCallSite namespacePrefix:(NSString *)aNamespacePrefix {
if ((self = [super init])) {
callSite = [aCallSite retain];
namespacePrefix = [aNamespacePrefix copy];
}
return self;
}
+ (id)registerMatchersNodeWithCallSite:(KWCallSite *)aCallSite namespacePrefix:(NSString *)aNamespacePrefix {
return [[[self alloc] initWithCallSite:aCallSite namespacePrefix:aNamespacePrefix] autorelease];
}
- (void)dealloc {
[callSite release];
[namespacePrefix release];
[super dealloc];
}
#pragma mark -
#pragma mark Getting Call Sites
@synthesize callSite;
#pragma mark -
#pragma mark Getting Namespace Prefixes
@synthesize namespacePrefix;
#pragma mark -
#pragma mark Accepting Visitors
- (void)acceptExampleNodeVisitor:(id<KWExampleNodeVisitor>)aVisitor {
[aVisitor visitRegisterMatchersNode:self];
}
@end
Jump to Line
Something went wrong with that request. Please try again.