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

Method compileAll

src/main/java/org/apache/groovy/util/JavaShell.java:171–181  ·  view source on GitHub ↗

Compile and return all classes @param className the main class name @param options compiler options @param src the source code @return all classes

(final String className, Iterable<String> options, String src)

Source from the content-addressed store, hash-verified

169 * @return all classes
170 */
171 public Map<String, Class<?>> compileAll(final String className, Iterable<String> options, String src) throws IOException, ClassNotFoundException {
172 doCompile(className, src, options);
173
174 Map<String, Class<?>> classes = new LinkedHashMap<>();
175 for (String cn : jscl.getClassMap().keySet()) {
176 Class<?> c = jscl.findClass(cn);
177 classes.put(cn, c);
178 }
179
180 return classes;
181 }
182
183 /**
184 * Compile and return all classes

Callers

nothing calls this directly

Calls 5

doCompileMethod · 0.95
findClassMethod · 0.65
putMethod · 0.65
keySetMethod · 0.45
getClassMapMethod · 0.45

Tested by

no test coverage detected