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

Method make

src/main/java/org/codehaus/groovy/ast/ClassHelper.java:280–286  ·  view source on GitHub ↗

Creates an array of ClassNodes using an array of Java classes, using caching where available. Each class is converted to a ClassNode via #make(Class). @param classes the Java classes to convert to ClassNodes @return an array of ClassNodes corresponding to the input classes, preserving order

(Class[] classes)

Source from the content-addressed store, hash-verified

278 * @see #make(Class, boolean)
279 */
280 public static ClassNode[] make(Class[] classes) {
281 ClassNode[] cns = new ClassNode[classes.length];
282 for (int i = 0; i < cns.length; i++) {
283 cns[i] = make(classes[i]);
284 }
285 return cns;
286 }
287
288 /**
289 * Creates a ClassNode for the given Java class, using caching when available.

Callers 15

isCloneableMethod · 0.95
weaveMeasureMethod · 0.95
visitMethod · 0.95
findMacroMethodsMethod · 0.95
MacroMethodsCacheClass · 0.95
visitMethod · 0.95

Calls 7

makeArrayMethod · 0.95
makeWithoutCachingMethod · 0.95
dynamicTypeMethod · 0.95
getMethod · 0.65
isArrayMethod · 0.45
getComponentTypeMethod · 0.45
isEmptyMethod · 0.45

Tested by 6

visitMethod · 0.76
testArrayClassMethod · 0.76
testTypeAnnotationsMethod · 0.76