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

Method getMetaMethodsWithInfo

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

Get info about instance and class Methods that are dynamically added through Groovy.

()

Source from the content-addressed store, hash-verified

230 * Get info about instance and class Methods that are dynamically added through Groovy.
231 */
232 public Tuple2[] getMetaMethodsWithInfo() {
233 MetaClass metaClass = InvokerHelper.getMetaClass(objectUnderInspection);
234 List<MetaMethod> metaMethods = metaClass.getMetaMethods();
235 Tuple2[] result = new Tuple2[metaMethods.size()];
236 int i = 0;
237 for (Iterator<MetaMethod> iter = metaMethods.iterator(); iter.hasNext(); i++) {
238 MetaMethod metaMethod = iter.next();
239 result[i] = Tuple2.tuple(metaMethod, methodInfo(metaMethod));
240 }
241 return result;
242 }
243
244 /**
245 * Get info about usual Java public fields incl. constants.

Callers

nothing calls this directly

Calls 8

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

Tested by

no test coverage detected