@NotThreadSafe public abstract class AbstractModifyingCSSUrlVisitor extends DefaultCSSUrlVisitor
ICSSUrlVisitor that modifies all URLs according to an
abstract rule| Constructor and Description |
|---|
AbstractModifyingCSSUrlVisitor() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
getModifiedURI(String sURI) |
void |
onImport(CSSImportRule aImportRule)
Called on CSS import statement.
|
void |
onUrlDeclaration(ICSSTopLevelRule aTopLevelRule,
CSSDeclaration aDeclaration,
CSSExpressionMemberTermURI aExprTerm)
Called on a CSS declaration value that contains an URL.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbegin, endpublic void onImport(@Nonnull CSSImportRule aImportRule)
ICSSUrlVisitoraImportRule.getLocation()
to retrieve the imported URL.onImport in interface ICSSUrlVisitoronImport in class DefaultCSSUrlVisitoraImportRule - Other imported CSS. Never null.public void onUrlDeclaration(@Nullable ICSSTopLevelRule aTopLevelRule, @Nonnull CSSDeclaration aDeclaration, @Nonnull CSSExpressionMemberTermURI aExprTerm)
ICSSUrlVisitoronUrlDeclaration in interface ICSSUrlVisitoronUrlDeclaration in class DefaultCSSUrlVisitoraTopLevelRule - Top level rule of the URL. May be null when a
declaration list is handled.aDeclaration - Declaration of the URL. Never null.aExprTerm - The URI term from the current expression. Never null.Copyright © 2014–2018 Philip Helger. All rights reserved.