List of usage examples for javax.script ScriptEngine toString
public String toString()
From source file:org.jdto.mergers.ScriptMerger.java
private Object executeScript(ScriptEngine engine, String script) { try {/*w w w . j a v a 2 s .c om*/ return engine.eval(script); } catch (ScriptException ex) { String engineName = engine.toString(); logger.error("Could not execute script in engine: " + engineName, ex); throw new RuntimeException("Failure while executing script", ex); } }