Package com.helger.html.hc.html.script
Class HCJSNodeDetector
- java.lang.Object
-
- com.helger.html.hc.html.script.HCJSNodeDetector
-
@NotThreadSafe public final class HCJSNodeDetector extends Object
This class is used to determine the special nodes (JS and CSS, inline and reference).- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisDirectJSFileNode(IHCNode aNode)Check if the passed node is a file JS node.static booleanisDirectJSInlineNode(IHCNode aNode)Check if the passed node is an inline JS node.static booleanisDirectJSNode(IHCNode aNode)Check if the passed node is a JS node.static booleanisJSFileNode(IHCNode aNode)Check if the passed node is a file JS node after unwrapping.static booleanisJSInlineNode(IHCNode aNode)Check if the passed node is an inline JS node after unwrapping.static booleanisJSNode(IHCNode aNode)Check if the passed node is a JS node after unwrapping.
-
-
-
Method Detail
-
isJSNode
public static boolean isJSNode(@Nullable IHCNode aNode)
Check if the passed node is a JS node after unwrapping.- Parameters:
aNode- The node to be checked - may benull.- Returns:
trueif the node implementsIHCScript.
-
isDirectJSNode
public static boolean isDirectJSNode(@Nullable IHCNode aNode)
Check if the passed node is a JS node.- Parameters:
aNode- The node to be checked - may benull.- Returns:
trueif the node implementsIHCScript.
-
isJSInlineNode
public static boolean isJSInlineNode(@Nullable IHCNode aNode)
Check if the passed node is an inline JS node after unwrapping.- Parameters:
aNode- The node to be checked - may benull.- Returns:
trueif the node implementsHCScriptInline.
-
isDirectJSInlineNode
public static boolean isDirectJSInlineNode(@Nullable IHCNode aNode)
Check if the passed node is an inline JS node.- Parameters:
aNode- The node to be checked - may benull.- Returns:
trueif the node implementsIHCScriptInline.
-
isJSFileNode
public static boolean isJSFileNode(@Nullable IHCNode aNode)
Check if the passed node is a file JS node after unwrapping.- Parameters:
aNode- The node to be checked - may benull.- Returns:
trueif the node implementsHCScriptFile.
-
isDirectJSFileNode
public static boolean isDirectJSFileNode(@Nullable IHCNode aNode)
Check if the passed node is a file JS node.- Parameters:
aNode- The node to be checked - may benull.- Returns:
trueif the node implementsHCScriptFile.
-
-