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

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

public class PercentageFunctionGenerator
extends AbstractSingleParameterFunctionGenerator

PercentageFunctionGenerator is used for converting values into percentages with rounding.

Author:
Vaadin

Constructor Summary
PercentageFunctionGenerator()
           
 
Method Summary
protected  LexicalUnitImpl computeForParam(String functionName, LexicalUnitImpl firstParam)
          Compute the value of the function.
 
Methods inherited from class com.vaadin.sass.internal.parser.function.AbstractSingleParameterFunctionGenerator
compute
 
Methods inherited from class com.vaadin.sass.internal.parser.function.AbstractFunctionGenerator
getFunctionNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PercentageFunctionGenerator

public PercentageFunctionGenerator()
Method Detail

computeForParam

protected LexicalUnitImpl computeForParam(String functionName,
                                          LexicalUnitImpl firstParam)
Description copied from class: AbstractSingleParameterFunctionGenerator
Compute the value of the function. This method must not modify firstParam. If necessary, the implementation should copy the parameter before making modifications.

Specified by:
computeForParam in class AbstractSingleParameterFunctionGenerator
Parameters:
functionName - The name of the function whose value is to be computed.
firstParam - The only parameter of the function.
Returns:


Copyright © 2013–2014 Vaadin. All rights reserved.