I am starting to make heavy use of Java annotations. One example is a method with annotations and converting them to a telnet-based command line command. I do this by parsing annotations and pasting into a jpt parser.
However, I do a lot of them manually. For example, processing the annotation of a method parameter.
Method method = ... //; Class[] parameters = method.getParamterTypes(); Annotation[][] annotations = method.getparamterAnnotations(); for( int i = 0; i < parameters.length; i++ ) { // iterate through the annotation , see if each param has specific annotation ,etc. }
It is very redundant and tiring.
Is there any open source project that helps handle annotations?
java annotations
mjlee
source share