See: Description
| Package | Description |
|---|---|
| co.streamx.fluent.extree | |
| co.streamx.fluent.extree.expression | |
| co.streamx.fluent.extree.function | |
| co.streamx.fluent.extree.function.math |
void method(Predicate<Float> p) {
LambdaExpression<Predicate<Float>> parsed = LambdaExpression.parse(p);
//Use parsed Expression Tree...
}
making it possible to create type-safe fluent interfaces, i.e. instead of:
Customer obj = ...
obj.property("name").eq("John")
one can write
method<Customer>(obj -> obj.getName() == "John")
in type-safe, refactoring friendly manner.
The jdk.internal.lambda.dumpProxyClasses system property must be set and point to an existing writable directory to give the parser access to the lambda byte code.
Copyright © 2023 Streamx. All rights reserved.