| Modifier and Type | Field and Description |
|---|---|
protected List<GlobalRestriction> |
CliBuilder.restrictions |
| Modifier and Type | Method and Description |
|---|---|
CliBuilder<C> |
CliBuilder.withRestriction(GlobalRestriction restriction) |
CliBuilder<C> |
CliBuilder.withRestrictions(GlobalRestriction... restrictions) |
| Modifier and Type | Method and Description |
|---|---|
List<GlobalRestriction> |
GlobalMetadata.getRestrictions()
Gets the global restrictions
|
| Modifier and Type | Method and Description |
|---|---|
static <C> GlobalMetadata<C> |
MetadataLoader.loadGlobal(String name,
String description,
CommandMetadata defaultCommand,
Iterable<CommandMetadata> defaultGroupCommands,
Iterable<CommandGroupMetadata> groups,
Iterable<GlobalRestriction> restrictions,
Iterable<HelpSection> baseHelpSections,
ParserMetadata<C> parserConfig)
Loads global meta-data
|
| Constructor and Description |
|---|
GlobalMetadata(String name,
String description,
Iterable<OptionMetadata> options,
CommandMetadata defaultCommand,
Iterable<CommandMetadata> defaultGroupCommands,
Iterable<CommandGroupMetadata> commandGroups,
Iterable<GlobalRestriction> restrictions,
Iterable<HelpSection> baseHelpSections,
ParserMetadata<T> parserConfig) |
| Modifier and Type | Method and Description |
|---|---|
T |
SingleCommandParser.parse(ParserMetadata<T> parserConfig,
CommandMetadata commandMetadata,
Iterable<GlobalRestriction> restrictions,
Iterable<String> args) |
ParseResult<T> |
SingleCommandParser.parseWithResult(ParserMetadata<T> parserConfig,
CommandMetadata commandMetadata,
Iterable<GlobalRestriction> restrictions,
Iterable<String> args) |
protected void |
SingleCommandParser.validate(ParseState<T> state,
List<GlobalRestriction> restrictions)
Validates the parser state
|
| Modifier and Type | Class and Description |
|---|---|
class |
None
A restriction which doesn't actually impose any restrictions
|
| Modifier and Type | Field and Description |
|---|---|
static GlobalRestriction[] |
GlobalRestriction.DEFAULTS |
| Modifier and Type | Class and Description |
|---|---|
class |
NoOptionLikeValuesRestriction
A restriction that enforces that values CANNOT look like options
|
| Modifier and Type | Method and Description |
|---|---|
GlobalRestriction |
GlobalRestrictionFactory.createGlobalRestriction(Annotation annotation)
Try and create a global restriction from the given annotation
|
GlobalRestriction |
StandardGlobalRestrictionsFactory.createGlobalRestriction(Annotation annotation) |
static <T extends Annotation> |
RestrictionRegistry.getGlobalRestriction(Class<? extends Annotation> cls,
T annotation) |
| Modifier and Type | Class and Description |
|---|---|
class |
CommandRequiredRestriction |
class |
NoMissingOptionValuesRestriction |
class |
NoUnexpectedArgumentsRestriction |
Copyright © 2012–2022. All rights reserved.