public abstract class SourcePathArg extends Object implements Arg, HasSourcePath
Arg
which wraps a SourcePath
.Constructor and Description |
---|
SourcePathArg() |
Modifier and Type | Method and Description |
---|---|
void |
appendToCommandLine(java.util.function.Consumer<String> consumer,
SourcePathResolverAdapter pathResolver)
Feed the contents of the Arg to the supplied consumer.
|
void |
appendToCommandLine(java.util.function.Consumer<String> consumer,
SourcePathResolverAdapter pathResolver,
boolean useUnixPathSeparator) |
void |
appendToCommandLineRel(java.util.function.Consumer<String> consumer,
CanonicalCellName cellName,
SourcePathResolverAdapter pathResolver,
boolean useUnixPathSeparator) |
static com.google.common.collect.ImmutableList<Arg> |
from(Iterable<SourcePath> paths) |
static com.google.common.collect.ImmutableList<Arg> |
from(SourcePath... paths) |
abstract SourcePath |
getPath() |
static SourcePathArg |
of(SourcePath path) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, flattenToSpaceSeparatedString, hashCode, singleCommandLineArg, stringify, stringify, stringify, stringifyList, toString
public abstract SourcePath getPath()
getPath
in interface HasSourcePath
public void appendToCommandLine(java.util.function.Consumer<String> consumer, SourcePathResolverAdapter pathResolver)
Arg
appendToCommandLine
in interface Arg
public void appendToCommandLine(java.util.function.Consumer<String> consumer, SourcePathResolverAdapter pathResolver, boolean useUnixPathSeparator)
public void appendToCommandLineRel(java.util.function.Consumer<String> consumer, CanonicalCellName cellName, SourcePathResolverAdapter pathResolver, boolean useUnixPathSeparator)
public static com.google.common.collect.ImmutableList<Arg> from(Iterable<SourcePath> paths)
public static com.google.common.collect.ImmutableList<Arg> from(SourcePath... paths)
public static SourcePathArg of(SourcePath path)