MCPcopy Index your code
hub / github.com/clojure/clojure / compile

Method compile

src/jvm/clojure/lang/RT.java:427–441  ·  view source on GitHub ↗
(String cljfile)

Source from the content-addressed store, hash-verified

425}
426
427static void compile(String cljfile) throws IOException{
428 InputStream ins = resourceAsStream(baseLoader(), cljfile);
429 if(ins != null) {
430 try {
431 Compiler.compile(new InputStreamReader(ins, UTF8), cljfile,
432 cljfile.substring(1 + cljfile.lastIndexOf("/")));
433 }
434 finally {
435 ins.close();
436 }
437
438 }
439 else
440 throw new FileNotFoundException("Could not locate Clojure resource on classpath: " + cljfile);
441}
442
443static public void load(String scriptbase) throws IOException, ClassNotFoundException{
444 load(scriptbase, true);

Callers 1

loadMethod · 0.95

Calls 4

resourceAsStreamMethod · 0.95
baseLoaderMethod · 0.95
compileMethod · 0.95
lastIndexOfMethod · 0.45

Tested by

no test coverage detected