Added support to defaultPaths for the exclude API #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several improvements and refactors to the DotPathQL library, focusing on simplifying the API, unifying the internal path handling logic, and enhancing usability. The main changes include consolidating filter and exclude logic under a common base class, updating method names for clarity, and adding support for default exclude paths. The documentation and tests have also been updated to reflect these changes.
API and Internal Refactoring
PathCommonbase class, replacing separatePathFilterandPathExcludereferences inDotPathQLwithPathCommoninstances, and standardizing the internal method names torunandexecutefor both filtering and exclusion operations. (src/main/java/io/github/trackerforce/DotPathQL.java,src/main/java/io/github/trackerforce/PathCommon.java, [1] [2] [3] [4] [5] [6]Default Path Management
addDefaultExcludePathsmethod inDotPathQL, allowing users to specify paths that are always excluded in exclusion operations, similar to the existing default filter paths. (src/main/java/io/github/trackerforce/DotPathQL.java, src/main/java/io/github/trackerforce/DotPathQL.javaL111-R120)src/main/java/io/github/trackerforce/PathCommon.java, [1] [2] [3]Documentation Updates
README.mdto clarify the behavior of private field access, update code examples to use the simplified API, document the new helper utilities, and specify supported data structures more clearly. (README.md, [1] [2] [3] [4] [5] [6]Testing Enhancements
src/test/java/io/github/trackerforce/ExcludeTypeClassRecordTest.java,src/test/java/io/github/trackerforce/FilterTypeClassRecordTest.java, [1] [2]Version Bump
1.1.0-SNAPSHOTto reflect these feature additions and API changes. (pom.xml, pom.xmlL9-R9)