Package com.helger.css.decl.visit
Interface ICSSUrlVisitor
- All Known Implementing Classes:
AbstractModifyingCSSUrlVisitor,DefaultCSSUrlVisitor
public interface ICSSUrlVisitor
Interface for visiting all URLs in a CSS document.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidbegin()Before visiting starts.default voidend()After visiting is done.voidonImport(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.
-
Method Details
-
begin
default void begin()Before visiting starts. -
onImport
Called on CSS import statement. UseaImportRule.getLocation()to retrieve the imported URL.- Parameters:
aImportRule- Other imported CSS. Nevernull.
-
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 benullwhen a declaration list is handled.aDeclaration- Declaration of the URL. Nevernull.aURITerm- The URI term from the current expression. Nevernull.
-
end
default void end()After visiting is done.
-