(String scriptbase, Class<?> loadFrom)
| 245 | } |
| 246 | |
| 247 | static public Object loadWithClass(String scriptbase, Class<?> loadFrom) throws IOException, ClassNotFoundException{ |
| 248 | RT.init(); |
| 249 | Var.pushThreadBindings(RT.map(new Object[] { Compiler.LOADER, loadFrom.getClassLoader() })); |
| 250 | try { |
| 251 | return RT.var("clojure.core", "load").invoke(scriptbase); |
| 252 | } |
| 253 | finally |
| 254 | { |
| 255 | Var.popThreadBindings(); |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | static boolean isPosDigit(String s) { |
| 260 | if(s.length() != 1) |
nothing calls this directly
no test coverage detected