Package picocli
Class CommandLine.Model.ObjectScope
java.lang.Object
picocli.CommandLine.Model.ObjectScope
- All Implemented Interfaces:
CommandLine.Model.IGetter
,CommandLine.Model.IScope
,CommandLine.Model.ISetter
- Enclosing class:
CommandLine.Model
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static CommandLine.Model.IScope
<T> T
get()
Returns the current value of the binding.static boolean
static boolean
<T> T
set
(T value) Sets the new value of the option or positional parameter.toString()
static Object
tryGet
(CommandLine.Model.IScope scope)
-
Field Details
-
value
-
-
Constructor Details
-
ObjectScope
-
-
Method Details
-
isProxyClass
-
hasInstance
-
get
public <T> T get()Description copied from interface:CommandLine.Model.IGetter
Returns the current value of the binding. For multi-value options and positional parameters, this method returns an array, collection or map to add values to.- Specified by:
get
in interfaceCommandLine.Model.IGetter
-
set
public <T> T set(T value) Description copied from interface:CommandLine.Model.ISetter
Sets the new value of the option or positional parameter.- Specified by:
set
in interfaceCommandLine.Model.ISetter
- Type Parameters:
T
- type of the value- Parameters:
value
- the new value of the option or positional parameter- Returns:
- the previous value of the binding (if supported by this binding)
-
tryGet
-
asScope
-
toString
-