public class ParserMetadata<T> extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ARGUMENTS_SEPARATOR
Default separator used to separate arguments from options
|
Constructor and Description |
---|
ParserMetadata(CommandFactory<T> commandFactory,
List<OptionParser<T>> optionParsers,
TypeConverter typeConverter,
ParserErrorHandler errorHandler,
boolean allowAbbreviateCommands,
boolean allowAbbreviatedOptions,
List<AliasMetadata> aliases,
UserAliasesSource<T> userAliases,
boolean aliasesOverrideBuiltIns,
boolean aliasesMayChain,
String argumentsSeparator,
String flagNegationPrefix) |
Modifier and Type | Method and Description |
---|---|
boolean |
aliasesMayChain()
Gets whether aliases may chain i.e.
|
boolean |
aliasesOverrideBuiltIns()
Gets whether aliases can override built-in commands
|
boolean |
allowsAbbreviatedCommands()
Gets whether command/group name abbreviation is allowed
|
boolean |
allowsAbbreviatedOptions()
Gets whether option name abbreviation is allowed
|
boolean |
allowsFlagNegation()
Gets whether this configuration allows flag negation
|
List<AliasMetadata> |
getAliases()
Gets the defined command aliases
|
String |
getArgumentsSeparator()
Gets the arguments separator to be used
|
CommandFactory<T> |
getCommandFactory()
Gets the command factory to use
|
ParserErrorHandler |
getErrorHandler()
Gets the error handler to use
|
String |
getFlagNegationPrefix()
Gets the flag negation prefix that is in use (if any)
|
List<OptionParser<T>> |
getOptionParsers()
Gets the option parsers to use
|
TypeConverter |
getTypeConverter()
Gets the type converter to use
|
UserAliasesSource<T> |
getUserAliasesSource()
Gets the user aliases source (if any)
|
String |
toString() |
public static final String DEFAULT_ARGUMENTS_SEPARATOR
public ParserMetadata(CommandFactory<T> commandFactory, List<OptionParser<T>> optionParsers, TypeConverter typeConverter, ParserErrorHandler errorHandler, boolean allowAbbreviateCommands, boolean allowAbbreviatedOptions, List<AliasMetadata> aliases, UserAliasesSource<T> userAliases, boolean aliasesOverrideBuiltIns, boolean aliasesMayChain, String argumentsSeparator, String flagNegationPrefix)
public CommandFactory<T> getCommandFactory()
public TypeConverter getTypeConverter()
public ParserErrorHandler getErrorHandler()
public List<AliasMetadata> getAliases()
public UserAliasesSource<T> getUserAliasesSource()
public boolean aliasesOverrideBuiltIns()
public boolean aliasesMayChain()
public List<OptionParser<T>> getOptionParsers()
public boolean allowsAbbreviatedCommands()
public boolean allowsAbbreviatedOptions()
public String getArgumentsSeparator()
public boolean allowsFlagNegation()
public String getFlagNegationPrefix()
null
if not enabledCopyright © 2012–2017. All rights reserved.