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

Method processConfigScriptText

src/main/java/groovy/ui/GroovyMain.java:385–391  ·  view source on GitHub ↗

Evaluates inline configuration script text against the supplied compiler configuration. @param scriptText the configuration script text @param conf the configuration to customize

(String scriptText, CompilerConfiguration conf)

Source from the content-addressed store, hash-verified

383 * @param conf the configuration to customize
384 */
385 public static void processConfigScriptText(String scriptText, CompilerConfiguration conf) {
386 if (scriptText.trim().isEmpty()) return;
387
388 GroovyShell shell = createConfigScriptsShell(conf);
389
390 shell.evaluate(scriptText);
391 }
392
393 /**
394 * Builds a configuration script that applies the supplied transformations.

Callers 2

processMethod · 0.80

Calls 4

evaluateMethod · 0.95
trimMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected