Here you can find the source of getAnnotations(Method method)
public static Annotation[] getAnnotations(Method method)
//package com.java2s; //License from project: Apache License import java.lang.annotation.Annotation; import java.lang.reflect.Method; public class Main { public static Annotation[] getAnnotations(Method method) { return method.getDeclaredAnnotations(); }/* w ww.j a v a 2 s .c o m*/ }