I am not sure if it was possible before java 8 but with java 8, you can follow the following link and achieve what you want to do.
The goalsummary of this is given as follows;
The primary goal isProvide a mechanism to improveeasily and reliably retrieve the readability of code which currently uses logically redundant annotations to record parameter names. A secondary goal is to improve IDE capabilities by making parameter names more widely availableof methods and constructors at runtime via core reflection.