com.vaadin.sass.internal.tree
Class DefNode
java.lang.Object
com.vaadin.sass.internal.tree.Node
com.vaadin.sass.internal.tree.DefNode
- All Implemented Interfaces:
- Definition, IVariableNode, NodeWithUrlContent, Serializable
- Direct Known Subclasses:
- FunctionDefNode, MixinDefNode
public abstract class DefNode
- extends Node
- implements Definition, IVariableNode, NodeWithUrlContent
DefNode defines the shared functionality of mixin and function definition
nodes. This includes the handling of parameter lists.
- Author:
- Vaadin
- See Also:
- Serialized Form
| Methods inherited from class com.vaadin.sass.internal.tree.Node |
appendChild, copy, copyChildren, getChildren, getNormalParentNode, getParentNode, printState, replaceNode, replaceNodeAt, setChildren, traverse, traverseChildren, traverseChildren |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefNode
public DefNode(String name,
Collection<Variable> args,
boolean hasVariableArgs)
DefNode
protected DefNode(DefNode nodeToCopy)
getName
public String getName()
- Specified by:
getName in interface Definition
getArglist
public FormalArgumentList getArglist()
hasVariableArguments
public boolean hasVariableArguments()
replaceVariables
public void replaceVariables(ScssContext context)
- Specified by:
replaceVariables in interface IVariableNode
replacePossibleArguments
public void replacePossibleArguments(ActualArgumentList actualArgumentList)
getDefinitionScope
public Scope getDefinitionScope()
setDefinitionScope
protected void setDefinitionScope(Scope scope)
updateUrl
public DefNode updateUrl(String prefix)
- Description copied from interface:
NodeWithUrlContent
- Returns a new Node that is otherwise identical to this but has all urls
updated by adding the specified prefix and cleaning the resulting path
to, e.g., eliminate redundant parent folder references. Does not modify
this node.
- Specified by:
updateUrl in interface NodeWithUrlContent
- Parameters:
prefix - the prefix to be added to all urls contained in this Node.
Copyright © 2013–2015 Vaadin. All rights reserved.