Interface JepConversionFunction<T>

    • Method Detail

      • isFunction

        boolean isFunction()
        If this converter is a built-in function. Built-in functions are automatically put in the enumeration return by Jep.getFunctions().
        Returns:
        TRUE if it is a function, FALSE otherwise
      • isOperator

        boolean isOperator()
        If this converter is a built-in operator.
        Returns:
        TRUE if it is an operator, FALSE otherwise
      • getName

        String getName()
        Get the name of the function or the symbol of the operator
        Returns:
        The name or symbol or null
      • getDescription

        String getDescription()
        Get a short description of the function or operator
        Returns:
        The description or null
      • toExpression

        Expression toExpression​(T node)
        Convert the object to an expression.
        Parameters:
        node - The object to convert
        Returns:
        An expression or null
        Throws:
        UnsupportedOperationException - If this converter can't convert to expressions
      • toRestriction

        Restriction toRestriction​(T node)
        Convert the object to a restriction.
        Parameters:
        node - The object to convert
        Returns:
        A restriction or null
        Throws:
        UnsupportedOperationException - If this converter can't convert to restrictions