Enum Types.TypeAtt

  • All Implemented Interfaces:
    Serializable, Comparable<Types.TypeAtt>
    Enclosing class:
    Types

    public static enum Types.TypeAtt
    extends Enum<Types.TypeAtt>
    The enum type specifying the different types of attributes that may be encountered. We use lower-case letters, so as to directly get the names of the elements (except for CLASS, FOR and CASE that need to be managed apart, because they correspond to keywords).
    • Method Detail

      • values

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

        public static Types.TypeAtt 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
      • isReifying

        public boolean isReifying()
        Returns true iff the element has a (full or half) reification nature.
      • valOf

        public static Types.TypeAtt valOf​(String s)
        Returns the constant that corresponds to the specified string (we need this method to manage the special constants FOR and CASE).