Enum StyleType

java.lang.Object
java.lang.Enum<StyleType>
htmlcompiler.pojos.compile.StyleType
All Implemented Interfaces:
Serializable, Comparable<StyleType>

public enum StyleType
extends Enum<StyleType>
  • Enum Constant Details

    • minified_css

      public static final StyleType minified_css
    • css

      public static final StyleType css
    • less

      public static final StyleType less
    • sass

      public static final StyleType sass
    • scss

      public static final StyleType scss
    • stylus

      public static final StyleType stylus
  • Method Details

    • values

      public static StyleType[] 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 StyleType 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
    • compile

      public String compile​(String jsCode, Path parent) throws Exception
      Throws:
      Exception
    • compile

      public String compile​(Path location) throws Exception
      Throws:
      Exception
    • detectStyleType

      public static StyleType detectStyleType​(Element element, StyleType defaultValue)
    • detectStyleType

      public static StyleType detectStyleType​(org.jsoup.nodes.Element element, StyleType defaultValue)