MCPcopy Index your code
hub / github.com/apache/groovy / getMetaMethods

Method getMetaMethods

src/main/java/groovy/inspect/Inspector.java:217–227  ·  view source on GitHub ↗

Get info about instance and class Methods that are dynamically added through Groovy. @return Array of StringArrays that can be indexed with the MEMBER_xxx_IDX constants

()

Source from the content-addressed store, hash-verified

215 * @return Array of StringArrays that can be indexed with the MEMBER_xxx_IDX constants
216 */
217 public Object[] getMetaMethods() {
218 MetaClass metaClass = InvokerHelper.getMetaClass(objectUnderInspection);
219 List metaMethods = metaClass.getMetaMethods();
220 Object[] result = new Object[metaMethods.size()];
221 int i = 0;
222 for (Iterator iter = metaMethods.iterator(); iter.hasNext(); i++) {
223 MetaMethod metaMethod = (MetaMethod) iter.next();
224 result[i] = methodInfo(metaMethod);
225 }
226 return result;
227 }
228
229 /**
230 * Get info about instance and class Methods that are dynamically added through Groovy.

Callers 2

testMetaMethodsMethod · 0.95
testStaticMetaMethodsMethod · 0.95

Calls 7

getMetaClassMethod · 0.95
getMetaMethodsMethod · 0.95
methodInfoMethod · 0.95
sizeMethod · 0.65
iteratorMethod · 0.65
hasNextMethod · 0.45
nextMethod · 0.45

Tested by 2

testMetaMethodsMethod · 0.76
testStaticMetaMethodsMethod · 0.76