Package types

Enum ExpressionType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ExpressionType>

    public enum ExpressionType
    extends java.lang.Enum<ExpressionType>
    The ExpressionType enum is used to store constants related to Expression objects.
    Since:
    1.0
    • Enum Constant Detail

      • LITERAL_EXPRESSION

        public static final ExpressionType LITERAL_EXPRESSION
      • UNARY_EXPRESSION

        public static final ExpressionType UNARY_EXPRESSION
      • BINARY_EXPRESSION

        public static final ExpressionType BINARY_EXPRESSION
      • IDENTIFIER_EXPRESSION

        public static final ExpressionType IDENTIFIER_EXPRESSION
      • ASSIGNMENT_EXPRESSION

        public static final ExpressionType ASSIGNMENT_EXPRESSION
      • PARENTHESIZED_EXPRESSION

        public static final ExpressionType PARENTHESIZED_EXPRESSION
    • 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​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null