com.vaadin.sass.internal.tree
Class SimpleNode

java.lang.Object
  extended by com.vaadin.sass.internal.tree.Node
      extended by com.vaadin.sass.internal.tree.SimpleNode
All Implemented Interfaces:
IVariableNode, java.io.Serializable

public class SimpleNode
extends Node
implements IVariableNode

A simple BlockNode where input text equals output. Note : ignores any possible children so only use it when you are sure no child nodes will be applied.

Author:
Sebastian Nyholm @ Vaadin Ltd
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.vaadin.sass.internal.tree.Node
children, parentNode
 
Constructor Summary
SimpleNode(java.lang.String text)
           
 
Method Summary
 void replaceVariables(java.util.ArrayList<VariableNode> variables)
           
 java.lang.String toString()
           
 void traverse()
          Method for manipulating the data contained within the Node.
 
Methods inherited from class com.vaadin.sass.internal.tree.Node
appendAll, appendChild, appendChild, appendChildrenAfter, getChildren, getParentNode, hasChildren, removeChild, setChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleNode

public SimpleNode(java.lang.String text)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class Node

replaceVariables

public void replaceVariables(java.util.ArrayList<VariableNode> variables)
Specified by:
replaceVariables in interface IVariableNode

traverse

public void traverse()
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.

Specified by:
traverse in class Node


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.