/** * Parse the script and return an object which can be run(). This allows the script * to be parsed once and evaluated many times. * @param runtime to parse the script under * @param in the script as an inputstream to be parsed * @param filename the filename to display for parse errors and backtraces * @param lineNumber the linenumber to display for parse errors and backtraces * @return an object which can be run */ public EvalUnit parse(Ruby runtime, InputStream in, String filename, int lineNumber) { return new InterpretedEvalUnit(runtime, runtime.parseFile(in, filename, null, lineNumber)); } };
/** * Parse the script and return an object which can be run(). This allows the script * to be parsed once and evaluated many times. * @param runtime to parse the script under * @param script to be parsed * @param filename the filename to display for parse errors and backtraces * @param lineNumber the linenumber to display for parse errors and backtraces * @return an object which can be run */ public EvalUnit parse(Ruby runtime, String script, String filename, int lineNumber) { return new InterpretedEvalUnit(runtime, runtime.parseEval(script, filename, null, lineNumber)); }
/** * Parse the script and return an object which can be run(). This allows the script * to be parsed once and evaluated many times. * @param runtime to parse the script under * @param script to be parsed * @param filename the filename to display for parse errors and backtraces * @param lineNumber the linenumber to display for parse errors and backtraces * @return an object which can be run */ public EvalUnit parse(Ruby runtime, String script, String filename, int lineNumber) { return new InterpretedEvalUnit(runtime, runtime.parseEval(script, filename, null, lineNumber)); }
/** * Parse the script and return an object which can be run(). This allows the script * to be parsed once and evaluated many times. * @param runtime to parse the script under * @param in the script as an inputstream to be parsed * @param filename the filename to display for parse errors and backtraces * @param lineNumber the linenumber to display for parse errors and backtraces * @return an object which can be run */ public EvalUnit parse(Ruby runtime, InputStream in, String filename, int lineNumber) { return new InterpretedEvalUnit(runtime, runtime.parseFile(in, filename, null, lineNumber)); } };
/** * Parse the script and return an object which can be run(). This allows the script * to be parsed once and evaluated many times. * @param runtime to parse the script under * @param script to be parsed * @param filename the filename to display for parse errors and backtraces * @param lineNumber the linenumber to display for parse errors and backtraces * @return an object which can be run */ public EvalUnit parse(Ruby runtime, String script, String filename, int lineNumber) { return new InterpretedEvalUnit(runtime, runtime.parseEval(script, filename, null, lineNumber)); }
/** * Parse the script and return an object which can be run(). This allows the script * to be parsed once and evaluated many times. * @param runtime to parse the script under * @param in the script as an inputstream to be parsed * @param filename the filename to display for parse errors and backtraces * @param lineNumber the linenumber to display for parse errors and backtraces * @return an object which can be run */ public EvalUnit parse(Ruby runtime, InputStream in, String filename, int lineNumber) { return new InterpretedEvalUnit(runtime, runtime.parseFile(in, filename, null, lineNumber)); } };
/** * Parse the script and return an object which can be run(). This allows the script * to be parsed once and evaluated many times. * @param runtime to parse the script under * @param in the script as an inputstream to be parsed * @param filename the filename to display for parse errors and backtraces * @param lineNumber the linenumber to display for parse errors and backtraces * @return an object which can be run */ public EvalUnit parse(Ruby runtime, InputStream in, String filename, int lineNumber) { return new InterpretedEvalUnit(runtime, runtime.parseFile(in, filename, null, lineNumber)); } };
/** * Parse the script and return an object which can be run(). This allows the script * to be parsed once and evaluated many times. * @param runtime to parse the script under * @param script to be parsed * @param filename the filename to display for parse errors and backtraces * @param lineNumber the linenumber to display for parse errors and backtraces * @return an object which can be run */ public EvalUnit parse(Ruby runtime, String script, String filename, int lineNumber) { return new InterpretedEvalUnit(runtime, runtime.parseEval(script, filename, null, lineNumber)); }