private void load() { if(fn == null) { try { fn = (IFn) Class.forName(fnClassName,true,loader).newInstance(); } catch(Exception e) { throw Util.sneakyThrow(e); } v.root = fn; } }
static void addAnnotation(Object visitor, IPersistentMap meta){ try{ if(meta != null && ADD_ANNOTATIONS.isBound()) ADD_ANNOTATIONS.invoke(visitor, meta); } catch (Exception e) { throw Util.sneakyThrow(e); } }
private static RuntimeException throwCauseOrElseException(Exception e) { if (e.getCause() != null) throw Util.sneakyThrow(e.getCause()); throw Util.sneakyThrow(e); }
static void addParameterAnnotation(Object visitor, IPersistentMap meta, int i){ try{ if(meta != null && ADD_ANNOTATIONS.isBound()) ADD_ANNOTATIONS.invoke(visitor, meta, i); } catch (Exception e) { throw Util.sneakyThrow(e); } }
static public int read1(Reader r){ try { return r.read(); } catch(IOException e) { throw Util.sneakyThrow(e); } }
static public int read1(Reader r){ try { return r.read(); } catch(IOException e) { throw Util.sneakyThrow(e); } }
private static RuntimeException throwCauseOrElseException(Exception e) { if (e.getCause() != null) throw Util.sneakyThrow(e.getCause()); throw Util.sneakyThrow(e); }
static public int read1(Reader r){ try { return r.read(); } catch(IOException e) { throw Util.sneakyThrow(e); } }
static public int read1(Reader r){ try { return r.read(); } catch(IOException e) { throw Util.sneakyThrow(e); } }
private void load() { if(fn == null) { try { fn = (IFn) Class.forName(fnClassName,true,loader).newInstance(); } catch(Exception e) { throw Util.sneakyThrow(e); } v.root = fn; } }
static void unread(PushbackReader r, int ch) { if(ch != -1) try { r.unread(ch); } catch(IOException e) { throw Util.sneakyThrow(e); } }
public Object invoke(Object arg1) { try { return Compiler.loadFile((String) arg1); } catch(IOException e) { throw Util.sneakyThrow(e); } } });
public Object invoke(Object arg1) { try { return Compiler.loadFile((String) arg1); } catch(IOException e) { throw Util.sneakyThrow(e); } } });
static public String printString(Object x){ try { StringWriter sw = new StringWriter(); print(x, sw); return sw.toString(); } catch(Exception e) { throw Util.sneakyThrow(e); } }
static void unread(PushbackReader r, int ch) { if(ch != -1) try { r.unread(ch); } catch(IOException e) { throw Util.sneakyThrow(e); } }
static void unread(PushbackReader r, int ch) { if(ch != -1) try { r.unread(ch); } catch(IOException e) { throw Util.sneakyThrow(e); } }
public Object eval() { if(isDeftype()) return null; try { return getCompiledClass().newInstance(); } catch(Exception e) { throw Util.sneakyThrow(e); } }
public Object eval() { if(isDeftype()) return null; try { return getCompiledClass().newInstance(); } catch(Exception e) { throw Util.sneakyThrow(e); } }
static public Class loadClassForName(String name) { try { classForNameNonLoading(name); } catch(Exception e) { if (e instanceof ClassNotFoundException) return null; else throw Util.sneakyThrow(e); } return classForName(name); }
static public class CompilerException extends RuntimeException{ final public String source; final public int line; public CompilerException(String source, int line, int column, Throwable cause){ super(errorMsg(source, line, column, cause.toString()), cause); this.source = source; this.line = line; } public String toString(){ return getMessage(); } }