com.google.gwt.resources.css.ast
Class CssProperty.NumberValue
java.lang.Object
com.google.gwt.resources.css.ast.CssProperty.Value
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.
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CssProperty.NumberValue
public CssProperty.NumberValue(float value)
CssProperty.NumberValue
public CssProperty.NumberValue(float value,
java.lang.String units)
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