Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 49 lines (34 sloc) 1.323 kb
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 47 48 49
//
// Licensed under the terms in License.txt
//
// Copyright 2010 Allen Ding. All rights reserved.
//

#import "KiwiConfiguration.h"

@interface KWMessagePattern : NSObject<NSCopying> {
@private
    SEL selector;
    NSArray *argumentFilters;
}

#pragma mark -
#pragma mark Initializing

- (id)initWithSelector:(SEL)aSelector;
- (id)initWithSelector:(SEL)aSelector argumentFilters:(NSArray *)anArray;
- (id)initWithSelector:(SEL)aSelector firstArgumentFilter:(id)firstArgumentFilter argumentList:(va_list)argumentList;

+ (id)messagePatternWithSelector:(SEL)aSelector;
+ (id)messagePatternWithSelector:(SEL)aSelector argumentFilters:(NSArray *)anArray;
+ (id)messagePatternWithSelector:(SEL)aSelector firstArgumentFilter:(id)firstArgumentFilter argumentList:(va_list)argumentList;

+ (id)messagePatternFromInvocation:(NSInvocation *)anInvocation;

#pragma mark -
#pragma mark Properties

@property (nonatomic, readonly) SEL selector;
@property (nonatomic, readonly) NSArray *argumentFilters;

#pragma mark -
#pragma mark Matching Invocations

- (BOOL)matchesInvocation:(NSInvocation *)anInvocation;

#pragma mark -
#pragma mark Comparing Message Patterns

- (BOOL)isEqualToMessagePattern:(KWMessagePattern *)aMessagePattern;

#pragma mark -
#pragma mark Retrieving String Representations

- (NSString *)stringValue;

@end
Something went wrong with that request. Please try again.