Class OperationFcts


  • public final class OperationFcts
    extends java.lang.Object
    Operation functions (Mathematics).
    • Field Detail

      • NEGATION_FUNCTION_NAME

        public static final java.lang.String NEGATION_FUNCTION_NAME
        The name of the function used to perform negations
        See Also:
        Constant Field Values
    • Method Detail

      • addFunctionsTo

        public static void addFunctionsTo​(NativeFunctions functions)
      • isOperation

        public static boolean isOperation​(FunctionName function)
        Checks if the function with the specified name is an operation.
        Parameters:
        function - the function name
        Returns:
        true if the function is an operation, false otherwise.
      • isNegation

        public static boolean isNegation​(FunctionName function)
        Checks if the function with the specified name is a negation.
        Parameters:
        function - the function name
        Returns:
        true if the function is an negation, false otherwise.
      • getOperator

        public static char getOperator​(FunctionName function)
        Returns the operator associated to the specified function.
        Returns:
        the operator associated to the specified function.
      • getFunctionNameFromOperator

        public static FunctionName getFunctionNameFromOperator​(char operator)
        Returns the name of the function associated to the specified operator.
        Parameters:
        operator - the operator
        Returns:
        the name of the function associated to the specified operator