public abstract class BuildTargetPattern extends Object
Refer to BuildTargetPatternParser
for acceptable pattern formats
Modifier and Type | Class and Description |
---|---|
static class |
BuildTargetPattern.Kind
Type of a pattern
|
Constructor and Description |
---|
BuildTargetPattern() |
Modifier and Type | Method and Description |
---|---|
protected void |
check()
Validate that target name is only present when necessary
|
abstract CellRelativePath |
getCellRelativeBasePath()
Path to the package folder that is a root for all build targets matched by a pattern
|
abstract BuildTargetPattern.Kind |
getKind()
Type of the parsed pattern
|
abstract String |
getLocalNameAndFlavors()
Target name in case pattern is single build target pattern; otherwise an empty string
|
boolean |
isRecursive()
Whether this is a '//package/...' pattern.
|
static BuildTargetPattern |
of(CellRelativePath cellRelativeBasePath,
BuildTargetPattern.Kind kind,
String localNameAndFlavors) |
String |
toString() |
public abstract CellRelativePath getCellRelativeBasePath()
public abstract BuildTargetPattern.Kind getKind()
public abstract String getLocalNameAndFlavors()
public boolean isRecursive()
@Value.Check protected void check()
Should we move it to factory BuildTargetPatternParser
?
public static BuildTargetPattern of(CellRelativePath cellRelativeBasePath, BuildTargetPattern.Kind kind, String localNameAndFlavors)