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

Method compile

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

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

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

Source from the content-addressed store, hash-verified

145 * @return the main class
146 */
147 public Class<?> compile(final String className, Iterable<String> options, String src) throws IOException, ClassNotFoundException {
148 doCompile(className, src, options);
149
150 return jscl.findClass(className);
151 }
152
153 /**
154 * Compile and return the main class

Callers 1

runMethod · 0.95

Calls 2

doCompileMethod · 0.95
findClassMethod · 0.65

Tested by

no test coverage detected