Package picocli

Class CommandLine.Model.CommandUserObject

    • Constructor Detail

      • CommandUserObject

        private CommandUserObject​(java.lang.Object objectOrClass,
                                  CommandLine.IFactory factory)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getInstance

        public java.lang.Object getInstance()
      • getType

        public java.lang.Class<?> getType()
      • isMethod

        public boolean isMethod()
      • 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)
      • isProxyClass

        public boolean isProxyClass()