Enum TagParsingNeko

java.lang.Object
java.lang.Enum<TagParsingNeko>
htmlcompiler.tags.neko.TagParsingNeko
All Implemented Interfaces:
Serializable, Comparable<TagParsingNeko>

public enum TagParsingNeko
extends Enum<TagParsingNeko>
  • Field Details

  • Method Details

    • values

      public static TagParsingNeko[] 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 TagParsingNeko 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
    • copyAttributes

      public static void copyAttributes​(Element from, Element to)
    • removeAttributes

      public static Element removeAttributes​(Element element, String... attributes)
    • replaceTag

      public static void replaceTag​(Element original, Element replacement)
    • deleteTag

      public static void deleteTag​(Element element)
    • newElementOf

      public static Element newElementOf​(Document document, Path location, NekoCompiler compiler) throws Exception
      Throws:
      Exception
    • toElementOf

      public static Element toElementOf​(Document document, Element element)
    • loadHtml

      public static Element loadHtml​(NekoCompiler html, Path location) throws Exception
      Throws:
      Exception
    • isLinkFavicon

      public static boolean isLinkFavicon​(Element element)
    • isLinkStyleSheet

      public static boolean isLinkStyleSheet​(Element element)
    • toDataUrl

      public static String toDataUrl​(Path location) throws IOException
      Throws:
      IOException
    • toDataUrl

      public static String toDataUrl​(String type, Path location) throws IOException
      Throws:
      IOException
    • toDataUrl

      public static String toDataUrl​(String type, byte[] data)
    • makeAbsolutePath

      public static void makeAbsolutePath​(Element element, String attribute)
    • addIntegrityAttributes

      public static void addIntegrityAttributes​(Element element, String url, Logger log) throws IOException, NoSuchAlgorithmException
      Throws:
      IOException
      NoSuchAlgorithmException
    • getPreviousTagSibling

      public static Node getPreviousTagSibling​(Element element, Node defaultValue)
    • isInlineScript

      public static boolean isInlineScript​(Node node)
    • isInlineStyle

      public static boolean isInlineStyle​(Node node)
    • isEmpty

      public static boolean isEmpty​(Node script)
    • isHtml

      public static boolean isHtml​(Element script)
    • isCss

      public static boolean isCss​(Element link)