| Modifier and Type | Field and Description |
|---|---|
| private final RubyRuntimeAdapter | |
| private final ScriptingContainer | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static DynamicScope | |
| public IRubyObject | |
| public EmbedEvalUnit | parse(String
is a Ruby script to be parsed script, int... 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. lines)Implements org. Parses a script and return an object which can be run(). |
| public EmbedEvalUnit | parse(Reader
is used to read a script from reader, String is used as in information, for example, appears in a stack trace
of an exception filename, int... 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. lines)Implements org. Parses a script given by a reader and return an object which can be run(). |
| public EmbedEvalUnit | parse(PathType
is one of the types type, String PathType definesis used as in information, for example, appears in a stack trace
of an exception filename, int... 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. lines)Implements org. Parses a script read from a specified path and return an object which can be run(). |
| public EmbedEvalUnit | parse(InputStream
is an input stream to get a script from istream, String filename is used as in information, for example, appears in a stack trace
of an exception filename, int... 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. lines)Implements org. Parses a script given by a input stream and return an object which can be run(). |
| public JavaEmbedUtils. | parse(Ruby runtime, String script, String filename, int lineNumber)
Implements org.
|
| public JavaEmbedUtils. | parse(Ruby runtime, InputStream istream, String filename, int lineNumber)
Implements org.
|
| private EmbedEvalUnit |
| adapter | back to summary |
|---|---|
| private final RubyRuntimeAdapter adapter | |
| container | back to summary |
|---|---|
| private final ScriptingContainer container | |
| wrapExceptions | back to summary |
|---|---|
| private final boolean wrapExceptions | |
| EmbedRubyRuntimeAdapterImpl | back to summary |
|---|---|
| public EmbedRubyRuntimeAdapterImpl(ScriptingContainer container) | |
| EmbedRubyRuntimeAdapterImpl | back to summary |
|---|---|
| public EmbedRubyRuntimeAdapterImpl(ScriptingContainer container, boolean wrapExceptions) | |
| createLocalVarScope | back to summary |
|---|---|
| pack-priv static DynamicScope createLocalVarScope(Ruby runtime, final String[] varNames) | |
| eval | back to summary |
|---|---|
| public IRubyObject eval(Ruby runtime, String script) Implements org. | |
| parse | back to summary |
|---|---|
| public EmbedEvalUnit parse(String script, int... lines) Implements org. Doc from org. Parses a script and return an object which can be run(). This allows the script to be parsed once and evaluated many times.
| |
| parse | back to summary |
|---|---|
| public EmbedEvalUnit parse(Reader reader, String filename, int... lines) Implements org. Doc from org. Parses a script given by a reader and return an object which can be run(). This allows the script to be parsed once and evaluated many times.
| |
| parse | back to summary |
|---|---|
| public EmbedEvalUnit parse(PathType type, String filename, int... lines) Implements org. Doc from org. Parses a script read from a specified path and return an object which can be run(). This allows the script to be parsed once and evaluated many times.
| |
| parse | back to summary |
|---|---|
| public EmbedEvalUnit parse(InputStream istream, String filename, int... lines) Implements org. Doc from org. Parses a script given by a input stream and return an object which can be run(). This allows the script to be parsed once and evaluated many times.
| |
| parse | back to summary |
|---|---|
| public JavaEmbedUtils. Implements org. | |
| parse | back to summary |
|---|---|
| public JavaEmbedUtils. Implements org. | |
| runParser | back to summary |
|---|---|
| private EmbedEvalUnit runParser(Object input, String filename, int... lines) | |