CPComparisonPredicate is a subclass of CPPredicate used to compare expressions. More...
#import <CPComparisonPredicate.h>
Instance Methods | |
(CPComparisonPredicateModifier) | - comparisonPredicateModifier |
(SEL) | - customSelector |
(void) | - encodeWithCoder: |
(BOOL) | - evaluateWithObject: |
(BOOL) | - evaluateWithObject:substitutionVariables: |
(id) | - initWithCoder: |
(id) | - initWithLeftExpression:rightExpression:customSelector: |
(id) | - initWithLeftExpression:rightExpression:modifier:type:options: |
(BOOL) | - isEqual: |
(CPExpression) | - leftExpression |
(unsigned) | - options |
(CPString) | - predicateFormat |
(CPPredicateOperatorType) | - predicateOperatorType |
(CPPredicate) | - predicateWithSubstitutionVariables: |
(CPExpression) | - rightExpression |
Class Methods | |
(CPPredicate) | + predicateWithLeftExpression:rightExpression:customSelector: |
(CPPredicate) | + predicateWithLeftExpression:rightExpression:modifier:type:options: |
CPComparisonPredicate is a subclass of CPPredicate used to compare expressions.
Comparison predicates are predicates used to compare the results of two expressions. Comparison predicates take an operator, a left expression, and a right expression, and return as a BOOL the result of invoking the operator with the results of evaluating the expressions. Expressions are represented by instances of the CPExpression class.
Definition at line 2 of file CPComparisonPredicate.h.
|
implementation |
Returns the comparison predicate modifier for the receiver.
Definition at line 136 of file CPComparisonPredicate.j.
|
implementation |
Returns the selector for the receiver.
Definition at line 145 of file CPComparisonPredicate.j.
|
implementation |
Provided by category CPComparisonPredicate(CPCoding).
Definition at line 415 of file CPComparisonPredicate.j.
|
implementation |
Definition at line 359 of file CPComparisonPredicate.j.
|
implementation |
Definition at line 364 of file CPComparisonPredicate.j.
|
implementation |
Provided by category CPComparisonPredicate(CPCoding).
Definition at line 399 of file CPComparisonPredicate.j.
|
implementation |
Initializes a predicate formed by combining given left and right expressions using a given selector.
left | The left hand side expression. |
right | The right hand side expression. |
selector | The selector to use for comparison. The method defined by the selector must take a single argument and return a BOOL value. |
Definition at line 82 of file CPComparisonPredicate.j.
|
implementation |
Initializes a predicate to a given type formed by combining given left and right expressions using a given modifier and options.
left | The left hand expression. |
right | The right hand expression. |
modifier | The modifier to apply. |
type | The predicate operator type. |
options | The options to apply (see CPComparisonPredicate Options). |
Definition at line 108 of file CPComparisonPredicate.j.
|
implementation |
Definition at line 265 of file CPComparisonPredicate.j.
|
implementation |
Returns the left expression for the receiver.
Definition at line 154 of file CPComparisonPredicate.j.
|
implementation |
Returns the options that are set for the receiver.
Definition at line 163 of file CPComparisonPredicate.j.
|
implementation |
Definition at line 186 of file CPComparisonPredicate.j.
|
implementation |
Returns the predicate type for the receiver.
Definition at line 172 of file CPComparisonPredicate.j.
|
implementation |
Returns a new predicate formed by combining the left and right expressions using a given selector.
left | The left hand side expression. |
right | The right hand side expression. |
selector | The selector to use for comparison. The method defined by the selector must take a single argument and return a BOOL value. |
Definition at line 56 of file CPComparisonPredicate.j.
|
implementation |
Creates and returns a predicate of a given type formed by combining given left and right expressions using a given modifier and options.
left | The left hand expression. |
right | The right hand expression. |
modifier | The modifier to apply. |
type | The predicate operator type. |
options | The options to apply (see CPComparisonPredicate Options). |
Definition at line 70 of file CPComparisonPredicate.j.
|
implementation |
Definition at line 254 of file CPComparisonPredicate.j.
|
implementation |
Returns the right expression for the receiver.
Definition at line 181 of file CPComparisonPredicate.j.