Package htmlcompiler.compilers.tags
Enum Class TagParsing
- All Implemented Interfaces:
Serializable,Comparable<TagParsing>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddIntegrityAttributes(org.jsoup.nodes.Element element, String url, Logger log) static voidcopyAttributes(org.jsoup.nodes.Element from, org.jsoup.nodes.Element to) static booleanisCss(org.jsoup.nodes.Element link) static booleanisHtml(org.jsoup.nodes.Element script) static booleanisInlineScript(org.jsoup.nodes.Element node) static booleanisInlineStyle(org.jsoup.nodes.Element node) static booleanisLinkFavicon(org.jsoup.nodes.Element element) static booleanisLinkStyleSheet(org.jsoup.nodes.Element element) static booleanisScriptEmpty(org.jsoup.nodes.Element script) static booleanisStyleEmpty(org.jsoup.nodes.Element style) static voidmakeAbsolutePath(org.jsoup.nodes.Element element, String attribute) static org.jsoup.nodes.ElementpreviousElementSibling(org.jsoup.nodes.Element element) static org.jsoup.nodes.ElementremoveAttributes(org.jsoup.nodes.Element element, String... attributes) static voidreplaceWith(org.jsoup.nodes.Element original, org.jsoup.nodes.Element replacement) static voidreplaceWith(org.jsoup.nodes.Element original, org.jsoup.select.Elements replacements) static voidstatic Stringstatic Stringstatic Stringstatic TagParsingReturns the enum constant of this class with the specified name.static TagParsing[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
copyAttributes
public static void copyAttributes(org.jsoup.nodes.Element from, org.jsoup.nodes.Element to) -
removeAttributes
public static org.jsoup.nodes.Element removeAttributes(org.jsoup.nodes.Element element, String... attributes) -
isLinkFavicon
public static boolean isLinkFavicon(org.jsoup.nodes.Element element) -
isLinkStyleSheet
public static boolean isLinkStyleSheet(org.jsoup.nodes.Element element) -
toDataUrl
- Throws:
IOException
-
toDataUrl
- Throws:
IOException
-
toDataUrl
-
makeAbsolutePath
-
addIntegrityAttributes
public static void addIntegrityAttributes(org.jsoup.nodes.Element element, String url, Logger log) throws IOException, NoSuchAlgorithmException - Throws:
IOExceptionNoSuchAlgorithmException
-
isInlineScript
public static boolean isInlineScript(org.jsoup.nodes.Element node) -
isInlineStyle
public static boolean isInlineStyle(org.jsoup.nodes.Element node) -
isScriptEmpty
public static boolean isScriptEmpty(org.jsoup.nodes.Element script) -
isStyleEmpty
public static boolean isStyleEmpty(org.jsoup.nodes.Element style) -
setData
-
isHtml
public static boolean isHtml(org.jsoup.nodes.Element script) -
isCss
public static boolean isCss(org.jsoup.nodes.Element link) -
previousElementSibling
public static org.jsoup.nodes.Element previousElementSibling(org.jsoup.nodes.Element element) -
replaceWith
public static void replaceWith(org.jsoup.nodes.Element original, org.jsoup.nodes.Element replacement) -
replaceWith
public static void replaceWith(org.jsoup.nodes.Element original, org.jsoup.select.Elements replacements)
-