Class CssRuleSet

    • Field Detail

      • IMPORTANT_MATCHER

        private static final java.util.regex.Pattern IMPORTANT_MATCHER
        Pattern to match "important" in a rule declaration.
      • normalDeclarations

        private java.util.List<CssDeclaration> normalDeclarations
        The normal CSS declarations.
      • importantDeclarations

        private java.util.List<CssDeclaration> importantDeclarations
        The important CSS declarations.
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getSelector

        public ICssSelector getSelector()
        Gets the CSS selector.
        Returns:
        the CSS selector
      • getNormalDeclarations

        public java.util.List<CssDeclaration> getNormalDeclarations()
        Gets the normal CSS declarations.
        Returns:
        the normal declarations
      • getImportantDeclarations

        public java.util.List<CssDeclaration> getImportantDeclarations()
        Gets the important CSS declarations.
        Returns:
        the important declarations
      • splitDeclarationsIntoNormalAndImportant

        private static void splitDeclarationsIntoNormalAndImportant​(java.util.List<CssDeclaration> declarations,
                                                                    java.util.List<CssDeclaration> normalDeclarations,
                                                                    java.util.List<CssDeclaration> importantDeclarations)
        Split CSS declarations into normal and important CSS declarations.
        Parameters:
        declarations - the declarations