Class Parameters<P extends Parameter>

    • Constructor Detail

      • Parameters

        public Parameters​(Method method)
        Create new Parameters given a Method.
        Parameters:
        method - must not be null.
    • Method Detail

      • createParameter

        protected abstract P createParameter​(Method method,
                                             int parameterIndex)
        Create a new Parameters for given a Method at parameterIndex.
        Parameters:
        method - must not be null.
        parameterIndex - the parameter index.
        Returns:
        the Parameter.
      • getParameters

        public List<P> getParameters()
        Returns:
      • getBindableParameter

        public Parameter getBindableParameter​(int index)
        Get the bindable parameter according it's logical position in the command. Declarative position may differ because of special parameters interleaved.
        Parameters:
        index -
        Returns:
        the Parameter.
      • getBindableParameters

        public List<P> getBindableParameters()
        Returns Parameter instances with effectively all special parameters removed.
        Returns: