Skip to content

Extract class name, method name, argument name and variable name from Java projects using JavaParser.

Notifications You must be signed in to change notification settings

AllenSun1024/ExtractNameFromJavaProject

Repository files navigation

ExtractNameFromJavaProject💘

Brief💬

Use JavaParser to extract names of the following:

  • Class
  • Member Variable
  • Method
  • Parameters
  • Variables in method
  • Comments in method

User Guide🔎

How to get parameters of a method?

ExtractNameFromJavaProject/src/main/java/ArgNameCollector.java

How to get names of classes?

ExtractNameFromJavaProject/src/main/java/ClassNameCollector.java

How to get all comments of a method?

ExtractNameFromJavaProject/src/main/java/CommentCollector.java

Where is the main class?

ExtractNameFromJavaProject/src/main/java/ExtractClassName.java

To run the code in your local machine, you may at least need to change variable-"rootPath" in this file which represents "path of the java file repository"

How to get member variables of a class?

ExtractNameFromJavaProject/src/main/java/MemberNameCollector.java

How to get names of methods?

ExtractNameFromJavaProject/src/main/java/MethodNameCollector.java

How to get local variables of a method?

ExtractNameFromJavaProject/src/main/java/VarNameCollector.java

About

Extract class name, method name, argument name and variable name from Java projects using JavaParser.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages