简体   繁体   中英

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

The API docs here: http://groovy.codehaus.org/api/groovy/lang/MetaMethod.html

Explain a MetaMethod as the following:

[A MetaMethod] represents a Method on a Java object a little like Method except without using reflection to invoke the method

What exactly do the docs mean by "a Method without using reflection" for invocation?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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