You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried some methods but the results are a little different.
For example, when I get method o.m(), I do not know how to get the Class of o and add O.m to the API Sequence.
The text was updated successfully, but these errors were encountered:
you can use eclipse JDT to parse the AST. The AST contains class names of each method invocation.
You can find JDT through maven.
There are also python libraries for parsing Java code such as https://github.com/c2nes/javalang
@guxd
I am working on the data pre-processing of extracting method, description, API sequence, tokens using python library - https://github.com/c2nes/javalang.
Regarding extracting token, I need to transform AST to java code at first, then transform the code to tokens. Do you have any idea of transforming AST nodes to java code, currently I haven't find suitable solutions. I want to ask if you have any idea, because you are experts in such fields.
I tried some methods but the results are a little different.
For example, when I get method o.m(), I do not know how to get the Class of o and add O.m to the API Sequence.
The text was updated successfully, but these errors were encountered: