public class CoreDataModelDescription extends Object implements DescriptionWithTargetGraph<AppleWrapperResourceArg>, Flavored
Constructor and Description |
---|
CoreDataModelDescription() |
Modifier and Type | Method and Description |
---|---|
BuildRule |
createBuildRule(BuildRuleCreationContextWithTargetGraph context,
BuildTarget buildTarget,
BuildRuleParams params,
AppleWrapperResourceArg args)
Create a
BuildRule for the given BuildRuleParams . |
Class<AppleWrapperResourceArg> |
getConstructorArgType()
The type of the constructor argument that is used by this description to create a rule
|
boolean |
hasFlavors(com.google.common.collect.ImmutableSet<Flavor> flavors,
TargetConfiguration toolchainTargetConfiguration) |
static boolean |
isVersionedDataModel(AppleWrapperResourceArg arg) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
producesCacheableSubgraph
getConfigurationDeps
flavorDomains
public Class<AppleWrapperResourceArg> getConstructorArgType()
BaseDescription
getConstructorArgType
in interface BaseDescription<AppleWrapperResourceArg>
public BuildRule createBuildRule(BuildRuleCreationContextWithTargetGraph context, BuildTarget buildTarget, BuildRuleParams params, AppleWrapperResourceArg args)
DescriptionWithTargetGraph
BuildRule
for the given BuildRuleParams
. Note that the BuildTarget
referred to in the params
contains the Flavor
to create.createBuildRule
in interface DescriptionWithTargetGraph<AppleWrapperResourceArg>
args
- A constructor argument, of type as returned by BaseDescription.getConstructorArgType()
.BuildRule
that describes the default flavour of the rule being described.public static boolean isVersionedDataModel(AppleWrapperResourceArg arg)
public boolean hasFlavors(com.google.common.collect.ImmutableSet<Flavor> flavors, TargetConfiguration toolchainTargetConfiguration)
hasFlavors
in interface Flavored
flavors
- The set of Flavor
s to consider. All must match.BuildRule
of the given Flavor
can be created.