public abstract class FormatArg extends Object implements Arg
Arg, and passes that string representation into String.format(java.lang.String, java.lang.Object...)| Constructor and Description |
|---|
FormatArg() |
| 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.
|
abstract Arg |
getArg() |
abstract String |
getFormatString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, flattenToSpaceSeparatedString, hashCode, singleCommandLineArg, stringify, stringify, stringify, stringifyList, toStringpublic abstract Arg getArg()
public abstract String getFormatString()
The format string should be either a string with one or more %s. Each %s will be
replaced with the string value of getArg()
public void appendToCommandLine(java.util.function.Consumer<String> consumer, SourcePathResolverAdapter pathResolver)
ArgappendToCommandLine in interface Arg