# io.github.libtmux.query.TmuxFilters

- **Module:** io.github.libtmux.query
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-java/blob/c067fced0dfd19bd6dd3d260e9d4c336becdb063/libtmux/src/main/java/io/github/libtmux/query/TmuxFilters.java#L14
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-query-tmuxfilters-tmuxfilters/

Lowers a {@link FilterExpr} to a tmux {@code -f} format when every node is one tmux can apply.

Relations, a Java regular expression, and any operand containing {@code ,}, `#`,
`{`, `}`, {@code :}, or a backslash, are refused. Those stay a local filter over a capture. tmux
compiles {@code #{m/r:}} with its own dialect, so a pattern Java would match can select nothing.
A compiled format is a hint to tmux, not a promise that the local reading would differ: callers
still apply the expression to the rows that come back.

## Members

### Other members

- [`format`](/en/java/latest/reference/io-github-libtmux-query-tmuxfilters-tmuxfilters-format/) (method): A tmux format for {@code -f}, or empty when this expression is not a safe subset.
- [`literal`](/en/java/latest/reference/io-github-libtmux-query-tmuxfilters-tmuxfilters-literal/) (method): Whether this text can sit inside a tmux format argument without changing its shape. A backslash escapes the next character in a format, so a trailing one swallows the closing brace.
