I am writing a small and very DRY framework that is heavily dependent on metadata. I would like to know if there is a way to get the method parameter names, i.e. Given some method
public void a(int myIntParam, String theString) { ... }
get the strings "myIntParam" and "theString" .
I know I could comment on the parameters, but that would be nice ...
public void a( @Param("myIntParam") int myIntParam, @Param("theString") String theString ) { ... }
java reflection
ansgri Dec 19 '08 at 16:50 2008-12-19 16:50
source share