I am creating a very simple Java parser to find some specific usage patterns. This is in no way lex / yacc, or any other form of interpreter / compiler for navels executed by code.
When I come across a word or a set of two words separated by a period ("word.word"), I would like to know if this is a standard Java class (and method), for example. An integer or a specific username. I am not interested in whether the proper classes were included / imported into the code (i.e. if the code compiles well), and the extreme cases of custom classes that override the names of the standard Java classes also do not interest me. In other words: I'm fine with a false negation, Iβm only interested in being βmostlyβ.
If I could find a simple list of all the names of all the standard Java classes and methods, in a form easily saved to a text file or database? (J2SE is fine, but J2EE is better). I am familiar with http://java.sun.com/j2se/ etc., but it seems to me that I need a lot of manual work to extract all the names from there. Also, the last JDK is not needed, I can live with 1.4 or 1.5.
Clarification: I do not work in Java, but in Python, so I cannot use Java-specific commands in my syntax.
thanks
java python parsing
Roee adler
source share