1 16 package com.google.gwt.dev.jjs.ast; 17 18 21 public class JLongLiteral extends JValueLiteral { 22 23 private final long value; 24 25 28 JLongLiteral(JProgram program, long value) { 29 super(program); 30 this.value = value; 31 } 32 33 public JType getType() { 34 return program.getTypePrimitiveLong(); 35 } 36 37 public long getValue() { 38 return value; 39 } 40 41 public Object getValueObj() { 42 return new Long (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 |