com.vaadin.sass.internal.visitor
Class LoopNodeHandler

java.lang.Object
  extended by 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).


Constructor Summary
LoopNodeHandler()
           
 
Method Summary
protected static Collection<Node> replaceLoopNode(ScssContext context, Node loopNode, Iterable<Variable> loopVariables)
          Replace a loop node (e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoopNodeHandler

public LoopNodeHandler()
Method Detail

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 context
loopNode - node to replace
loopVariables - 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.