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() |
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,
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,
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 | Method and Description |
---|---|
GlobalRestriction |
StandardGlobalRestrictionsFactory.createGlobalRestriction(Annotation annotation) |
GlobalRestriction |
GlobalRestrictionFactory.createGlobalRestriction(Annotation annotation)
Try and create a global restriction from the given 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–2017. All rights reserved.