public abstract class CLIConfigurator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<CLIConfigurator.Argument<?,?>> |
arguments |
protected List<CLIConfigurator.SelectableArguments> |
selectables |
protected Map<CLIConfigurator.Argument<?,?>,Function<Object,List<String>>> |
translators |
| Constructor and Description |
|---|
CLIConfigurator() |
protected final List<CLIConfigurator.Argument<?,?>> arguments
protected final List<CLIConfigurator.SelectableArguments> selectables
public List<CLIConfigurator.Argument<?,?>> getArguments()
CLIConfigurator.SelectableArguments, CLIConfigurator.Argument.visible or not,
CLIConfigurator.Argument.inCLI or not.public List<CLIConfigurator.SelectableArguments> getSelectables()
CLIConfigurator.SelectableArguments in this CLI config.CLIConfigurator.SelectableArguments.public List<CLIConfigurator.Argument<?,?>> getSelectedArguments()
CLIConfigurator.SelectableArguments, and those who are not in a
CLIConfigurator.SelectableArguments.protected void setTranslator(CLIConfigurator.Argument<?,?> arg, Function<Object,List<String>> translator)
protected CLIConfigurator.SelectableArguments addSelectableArguments()
CLIConfigurator.SelectableArguments will be flagged as as not to be
used concurrently in the same command. This will be used when creating
UIs.protected CLIConfigurator.FlagAdder addFlag()
protected CLIConfigurator.StringAdder addStringArgument()
protected CLIConfigurator.PathAdder addPathArgument()
protected CLIConfigurator.IntAdder addIntArgument()
protected CLIConfigurator.DoubleAdder addDoubleArgument()
protected CLIConfigurator.ChoiceAdder addChoiceArgument()
protected <T extends CLIConfigurator.Argument<?,?>> T addExtraArgument(T extraArg)
extraArg - the argument to add to this CLI config.public String check()
public abstract CLIConfigurator.Argument<?,?> getCommandArg()
Copyright © 2010–2024 TrackMate. All rights reserved.