Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

io.github.libtmux.query.FilterExpr.FilterExpr

Java
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
io.github.libtmux.query.FilterExpr
Package
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/query/FilterExpr.java
interface io.github.libtmux.query.FilterExpr.FilterExpr
interface [source]
interface [source]
interface io.github.libtmux.query.FilterExpr.FilterExpr

A filter that is both runnable and readable.

It extends Predicate , so stream().filter(expr) works with no adapter, and it is a sealed tree of records, so the same value can be printed, serialized, or later compiled into a tmux -f filter. A lambda can do the first of those and none of the rest, which is why named expressions are built from these nodes instead.

Evaluation is a total function over the tree: every consumer switches exhaustively, so adding a node breaks compilation at each site that has to learn about it rather than at runtime.

11 declared, 0 inherited

Members

  • and method
  • And struct Conjunction. An empty conjunction is true, which is what makes it a safe identity.
  • Compare struct One scalar field compared to one operand.
  • describe method Renders the expression as inspectable text. Deliberately not toString on records.
  • negate method Negation, narrowed to an expression.
  • Not struct
  • or method
  • Or struct Disjunction. An empty disjunction is false.
  • Quantifier enum
  • ToMany struct A quantified filter over a to-many relation.
  • ToOne struct A to-one relation. An absent target does not satisfy the filter.
Esc

Type to search.