Package picocli

Class CommandLine.Model.PicocliInvocationHandler.ProxyBinding

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.reflect.Method method  
    • Constructor Summary

      Constructors 
      Constructor Description
      ProxyBinding​(java.lang.reflect.Method method)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T get()
      Returns the current value of the binding.
      <T> T set​(T value)
      Sets the new value of the option or positional parameter.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • method

        private final java.lang.reflect.Method method
    • Constructor Detail

      • ProxyBinding

        ProxyBinding​(java.lang.reflect.Method method)
    • Method Detail

      • 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 interface CommandLine.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 interface CommandLine.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)