public final class FocusedModuleTargetMatcher extends Object
Modifier and Type | Method and Description |
---|---|
static FocusedModuleTargetMatcher |
focusedOn(com.google.common.collect.ImmutableSet<UnflavoredBuildTarget> targets)
Returns a matcher that specifies a set of targets to focus on.
|
boolean |
hasFocus()
Returns whether any focus is set.
|
boolean |
isFocusedOn(BuildTarget buildTarget)
Test whether target matches any focused targets.
|
FocusedModuleTargetMatcher |
map(java.util.function.Function<com.google.common.collect.ImmutableSet<UnflavoredBuildTarget>,com.google.common.collect.ImmutableSet<UnflavoredBuildTarget>> mapper)
Apply a mapper to the focused targets held in this object.
|
static FocusedModuleTargetMatcher |
noFocus()
Returns a matcher that matches everything, i.e.
|
public static FocusedModuleTargetMatcher noFocus()
public static FocusedModuleTargetMatcher focusedOn(com.google.common.collect.ImmutableSet<UnflavoredBuildTarget> targets)
public boolean hasFocus()
public boolean isFocusedOn(BuildTarget buildTarget)
If there is no focus, always return true.
public FocusedModuleTargetMatcher map(java.util.function.Function<com.google.common.collect.ImmutableSet<UnflavoredBuildTarget>,com.google.common.collect.ImmutableSet<UnflavoredBuildTarget>> mapper)