In my spring application i need to identify the methods in a java file which is saved in a temporary location(Files not in the current project)
eg: C:\Users\Guest\Desktop\File.java
i need to get the all the methods in this file
is there a way to change the below code or any other methods
ClassName t = new ClassName();
Class tClass = t.getClass();
Method[] methods = tClass.getMethods();
for (int i = 0; i < methods.length; i++) {
System.out.println("public method: " + methods[i]);
}