Class ExpressionsFunctionsFunction

    • Constructor Detail

      • ExpressionsFunctionsFunction

        public ExpressionsFunctionsFunction​(String nameEn,
                                            String nameRu,
                                            String templateEn,
                                            String templateRu,
                                            TypeDescription retType,
                                            TypeDescription[] parametersTypes,
                                            int minParametersSize,
                                            int maxParametersSize,
                                            boolean builtin,
                                            boolean global)
        Constructor (full)
        Parameters:
        nameEn - English name, can't be null
        nameRu - Russian name, can't be null
        templateEn - English template string, can't be null
        templateRu - Russian template string, can't be null
        retType - returning type, can't be null
        parametersTypes - types of parameters, can be null
        minParametersSize - minimal count of parameters
        maxParametersSize - maximum count of parameters
        builtin - is function builtin
        global - is function from global module
      • ExpressionsFunctionsFunction

        public ExpressionsFunctionsFunction​(String nameEn,
                                            String nameRu,
                                            String parametersTemplate,
                                            TypeDescription retType,
                                            TypeDescription[] parametersTypes,
                                            int minParametersSize,
                                            int maxParametersSize)
        Constructor (builtin, variable count of parameters)
        Parameters:
        nameEn - English name, can't be null
        nameRu - Russian name, can't be null
        parametersTemplate - parameters template string, can't be null
        retType - returning type, can't be null
        parametersTypes - types of parameters, can be null
        minParametersSize - minimal count of parameters
        maxParametersSize - maximum count of parameters
      • ExpressionsFunctionsFunction

        public ExpressionsFunctionsFunction​(String[] names,
                                            String parametersTemplate,
                                            TypeDescription retType,
                                            TypeDescription[] parametersTypes,
                                            int minParametersSize,
                                            int maxParametersSize)
        Constructor (builtin, variable count of parameters)
        Parameters:
        names - English and Russian names, can't be null
        parametersTemplate - parameters template string, can't be null
        retType - returning type, can't be null
        parametersTypes - types of parameters, can be null
        minParametersSize - minimal count of parameters
        maxParametersSize - maximum count of parameters
      • ExpressionsFunctionsFunction

        public ExpressionsFunctionsFunction​(String nameEn,
                                            String nameRu,
                                            String parametersTemplate,
                                            TypeDescription retType,
                                            TypeDescription[] parametersTypes)
        Constructor (builtin, all parameters)
        Parameters:
        nameEn - English name, can't be null
        nameRu - Russian name, can't be null
        parametersTemplate - parameters template string, can't be null
        retType - returning type, can't be null
        parametersTypes - types of parameters, can be null
      • ExpressionsFunctionsFunction

        public ExpressionsFunctionsFunction​(String[] names,
                                            String parametersTemplate,
                                            TypeDescription retType,
                                            TypeDescription[] parametersTypes)
        Constructor (builtin, all parameters)
        Parameters:
        names - English and Russian names, can't be null
        parametersTemplate - parameters template string, can't be null
        retType - returning type, can't be null
        parametersTypes - types of parameters, can be null
      • ExpressionsFunctionsFunction

        public ExpressionsFunctionsFunction​(String nameEn,
                                            String nameRu,
                                            String parametersTemplate,
                                            TypeDescription retType,
                                            TypeDescription parameterType)
        Constructor (builtin, 1 parameter)
        Parameters:
        nameEn - English name, can't be null
        nameRu - Russian name, can't be null
        parametersTemplate - parameters template string, can't be null
        retType - returning type, can't be null
        parameterType - types of parameter, can be null
      • ExpressionsFunctionsFunction

        public ExpressionsFunctionsFunction​(String[] names,
                                            String parametersTemplate,
                                            TypeDescription retType,
                                            TypeDescription parameterType)
        Constructor (builtin, 1 parameter)
        Parameters:
        names - English and Russian names, can't be null
        parametersTemplate - parameters template string, can't be null
        retType - returning type, can't be null
        parameterType - types of parameter, can be null
      • ExpressionsFunctionsFunction

        public ExpressionsFunctionsFunction​(String nameEn,
                                            String nameRu,
                                            String parametersTemplate,
                                            TypeDescription retType)
        Constructor (builtin, 1 parameter, type unknown)
        Parameters:
        nameEn - English name, can't be null
        nameRu - Russian name, can't be null
        parametersTemplate - parameters template string, can't be null
        retType - returning type, can't be null
      • ExpressionsFunctionsFunction

        public ExpressionsFunctionsFunction​(String nameEn,
                                            String nameRu,
                                            TypeDescription retType)
        Constructor (builtin, without parameters)
        Parameters:
        nameEn - English name, can't be null
        nameRu - Russian name, can't be null
        retType - returning type, can't be null
      • ExpressionsFunctionsFunction

        public ExpressionsFunctionsFunction​(String[] names,
                                            TypeDescription retType)
        Constructor (builtin, without parameters)
        Parameters:
        names - English and Russian names, can't be null
        retType - returning type, can't be null
    • Method Detail

      • getRetType

        public TypeDescription getRetType()
        Get returning type
        Returns:
        type description, never null
      • getParametersTypes

        public List<TypeDescription> getParametersTypes()
        Get types of parameters
        Returns:
        list of parameter's types, null if function has not parameters
      • getMinParametersSize

        public int getMinParametersSize()
        Get minimal count of parameters
        Returns:
        minimal count of parameters
      • getMaxParametersSize

        public int getMaxParametersSize()
        Get maximum count of parameters
        Returns:
        maximum count of parameters
      • isBuiltin

        public boolean isBuiltin()
        Is function builtin
        Returns:
      • isGlobal

        public boolean isGlobal()
        Is function global
        Returns: