com.vaadin.sass.internal.visitor
Class LoopNodeHandler
java.lang.Object
com.vaadin.sass.internal.visitor.LoopNodeHandler
- Direct Known Subclasses:
- EachNodeHandler, ForNodeHandler
public abstract class LoopNodeHandler
- extends Object
Base class for handlers of all kinds of looping nodes (@for, @while, @each).
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoopNodeHandler
public LoopNodeHandler()
replaceLoopNode
protected static Collection<Node> replaceLoopNode(ScssContext context,
Node loopNode,
Iterable<Variable> loopVariables)
- Replace a loop node (e.g. ForNode) with the expanded set of nodes.
- Parameters:
context - current compilation contextloopNode - node to replaceloopVariables - iterable of the loop variable instances for each iteration -
typically a collection for a fixed iteration count loop
Copyright © 2013–2015 Vaadin. All rights reserved.