Enum SolutionKind

  • All Implemented Interfaces:
    Serializable, Comparable<SolutionKind>

    public enum SolutionKind
    extends Enum<SolutionKind>
    It was a temporary way to mark solution as a plugin (at that time: 10/25/11) One can specify a solution kind in the properties dialog of MPS. The SolutionKind establishes the place of the solution in the MPS modules' hierarchy (Core - Editor - Workbench) TODO: review the usages again
    • Method Detail

      • values

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

        public static SolutionKind 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