QueryStrategies

Allows to write queries looking for the content of an attribute of the certain role playing object or the return value of one of its functions.

class Object
trait Matchable
class Any

Type members

Classlikes

final case
class MatchAny() extends RoleQueryStrategy
abstract
final case
class WithProperty[T](name: String, value: T) extends RoleQueryStrategy

Query strategy using the value the queried attribute.

Query strategy using the value the queried attribute.

Type Params
T

its type

Value Params
name

the name of the attribute that is queried

value

the value of the attribute that is queried

final case
class WithResult[T](name: String, result: T) extends RoleQueryStrategy

Query strategy using the return value the queried function.

Query strategy using the return value the queried function.

Type Params
T

its type

Value Params
name

the name of the function that is queried

result

the return value of the function that is queried