Class PredicateFactory

Assembly: redb.Route.dll

The single place that turns a DSL condition string into an .
Every string-taking condition overload (Filter, When, LoopWhile, Validate) routes through it,
so a condition behaves identically no matter where it was written.

A condition is a boolean expression, which is a different position in the language from a
value: SetBody("black and white") must stay a literal, while
Filter("header.a>10") must be a comparison. The two positions therefore compile
differently, and this type is the boundary between them.

public static class PredicateFactory

Inheritance

Object→PredicateFactory

Methods

FromExpression(IExpression)

Builds a predicate from an expression instance used in a condition position.

public static IPredicate FromExpression(IExpression expression)

FromString(string)

Builds a predicate from a condition string. Three shapes, one rule each:

public static IPredicate FromString(string condition)