Module com.github.sormuras.bach
Package com.github.sormuras.bach
Interface Command<T extends Command<T>>
- Type Parameters:
T
- the implementing type
- All Known Implementing Classes:
DefaultCommand
,JarCommand
,JavacCommand
,JavadocCommand
,JavapCommand
,JDepsCommand
,JLinkCommand
,JModCommand
,JPackageCommand
,JUnitCommand
public interface Command<T extends Command<T>>
An aggregator of command-line arguments.
-
Method Summary
Modifier and TypeMethodDescriptiondefault T
default T
default T
default T
addAll
(Collection<?> arguments) Returns the option object holding zero or more additional arguments.additionals
(AdditionalArgumentsOption additionals) Creates a new instance of the implementing class with the given option object.default T
static JarCommand
jar()
static JavacCommand
javac()
static JavadocCommand
javadoc()
static JLinkCommand
jlink()
static JPackageCommand
jpackage()
static JUnitCommand
junit()
name()
Returns the name of the command.static DefaultCommand
default T
Creates a new instance of the implementing class with the given option object.Returns a list of all aggregated arguments.
-
Method Details
-
name
Returns the name of the command.- Returns:
- the name of the command
-
composing
-
additionals
Returns the option object holding zero or more additional arguments.- Returns:
- the option object holding zero or more additional arguments
-
additionals
Creates a new instance of the implementing class with the given option object.- Parameters:
additionals
- the option object to use- Returns:
- a new instance of the implementing class
- See Also:
-
of
-
jar
-
javac
-
javadoc
-
jlink
-
jpackage
-
junit
-
option
Creates a new instance of the implementing class with the given option object.- Parameters:
option
- the option object to use- Returns:
- a new instance of the implementing class
-
add
-
add
-
addAll
-
addAll
-
toArguments
Returns a list of all aggregated arguments.- Returns:
- a list of all aggregated arguments
-