com.vaadin.sass.internal.tree
Class Node

java.lang.Object
  extended by com.vaadin.sass.internal.tree.Node
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BlockNode, CommentNode, ContentNode, EachDefNode, ElseNode, ExtendNode, FontFaceNode, ForNode, FunctionNode, IfElseDefNode, IfNode, ImportNode, KeyframeSelectorNode, KeyframesNode, ListModifyNode, MediaNode, MicrosoftRuleNode, MixinDefNode, MixinNode, NestPropertiesNode, RuleNode, ScssStylesheet, SimpleNode, VariableNode, WhileNode

public abstract class Node
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  java.util.ArrayList<Node> children
           
protected  Node parentNode
           
 
Constructor Summary
Node()
           
 
Method Summary
 void appendAll(java.util.Collection<Node> nodes)
           
 void appendChild(Node node)
           
 void appendChild(Node node, Node after)
           
 void appendChildrenAfter(java.util.Collection<Node> childrenNodes, Node after)
           
 java.util.ArrayList<Node> getChildren()
           
 Node getParentNode()
           
 boolean hasChildren()
           
 void removeChild(Node node)
           
 void setChildren(java.util.ArrayList<Node> children)
           
 java.lang.String toString()
           
abstract  void traverse()
          Method for manipulating the data contained within the Node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

children

protected java.util.ArrayList<Node> children

parentNode

protected Node parentNode
Constructor Detail

Node

public Node()
Method Detail

appendAll

public void appendAll(java.util.Collection<Node> nodes)

appendChildrenAfter

public void appendChildrenAfter(java.util.Collection<Node> childrenNodes,
                                Node after)

appendChild

public void appendChild(Node node)

appendChild

public void appendChild(Node node,
                        Node after)

removeChild

public void removeChild(Node node)

getChildren

public java.util.ArrayList<Node> getChildren()

setChildren

public void setChildren(java.util.ArrayList<Node> children)

hasChildren

public boolean hasChildren()

toString

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

traverse

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


getParentNode

public Node getParentNode()


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