/** * Evaluates some script against the current Binding and returns the result * * @param in the stream reading the script */ public Object evaluate(Reader in) throws CompilationFailedException { return evaluate(in, generateScriptName()); }
/** * Parses the given script and returns it ready to be run * * @param scriptText the text of the script */ public Script parse(String scriptText) throws CompilationFailedException { return parse(scriptText, generateScriptName()); }
/** * Parses the given script and returns it ready to be run * * @param in the stream reading the script */ public Script parse(Reader in) throws CompilationFailedException { return parse(in, generateScriptName()); }
/** * Evaluates some script against the current Binding and returns the result * * @param scriptText the text of the script */ public Object evaluate(final String scriptText) throws CompilationFailedException { return evaluate(scriptText, generateScriptName(), DEFAULT_CODE_BASE); }
/** * Evaluates some script against the current Binding and returns the result * * @param in the stream reading the script */ public Object evaluate(InputStream in) throws CompilationFailedException { return evaluate(in, generateScriptName()); }
/** * Parses the given script and returns it ready to be run * * @param in the stream reading the script */ public Script parse(InputStream in) throws CompilationFailedException { return parse(in, generateScriptName()); }
/** * Evaluates some script against the current Binding and returns the result * * @param scriptText the text of the script */ public Object evaluate(final String scriptText) throws CompilationFailedException { return evaluate(scriptText, generateScriptName(), DEFAULT_CODE_BASE); }
/** * Parses the given script and returns it ready to be run * * @param in the stream reading the script * * @deprecated Prefer using methods taking a Reader rather than an InputStream to avoid wrong encoding issues. */ public Script parse(InputStream in) throws CompilationFailedException { return parse(in, generateScriptName()); }
/** * Evaluates some script against the current Binding and returns the result * * @param in the stream reading the script */ public Object evaluate(InputStream in) throws CompilationFailedException { return evaluate(in, generateScriptName()); }
/** * Evaluates some script against the current Binding and returns the result * * @param in the stream reading the script */ public Object evaluate(Reader in) throws CompilationFailedException { return evaluate(in, generateScriptName()); }
/** * Evaluates some script against the current Binding and returns the result * * @param in the stream reading the script * * @deprecated Prefer using methods taking a Reader rather than an InputStream to avoid wrong encoding issues. */ public Object evaluate(InputStream in) throws CompilationFailedException { return evaluate(in, generateScriptName()); }
/** * Parses the given script and returns it ready to be run * * @param in the stream reading the script */ public Script parse(Reader in) throws CompilationFailedException { return parse(in, generateScriptName()); }
/** * Parses the given script and returns it ready to be run * * @param in the stream reading the script */ public Script parse(InputStream in) throws CompilationFailedException { return parse(in, generateScriptName()); }
/** * Evaluates some script against the current Binding and returns the result * * @param in the stream reading the script */ public Object evaluate(InputStream in) throws CompilationFailedException { return evaluate(in, generateScriptName()); }
/** * Parses the given script and returns it ready to be run * * @param scriptText the text of the script */ public Script parse(String scriptText) throws CompilationFailedException { return parse(scriptText, generateScriptName()); }
/** * Evaluates some script against the current Binding and returns the result * * @param scriptText the text of the script */ public Object evaluate(String scriptText) throws CompilationFailedException { try { return evaluate(new ByteArrayInputStream(scriptText.getBytes(config.getSourceEncoding())), generateScriptName()); } catch (UnsupportedEncodingException e) { throw new CompilationFailedException(0, null, e); } }
/** * Evaluates some script against the current Binding and returns the result * * @param scriptText the text of the script */ public Object evaluate(String scriptText) throws CompilationFailedException { try { return evaluate(new ByteArrayInputStream(scriptText.getBytes(config.getSourceEncoding())), generateScriptName()); } catch (UnsupportedEncodingException e) { throw new CompilationFailedException(0, null, e); } }
/** * Parses the given script and returns it ready to be run * * @param scriptText the text of the script */ public Script parse(String scriptText) throws CompilationFailedException { try { return parse(new ByteArrayInputStream(scriptText.getBytes(config.getSourceEncoding())), generateScriptName()); } catch (UnsupportedEncodingException e) { throw new CompilationFailedException(0, null, e); } }
/** * Parses the given script and returns it ready to be run * * @param scriptText the text of the script */ public Script parse(String scriptText) throws CompilationFailedException { try { return parse(new ByteArrayInputStream(scriptText.getBytes(config.getSourceEncoding())), generateScriptName()); } catch (UnsupportedEncodingException e) { throw new CompilationFailedException(0, null, e); } }
/** * Parses the given script and returns it ready to be run * * @param scriptText the text of the script */ public Script parse(String scriptText) throws CompilationFailedException { try { return parse(new ByteArrayInputStream(scriptText.getBytes(config.getSourceEncoding())), generateScriptName()); } catch (UnsupportedEncodingException e) { throw new CompilationFailedException(0, null, e); } }