com.vaadin.sass.internal.parser.function
Interface SCSSFunctionGenerator

All Known Implementing Classes:
AbsFunctionGenerator, AbstractFunctionGenerator, AbstractSingleParameterFunctionGenerator, AlphaFunctionGenerator, CeilFunctionGenerator, DarkenFunctionGenerator, DefaultFunctionGenerator, FloorFunctionGenerator, LightenFunctionGenerator, ListAppendFunctionGenerator, ListFunctionGenerator, ListJoinFunctionGenerator, ListLengthFunctionGenerator, ListNthFunctionGenerator, PercentageFunctionGenerator, RectFunctionGenerator, RGBComponentFunctionGenerator, RGBFunctionGenerator, RoundFunctionGenerator, TransparencyModificationFunctionGenerator, TypeOfFunctionGenerator

public interface SCSSFunctionGenerator

Generator class is used to handle SCSS functions. Generator is applied to the function lexical unit if its method #getFunctionName() returns name of the function. If there are no dedicated generator for the function then default generator is used.

Author:
Vaadin Ltd

Method Summary
 SassListItem compute(LexicalUnitImpl function)
          Computes the value of the function.
 String[] getFunctionNames()
          Returns function names handled by this generator.
 

Method Detail

getFunctionNames

String[] getFunctionNames()
Returns function names handled by this generator. Default generator returns null and is used if there is no dedicated generator for given function.

Returns:

compute

SassListItem compute(LexicalUnitImpl function)
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.

Parameters:
function - Function lexical unit to print its state
Returns:
SassListItem the value of the function


Copyright © 2013–2014 Vaadin. All rights reserved.