Add FilterExpressionVisitor SPI with accept() on FilterExpression#1090
Add FilterExpressionVisitor SPI with accept() on FilterExpression#1090
Conversation
|
This change is part of the following stack: Change managed by git-spice. |
1b4dea5 to
18989d9
Compare
cc24f85 to
7012a44
Compare
18989d9 to
9b66a1f
Compare
7012a44 to
1a836c0
Compare
9b66a1f to
8bc0072
Compare
1a836c0 to
11ea545
Compare
8bc0072 to
29e77ba
Compare
11ea545 to
f94b4fd
Compare
f94b4fd to
45f1a2b
Compare
|
View details about the 'Apache Rat - Check' build 878 in the Build Scan 📊 |
|
View details about the 'Apache Rat - Check' build 879 in the Build Scan 📊 |
|
View details about the 'Maven Verify (with Java 21-zulu)' build 1871 in the Build Scan 📊 |
|
View details about the 'Maven Verify (with Java 17-zulu)' build 1871 in the Build Scan 📊 |
|
View details about the 'Maven Verify (with Java 17-zulu)' build 1872 in the Build Scan 📊 |
|
View details about the 'Maven Verify (with Java 21-zulu)' build 1872 in the Build Scan 📊 |
Introduces a visitor interface for traversing the sealed FilterExpression hierarchy. Since FilterExpression permits exactly 5 subtypes, visitor implementations are compile-time complete — all expression types must be handled. Adds accept(FilterExpressionVisitor<R>) default method on FilterExpression that dispatches to the appropriate visit() method. This replaces the instanceof chain pattern needed by non-in-memory backends (LDAP, SQL, etc.) for filter-to-query translation. Generated-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3c47390 to
4b4c812
Compare
|
View details about the 'Apache Rat - Check' build 885 in the Build Scan 📊 |
|
View details about the 'Maven Verify (with Java 17-zulu)' build 1876 in the Build Scan 📊 |
|
View details about the 'Maven Verify (with Java 21-zulu)' build 1876 in the Build Scan 📊 |
Introduces a visitor interface for traversing the sealed FilterExpression
hierarchy. Since FilterExpression permits exactly 5 subtypes, visitor
implementations are compile-time complete — all expression types must
be handled.
Adds accept(FilterExpressionVisitor) default method on
FilterExpression that dispatches to the appropriate visit() method.
This replaces the instanceof chain pattern needed by non-in-memory
backends (LDAP, SQL, etc.) for filter-to-query translation.