Class PathFinder
- java.lang.Object
-
- software.amazon.smithy.rulesengine.language.util.PathFinder
-
public final class PathFinder extends java.lang.ObjectUtility to determine with path of conditions that must be matched to reach a condition in a rule-set.See `PathFinder.findPath`
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPathFinder.Path
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<PathFinder.Path>findPath(EndpointRuleSet ruleset, Condition target)Determine the path of positive and negative conditions to reach a given condition.
-
-
-
Method Detail
-
findPath
public static java.util.Optional<PathFinder.Path> findPath(EndpointRuleSet ruleset, Condition target)
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
-
-