Retrieve Groovy Closure/Method parameters list

后端 未结 3 663
孤城傲影
孤城傲影 2020-12-31 19:19

How do we retrieve the list of parameters of a closure/method in groovy dynamically, javascript style through the arguments array

say for example that i want to log

3条回答
  •  猫巷女王i
    2020-12-31 19:42

    I think you may want to take a look at varargs http://www.javalobby.org/articles/groovy-intro3/

提交回复
热议问题