@NotThreadSafe public abstract class AbstractModifyingCSSUrlVisitor extends DefaultCSSUrlVisitor
ICSSUrlVisitor
that modifies all URLs according to an
abstract ruleConstructor 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, wait
begin, end
public void onImport(@Nonnull CSSImportRule aImportRule)
ICSSUrlVisitor
aImportRule.getLocation()
to retrieve the imported URL.onImport
in interface ICSSUrlVisitor
onImport
in class DefaultCSSUrlVisitor
aImportRule
- Other imported CSS. Never null
.public void onUrlDeclaration(@Nullable ICSSTopLevelRule aTopLevelRule, @Nonnull CSSDeclaration aDeclaration, @Nonnull CSSExpressionMemberTermURI aExprTerm)
ICSSUrlVisitor
onUrlDeclaration
in interface ICSSUrlVisitor
onUrlDeclaration
in class DefaultCSSUrlVisitor
aTopLevelRule
- 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–2021 Philip Helger. All rights reserved.