Interface Minify.Config

All Superinterfaces:
Minify.ShallowConfig
Enclosing class:
Minify

public static interface Minify.Config extends Minify.ShallowConfig
Configuration of normal minification.
  • Method Details

    • getEncoding

      default Charset getEncoding()
      Get the encoding of the style sheet.
      Returns:
      the encoding, or null if UTF-8.
    • isDisabledShorthand

      default boolean isDisabledShorthand(String name)
      Check whether the optimization of the given shorthand is disabled.
      Parameters:
      name - the lower case shorthand name.
      Returns:
      true if the shorthand should not be optimized.
    • serializeSelectors

      default void serializeSelectors(SelectorList selectors, StringBuilder buffer)
      Serialize the given selector list to the buffer.
      Parameters:
      selectors - the selector list.
      buffer - the destination buffer.
    • serializeValue

      default void serializeValue(String property, String value, StringBuilder buffer)
      Customize the serialization of a property (or descriptor) value.
      Parameters:
      property - the property/descriptor name.
      value - the suggested minified serialization of the value.
      buffer - the destination buffer.
    • validate

      default boolean validate()
      Validate function values.
      Returns:
      true if the parser should validate function values.