public class ParsingUnconfiguredBuildTargetViewFactory extends Object implements UnconfiguredBuildTargetViewFactory
BuildTargetParser
.Constructor and Description |
---|
ParsingUnconfiguredBuildTargetViewFactory() |
Modifier and Type | Method and Description |
---|---|
UnconfiguredBuildTarget |
create(String buildTargetName,
CellNameResolver cellNameResolver)
Given a fully-qualified target name returns
UnconfiguredBuildTarget . |
UnconfiguredBuildTarget |
createForBaseName(BaseName baseName,
String buildTargetName,
CellNameResolver cellNameResolver)
Given a target base name and a target name returns
UnconfiguredBuildTarget . |
UnconfiguredBuildTarget |
createForPathRelativeToProjectRoot(ForwardRelativePath pathRelativeToProjectRoot,
String buildTargetName,
CellNameResolver cellNameResolver) |
UnconfiguredBuildTarget |
createWithWildcard(String buildTargetName,
CellNameResolver cellNameResolver)
Given a target base name and a target name returns
UnconfiguredBuildTarget with
optionally allowing the short name to be empty. |
public ParsingUnconfiguredBuildTargetViewFactory()
public UnconfiguredBuildTarget create(String buildTargetName, CellNameResolver cellNameResolver)
UnconfiguredBuildTargetViewFactory
UnconfiguredBuildTarget
.
A fully-qualified target name is the target name that uniquely identifies the target.
Note that the cell name of the result build target can be different from the cell name
specified in the target name. The build target contains a canonical cell name
.
create
in interface UnconfiguredBuildTargetViewFactory
for more information about other
types of target names.
public UnconfiguredBuildTarget createForBaseName(BaseName baseName, String buildTargetName, CellNameResolver cellNameResolver)
UnconfiguredBuildTargetViewFactory
UnconfiguredBuildTarget
.
The target name may either be a fully-qualified name or a relative name. baseName
is
used when a relative name is given to correctly resolve the name of the target.
For example, //java/com/company/org:org
is a fully-qualified name. The same target
is represented by a relative name org
with base name java/com/company/org
.
Note that the cell name of the result build target can be different from the cell name
specified in the target name. The build target contains a canonical cell name
.
createForBaseName
in interface UnconfiguredBuildTargetViewFactory
public UnconfiguredBuildTarget createForPathRelativeToProjectRoot(ForwardRelativePath pathRelativeToProjectRoot, String buildTargetName, CellNameResolver cellNameResolver)
createForPathRelativeToProjectRoot
in interface UnconfiguredBuildTargetViewFactory
public UnconfiguredBuildTarget createWithWildcard(String buildTargetName, CellNameResolver cellNameResolver)
UnconfiguredBuildTargetViewFactory
UnconfiguredBuildTarget
with
optionally allowing the short name to be empty.
The target name may either be a fully-qualified name or a target name pattern.
For example, //java/com/company/org:org
is a fully-qualified name. //java/com/company/org:
is an example of a target with a pattern.
Note that the cell name of the result build target can be different from the cell name
specified in the target name. The build target contains a canonical cell name
.
createWithWildcard
in interface UnconfiguredBuildTargetViewFactory