Enum RegexFlag

  • All Implemented Interfaces:
    Serializable, Comparable<RegexFlag>

    public enum RegexFlag
    extends Enum<RegexFlag>

    Java class for RegexFlag.

    The following schema fragment specifies the expected content contained within this class.

     <simpleType name="RegexFlag">
       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
         <enumeration value="UNIX_LINES"/>
         <enumeration value="CASE_INSENSITIVE"/>
         <enumeration value="COMMENTS"/>
         <enumeration value="MULTILINE"/>
         <enumeration value="LITERAL"/>
         <enumeration value="DOTALL"/>
         <enumeration value="UNICODE_CASE"/>
         <enumeration value="CANON_EQ"/>
         <enumeration value="UNICODE_CHARACTER_CLASS"/>
       </restriction>
     </simpleType>
     
    • Enum Constant Detail

      • UNIX_LINES

        public static final RegexFlag UNIX_LINES
      • CASE_INSENSITIVE

        public static final RegexFlag CASE_INSENSITIVE
      • COMMENTS

        public static final RegexFlag COMMENTS
      • MULTILINE

        public static final RegexFlag MULTILINE
      • LITERAL

        public static final RegexFlag LITERAL
      • DOTALL

        public static final RegexFlag DOTALL
      • UNICODE_CASE

        public static final RegexFlag UNICODE_CASE
      • CANON_EQ

        public static final RegexFlag CANON_EQ
      • UNICODE_CHARACTER_CLASS

        public static final RegexFlag UNICODE_CHARACTER_CLASS
    • Method Detail

      • values

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

        public static RegexFlag 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
      • value

        public String value()