Skip navigation links

Java Expression Trees library 2.8.0 API

This library enables language-level code expressions to be represented as objects in the form of expression trees at runtime:

See: Description

Packages 
Package Description
co.streamx.fluent.extree  
co.streamx.fluent.extree.expression  
co.streamx.fluent.extree.function  
co.streamx.fluent.extree.function.math  
This library enables language-level code expressions to be represented as objects in the form of expression trees at runtime:

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.

Skip navigation links

Copyright © 2023 Streamx. All rights reserved.