简体   繁体   English

Groovy中的Method和MetaMethod有什么区别?

[英]What is the difference between a Method and MetaMethod in Groovy?

The API docs here: http://groovy.codehaus.org/api/groovy/lang/MetaMethod.html 此处的API文档: http : //groovy.codehaus.org/api/groovy/lang/MetaMethod.html

Explain a MetaMethod as the following: 按照以下说明解释MetaMethod:

[A MetaMethod] represents a Method on a Java object a little like Method except without using reflection to invoke the method [A MetaMethod]表示Java对象上的Method类似于Method,只是不使用反射来调用该方法

What exactly do the docs mean by "a Method without using reflection" for invocation? 文档“调用不使用反射的方法 ”到底是什么意思?

我找不到参考资料,但我想我在他们使用Reflectors地方读过。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM