| Package | Description |
|---|---|
| io.doov.core.dsl |
Main package, entry point is
DOOV. |
| io.doov.core.dsl.field |
Field info implementations.
|
| io.doov.core.dsl.field.types | |
| io.doov.core.dsl.impl |
Condition implementations.
|
| io.doov.core.dsl.lang |
Dsl interfaces
|
| io.doov.core.dsl.meta |
Abstract syntax tree implementation
|
| io.doov.core.dsl.meta.ast |
| Modifier and Type | Method and Description |
|---|---|
static StepCondition |
DOOV.alwaysFalse()
Returns a condition that is always false.
|
static StepCondition |
DOOV.alwaysTrue()
Returns a condition that is always true.
|
static StepCondition |
DOOV.matchAll(StepCondition... steps)
|
static StepCondition |
DOOV.matchAll(Stream<? extends DslField<?>> dslFields,
Function<DefaultCondition,StepCondition> stepConditionFunction)
|
static StepCondition |
DOOV.matchAny(StepCondition... steps)
|
static StepCondition |
DOOV.matchAny(Stream<? extends DslField<?>> dslFields,
Function<DefaultCondition,StepCondition> stepConditionFunction)
|
static StepCondition |
DOOV.matchNone(StepCondition... steps)
|
static StepCondition |
DOOV.matchNone(Stream<? extends DslField<?>> dslFields,
Function<DefaultCondition,StepCondition> stepConditionFunction)
|
static StepCondition |
DOOV.not(StepCondition step)
|
| Modifier and Type | Method and Description |
|---|---|
static IntegerCondition |
DOOV.count(StepCondition... steps)
Returns an integer condition that returns the number of given conditions that evaluates to true.
|
static StepCondition |
DOOV.matchAll(StepCondition... steps)
|
static StepCondition |
DOOV.matchAny(StepCondition... steps)
|
static StepCondition |
DOOV.matchNone(StepCondition... steps)
|
static StepCondition |
DOOV.not(StepCondition step)
|
static StepWhen |
DOOV.when(StepCondition condition)
Returns a step when with the given condition.
|
| Modifier and Type | Method and Description |
|---|---|
static StepCondition |
DOOV.matchAll(Stream<? extends DslField<?>> dslFields,
Function<DefaultCondition,StepCondition> stepConditionFunction)
|
static StepCondition |
DOOV.matchAny(Stream<? extends DslField<?>> dslFields,
Function<DefaultCondition,StepCondition> stepConditionFunction)
|
static StepCondition |
DOOV.matchNone(Stream<? extends DslField<?>> dslFields,
Function<DefaultCondition,StepCondition> stepConditionFunction)
|
| Modifier and Type | Method and Description |
|---|---|
default StepCondition |
BaseFieldInfo.allMatch(Collection<T> values)
|
default StepCondition |
BaseFieldInfo.allMatch(Predicate<T> value)
|
default StepCondition |
BaseFieldInfo.allMatch(T... values)
|
default StepCondition |
BaseFieldInfo.anyMatch(Collection<T> values)
|
default StepCondition |
BaseFieldInfo.anyMatch(Predicate<T> value)
|
default StepCondition |
BaseFieldInfo.anyMatch(T... values)
|
default StepCondition |
BaseFieldInfo.eq(BaseFieldInfo<T> value)
|
default StepCondition |
BaseFieldInfo.eq(Supplier<T> value)
|
default StepCondition |
BaseFieldInfo.eq(T value)
|
default StepCondition |
BaseFieldInfo.isNotNull()
|
default StepCondition |
BaseFieldInfo.isNull()
|
default StepCondition |
BaseFieldInfo.noneMatch(Collection<T> values)
|
default StepCondition |
BaseFieldInfo.noneMatch(Predicate<T> value)
|
default StepCondition |
BaseFieldInfo.noneMatch(T... values)
|
default StepCondition |
BaseFieldInfo.notEq(BaseFieldInfo<T> value)
|
default StepCondition |
BaseFieldInfo.notEq(T value)
|
| Modifier and Type | Method and Description |
|---|---|
default StepCondition |
TemporalFieldInfo.after(N value)
|
default StepCondition |
TemporalFieldInfo.after(Supplier<N> value)
|
default StepCondition |
TemporalFieldInfo.after(TemporalCondition<N> value)
|
default StepCondition |
TemporalFieldInfo.after(TemporalFieldInfo<N> value)
|
default StepCondition |
TemporalFieldInfo.afterOrEq(N value)
|
default StepCondition |
TemporalFieldInfo.afterOrEq(Supplier<N> value)
|
default StepCondition |
TemporalFieldInfo.afterOrEq(TemporalCondition<N> value)
|
default StepCondition |
LogicalFieldInfo.and(boolean value)
|
default StepCondition |
LogicalFieldInfo.and(LogicalFieldInfo value)
|
default StepCondition |
TemporalFieldInfo.before(N value)
|
default StepCondition |
TemporalFieldInfo.before(Supplier<N> value)
|
default StepCondition |
TemporalFieldInfo.before(TemporalCondition<N> value)
|
default StepCondition |
TemporalFieldInfo.before(TemporalFieldInfo<N> value)
|
default StepCondition |
TemporalFieldInfo.beforeOrEq(N value)
|
default StepCondition |
TemporalFieldInfo.beforeOrEq(Supplier<N> value)
|
default StepCondition |
TemporalFieldInfo.beforeOrEq(TemporalCondition<N> value)
|
default StepCondition |
NumericFieldInfo.between(N minIncluded,
N maxExcluded)
|
default StepCondition |
TemporalFieldInfo.between(N minIncluded,
N maxExcluded)
|
default StepCondition |
NumericFieldInfo.between(NumericFieldInfo<N> minIncluded,
NumericFieldInfo<N> maxExcluded)
|
default StepCondition |
TemporalFieldInfo.between(Supplier<N> minIncluded,
Supplier<N> maxExcluded)
|
default StepCondition |
TextFieldInfo.contains(String string)
|
StepCondition |
IterableFieldInfo.contains(T value) |
StepCondition |
IterableFieldInfo.containsAll(T... values) |
default StepCondition |
TextFieldInfo.endsWith(String suffix)
|
default StepCondition |
TemporalFieldInfo.eq(TemporalCondition<N> value)
|
default StepCondition |
NumericFieldInfo.greaterOrEquals(N value)
|
default StepCondition |
NumericFieldInfo.greaterOrEquals(NumericFieldInfo<N> value)
|
default StepCondition |
NumericFieldInfo.greaterThan(N value)
|
default StepCondition |
NumericFieldInfo.greaterThan(NumericFieldInfo<N> value)
|
StepCondition |
IterableFieldInfo.hasNotSize(int size) |
StepCondition |
IterableFieldInfo.hasSize(int size) |
StepCondition |
IterableFieldInfo.isEmpty() |
default StepCondition |
LogicalFieldInfo.isFalse()
|
StepCondition |
IterableFieldInfo.isNotEmpty() |
default StepCondition |
LogicalFieldInfo.isTrue()
|
default StepCondition |
NumericFieldInfo.lesserOrEquals(N value)
|
default StepCondition |
NumericFieldInfo.lesserOrEquals(NumericFieldInfo<N> value)
|
default StepCondition |
NumericFieldInfo.lesserThan(N value)
|
default StepCondition |
NumericFieldInfo.lesserThan(NumericFieldInfo<N> value)
|
default StepCondition |
TextFieldInfo.matches(String regex)
|
default StepCondition |
LogicalFieldInfo.not()
|
default StepCondition |
TemporalFieldInfo.notBetween(N minIncluded,
N maxExcluded)
|
default StepCondition |
LogicalFieldInfo.or(boolean value)
|
default StepCondition |
LogicalFieldInfo.or(LogicalFieldInfo value)
|
default StepCondition |
TextFieldInfo.startsWith(String prefix)
|
default StepCondition |
LogicalFieldInfo.xor(boolean value)
|
default StepCondition |
LogicalFieldInfo.xor(LogicalFieldInfo value)
|
| Modifier and Type | Method and Description |
|---|---|
default NumericCondition<N> |
NumericFieldInfo.when(StepCondition condition)
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultStepCondition |
class |
LogicalBinaryCondition
Implement logical conditions like and, or.
|
class |
LogicalNaryCondition
Implements nary conditions like match any, all, none.
|
class |
LogicalUnaryCondition
Implement unary conditions like negate.
|
| Modifier and Type | Method and Description |
|---|---|
StepCondition |
TemporalCondition.after(N value)
Returns a condition checking if the node value is after the value.
|
StepCondition |
TemporalCondition.after(Supplier<N> value)
Returns a condition checking if the node value is after the supplier value.
|
StepCondition |
TemporalCondition.after(TemporalCondition<N> value)
Returns a condition checking if the node value is after the condition value.
|
StepCondition |
TemporalCondition.after(TemporalFieldInfo<N> value)
Returns a condition checking if the node value is after the field value.
|
StepCondition |
TemporalCondition.afterOrEq(N value)
Returns a condition checking if the node value is after or equals the value.
|
StepCondition |
TemporalCondition.afterOrEq(Supplier<N> value)
Returns a condition checking if the node value is after or equals the supplier value.
|
StepCondition |
TemporalCondition.afterOrEq(TemporalCondition<N> value)
Returns a condition checking if the node value is after or equals the condition value.
|
StepCondition |
DefaultCondition.allMatch(Collection<T> values)
Returns a step condition checking if the node value matches all of the given values.
|
StepCondition |
DefaultCondition.allMatch(List<Predicate<T>> values)
Returns a step condition checking if all of the given predicates testing the node value match.
|
StepCondition |
DefaultCondition.allMatch(T... values)
Returns a step condition checking if the node value matches all of the given values.
|
StepCondition |
BooleanCondition.and(boolean value)
Returns a step condition checking if the node value and the given value is true.
|
StepCondition |
BooleanCondition.and(LogicalFieldInfo value)
Returns a step condition checking if the node value and the given field value is true.
|
StepCondition |
DefaultCondition.anyMatch(Collection<T> values)
Returns a step condition checking if the node value matches any of the given values.
|
StepCondition |
DefaultCondition.anyMatch(List<Predicate<T>> values)
Returns a step condition checking if any of the given predicates testing the node value match.
|
StepCondition |
DefaultCondition.anyMatch(T... values)
Returns a step condition checking if the node value matches any of the given values.
|
StepCondition |
TemporalCondition.before(N value)
Returns a condition checking if the node value is before the given value.
|
StepCondition |
TemporalCondition.before(Supplier<N> value)
Returns a condition checking if the node value is before the supplier value.
|
StepCondition |
TemporalCondition.before(TemporalCondition<N> value)
Returns a condition checking if the node value is before the condition value.
|
StepCondition |
TemporalCondition.before(TemporalFieldInfo<N> value)
Returns a condition checking if the node value is before the given field value.
|
StepCondition |
TemporalCondition.beforeOrEq(N value)
Returns a condition checking if the node value is before or equals the value.
|
StepCondition |
TemporalCondition.beforeOrEq(Supplier<N> value)
Returns a condition checking if the node value is before or equals the supplier value.
|
StepCondition |
TemporalCondition.beforeOrEq(TemporalCondition<N> value)
Returns a condition checking if the node value is before or equals the condition value.
|
StepCondition |
NumericCondition.between(N minIncluded,
N maxExcluded)
Returns a step condition checking if the node value is between the given min included and max
excluded values.
|
StepCondition |
TemporalCondition.between(N minIncluded,
N maxExcluded)
Returns a condition checking if the node value is between the given min inclusive and max exclusive values.
|
StepCondition |
NumericCondition.between(NumericFieldInfo<N> minIncluded,
NumericFieldInfo<N> maxExcluded)
Returns a step condition checking if the node value is between the given min included and max
excluded field values.
|
StepCondition |
TemporalCondition.between(Supplier<N> minIncluded,
Supplier<N> maxExcluded)
Returns a condition checking if the node value is between the given min inclusive and max exclusive supplier
values.
|
StepCondition |
TemporalCondition.between(TemporalCondition<N> minIncluded,
TemporalCondition<N> maxExcluded)
Returns a condition checking if the node value is between the given min inclusive and max exclusive condition
values.
|
StepCondition |
StringCondition.contains(String value)
Returns a condition checking if the node value contains the given value.
|
StepCondition |
IterableCondition.contains(T value) |
StepCondition |
IterableCondition.containsAll(T... values) |
StepCondition |
StringCondition.endsWith(String value)
Returns a condition checking if the node value ends with the given value.
|
StepCondition |
DefaultCondition.eq(BaseFieldInfo<T> value)
Returns a step condition checking if the node value is equal to the given supplier value.
|
StepCondition |
DefaultCondition.eq(DefaultCondition<T> value)
Returns a step condition checking if the node value is not equal to the given condition.
|
StepCondition |
DefaultCondition.eq(Supplier<T> value)
Returns a step condition checking if the node value is equal to the given field value.
|
StepCondition |
DefaultCondition.eq(T value)
Returns a step condition checking if the node value is equal to the given value.
|
StepCondition |
TemporalCondition.eq(TemporalCondition<N> value)
Returns a condition checking if the node value is equal to the given condition value.
|
StepCondition |
NumericCondition.greaterOrEquals(N value)
Returns a step condition checking if the node value is greater or equals the given value.
|
StepCondition |
NumericCondition.greaterOrEquals(NumericFieldInfo<N> value)
Returns a step condition checking if the node value is greater or equals the given field value.
|
StepCondition |
NumericCondition.greaterThan(N value)
Returns a step condition checking if the node value is greater than the given value.
|
StepCondition |
NumericCondition.greaterThan(NumericFieldInfo<N> value)
Returns a step condition checking if the node value is greater than the given field value.
|
StepCondition |
IterableCondition.hasNotSize(int size) |
StepCondition |
IterableCondition.hasSize(int size) |
StepCondition |
IterableCondition.isEmpty() |
StepCondition |
BooleanCondition.isFalse()
Returns a step condition checking if the node value is false.
|
StepCondition |
IterableCondition.isNotEmpty() |
StepCondition |
DefaultCondition.isNotNull()
Returns a step condition checking if the node value is not null.
|
StepCondition |
DefaultCondition.isNull()
Returns a step condition checking if the node value is null.
|
StepCondition |
BooleanCondition.isTrue()
Returns a step condition checking if the node value is true.
|
StepCondition |
NumericCondition.lesserOrEquals(N value)
Returns a step condition checking if the node value is lesser or equals the given value.
|
StepCondition |
NumericCondition.lesserOrEquals(NumericFieldInfo<N> value)
Returns a step condition checking if the node value is lesser or equals the given field value.
|
StepCondition |
NumericCondition.lesserThan(N value)
Returns a step condition checking if the node value is lesser than the given value.
|
StepCondition |
NumericCondition.lesserThan(NumericFieldInfo<N> value)
Returns a step condition checking if the node value is lesser than the given field value.
|
StepCondition |
StringCondition.matches(String value)
Returns a condition checking if the node value matches the given value.
|
StepCondition |
DefaultCondition.noneMatch(Collection<T> values)
Returns a step condition checking if the node value matches none of the given values.
|
StepCondition |
DefaultCondition.noneMatch(List<Predicate<T>> values)
Returns a step condition checking if none of the given predicates testing the node value match.
|
StepCondition |
DefaultCondition.noneMatch(T... values)
Returns a step condition checking if the node value matches none of the given values.
|
StepCondition |
BooleanCondition.not()
Returns a step condition checking if the node value is not true.
|
StepCondition |
TemporalCondition.notBetween(N minIncluded,
N maxExcluded)
Returns a condition checking if the node value is not between the given min inclusive and max exclusive values.
|
StepCondition |
TemporalCondition.notBetween(Supplier<N> minIncluded,
Supplier<N> maxExcluded)
Returns a condition checking if the node value is not between the given min inclusive and max exclusive supplier
values.
|
StepCondition |
TemporalCondition.notBetween(TemporalCondition<N> minIncluded,
TemporalCondition<N> maxExcluded)
Returns a condition checking if the node value is not between the given min inclusive and max exclusive condition
values.
|
StepCondition |
DefaultCondition.notEq(BaseFieldInfo<T> value)
Returns a step condition checking if the node value is not equal to the given field value.
|
StepCondition |
DefaultCondition.notEq(DefaultCondition<T> value)
Returns a step condition checking if the node value is not equal to the given condition.
|
StepCondition |
DefaultCondition.notEq(Supplier<T> value)
Returns a step condition checking if the node value is not equal to the given supplier value.
|
StepCondition |
DefaultCondition.notEq(T value)
Returns a step condition checking if the node value is not equal to the given value.
|
StepCondition |
BooleanCondition.or(boolean value)
Returns a step condition checking if the node value or the given value is true.
|
StepCondition |
BooleanCondition.or(LogicalFieldInfo value)
Returns a step condition checking if the node value or the given field value is true.
|
StepCondition |
StringCondition.startsWith(String value)
Returns a condition checking if the node value starts with the given value.
|
StepCondition |
DefaultStepWhen.stepCondition() |
StepCondition |
BooleanCondition.xor(boolean value)
Returns a step condition checking if the node value or exclusive the given value is true.
|
StepCondition |
BooleanCondition.xor(LogicalFieldInfo value)
Returns a step condition checking if the node value or exclusive the given field value is true.
|
| Modifier and Type | Method and Description |
|---|---|
static LogicalBinaryCondition |
LogicalBinaryCondition.and(StepCondition left,
StepCondition right)
Returns a binary condition that returns true if the given left and right conditions evaluate to true.
|
static LogicalUnaryCondition |
LogicalUnaryCondition.negate(StepCondition step)
Returns a unary condition that returns true if the given step does not evaluate to true.
|
static LogicalBinaryCondition |
LogicalBinaryCondition.or(StepCondition left,
StepCondition right)
Returns a binary condition that returns true if the given left or right conditions evaluate to true.
|
NumericCondition<N> |
NumericCondition.when(StepCondition condition)
Returns a numeric step condition that returns the node value if the condition evaluates to true.
|
| Modifier and Type | Method and Description |
|---|---|
static IntegerCondition |
LogicalNaryCondition.count(List<StepCondition> steps)
Returns an integer condition that returns the number of the given conditions that evaluate to true.
|
static LogicalNaryCondition |
LogicalNaryCondition.matchAll(List<StepCondition> steps)
Returns a nary condition that returns true if all the given steps evaluate to true.
|
static LogicalNaryCondition |
LogicalNaryCondition.matchAny(List<StepCondition> steps)
Returns a nary condition that returns true if any of the given steps evaluate to true.
|
static LogicalNaryCondition |
LogicalNaryCondition.matchNone(List<StepCondition> steps)
Returns a nary condition that returns true if none the given steps evaluate to true.
|
| Constructor and Description |
|---|
DefaultStepWhen(StepCondition stepCondition) |
| Modifier and Type | Method and Description |
|---|---|
default StepCondition |
StepCondition.and(StepCondition condition)
Returns a condition checking if the node predicate and the given condition predicate evaluate to true.
|
default StepCondition |
StepCondition.not()
Returns a condition checking if the node predicate does not evaluate to true.
|
default StepCondition |
StepCondition.or(StepCondition condition)
Returns a condition checking if the node predicate or the given condition predicate evaluate to true.
|
StepCondition |
StepWhen.stepCondition()
Returns the root condition of the syntax tree.
|
| Modifier and Type | Method and Description |
|---|---|
default StepCondition |
StepCondition.and(StepCondition condition)
Returns a condition checking if the node predicate and the given condition predicate evaluate to true.
|
default StepCondition |
StepCondition.or(StepCondition condition)
Returns a condition checking if the node predicate or the given condition predicate evaluate to true.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MetadataVisitor.visit(StepCondition stepCondition,
int depth) |
static LeafMetadata |
LeafMetadata.whenMetadata(DslField field,
StepCondition condition) |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractAstVisitor.visit(StepCondition metadata,
int depth) |
void |
AstFullVisitor.visitMetadata(StepCondition metadata,
int depth) |
Copyright © 2018. All rights reserved.