public interface EmbedRubyRuntimeAdapter extends RubyRuntimeAdapter
RubyRuntimeAdapter for embedding.
This interface defines Java friendly parse methods.| Modifier and Type | Method and Description |
|---|---|
EmbedEvalUnit |
parse(InputStream istream,
String filename,
int... lines)
Parses a script given by a input stream and return an object which can be run().
|
EmbedEvalUnit |
parse(PathType type,
String filename,
int... lines)
Parses a script read from a specified path and return an object which can be run().
|
EmbedEvalUnit |
parse(Reader reader,
String filename,
int... lines)
Parses a script given by a reader and return an object which can be run().
|
EmbedEvalUnit |
parse(String script,
int... lines)
Parses a script and return an object which can be run().
|
eval, parse, parseEmbedEvalUnit parse(String script, int... lines)
script - is a Ruby script to be parsedlines - are linenumbers to display for parse errors and backtraces.
This field is optional. Only the first argument is used for parsing.
When no line number is specified, 0 is applied to.EmbedEvalUnit parse(Reader reader, String filename, int... lines)
reader - is used to read a script fromfilename - is used as in information, for example, appears in a stack trace
of an exceptionlines - are linenumbers to display for parse errors and backtraces.
This field is optional. Only the first argument is used for parsing.
When no line number is specified, 0 is applied to.EmbedEvalUnit parse(PathType type, String filename, int... lines)
type - is one of the types PathType definesfilename - is used as in information, for example, appears in a stack trace
of an exceptionlines - are linenumbers to display for parse errors and backtraces.
This field is optional. Only the first argument is used for parsing.
When no line number is specified, 0 is applied to.EmbedEvalUnit parse(InputStream istream, String filename, int... lines)
istream - is an input stream to get a script fromfilename - filename is used as in information, for example, appears in a stack trace
of an exceptionlines - are linenumbers to display for parse errors and backtraces.
This field is optional. Only the first argument is used for parsing.
When no line number is specified, 0 is applied to.Copyright © 2001-2015 JRuby. All Rights Reserved.