Class DefaultCSSUrlVisitor

java.lang.Object
com.helger.css.decl.visit.DefaultCSSUrlVisitor
All Implemented Interfaces:
ICSSUrlVisitor
Direct Known Subclasses:
AbstractModifyingCSSUrlVisitor

@Immutable public class DefaultCSSUrlVisitor extends Object implements ICSSUrlVisitor
Default implementation of the ICSSUrlVisitor interface which does nothing. Use as the base class for your implementation.
Author:
Philip Helger
  • Constructor Details

    • DefaultCSSUrlVisitor

      public DefaultCSSUrlVisitor()
  • Method Details

    • 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.