您的位置: 首页 > 文章 > java反射用法 java反射用法 分类: 文章 • 2025-04-27 11:25:53 Class c = context.getClass(); Method[] methods = c.getDeclaredMethods(); for (Method method:methods){ ToolsEx.MyLog("输出方法名=="+method.getName()+" 修饰符=="+ Modifier.toString(method.getModifiers()),0); }