Enum Class CssStringNode.Type

java.lang.Object
java.lang.Enum<CssStringNode.Type>
com.google.common.css.compiler.ast.CssStringNode.Type
All Implemented Interfaces:
Serializable, Comparable<CssStringNode.Type>, Constable
Enclosing class:
CssStringNode

public static enum CssStringNode.Type extends Enum<CssStringNode.Type>
CSS syntax permits strings to be expressed either using single-quotes or double-quotes.
  • Enum Constant Details

  • Field Details

    • delimiter

      public final String delimiter
    • format

      public final String format
  • Method Details

    • values

      public static CssStringNode.Type[] 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 CssStringNode.Type 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
    • toString

      public String toString(String value, Function<? super String,String> discretionaryEscaper)
    • escapeForDelimiters

      public String escapeForDelimiters(String input)
      Escape delimiters found in input so that they will not begin or end new lexemes.