public class NumericNode extends ValueNode
| Constructor and Description |
|---|
NumericNode(double number,
String units) |
NumericNode(double number,
String units,
int index,
int line,
int column) |
NumericNode(String value) |
NumericNode(String value,
int index,
int line,
int column) |
| Modifier and Type | Method and Description |
|---|---|
ValueNode |
add(ValueNode operand) |
ValueNode |
divide(ValueNode operand) |
boolean |
equals(Object arg) |
boolean |
getKeepUnits() |
CssNodeType |
getNodeType() |
double |
getNumber() |
String |
getUnits() |
String |
getValue(boolean compact) |
ValueNode |
multiply(ValueNode operand) |
void |
setKeepUnits(boolean value) |
void |
setNumber(double value) |
void |
setUnits(String value) |
void |
setValue(String value) |
ValueNode |
subtract(ValueNode operand) |
getValue, getWordBreak, hashCodepublic NumericNode(String value, int index, int line, int column)
public NumericNode(double number,
String units,
int index,
int line,
int column)
public NumericNode(String value)
public NumericNode(double number,
String units)
public CssNodeType getNodeType()
getNodeType in class ValueNodepublic double getNumber()
public void setNumber(double value)
public String getUnits()
public void setUnits(String value)
public boolean getKeepUnits()
public void setKeepUnits(boolean value)
Copyright © 2014. All rights reserved.