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

Method getMethodsWithInfo

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

Get info about usual Java instance and class Methods as well as Constructors.

()

Source from the content-addressed store, hash-verified

194 * Get info about usual Java instance and class Methods as well as Constructors.
195 */
196 public Tuple2[] getMethodsWithInfo() {
197 Method[] methods = getClassUnderInspection().getMethods();
198 Constructor[] ctors = getClassUnderInspection().getConstructors();
199 Tuple2[] result = new Tuple2[methods.length + ctors.length];
200 int resultIndex = 0;
201 for (; resultIndex < methods.length; resultIndex++) {
202 Method method = methods[resultIndex];
203 result[resultIndex] = Tuple2.tuple(method, methodInfo(method));
204 }
205 for (int i = 0; i < ctors.length; i++, resultIndex++) {
206 Constructor ctor = ctors[i];
207 result[resultIndex] = Tuple2.tuple(ctor, methodInfo(ctor));
208 }
209 return result;
210 }
211
212 /**
213 * Get info about instance and class Methods that are dynamically added through Groovy.

Callers

nothing calls this directly

Calls 5

methodInfoMethod · 0.95
getConstructorsMethod · 0.80
tupleMethod · 0.80
getMethodsMethod · 0.65

Tested by

no test coverage detected