Package htmlcompiler.tags.neko
Enum TagParsingNeko
- All Implemented Interfaces:
Serializable,Comparable<TagParsingNeko>
public enum TagParsingNeko extends Enum<TagParsingNeko>
-
Field Summary
-
Method Summary
Modifier and Type Method Description static voidaddIntegrityAttributes(Element element, String url, Path file, NekoCompiler html, Logger log)static voidcopyAttributes(Element from, Element to)static voiddeleteTag(Element element)static NodegetPreviousTagSibling(Element element, Node defaultValue)static booleanisCss(Element link)static booleanisEmpty(Node script)static booleanisHtml(Element script)static booleanisInlineScript(Node node)static booleanisInlineStyle(Node node)static booleanisLinkFavicon(Element element)static booleanisLinkStyleSheet(Element element)static ElementloadHtml(NekoCompiler html, Path location)static voidmakeAbsolutePath(Element element, String attribute)static ElementnewElementOf(Document document, Path location, NekoCompiler compiler)static ElementremoveAttributes(Element element, String... attributes)static voidreplaceTag(Element original, Element replacement)static StringtoDataUrl(String type, byte[] data)static StringtoDataUrl(String type, Path location)static StringtoDataUrl(Path location)static ElementtoElementOf(Document document, Element element)static StringtoIntegrityValue(byte[] data)static TagParsingNekovalueOf(String name)Returns the enum constant of this type with the specified name.static TagParsingNeko[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Field Details
-
DOCTYPE
- See Also:
- Constant Field Values
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
copyAttributes
-
removeAttributes
-
replaceTag
-
deleteTag
-
newElementOf
public static Element newElementOf(Document document, Path location, NekoCompiler compiler) throws Exception- Throws:
Exception
-
toElementOf
-
loadHtml
- Throws:
Exception
-
isLinkFavicon
-
isLinkStyleSheet
-
toDataUrl
- Throws:
IOException
-
toDataUrl
- Throws:
IOException
-
toDataUrl
-
toIntegrityValue
- Throws:
NoSuchAlgorithmException
-
makeAbsolutePath
-
addIntegrityAttributes
public static void addIntegrityAttributes(Element element, String url, Path file, NekoCompiler html, Logger log) throws IOException, NoSuchAlgorithmException, TransformerException -
getPreviousTagSibling
-
isInlineScript
-
isInlineStyle
-
isEmpty
-
isHtml
-
isCss
-