CPCompoundPredicate is a subclass of CPPredicate used to represent logical “gate” operations (AND/OR/NOT) and comparison operations. More...
#import <CPCompoundPredicate.h>
Instance Methods | |
(CPCompoundPredicateType) | - compoundPredicateType |
(void) | - encodeWithCoder: |
(BOOL) | - evaluateWithObject: |
(BOOL) | - evaluateWithObject:substitutionVariables: |
(id) | - initWithCoder: |
(id) | - initWithType:subpredicates: |
(BOOL) | - isEqual: |
(CPString) | - predicateFormat |
(CPPredicate) | - predicateWithSubstitutionVariables: |
(CPArray) | - subpredicates |
Class Methods | |
(CPPredicate) | + andPredicateWithSubpredicates: |
(CPPredicate) | + notPredicateWithSubpredicate: |
(CPPredicate) | + orPredicateWithSubpredicates: |
CPCompoundPredicate is a subclass of CPPredicate used to represent logical “gate” operations (AND/OR/NOT) and comparison operations.
Comparison operations are based on two expressions, as represented by instances of the CPExpression class. Expressions are created for constant values, key paths, and so on.
A compound predicate with 0 elements evaluates to TRUE, and a compound predicate with a single sub-predicate evaluates to the truth of its sole subpredicate.
Definition at line 2 of file CPCompoundPredicate.h.
|
implementation |
Returns a new predicate formed by AND-ing the predicates in a given array.
subpredicates | An array of CPPredicate objects. |
Definition at line 76 of file CPCompoundPredicate.j.
|
implementation |
Returns the predicate type for the receiver.
Definition at line 96 of file CPCompoundPredicate.j.
|
implementation |
Provided by category CPCompoundPredicate(CPCoding).
Definition at line 236 of file CPCompoundPredicate.j.
|
implementation |
Definition at line 170 of file CPCompoundPredicate.j.
|
implementation |
Definition at line 175 of file CPCompoundPredicate.j.
|
implementation |
Provided by category CPCompoundPredicate(CPCoding).
Definition at line 224 of file CPCompoundPredicate.j.
|
implementation |
Returns the receiver initialized to a given type using predicates from a given array.
type | The type of the new predicate. |
Definition at line 48 of file CPCompoundPredicate.j.
|
implementation |
Definition at line 209 of file CPCompoundPredicate.j.
|
implementation |
Returns a new predicate formed by NOT-ing the predicates in a given array.
subpredicates | An array of CPPredicate objects. |
Definition at line 66 of file CPCompoundPredicate.j.
|
implementation |
Returns a new predicate formed by OR-ing the predicates in a given array.
subpredicates | An array of CPPredicate objects. |
Definition at line 86 of file CPCompoundPredicate.j.
|
implementation |
Definition at line 127 of file CPCompoundPredicate.j.
|
implementation |
Definition at line 110 of file CPCompoundPredicate.j.
|
implementation |
Returns the array of the receiver’s subpredicates.
Definition at line 105 of file CPCompoundPredicate.j.