Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the Predicate class #131

Merged
merged 6 commits into from
Feb 13, 2024
Merged

Add the Predicate class #131

merged 6 commits into from
Feb 13, 2024

Conversation

dabico
Copy link
Member

@dabico dabico commented Feb 13, 2024

This PR introduces a class dedicated to storing Query predicate conditions and data for a Pattern. Although this is currently not used in Node matching, the fact that we make this abstraction available to the users allows them to do so manually. I hope to implement the automatic matching similar to the Rust binding in one of the subsequent versions.

Also includes a nested subclass `Predicate.Step`,
along with the nested enum `Predicate.Step.Type`.
This involves:
- A new field `predicates` of type `List<Predicate>` in `Pattern`
- Adding a new constructor parameter in `Pattern`
- Updating the existing `Pattern` construction logic in `Query#Builder`
@dabico dabico merged commit 61acfa4 into master Feb 13, 2024
2 checks passed
@dabico dabico deleted the feature/predicate branch February 13, 2024 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant