Class DelegatingVisitor
java.lang.Object
com.google.common.css.compiler.passes.DelegatingVisitor
Dispatches to multiple
CssTreeVisitors. All enter* methods are called in the
order provided to the constructor and all leave* methods are called in the opposite
order.
Because enter* methods' return value changes the visitor behavior, the value returned
by the last delegate is the one returned by the method.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CssTreeVisitorfrom(CssTreeVisitor... visitors) Creates aDelegatingVisitorfrom the given array of visitors.static CssTreeVisitorfrom(List<CssTreeVisitor> originalVisitors) Creates aDelegatingVisitorfrom the given list of visitors.
-
Method Details
-
from
Creates aDelegatingVisitorfrom the given list of visitors. The list must have at least one element. -
from
Creates aDelegatingVisitorfrom the given array of visitors. Changes to the array will not be reflected after construction.
-