BooleanSelector class abstract
A boolean expression that evaluates to true
or false
based on certain
inputs.
The syntax is mostly Dart's expression syntax restricted to boolean operations. See the README for full details.
Boolean selectors support structural equality. Two selectors that have the same parsed structure are considered equal.
Constructors
- BooleanSelector.parse(String selector)
-
Parses
selector
.factory
Properties
Methods
-
evaluate(
bool semantics(String variable)) → bool -
Returns whether the selector matches the given
semantics
. -
intersection(
BooleanSelector other) → BooleanSelector -
Returns a new BooleanSelector that matches only inputs matched by both
this
andother
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
union(
BooleanSelector other) → BooleanSelector -
Returns a new BooleanSelector that matches all inputs matched by either
this
orother
. -
validate(
bool isDefined(String variable)) → void - Throws a FormatException if any variables are undefined.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited