Enum Class ScriptType

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

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

    • minified_javascript

      public static final ScriptType minified_javascript
    • javascript

      public static final ScriptType javascript
    • typescript

      public static final ScriptType typescript
    • jspp

      public static final ScriptType jspp
    • dart

      public static final ScriptType dart
  • Method Details

    • values

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

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

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

      public static ScriptType detectScriptType(Element element, ScriptType defaultValue)
    • detectScriptType

      public static ScriptType detectScriptType(org.jsoup.nodes.Element element, ScriptType defaultValue)