public interface PatternExpr
Modifier and Type | Interface and Description |
---|---|
static class |
PatternExpr.And |
static interface |
PatternExpr.Encoder
Encoder to map a pattern expression to an expression for some other language.
|
static class |
PatternExpr.Not |
static class |
PatternExpr.Or |
static class |
PatternExpr.Regex |
Modifier and Type | Method and Description |
---|---|
static PatternExpr |
and(List<PatternExpr> exprs)
An expression that performs a logical AND of the listed sub-expressions.
|
default void |
buildQueryString(PatternExpr.Encoder encoder,
StringBuilder builder)
Convert this expression into a query string.
|
boolean |
matches(String value)
Returns true if the expression matches the value.
|
static PatternExpr |
not(PatternExpr expr)
An expression that inverts the match of the sub-expression.
|
static PatternExpr |
or(List<PatternExpr> exprs)
An expression that performs a logical OR of the listed sub-expressions.
|
static PatternExpr |
simple(PatternMatcher matcher)
A simple expression that performs a single pattern match.
|
default String |
toQueryString(PatternExpr.Encoder encoder)
Convert this expression into a query string.
|
boolean matches(String value)
default String toQueryString(PatternExpr.Encoder encoder)
default void buildQueryString(PatternExpr.Encoder encoder, StringBuilder builder)
static PatternExpr simple(PatternMatcher matcher)
static PatternExpr and(List<PatternExpr> exprs)
static PatternExpr or(List<PatternExpr> exprs)
static PatternExpr not(PatternExpr expr)