Enum Class Parser2.Flag

java.lang.Object
java.lang.Enum<Parser2.Flag>
io.sf.carte.doc.style.css.nsac.Parser2.Flag
All Implemented Interfaces:
Serializable, Comparable<Parser2.Flag>, java.lang.constant.Constable
Enclosing interface:
Parser2

public static enum Parser2.Flag extends Enum<Parser2.Flag>
NSAC parser flags: the STARHACK, IEVALUES, IEPRIO and IEPRIOCHAR flags are supported.
  • Enum Constant Details

    • STARHACK

      public static final Parser2.Flag STARHACK
      Handles asterisk-prefixed properties as normal, compliant CSS properties but reports a SAC warning.
    • IEVALUES

      public static final Parser2.Flag IEVALUES
      Accepts values with some IE hacks, producing LexicalUnit2.SAC_COMPAT_IDENT values.
    • IEPRIO

      public static final Parser2.Flag IEPRIO
      Allows values ending with the '!ie' priority hack (and puts them into SAC_COMPAT_IDENT compatibility values).
    • IEPRIOCHAR

      public static final Parser2.Flag IEPRIOCHAR
      Accepts values with an '!important!' priority, and sets it to LexicalUnit2.SAC_COMPAT_PRIO pseudo-values. Those values must be handled as of !important priority.
  • Method Details

    • values

      public static Parser2.Flag[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Parser2.Flag valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null