0

I need to display the list of methods along with signature for a java class using javaparser.

I know how to display the list of methods with out signature but not along with signature. Can any one provide some examples to get methods along with signature.

1 Answers1

2

I'm not familiar with the javaparser but should be pretty straightforward. The HOWTO on their project site shows how to create a MethodVisitor, there you get a MethodDeclaration which contains quite everything you need to construct a string with the signatures.

rlegendi
  • 10,466
  • 3
  • 38
  • 50