Class DelegatingVisitor
- java.lang.Object
-
- com.google.common.css.compiler.passes.DelegatingVisitor
-
public class DelegatingVisitor extends java.lang.ObjectDispatches to multipleCssTreeVisitors. Allenter*methods are called in the order provided to the constructor and allleave*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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CssTreeVisitorfrom(CssTreeVisitor... visitors)Creates aDelegatingVisitorfrom the given array of visitors.static CssTreeVisitorfrom(java.util.List<CssTreeVisitor> originalVisitors)Creates aDelegatingVisitorfrom the given list of visitors.
-
-
-
Method Detail
-
from
public static CssTreeVisitor from(java.util.List<CssTreeVisitor> originalVisitors)
Creates aDelegatingVisitorfrom the given list of visitors. The list must have at least one element.
-
from
public static CssTreeVisitor from(CssTreeVisitor... visitors)
Creates aDelegatingVisitorfrom the given array of visitors. Changes to the array will not be reflected after construction.
-
-