public abstract class BuildTargetMatcherParser<T> extends Object
Constructor and Description |
---|
BuildTargetMatcherParser() |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
createForChildren(CellRelativePath cellRelativePath) |
protected abstract T |
createForDescendants(CellRelativePath cellRelativePath) |
protected abstract T |
createForSingleton(UnconfiguredBuildTargetWithOutputs targetWithOutputs) |
static BuildTargetMatcherParser<BuildTargetMatcher> |
forVisibilityArgument()
Used when parsing target names in the
visibility argument to a build rule. |
T |
parse(String buildTargetPattern,
CellNameResolver cellNameResolver)
Matches the given
buildTargetPattern according to the following rules:
//src/com/facebook/buck/cli:cli will be converted to a single build target;
//src/com/facebook/buck/cli: will match all in the same directory;
//src/com/facebook/buck/cli/... |
public final T parse(String buildTargetPattern, CellNameResolver cellNameResolver)
buildTargetPattern
according to the following rules:
forVisibilityArgument()
.public static BuildTargetMatcherParser<BuildTargetMatcher> forVisibilityArgument()
visibility
argument to a build rule.protected abstract T createForDescendants(CellRelativePath cellRelativePath)
protected abstract T createForChildren(CellRelativePath cellRelativePath)
protected abstract T createForSingleton(UnconfiguredBuildTargetWithOutputs targetWithOutputs)