Package redempt.ordinate.builder
Class BuilderOptions<T>
java.lang.Object
redempt.ordinate.builder.BuilderOptions<T>
- Type Parameters:
 T- The sender type
Represents options for a 
CommandBuilder- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionaddType(Class<V> clazz, BiFunction<CommandContext<T>, String, V> converter) Registers a type for use in buildersRegisters a type for use in buildersstatic <T> BuilderOptions<T>Gets theArgTypeassociated with a classvoidsetHelpSubcommandName(String name) Sets the help subcommand name, specify null for no auto-generated help subcommands 
- 
Constructor Details
- 
BuilderOptions
public BuilderOptions() 
 - 
 - 
Method Details
- 
getDefaults
 - 
setHelpSubcommandName
Sets the help subcommand name, specify null for no auto-generated help subcommands- Parameters:
 name- The auto-generated help subcommand name
 - 
addType
Registers a type for use in builders- Type Parameters:
 V- The type- Parameters:
 clazz- The class of the typeconverter- A function to parse the type- Returns:
 - The constructed 
ArgType, in case you want to apply a completer 
 - 
addType
Registers a type for use in builders- Type Parameters:
 V- The type- Parameters:
 clazz- The class of the typeconverter- A function to parse the type- Returns:
 - The constructed 
ArgType, in case you want to apply a completer 
 - 
getType
Gets theArgTypeassociated with a class- Parameters:
 clazz- The class- Returns:
 - The argument type
 - Throws:
 IllegalArgumentException- If no argument type for that class exists
 - 
getHelpSubcommandName
- Returns:
 - The name to be used for auto-generated help subcommands
 
 
 -