Retrieving parameter values through reflection

后端 未结 2 1176
陌清茗
陌清茗 2021-01-21 15:04

I am trying to come up with a design for a method that takes another method as a parameter and retrieves the parameter values of the method passed. How can this be done? I\'ve t

2条回答
  •  再見小時候
    2021-01-21 15:30

    Method.getParameterTypes

    http://download.oracle.com/javase/1.4.2/docs/api/java/lang/reflect/Method.html#getParameterTypes%28%29

提交回复
热议问题