Class HCCSSNodeDetector


  • @NotThreadSafe
    public final class HCCSSNodeDetector
    extends Object
    This class is used to determine the special nodes (JS and CSS, inline and reference).
    Author:
    Philip Helger
    • Method Detail

      • isCSSNode

        public static boolean isCSSNode​(@Nullable
                                        IHCNode aNode)
        Check if the passed node is a CSS node after unwrapping.
        Parameters:
        aNode - The node to be checked - may be null.
        Returns:
        true if the node implements HCStyle or HCLink (and not a special case).
      • isDirectCSSNode

        public static boolean isDirectCSSNode​(@Nullable
                                              IHCNode aNode)
        Check if the passed node is a CSS node.
        Parameters:
        aNode - The node to be checked - may be null.
        Returns:
        true if the node implements HCStyle or HCLink (and not a special case).
      • isCSSInlineNode

        public static boolean isCSSInlineNode​(@Nullable
                                              IHCNode aNode)
        Check if the passed node is an inline CSS node after unwrapping.
        Parameters:
        aNode - The node to be checked - may be null.
        Returns:
        true if the node implements HCStyle.
      • isDirectCSSInlineNode

        public static boolean isDirectCSSInlineNode​(@Nullable
                                                    IHCNode aNode)
        Check if the passed node is an inline CSS node.
        Parameters:
        aNode - The node to be checked - may be null.
        Returns:
        true if the node implements HCStyle.
      • isCSSFileNode

        public static boolean isCSSFileNode​(@Nullable
                                            IHCNode aNode)
        Check if the passed node is a file CSS node after unwrapping.
        Parameters:
        aNode - The node to be checked - may be null.
        Returns:
        true if the node implements HCLink.
      • isDirectCSSFileNode

        public static boolean isDirectCSSFileNode​(@Nullable
                                                  IHCNode aNode)
        Check if the passed node is a file CSS node.
        Parameters:
        aNode - The node to be checked - may be null.
        Returns:
        true if the node implements HCLink.