Enum UnaryExpression.Operator

    • Enum Constant Detail

      • ABS

        public static final UnaryExpression.Operator ABS
        This expression is the absolute value of the result from the inner expression. That is, the negation sign is ignored, returning only positive values.
      • CAST

        public static final UnaryExpression.Operator CAST
        This expression is the result of the inner expression casted to a different type
      • NEGATE

        public static final UnaryExpression.Operator NEGATE
        This expression is the negation of the inner expression. That is, the negation sign is flipped.
      • SIGN

        public static final UnaryExpression.Operator SIGN
        The result of this expression is 0 if the result of the inner expression is 0, 1 of the inner returned something positive and -1 if the inner returned something negative.
      • SQRT

        public static final UnaryExpression.Operator SQRT
        The result of this expression is the positive square root of the result of the inner expression.
    • Method Detail

      • values

        public static UnaryExpression.Operator[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (UnaryExpression.Operator c : UnaryExpression.Operator.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static UnaryExpression.Operator valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null