public class CheckStaticCssVisitor extends CssVisitor
UNMODIFIABLE_CONTEXT
Modifier and Type | Method and Description |
---|---|
protected void |
doAccept(List<? extends CssNode> list) |
protected <T extends CssNode> |
doAccept(T node) |
protected void |
doAcceptWithInsertRemove(List<? extends CssNode> list) |
static boolean |
isStatic(CssStylesheet sheet)
A fast-fail check to determine if a stylesheet is statically-evaluable.
|
static boolean |
report(TreeLogger logger,
CssStylesheet sheet)
Returns
true if the stylsheet is statically-evaluable. |
accept, accept, acceptWithInsertRemove, doTraverse, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
public static boolean isStatic(CssStylesheet sheet)
public static boolean report(TreeLogger logger, CssStylesheet sheet)
true
if the stylsheet is statically-evaluable. Nodes
that are not statically-evaluable will be reported to the associated
logger.protected void doAccept(List<? extends CssNode> list)
doAccept
in class CssVisitor
protected <T extends CssNode> T doAccept(T node)
doAccept
in class CssVisitor
protected void doAcceptWithInsertRemove(List<? extends CssNode> list)
doAcceptWithInsertRemove
in class CssVisitor
Copyright © 2018. All rights reserved.