Martinho0330 / javaparser

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

Get package of Type #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello. I hope I am posting this in the right place. :)

I was unable to find a method to retrieve the fully qualified name of a type. 
As an example, if I look at a field (for instance, String gF), I am unable
to retrieve 'java.lang.String' as a type-name for the field. Only the
type-name 'String'.

Does this feature exist? If not, is it possible to add this feature?

Thank you.

Original issue reported on code.google.com by oaan...@gmail.com on 22 Feb 2010 at 6:27

GoogleCodeExporter commented 9 years ago
The right place to post this is:
http://code.google.com/p/javaparser/wiki/UsingThisParser

To do such thing you will need to write a semantic analyzer, java.lang.* 
classes are
implicit imported, for other classes you will need to check the imports and 
resolve
the classes names creating a kind of namespace class.

This parser does not do such kind of work yet.

Thank you by your interest.

Issue closed.

Original comment by jges...@gmail.com on 22 Feb 2010 at 11:36