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
Default implementation of the
ICSSUrlVisitor interface which does
nothing. Use as the base class for your implementation.- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonImport(CSSImportRule aImportRule) Called on CSS import statement.voidonUrlDeclaration(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, waitMethods inherited from interface com.helger.css.decl.visit.ICSSUrlVisitor
begin, end
-
Constructor Details
-
DefaultCSSUrlVisitor
public DefaultCSSUrlVisitor()
-
-
Method Details
-
onImport
Description copied from interface:ICSSUrlVisitorCalled on CSS import statement. UseaImportRule.getLocation()to retrieve the imported URL.- Specified by:
onImportin 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:ICSSUrlVisitorCalled 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:
onUrlDeclarationin interfaceICSSUrlVisitor- Parameters:
aTopLevelRule- Top level rule of the URL. May benullwhen a declaration list is handled.aDeclaration- Declaration of the URL. Nevernull.aURITerm- The URI term from the current expression. Nevernull.
-