Class FunctionArgument

    • Constructor Detail

      • FunctionArgument

        public FunctionArgument​(String name,
                                DataType type,
                                boolean isMultiValue)
        Constructs a required function argument definition.
        Parameters:
        name - The name of the argument.
        type - The data type of the argument.
        isMultiValue - Boolean indicating if the argument is a list.
      • FunctionArgument

        public FunctionArgument​(String name,
                                DataType type,
                                boolean isMultiValue,
                                boolean isOptional)
        Constructs the function argument definition with the supplied arguments.
        Parameters:
        name - The name of the argument.
        type - The data type of the argument.
        isMultiValue - Boolean indicating if the argument is a list.
        isOptional - Boolean indicating if this argument is optional.
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: IArgumentType
        This method returns the name of the argument. The current implementation does not (yet) bind the arguments by name, hence this parameter is optional.
        Specified by:
        getName in interface IArgumentType
        Returns:
        The name of the parameter.
      • getType

        public DataType getType()
        Description copied from interface: IArgumentType
        This method returns the data type of the argument.
        Specified by:
        getType in interface IArgumentType
        Returns:
        the data type of the argument.
      • isMultivalue

        public boolean isMultivalue()
        Description copied from interface: IArgumentType
        This method returns a boolean indicating if the argument is a list value.
        Specified by:
        isMultivalue in interface IArgumentType
        Returns:
        boolean indicating if the argument is a list value.
      • isOptional

        public boolean isOptional()
        Description copied from interface: IArgumentType
        This method returns a boolean indicating if the argument is optional. An optional argument may be omitted when invoking the function. Optional arguments may only be followed by other optional arguments.
        Specified by:
        isOptional in interface IArgumentType
        Returns:
        Boolean indicating if the argument is optional.