com.vaadin.sass.internal.tree
Class DefNode

java.lang.Object
  extended by com.vaadin.sass.internal.tree.Node
      extended by 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

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
protected DefNode(DefNode nodeToCopy)
           
  DefNode(String name, Collection<Variable> args, boolean hasVariableArgs)
           
 
Method Summary
 FormalArgumentList getArglist()
           
 Scope getDefinitionScope()
           
 String getName()
           
 boolean hasVariableArguments()
           
 void replacePossibleArguments(ActualArgumentList actualArgumentList)
           
 void replaceVariables(ScssContext context)
           
protected  void setDefinitionScope(Scope scope)
           
 DefNode updateUrl(String prefix)
          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.
 
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
 

Constructor Detail

DefNode

public DefNode(String name,
               Collection<Variable> args,
               boolean hasVariableArgs)

DefNode

protected DefNode(DefNode nodeToCopy)
Method Detail

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.