예제 #1
0
 public NumberLiteral(double number) {
   setDouble(number);
   setValue(Double.toString(number));
 }
예제 #2
0
 @Override
 public AstNode number(Number n) {
   NumberLiteral l = new NumberLiteral();
   l.setValue(n.toString());
   return l;
 }
예제 #3
0
 /** 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());
 }