1 5 6 7 8 package com.hp.hpl.jena.rdql.parser; 9 10 public class Q_NumericLiteral extends ParsedLiteral implements ExprNumeric 11 { 12 Q_NumericLiteral(int id) { 13 super(id); 14 } 15 16 Q_NumericLiteral(RDQLParser p, int id) { 17 super(p, id); 18 } 19 20 21 void set(boolean _isInt, String s) 22 { 23 if ( _isInt ) 24 _setInt(Long.parseLong(s)); 25 else 26 _setDouble(Double.parseDouble(s)) ; 27 } 28 } 29 30 56 | Popular Tags |