com.vaadin.sass.internal.tree
Class ReturnNode

java.lang.Object
  extended by com.vaadin.sass.internal.tree.Node
      extended by com.vaadin.sass.internal.tree.ReturnNode
All Implemented Interfaces:
IVariableNode, Serializable

public class ReturnNode
extends Node
implements IVariableNode

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
children, parentNode, PRINT_STRATEGY, TO_STRING_STRATEGY
 
Constructor Summary
ReturnNode(SassListItem expression)
           
 
Method Summary
 SassListItem evaluate(List<VariableNode> actualParams)
          Evaluate the value of the return node in a context defined by the actual parameters and the state of ScssStylesheet (variables currently in scope, defined custom functions).
 SassListItem getExpr()
           
 void replaceVariables(Collection<VariableNode> variables)
           
 void traverse()
          Method for manipulating the data contained within the Node.
 
Methods inherited from class com.vaadin.sass.internal.tree.Node
appendAll, appendChild, appendChild, appendChildrenAfter, copy, getChildren, getParentNode, hasChildren, printState, removeChild, setChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReturnNode

public ReturnNode(SassListItem expression)
Method Detail

replaceVariables

public void replaceVariables(Collection<VariableNode> variables)
Specified by:
replaceVariables in interface IVariableNode

traverse

public void traverse()
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.

Specified by:
traverse in class Node

getExpr

public SassListItem getExpr()

evaluate

public SassListItem evaluate(List<VariableNode> actualParams)
Evaluate the value of the return node in a context defined by the actual parameters and the state of ScssStylesheet (variables currently in scope, defined custom functions). This method does not modify the ReturnNode itself.



Copyright © 2013–2014 Vaadin. All rights reserved.