Class BuildRuleDependencyVisitors

  • public class BuildRuleDependencyVisitors
    extends Object
    • Method Detail

      • getBuildRuleDirectedGraphFilteredBy

        public static <T> DirectedAcyclicGraph<BuildRule> getBuildRuleDirectedGraphFilteredBy​(Iterable<? extends BuildRule> inputs,
                                                                                              java.util.function.Predicate<Object> filter,
                                                                                              java.util.function.Predicate<Object> traverse)
        Given dependencies in inputs builds graph of transitive dependencies filtering them by instanceOf T.
        Type Parameters:
        T - class to fitler on
        inputs - initial dependencies from which to build transitive closure
        filter - predicate to determine whether a node should be included
        traverse - predicate to determine whether this node should be traversed
        filtered BuildRule DAG of transitive dependencies
        See Also: