Java Method getParameterAnnotations () MethodThe getParameterAnnotations () method of Method class returns an array of arrays of Annotations that represent the annotations on the formal parameters, in declaration order, of the Executable represented by this object. An array of length Zero will be returned if has no parameters is passed. SyntaxParameterNo parameter is passed. ReturnsAn array of arrays representing the annotations on the formal and implicit. ThrowNA Example 1Test it NowOutput: [[@ReflectMethodgetParameterAnnotationsExample1$DisplayConf()], [@java.lang.Deprecated(), @ReflectMethodgetParameterAnnotationsExample1$INDEX()]] @ReflectMethodgetParameterAnnotationsExample1$DisplayConf() @java.lang.Deprecated() @ReflectMethodgetParameterAnnotationsExample1$INDEX() Example 2Test it NowOutput: [[Ljava.lang.annotation.Annotation;@677327b6]
Next TopicJava Method Class
|