本文整理了Java中groovy.lang.GroovyClassLoader.recompile()
方法的一些代码示例,展示了GroovyClassLoader.recompile()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GroovyClassLoader.recompile()
方法的具体详情如下:
包路径:groovy.lang.GroovyClassLoader
类名称:GroovyClassLoader
方法名:recompile
英Compiles the given source. This method starts the compilation of a given source, if the source has changed since the class was created. For this isSourceNewer is called.
[中](重新)编译给定源。如果自类创建后源已更改,则此方法开始编译给定源。因为这就是所谓的“源泉”。
代码示例来源:origin: org.codehaus.groovy/groovy
cls = recompile(source, name, oldClass);
} catch (IOException ioe) {
last = new ClassNotFoundException("IOException while opening groovy source: " + name, ioe);
代码示例来源:origin: org.kohsuke.droovy/groovy
if (classCacheEntry != cls) return classCacheEntry;
URL source = resourceLoader.loadGroovySource(name);
cls = recompile(source, name, cls);
} catch (IOException ioe) {
last = new ClassNotFoundException("IOException while opening groovy source: " + name, ioe);
代码示例来源:origin: org.codehaus.groovy/groovy-all-minimal
if (classCacheEntry != cls) return classCacheEntry;
URL source = resourceLoader.loadGroovySource(name);
cls = recompile(source, name, cls);
} catch (IOException ioe) {
last = new ClassNotFoundException("IOException while opening groovy source: " + name, ioe);
代码示例来源:origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm
cls = recompile(source, name, oldClass);
} catch (IOException ioe) {
last = new ClassNotFoundException("IOException while opening groovy source: " + name, ioe);
代码示例来源:origin: org.codehaus.groovy/groovy-jdk14
cls = recompile(source, name, oldClass);
} catch (IOException ioe) {
last = new ClassNotFoundException("IOException while opening groovy source: " + name, ioe);
内容来源于网络,如有侵权,请联系作者删除!