Enum Parser.Flag

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

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

    • STARHACK

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

      public static final Parser.Flag IEVALUES
      Accepts values with some IE hacks, producing COMPAT_IDENT values.
    • IEPRIO

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

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

    • values

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

      public static Parser.Flag 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