Interface ICSSVisitor

    • Method Detail

      • begin

        void begin()
        Before visiting starts.
        Note: This is only called for complete style sheets, and not when starting e.g. with a declaration list!
      • onImport

        void onImport​(@Nonnull
                      CSSImportRule aImportRule)
        Called on CSS import statement
        Parameters:
        aImportRule - Other imported CSS. Never null.
      • onNamespace

        void onNamespace​(@Nonnull
                         CSSNamespaceRule aNamespaceRule)
        Called on CSS namespace statement
        Parameters:
        aNamespaceRule - The namespace rule. Never null.
      • onDeclaration

        void onDeclaration​(@Nonnull
                           CSSDeclaration aDeclaration)
        Called for each declaration
        Parameters:
        aDeclaration - The declaration. Never null.
      • onStyleRuleSelector

        void onStyleRuleSelector​(@Nonnull
                                 CSSSelector aSelector)
        Called for each selector of a style rule
        Parameters:
        aSelector - The style rule selector. Never null.
      • onEndStyleRule

        void onEndStyleRule​(@Nonnull
                            CSSStyleRule aStyleRule)
        Called when a style rule ends.
        Parameters:
        aStyleRule - The style rule. Never null.
      • onBeginPageMarginBlock

        void onBeginPageMarginBlock​(@Nonnull
                                    CSSPageMarginBlock aPageMarginBlock)
        Called when a page margin block starts.
        Note: contained declarations are handled by onDeclaration(CSSDeclaration)
        Parameters:
        aPageMarginBlock - The page margin block. Never null.
      • onEndPageMarginBlock

        void onEndPageMarginBlock​(@Nonnull
                                  CSSPageMarginBlock aPageMarginBlock)
        Called when a page margin block ends.
        Parameters:
        aPageMarginBlock - The page margin block. Never null.
      • onEndPageRule

        void onEndPageRule​(@Nonnull
                           CSSPageRule aPageRule)
        Called when a page rule ends.
        Parameters:
        aPageRule - The page rule. Never null.
      • onBeginFontFaceRule

        void onBeginFontFaceRule​(@Nonnull
                                 CSSFontFaceRule aFontFaceRule)
        Called when a font-face rule starts.
        Note: contained declarations are handled by onDeclaration(CSSDeclaration)
        Parameters:
        aFontFaceRule - The font-face rule. Never null.
      • onEndFontFaceRule

        void onEndFontFaceRule​(@Nonnull
                               CSSFontFaceRule aFontFaceRule)
        Called when a font-face rule ends.
        Parameters:
        aFontFaceRule - The font-face rule. Never null.
      • onEndMediaRule

        void onEndMediaRule​(@Nonnull
                            CSSMediaRule aMediaRule)
        Called when a media rule ends.
        Parameters:
        aMediaRule - The media rule. Never null.
      • onBeginKeyframesRule

        void onBeginKeyframesRule​(@Nonnull
                                  CSSKeyframesRule aKeyframesRule)
        Called when a keyframes rule starts.
        Note: contained declarations are handled by onDeclaration(CSSDeclaration)
        Parameters:
        aKeyframesRule - The keyframes rule. Never null.
      • onBeginKeyframesBlock

        void onBeginKeyframesBlock​(@Nonnull
                                   CSSKeyframesBlock aKeyframesBlock)
        Called when a keyframes block starts.
        Parameters:
        aKeyframesBlock - The keyframes rule block. Never null.
      • onEndKeyframesBlock

        void onEndKeyframesBlock​(@Nonnull
                                 CSSKeyframesBlock aKeyframesBlock)
        Called when a keyframes block ends.
        Parameters:
        aKeyframesBlock - The keyframes rule block. Never null.
      • onEndKeyframesRule

        void onEndKeyframesRule​(@Nonnull
                                CSSKeyframesRule aKeyframesRule)
        Called when a keyframes rule ends.
        Parameters:
        aKeyframesRule - The keyframes rule. Never null.
      • onBeginViewportRule

        void onBeginViewportRule​(@Nonnull
                                 CSSViewportRule aViewportRule)
        Called when a viewport rule starts.
        Parameters:
        aViewportRule - The viewport rule. Never null.
      • onEndViewportRule

        void onEndViewportRule​(@Nonnull
                               CSSViewportRule aViewportRule)
        Called when a viewport rule ends.
        Parameters:
        aViewportRule - The viewport rule. Never null.
      • onBeginSupportsRule

        void onBeginSupportsRule​(@Nonnull
                                 CSSSupportsRule aSupportsRule)
        Called when a supports rule starts.
        Parameters:
        aSupportsRule - The supports rule. Never null.
      • onEndSupportsRule

        void onEndSupportsRule​(@Nonnull
                               CSSSupportsRule aSupportsRule)
        Called when a supports rule ends.
        Parameters:
        aSupportsRule - The supports rule. Never null.
      • onUnknownRule

        void onUnknownRule​(@Nonnull
                           CSSUnknownRule aUnknownRule)
        Called when an unknown rule is encountered.
        Parameters:
        aUnknownRule - The unknown rule. Never null.
      • end

        void end()
        After visiting is done.
        Note: This is only called for complete style sheets, and not when starting e.g. with a declaration list!