public abstract class PythonMappedComponents extends Object implements PythonComponents
PythonComponents wrapping a fixed map of sources, where the keys
determine where in the Python package the sources get added.| Modifier and Type | Class and Description |
|---|---|
static class |
PythonMappedComponents.Resolved
An implementation of
PythonComponents.Resolved for
PythonMappedComponents with SourcePaths resolved to Paths for use with
Step. |
| Constructor and Description |
|---|
PythonMappedComponents() |
| Modifier and Type | Method and Description |
|---|---|
Symlinks |
asSymlinks() |
void |
forEachInput(java.util.function.Consumer<SourcePath> consumer)
Run
consumer on all SourcePaths contained in this object. |
abstract com.google.common.collect.ImmutableSortedMap<Path,SourcePath> |
getComponents() |
java.util.function.Supplier<com.google.common.collect.ImmutableSortedMap<String,SourcePath>> |
getComponentsRuleKey() |
static PythonMappedComponents |
of(com.google.common.collect.ImmutableSortedMap<Path,SourcePath> components) |
PythonMappedComponents.Resolved |
resolvePythonComponents(SourcePathResolverAdapter resolver)
Convert this
PythonComponents to a PythonComponents.Resolved, where all SourcePaths have been resolved to Paths for use with
Steps. |
public static PythonMappedComponents of(com.google.common.collect.ImmutableSortedMap<Path,SourcePath> components)
public abstract com.google.common.collect.ImmutableSortedMap<Path,SourcePath> getComponents()
@Value.Derived @Value.Auxiliary public java.util.function.Supplier<com.google.common.collect.ImmutableSortedMap<String,SourcePath>> getComponentsRuleKey()
public void forEachInput(java.util.function.Consumer<SourcePath> consumer)
PythonComponentsconsumer on all SourcePaths contained in this object.forEachInput in interface PythonComponentspublic PythonMappedComponents.Resolved resolvePythonComponents(SourcePathResolverAdapter resolver)
PythonComponentsPythonComponents to a PythonComponents.Resolved, where all SourcePaths have been resolved to Paths for use with
Steps.resolvePythonComponents in interface PythonComponents@Value.Lazy public Symlinks asSymlinks()
asSymlinks in interface PythonComponentsSymlinks used to symlink the components contained in this object via a SymlinkTree rule.