[Groovy] Class OptionAccessor
- groovy.cli.picocli.OptionAccessor
class OptionAccessor extends Object
Properties Summary
Type | Name and description |
---|---|
CommandLine.ParseResult |
parseResult |
Map<String, TypedOption> |
savedTypeOptions |
Constructor Summary
Constructor and description |
---|
OptionAccessor
(CommandLine.ParseResult parseResult) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
List<String> |
arguments() | |
<T> | T |
defaultValue(String name) |
<T> | T |
getAt(TypedOption<T> typedOption) |
<T> | T |
getAt(TypedOption<T> typedOption, T defaultValue) |
Properties |
getOptionProperties(String name) | |
<T> | T |
getOptionValue(TypedOption<T> typedOption) |
<T> | T |
getOptionValue(TypedOption<T> typedOption, T defaultValue) |
Object |
getProperty(String name) | |
boolean |
hasOption(TypedOption typedOption) | |
Object |
invokeMethod(String name, Object args) |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Property Detail
CommandLine.ParseResult parseResult
Map<String, TypedOption> savedTypeOptions
Constructor Detail
OptionAccessor(CommandLine.ParseResult parseResult)
Method Detail
List<String> arguments()
<T> T defaultValue(String name)
<T> T getAt(TypedOption<T> typedOption)
<T> T getAt(TypedOption<T> typedOption, T defaultValue)
Properties getOptionProperties(String name)
<T> T getOptionValue(TypedOption<T> typedOption)
<T> T getOptionValue(TypedOption<T> typedOption, T defaultValue)
Object getProperty(String name)
boolean hasOption(TypedOption typedOption)
Object invokeMethod(String name, Object args)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/groovy/cli/picocli/OptionAccessor.html