public void test5(){
Class c=Persion.class;
Method[] m1=c.getDeclaredMethods();
for (Method method:m1) {
System.out.println(method);
Annotation[] annotation=c.getAnnotations();
for (Annotation annotation1:annotation) {
System.out.println(annotation1);
}
String str=Modifier.toString(c.getModifiers());
System.out.println(str);
Class returnType=method.getReturnType();
System.out.println(returnType+" ");
String methodName=method.getName();
System.out.println(methodName+" ");
System.out.println("(");
Class[] params=method.getParameterTypes();
for (int i=0;i<params.length;i++) {
System.out.println(params[i].getName()+"args-"+i+" ");
}
Class[] exception=method.getExceptionTypes();
for (int i=0;i<exception.length;i++) {
System.out.println(exception[i].getName()+"args-"+i+" ");
}
}
}