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 SourcePath s resolved to Path s 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 SourcePath s 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 SourcePath s have been resolved to Path s for use with
Step s. |
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)
PythonComponents
consumer
on all SourcePath
s contained in this object.forEachInput
in interface PythonComponents
public PythonMappedComponents.Resolved resolvePythonComponents(SourcePathResolverAdapter resolver)
PythonComponents
PythonComponents
to a PythonComponents.Resolved
, where all SourcePath
s have been resolved to Path
s for use with
Step
s.resolvePythonComponents
in interface PythonComponents
@Value.Lazy public Symlinks asSymlinks()
asSymlinks
in interface PythonComponents
Symlinks
used to symlink the components contained in this object via a SymlinkTree
rule.