public class NativeLinkableGroups extends Object
Modifier and Type | Method and Description |
---|---|
static java.util.function.Consumer<BuildTarget> |
filterConsumer(BuildRuleResolver resolver,
java.util.function.Consumer<? super NativeLinkableGroup> consumer) |
static Linker.LinkableDepType |
getLinkStyle(NativeLinkableGroup.Linkage preferredLinkage,
Linker.LinkableDepType requestedLinkStyle) |
static <T> com.google.common.collect.ImmutableMap<BuildTarget,NativeLinkableGroup> |
getNativeLinkableRoots(Iterable<? extends T> from,
java.util.function.Function<? super T,Optional<Iterable<? extends T>>> passthrough)
Find
NativeLinkableGroup nodes transitively reachable from the given roots. |
public static java.util.function.Consumer<BuildTarget> filterConsumer(BuildRuleResolver resolver, java.util.function.Consumer<? super NativeLinkableGroup> consumer)
Consumer
which accepts BuildTarget
s and filter-casts them NativeLinkableGroup
s.public static <T> com.google.common.collect.ImmutableMap<BuildTarget,NativeLinkableGroup> getNativeLinkableRoots(Iterable<? extends T> from, java.util.function.Function<? super T,Optional<Iterable<? extends T>>> passthrough)
NativeLinkableGroup
nodes transitively reachable from the given roots.from
- the starting set of roots to begin the search from.passthrough
- a Function
determining acceptable dependencies to traverse when
searching for NativeLinkableGroup
s.BuildTarget
to NativeLinkableGroup
.public static Linker.LinkableDepType getLinkStyle(NativeLinkableGroup.Linkage preferredLinkage, Linker.LinkableDepType requestedLinkStyle)