Class PathRecordingDependencyVisitor

    • Constructor Detail

      • PathRecordingDependencyVisitor

        public PathRecordingDependencyVisitor​(DependencyFilter filter)
        Creates a new visitor that uses the specified filter to identify terminal nodes of interesting paths. The visitor will not search for paths going beyond an already matched node.
        Parameters:
        filter - The filter used to select terminal nodes of paths to record, may be null to match any node.
      • PathRecordingDependencyVisitor

        public PathRecordingDependencyVisitor​(DependencyFilter filter,
                                              boolean excludeChildrenOfMatches)
        Creates a new visitor that uses the specified filter to identify terminal nodes of interesting paths.
        Parameters:
        filter - The filter used to select terminal nodes of paths to record, may be null to match any node.
        excludeChildrenOfMatches - Flag controlling whether children of matched nodes should be excluded from the traversal, thereby ignoring any potential paths to other matching nodes beneath a matching ancestor node. If true, all recorded paths will have only one matching node (namely the terminal node), if false a recorded path can consist of multiple matching nodes.