-
Feature Request
-
Resolution: Done
-
Major
-
None
-
None
Make it possible to obtain the Java Reflection object representing the parameter. This is in line with
AnnotatedField.getJavaMember()
AnnotatedMethod.getJavaMember()
AnnotatedConstructor.getJavaMember()
Can be implemented as a default method such as:
default Parameter getJavaParameter() { Member member = getDeclaringCallable().getJavaMember(); if (!(member instanceof Executable)) { throw new IllegalStateException("Parameter does not belong to an executable " + member); } Executable executable = (Executable) member; return executable.getParameters()[getPosition()]; }