-
Notifications
You must be signed in to change notification settings - Fork 44
/
KWMatcher.h
47 lines (31 loc) · 813 Bytes
/
KWMatcher.h
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
//
// Licensed under the terms in License.txt
//
// Copyright 2010 Allen Ding. All rights reserved.
//
#import "KiwiConfiguration.h"
#import "KWMatching.h"
@interface KWMatcher : NSObject<KWMatching> {
@protected id subject;
}
#pragma mark -
#pragma mark Initializing
- (id)initWithSubject:(id)anObject;
+ (id)matcherWithSubject:(id)anObject;
#pragma mark -
#pragma mark Properties
@property (nonatomic, readonly) id subject;
#pragma mark -
#pragma mark Getting Matcher Strings
+ (NSArray *)matcherStrings;
#pragma mark -
#pragma mark Getting Matcher Compatability
+ (BOOL)canMatchSubject:(id)anObject;
#pragma mark -
#pragma mark Matching
- (BOOL)evaluate;
#pragma mark -
#pragma mark Getting Failure Messages
- (NSString *)failureMessageForShould;
- (NSString *)failureMessageForShouldNot;
@end