Class AbstractFunction

    • Constructor Detail

      • AbstractFunction

        public AbstractFunction​(java.lang.String name)
      • AbstractFunction

        public AbstractFunction​(java.lang.String name,
                                java.util.List<java.lang.String> aliases)
    • Method Detail

      • checkFixedArityArguments

        protected void checkFixedArityArguments​(java.util.List<FieldValue> arguments,
                                                int arity)
      • checkVariableArityArguments

        protected void checkVariableArityArguments​(java.util.List<FieldValue> arguments,
                                                   int minArity)
      • checkVariableArityArguments

        protected void checkVariableArityArguments​(java.util.List<FieldValue> arguments,
                                                   int minArity,
                                                   int maxArity)
      • getArgument

        protected FieldValue getArgument​(java.util.List<FieldValue> arguments,
                                         int index)
      • getOptionalArgument

        protected FieldValue getOptionalArgument​(java.util.List<FieldValue> arguments,
                                                 int index)
      • getRequiredArgument

        protected FieldValue getRequiredArgument​(java.util.List<FieldValue> arguments,
                                                 int index)
      • getName

        public java.lang.String getName()
        Description copied from interface: Function

        Gets the default name of this function.

        The default name should be unique in application scope. Currently, the JPMML library does not check or enforce this constraint in any way.

        Specified by:
        getName in interface Function
      • getAliases

        public java.util.List<java.lang.String> getAliases()