Class PathFinder
java.lang.Object
software.amazon.smithy.rulesengine.language.util.PathFinder
Utility to determine with path of conditions that must be matched to reach a condition in a rule-set.
See `PathFinder.findPath`
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<PathFinder.Path>
findPath
(EndpointRuleSet ruleset, Condition target) Determine the path of positive and negative conditions to reach a given condition.
-
Method Details
-
findPath
Determine the path of positive and negative conditions to reach a given condition.This can be used for debugging as well as other forms of static reachability analysis.
- Parameters:
ruleset
- The endpoint rule-set to search.target
- The target condition to reach.- Returns:
- Path
-