com.vaadin.sass.internal.parser.function
Class IfFunctionGenerator

java.lang.Object
  extended by com.vaadin.sass.internal.parser.function.IfFunctionGenerator
All Implemented Interfaces:
SCSSFunctionGenerator

public class IfFunctionGenerator
extends Object
implements SCSSFunctionGenerator


Constructor Summary
IfFunctionGenerator()
           
 
Method Summary
 SassListItem compute(ScssContext context, LexicalUnitImpl function)
          Computes the value of the function.
protected  SassListItem computeForArgumentList(ScssContext context, LexicalUnitImpl function, FormalArgumentList actualArguments)
           
 String[] getFunctionNames()
          Returns function names handled by this generator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IfFunctionGenerator

public IfFunctionGenerator()
Method Detail

getFunctionNames

public String[] getFunctionNames()
Description copied from interface: SCSSFunctionGenerator
Returns function names handled by this generator. Default generator returns null and is used if there is no dedicated generator for given function.

Specified by:
getFunctionNames in interface SCSSFunctionGenerator
Returns:

compute

public SassListItem compute(ScssContext context,
                            LexicalUnitImpl function)
Description copied from interface: SCSSFunctionGenerator
Computes the value of the function. The parameters should be evaluated before this method is called. Both the input and the output of the method should be separate from any chain of lexical units.

Specified by:
compute in interface SCSSFunctionGenerator
Parameters:
context - current compilation context
function - Function lexical unit to print its state
Returns:
SassListItem the value of the function

computeForArgumentList

protected SassListItem computeForArgumentList(ScssContext context,
                                              LexicalUnitImpl function,
                                              FormalArgumentList actualArguments)


Copyright © 2013–2015 Vaadin. All rights reserved.