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

java.lang.Object
  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(LexicalUnitImpl firstParam)
          Compute the value of the function.
 
Methods inherited from class com.vaadin.sass.internal.parser.function.AbstractSingleParameterFunctionGenerator
compute, getFunctionName
 
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(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
Returns:


Copyright © 2013–2014 Vaadin. All rights reserved.