com.google.gwt.resources.css.ast
Class CssProperty.NumberValue

java.lang.Object
  extended by com.google.gwt.resources.css.ast.CssProperty.Value
      extended by com.google.gwt.resources.css.ast.CssProperty.NumberValue
Enclosing class:
CssProperty

public static class CssProperty.NumberValue
extends CssProperty.Value

Represents a numeric value, possibly with attached units.


Constructor Summary
CssProperty.NumberValue(float value)
           
CssProperty.NumberValue(float value, java.lang.String units)
           
 
Method Summary
 java.lang.String getExpression()
          Generate a Java expression whose execution results in the value.
 java.lang.String getUnits()
           
 float getValue()
           
 CssProperty.NumberValue isNumberValue()
           
 java.lang.String toCss()
          Generate a CSS expression that represents the Value.
 
Methods inherited from class com.google.gwt.resources.css.ast.CssProperty.Value
isDotPathValue, isExpressionValue, isIdentValue, isListValue, isSpaceRequired, isStringValue, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CssProperty.NumberValue

public CssProperty.NumberValue(float value)

CssProperty.NumberValue

public CssProperty.NumberValue(float value,
                               java.lang.String units)
Method Detail

getExpression

public java.lang.String getExpression()
Description copied from class: CssProperty.Value
Generate a Java expression whose execution results in the value.

Specified by:
getExpression in class CssProperty.Value

getUnits

public java.lang.String getUnits()

getValue

public float getValue()

isNumberValue

public CssProperty.NumberValue isNumberValue()
Overrides:
isNumberValue in class CssProperty.Value

toCss

public java.lang.String toCss()
Description copied from class: CssProperty.Value
Generate a CSS expression that represents the Value.

Specified by:
toCss in class CssProperty.Value