Interface ICSSUrlVisitor

    • Method Detail

      • begin

        default void begin()
        Before visiting starts.
      • onImport

        void onImport​(@Nonnull
                      CSSImportRule aImportRule)
        Called on CSS import statement. Use aImportRule.getLocation() to retrieve the imported URL.
        Parameters:
        aImportRule - Other imported CSS. Never null.
      • onUrlDeclaration

        void onUrlDeclaration​(@Nullable
                              ICSSTopLevelRule aTopLevelRule,
                              @Nonnull
                              CSSDeclaration aDeclaration,
                              @Nonnull
                              CSSExpressionMemberTermURI aURITerm)
        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.
        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.
      • end

        default void end()
        After visiting is done.