com.vaadin.sass.internal.tree
Class ListModifyNode

java.lang.Object
  extended by com.vaadin.sass.internal.tree.Node
      extended by com.vaadin.sass.internal.tree.ListModifyNode
All Implemented Interfaces:
IVariableNode, java.io.Serializable
Direct Known Subclasses:
ListAppendNode, ListContainsNode, ListRemoveNode

public abstract class ListModifyNode
extends Node
implements IVariableNode

See Also:
Serialized Form

Field Summary
protected  java.util.ArrayList<java.lang.String> list
           
protected  java.util.ArrayList<java.lang.String> modify
           
protected  java.lang.String separator
           
protected  java.lang.String variable
           
 
Fields inherited from class com.vaadin.sass.internal.tree.Node
children, parentNode
 
Constructor Summary
ListModifyNode()
           
 
Method Summary
protected  void checkSeparator(java.lang.String separator, java.lang.String list)
           
 VariableNode getModifiedList()
           
 java.lang.String getNewVariable()
           
protected abstract  void modifyList(java.util.ArrayList<java.lang.String> newList)
           
protected  void populateList(java.lang.String list, java.lang.String modify)
           
 void replaceVariables(java.util.ArrayList<VariableNode> variables)
           
 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, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

list

protected java.util.ArrayList<java.lang.String> list

modify

protected java.util.ArrayList<java.lang.String> modify

separator

protected java.lang.String separator

variable

protected java.lang.String variable
Constructor Detail

ListModifyNode

public ListModifyNode()
Method Detail

getNewVariable

public java.lang.String getNewVariable()

getModifiedList

public VariableNode getModifiedList()

modifyList

protected abstract void modifyList(java.util.ArrayList<java.lang.String> newList)

checkSeparator

protected void checkSeparator(java.lang.String separator,
                              java.lang.String list)

populateList

protected void populateList(java.lang.String list,
                            java.lang.String modify)

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.