Enum ExpressionType

  • All Implemented Interfaces:
    Serializable, Comparable<ExpressionType>

    public enum ExpressionType
    extends Enum<ExpressionType>
    Every expression type has a corresponding interface to get a type-safe way of applying the expression without boxing any values. This enumeration can be used to tell which type an expression has.
    Since:
    3.1.0
    Author:
    Emil Forslund
    • Method Detail

      • values

        public static ExpressionType[] 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 (ExpressionType c : ExpressionType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ExpressionType 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
      • isNullable

        public boolean isNullable()
        Returns true if this type is one of the nullable types, and otherwise false
        Returns:
        true if expression result may be null