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

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

public class AdjustColorFunctionGenerator
extends AbstractFunctionGenerator


Constructor Summary
AdjustColorFunctionGenerator()
           
 
Method Summary
protected  boolean checkForUnsetParameters()
          Returns true if this function should ensure that all parameters have been set.
protected  SassListItem computeForArgumentList(LexicalUnitImpl function, FormalArgumentList actualArguments)
          Computes the value of the function with the given argument list.
 
Methods inherited from class com.vaadin.sass.internal.parser.function.AbstractFunctionGenerator
compute, createArgumentList, createArgumentList, createArgumentList, getArguments, getFunctionNames, getParam, getParam
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdjustColorFunctionGenerator

public AdjustColorFunctionGenerator()
Method Detail

checkForUnsetParameters

protected boolean checkForUnsetParameters()
Description copied from class: AbstractFunctionGenerator
Returns true if this function should ensure that all parameters have been set. This is the most common use case. The value false can be used for built-in functions that have optional parameters without a default value.

Overrides:
checkForUnsetParameters in class AbstractFunctionGenerator
Returns:
whether this function requires that all its parameters have a value.

computeForArgumentList

protected SassListItem computeForArgumentList(LexicalUnitImpl function,
                                              FormalArgumentList actualArguments)
Description copied from class: AbstractFunctionGenerator
Computes the value of the function with the given argument list. This method is called by compute(), which also forms the parameter list actualArguments by replacing the formal arguments of the function with their actual values.

Specified by:
computeForArgumentList in class AbstractFunctionGenerator
Parameters:
function - The function to be evaluated. The function object can be used to determine which function to evaluate when a function generator implements several Sass functions. It is also used to obtain line and column numbers for error messages.
actualArguments - The argument list of the function, obtained by replacing all formal arguments with the corresponding values of the actual argument list of the function.
Returns:
The value of the function.


Copyright © 2013–2015 Vaadin. All rights reserved.