com.vaadin.sass.internal.tree
Class MixinDefNode
java.lang.Object
com.vaadin.sass.internal.tree.Node
com.vaadin.sass.internal.tree.DefNode
com.vaadin.sass.internal.tree.MixinDefNode
- All Implemented Interfaces:
- Definition, IVariableNode, NodeWithUrlContent, Serializable
public class MixinDefNode
- extends DefNode
- See Also:
- Serialized Form
| Methods inherited from class com.vaadin.sass.internal.tree.Node |
appendChild, copyChildren, getChildren, getNormalParentNode, getParentNode, printState, replaceNode, replaceNodeAt, setChildren, traverseChildren, traverseChildren |
MixinDefNode
public MixinDefNode(String name,
Collection<Variable> args,
boolean hasVariableArgs)
toString
public String toString()
- Overrides:
toString in class Object
replaceContentDirective
public MixinDefNode replaceContentDirective(MixinNode mixinNode)
- This should only happen on a cloned MixinDefNode, since it changes the
Node itself.
- Parameters:
mixinNode -
- Returns:
replaceContentNode
public MixinDefNode replaceContentNode(ContentNode contentNode,
MixinNode mixinNode)
copy
public MixinDefNode 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
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
Copyright © 2013–2015 Vaadin. All rights reserved.