Package com.helger.css.decl.visit
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 theICSSUrlVisitor
interface which does nothing. Use as the base class for your implementation.- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description DefaultCSSUrlVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onImport(CSSImportRule aImportRule)
Called on CSS import statement.void
onUrlDeclaration(ICSSTopLevelRule aTopLevelRule, CSSDeclaration aDeclaration, 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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.helger.css.decl.visit.ICSSUrlVisitor
begin, end
-
-
-
-
Method Detail
-
onImport
@OverrideOnDemand public void onImport(@Nonnull CSSImportRule aImportRule)
Description copied from interface:ICSSUrlVisitor
Called on CSS import statement. UseaImportRule.getLocation()
to retrieve the imported URL.- Specified by:
onImport
in interfaceICSSUrlVisitor
- Parameters:
aImportRule
- Other imported CSS. Nevernull
.
-
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 interfaceICSSUrlVisitor
- Parameters:
aTopLevelRule
- Top level rule of the URL. May benull
when a declaration list is handled.aDeclaration
- Declaration of the URL. Nevernull
.aURITerm
- The URI term from the current expression. Nevernull
.
-
-