1 16 package com.google.gwt.dev.jjs.ast; 17 18 21 public class JDoubleLiteral extends JValueLiteral { 22 23 private final double value; 24 25 28 JDoubleLiteral(JProgram program, double value) { 29 super(program); 30 this.value = value; 31 } 32 33 public JType getType() { 34 return program.getTypePrimitiveDouble(); 35 } 36 37 public double getValue() { 38 return value; 39 } 40 41 public Object getValueObj() { 42 return new Double (value); 43 } 44 45 public void traverse(JVisitor visitor, Context ctx) { 46 if (visitor.visit(this, ctx)) { 47 } 48 visitor.endVisit(this, ctx); 49 } 50 } 51 | Popular Tags |