com.vaadin.sass.internal.tree.controldirective
Class TemporaryNode

java.lang.Object
  extended by com.vaadin.sass.internal.tree.Node
      extended by com.vaadin.sass.internal.tree.controldirective.TemporaryNode
All Implemented Interfaces:
Serializable

public class TemporaryNode
extends Node

Temporary node used when expanding loops.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.vaadin.sass.internal.tree.Node
Node.BuildStringStrategy, Node.PrintStrategy, Node.ToStringStrategy
 
Field Summary
 
Fields inherited from class com.vaadin.sass.internal.tree.Node
PRINT_STRATEGY, TO_STRING_STRATEGY
 
Constructor Summary
TemporaryNode(Node parent)
           
TemporaryNode(Node parent, Collection<Node> children)
           
 
Method Summary
 void appendAndTraverse(ScssContext context, Node node)
           
 Node copy()
          Copy a node (deep copy including children).
 Node getParentNode()
           
 String toString()
           
 Collection<Node> traverse(ScssContext context)
          Method for manipulating the data contained within the Node.
 Collection<Node> traverseChildren(ScssContext context)
           
 
Methods inherited from class com.vaadin.sass.internal.tree.Node
appendChild, copyChildren, getChildren, getNormalParentNode, printState, replaceNode, replaceNodeAt, setChildren, traverseChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemporaryNode

public TemporaryNode(Node parent)

TemporaryNode

public TemporaryNode(Node parent,
                     Collection<Node> children)
Method Detail

getParentNode

public Node getParentNode()
Overrides:
getParentNode in class Node

toString

public String toString()
Overrides:
toString in class Object

traverseChildren

public Collection<Node> traverseChildren(ScssContext context)
Overrides:
traverseChildren in class Node

appendAndTraverse

public void appendAndTraverse(ScssContext context,
                              Node node)

traverse

public Collection<Node> traverse(ScssContext context)
Description copied from class: Node
Method for manipulating the data contained within the Node. Traversing a node is allowed to modify the node, replace it with one or more nodes at the same or later position in its parent and modify the children of the node, but not modify or remove preceding nodes in its parent. Traversing a node is also allowed to modify the definitions currently in scope as its side-effect.

Specified by:
traverse in class Node
Parameters:
context - current compilation context
Returns:
nodes replacing the current node

copy

public Node copy()
Description copied from class: Node
Copy a node (deep copy including children). The copy is detached from the original tree, with null as parent, and data that is not relevant to handling of function or mixin expansion is not copied.

Specified by:
copy in class Node
Returns:
copy of the node


Copyright © 2013–2015 Vaadin. All rights reserved.