|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.sass.internal.tree.Node
com.vaadin.sass.internal.tree.BlockNode
public class BlockNode
| 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 | |
|---|---|
BlockNode(List<Selector> selectorList)
|
|
BlockNode(List<Selector> selectorList,
Collection<Node> children)
|
|
| Method Summary | |
|---|---|
String |
buildString(boolean indent)
|
BlockNode |
copy()
Copy a node (deep copy including children). |
List<Selector> |
getParentSelectors()
Returns the parent selector list. |
List<Selector> |
getSelectorList()
Returns unmodifiable selector list of the block |
String |
getSelectors()
|
String |
printState()
Prints out the current state of the node tree. |
void |
replaceVariables(ScssContext context)
|
void |
setParentSelectors(List<Selector> parentSelectors)
Sets the selector list of the parent node. |
void |
setSelectorList(List<Selector> selectorList)
Sets the selector list for the node. |
String |
toString()
|
Collection<Node> |
traverse(ScssContext context)
Method for manipulating the data contained within the Node. |
| Methods inherited from class com.vaadin.sass.internal.tree.Node |
|---|
appendChild, copyChildren, getChildren, getNormalParentNode, getParentNode, replaceNode, replaceNodeAt, setChildren, traverseChildren, traverseChildren |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BlockNode(List<Selector> selectorList)
public BlockNode(List<Selector> selectorList,
Collection<Node> children)
| Method Detail |
|---|
public List<Selector> getSelectorList()
public void setSelectorList(List<Selector> selectorList)
selectorList - new selector listpublic String buildString(boolean indent)
public String printState()
Node
printState in class Nodepublic String toString()
toString in class Objectpublic void replaceVariables(ScssContext context)
replaceVariables in interface IVariableNodepublic String getSelectors()
public Collection<Node> traverse(ScssContext context)
NodeNode.
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.
traverse in class Nodecontext - current compilation context
public BlockNode copy()
Node
copy in class Nodepublic List<Selector> getParentSelectors()
public void setParentSelectors(List<Selector> parentSelectors)
parentSelectors - parent selector list or null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||