Class DefaultCSSUrlVisitor

    • Constructor Detail

      • DefaultCSSUrlVisitor

        public DefaultCSSUrlVisitor()
    • Method Detail

      • onImport

        @OverrideOnDemand
        public void onImport​(@Nonnull
                             CSSImportRule aImportRule)
        Description copied from interface: ICSSUrlVisitor
        Called on CSS import statement. Use aImportRule.getLocation() to retrieve the imported URL.
        Specified by:
        onImport in interface ICSSUrlVisitor
        Parameters:
        aImportRule - Other imported CSS. Never null.
      • onUrlDeclaration

        @OverrideOnDemand
        public void onUrlDeclaration​(@Nullable
                                     ICSSTopLevelRule aTopLevelRule,
                                     @Nonnull
                                     CSSDeclaration aDeclaration,
                                     @Nonnull
                                     CSSExpressionMemberTermURI aURITerm)
        Description copied from interface: ICSSUrlVisitor
        Called on a CSS declaration value that contains an URL.
        Note: for keyframes it is currently not possible to retrieve the keyframes block to which the declaration belongs.
        Specified by:
        onUrlDeclaration in interface ICSSUrlVisitor
        Parameters:
        aTopLevelRule - Top level rule of the URL. May be null when a declaration list is handled.
        aDeclaration - Declaration of the URL. Never null.
        aURITerm - The URI term from the current expression. Never null.