Instance Method

expressionValue(with:context:)

Evaluates an expression using a given object and context.

Declaration

func expressionValue(with object: Any?, context: NSMutableDictionary?) -> Any?

Parameters

object

The object against which the expression is evaluated.

context

A dictionary that the expression can use to store temporary state for one predicate evaluation. Can be nil.

Note that context is mutable, and that it can only be accessed during the evaluation of the expression. You must not attempt to retain it for use elsewhere.

Return Value

The evaluated object.

See Also

Evaluating an Expression

func allowEvaluation()

Force an expression that was securely decoded to allow evaluation.