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, Serializable
Direct Known Subclasses:
FunctionDefNode, MixinDefNode

public abstract class DefNode
extends Node
implements Definition, IVariableNode

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)
           
 
Methods inherited from class com.vaadin.sass.internal.tree.Node
appendChild, copy, copyChildren, getChildren, getNormalParentNode, getParentNode, printState, replaceNode, 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)


Copyright © 2013–2014 Vaadin. All rights reserved.