public class BuildRuleDependencyVisitors extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
public static <T> DirectedAcyclicGraph<BuildRule> getBuildRuleDirectedGraphFilteredBy(Iterable<? extends BuildRule> inputs, java.util.function.Predicate<Object> filter, java.util.function.Predicate<Object> traverse)
T
- class to fitler oninputs
- initial dependencies from which to build transitive closurefilter
- predicate to determine whether a node should be includedtraverse
- predicate to determine whether this node should be traversedBuildRule