Java Reflection getDeclaredMethod() with Class Types

后端 未结 1 1475
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-07 02:28

I\'m trying to understand Java reflecton and am encountering difficulties when working with non-Integer setter methods.

As an example, how can I resolve the \"getDeclare

相关标签:
1条回答
  • 2021-02-07 03:00
    params[0] = String.class;
    

    Using class on String will return the Class<?> that is associated with the String class.

    0 讨论(0)
提交回复
热议问题