Using java reflection
class A {
@two
public method1() {
}
@one
public method2() {
}
@two
public method3() {
}
public method4() {
}
}
In the above given example of the code I want to retrieve annotated methods,non-annotated methods and all types of methods present inside a class as per the choice made by the user. for example- In the example given above I want to retrieve only annotated methods of the class A or only non-annotated methods of the class A or all the methods present inside class A. What should be the code for this example.
can someone please help me out...