public NumberLiteral(double number) { setDouble(number); setValue(Double.toString(number)); }
@Override public AstNode number(Number n) { NumberLiteral l = new NumberLiteral(); l.setValue(n.toString()); return l; }
/** Constructor. Sets the length to the length of the {@code value} string. */ public NumberLiteral(int pos, String value) { super(pos); setValue(value); setLength(value.length()); }