ThaisaMirely / javaparser

Automatically exported from code.google.com/p/javaparser
0 stars 0 forks source link

IntegerLiteralExpr and StringLiteralExpr #53

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Why is IntegerLiteralExpr extending from StringLiteralExpr? It does not seems 
natural using a constructor with an String parameter.

Thank you in advance!

Original issue reported on code.google.com by raquel...@gmail.com on 18 Jan 2012 at 9:45

GoogleCodeExporter commented 9 years ago
It is necessary because an integer value can be represented in scientific 
notation, for example "7.399999999999985E-5", the parser must maintain the way 
the number was written when the CompilationUnit be wrote to file again.
For the parser a number is a String who means an integer value.

Original comment by jges...@gmail.com on 18 Jan 2012 at 11:03