| Modifier and Type | Method and Description |
|---|---|
| public String[] | |
| public ClassLoader | Returns: a class loader object that is currently used.Returns a class loader object that is currently used. |
| public RubyInstanceConfig. | Returns: a compile mode.Returns a compile mode currently chosen, which is one of CompileMode.JIT, CompileMode.FORCE, CompileMode.OFF. |
| public String | |
| public Map | Returns: a map that has environment variables' key-value pairs.Returns a map of environment variables. |
| public PrintStream | Returns: output stream for error streamReturns an error stream assigned to STDERR and $stderr. |
| public String | |
| public InputStream | Returns: input stream of STDIN and $stdinReturns an input stream assigned to STDIN and $stdin. |
| public int | Returns: a value that determines how often jitted methods are logged.Returns the value of n, which means that jitted methods are logged in every n methods. |
| public int | |
| public int | Returns: a value of a max size of the bytecode.Returns a value of a max size of the bytecode generated by compiler. |
| public int | Returns: a value of the threshold.Returns a value of the threshold that determines whether jitted methods' call reached to the limit or not. |
| public KCode | |
| public List | Returns: a list of load paths.Returns a list of load paths for Ruby scripts/libraries. |
| public RubyInstanceConfig. | Returns: a current LoadServiceCreator.Returns a LoadServiceCreator currently used. |
| public PrintStream | Returns: an output stream of STDOUT and $stdoutReturns an output stream assigned to STDOUT and $stdout |
| public Profile | |
| public String | |
| public String | |
| public String | Returns: version information.Returns version information about JRuby and Ruby supported by this platform. |
| public boolean | Returns: true if the Object Space is able to use, otherwise, false.Tests whether the Object Space is enabled or not. |
| public boolean | Returns: true if Ruby is configured to run in a process, otherwise, false.Tests whether Ruby runs in a process or not. |
| public void | |
| public void | setClassLoader(ClassLoader
a new class loader to be set. loader)Changes a class loader to a given loader. |
| public void | setCompileMode(RubyInstanceConfig.
compile mode modeChanges a compile mode to a given mode, which should be one of CompileMode.JIT, CompileMode.FORCE, CompileMode.OFF. |
| public void | setCurrentDirectory(String
a new directory to be set. directory)Changes a current directory to a given directory. |
| public void | setEnvironment(Map<K, V>
a new map of environment variables. environment)Changes an environment variables' map. |
| public void | setError(PrintStream
a print stream to be set pstream)Changes STDERR and $stderr to a gievn print stream. |
| public void | |
| public void | setHomeDirectory(String
a name of new JRuby home directory. home)Changes a JRuby home directroy to a directory of a given name. |
| public void | setInput(InputStream
an input stream to be set istream)Changes STDIN and $stdin to a given input stream. |
| public void | |
| public void | setJitLogEvery(int
a new number of methods. logEvery)Changes a value of n, so that jitted methods are logged in every n methods. |
| public void | |
| public void | setJitMaxSize(int
a new value of a max size of the bytecode. maxSize)Changes a value of a max size of the bytecode generated by compiler. |
| public void | setJitThreshold(int
a new value of the threshold. threshold)Changes a value of the threshold that determines whether jitted methods' call reached to the limit or not. |
| public void | |
| public void | setLoadPaths(List<String>
a new list of load paths. paths)Changes a list of load paths Ruby scripts/libraries. |
| public void | setLoadServiceCreator(RubyInstanceConfig.
a new LoadServiceCreator creatorChanges a LoadServiceCreator to a given one. |
| public void | setObjectSpaceEnabled(boolean
true to enable the Object Space, or false to disable. enable)Changes the value to determine whether the Object Space is enabled or not. |
| public void | setOutput(PrintStream
an output stream to be set pstream)Changes STDOUT and $stdout to a given output stream. |
| public void | |
| public void | |
| public void | setRecordSeparator(String
a new record separator value, "0" or "777" separator)Changes a record separator to a given value. |
| public void | setRunRubyInProcess(boolean
true when Ruby is set to run in the process, or false not to
run in the process. inprocess)Changes the value to determine whether Ruby runs in a process or not. |
| public void |
| getArgv | back to summary |
|---|---|
| public String[] getArgv() Returns an arguments' list.
| |
| getClassLoader | back to summary |
|---|---|
| public ClassLoader getClassLoader() Returns a class loader object that is currently used. This loader loads Ruby files and libraries.
| |
| getCompileMode | back to summary |
|---|---|
| public RubyInstanceConfig. Returns a compile mode currently chosen, which is one of CompileMode.JIT, CompileMode.FORCE, CompileMode.OFF. The default mode is CompileMode.OFF.
| |
| getCurrentDirectory | back to summary |
|---|---|
| public String getCurrentDirectory() Returns a current directory. The default current directory is identical to a value of "user.dir" system property if no security restriction is set. If the "user.dir" directory is protected by the security restriction, the default value is "/".
| |
| getEnvironment | back to summary |
|---|---|
| public Map Returns a map of environment variables.
| |
| getError | back to summary |
|---|---|
| public PrintStream getError() Returns an error stream assigned to STDERR and $stderr.
| |
| getHomeDirectory | back to summary |
|---|---|
| public String getHomeDirectory() Returns a JRuby home directory. The default JRuby home is the value of JRUBY_HOME environmet variable, or "jruby.home" system property when no security restriction is set to those directories. If none of JRUBY_HOME or jruby.home is set and jruby-complete.jar is used, the default JRuby home is "/META-INF/jruby.home" in the jar archive. Otherwise, "java.io.tmpdir" system property is the default value.
| |
| getInput | back to summary |
|---|---|
| public InputStream getInput() Returns an input stream assigned to STDIN and $stdin.
| |
| getJitLogEvery | back to summary |
|---|---|
| public int getJitLogEvery() Returns the value of n, which means that jitted methods are logged in every n methods. The default value is 0.
| |
| getJitMax | back to summary |
|---|---|
| public int getJitMax() Returns a value of a max class cache size. The default value is 0 when security restriction is applied, or 4096 when no security restriction exists.
| |
| getJitMaxSize | back to summary |
|---|---|
| public int getJitMaxSize() Returns a value of a max size of the bytecode generated by compiler. The default value is -1 when security restriction is applied, or 10000 when no security restriction exists.
| |
| getJitThreshold | back to summary |
|---|---|
| public int getJitThreshold() Returns a value of the threshold that determines whether jitted methods' call reached to the limit or not. The default value is -1 when security restriction is applied, or 50 when no security restriction exists.
| |
| getKCode | back to summary |
|---|---|
| public KCode getKCode() Returns a value of KCode currently used. The default value is KCode.NONE.
| |
| getLoadPaths | back to summary |
|---|---|
| public List Returns a list of load paths for Ruby scripts/libraries. If no paths is given, the list is created from java.class.path System property. | |
| getLoadServiceCreator | back to summary |
|---|---|
| public RubyInstanceConfig. Returns a LoadServiceCreator currently used.
| |
| getOutput | back to summary |
|---|---|
| public PrintStream getOutput() Returns an output stream assigned to STDOUT and $stdout
| |
| getProfile | back to summary |
|---|---|
| public Profile getProfile() Returns a profiler currently used. The default profiler is Profile.DEFAULT, which has the same behavior to Profile.ALL.
| |
| getRecordSeparator | back to summary |
|---|---|
| public String getRecordSeparator() Returns a record separator. The default value is \0.
| |
| getScriptFilename | back to summary |
|---|---|
| public String getScriptFilename() Returns a script filename to run. The default value is null.
| |
| getSupportedRubyVersion | back to summary |
|---|---|
| public String getSupportedRubyVersion() Returns version information about JRuby and Ruby supported by this platform.
| |
| isObjectSpaceEnabled | back to summary |
|---|---|
| public boolean isObjectSpaceEnabled() Tests whether the Object Space is enabled or not.
| |
| isRunRubyInProcess | back to summary |
|---|---|
| public boolean isRunRubyInProcess() Tests whether Ruby runs in a process or not.
| |
| setArgv | back to summary |
|---|---|
| public void setArgv(String[] argv) Changes values of the arguments' list.
| |
| setClassLoader | back to summary |
|---|---|
| public void setClassLoader(ClassLoader loader) Changes a class loader to a given loader.
| |
| setCompileMode | back to summary |
|---|---|
| public void setCompileMode(RubyInstanceConfig. Changes a compile mode to a given mode, which should be one of CompileMode.JIT, CompileMode.FORCE, CompileMode.OFF. The default value is CompileMode.OFF.
| |
| setCurrentDirectory | back to summary |
|---|---|
| public void setCurrentDirectory(String directory) Changes a current directory to a given directory.
| |
| setEnvironment | back to summary |
|---|---|
| public void setEnvironment(Map<K, V> environment) Changes an environment variables' map.
| |
| setError | back to summary |
|---|---|
| public void setError(PrintStream pstream) Changes STDERR and $stderr to a gievn print stream. The default standard error is java.lang.System.err.
| |
| setError | back to summary |
|---|---|
| public void setError(Writer writer) Changes STDERR and $stderr to a given writer. No writer is set by default.
| |
| setHomeDirectory | back to summary |
|---|---|
| public void setHomeDirectory(String home) Changes a JRuby home directroy to a directory of a given name.
| |
| setInput | back to summary |
|---|---|
| public void setInput(InputStream istream) Changes STDIN and $stdin to a given input stream. The default standard input is java.lang.System.in.
| |
| setInput | back to summary |
|---|---|
| public void setInput(Reader reader) Changes STDIN and $stdin to a given reader. No reader is set by default.
| |
| setJitLogEvery | back to summary |
|---|---|
| public void setJitLogEvery(int logEvery) Changes a value of n, so that jitted methods are logged in every n methods. The default value is 0. This value can be set by the jruby.jit.logEvery System property.
| |
| setJitMax | back to summary |
|---|---|
| public void setJitMax(int max) Changes a value of a max class cache size. The default value is 0 when security restriction is applied, or 4096 when no security restriction exists. This value can be set by jruby.jit.max System property.
| |
| setJitMaxSize | back to summary |
|---|---|
| public void setJitMaxSize(int maxSize) Changes a value of a max size of the bytecode generated by compiler. The default value is -1 when security restriction is applied, or 10000 when no security restriction exists. This value can be set by jruby.jit.maxsize System property.
| |
| setJitThreshold | back to summary |
|---|---|
| public void setJitThreshold(int threshold) Changes a value of the threshold that determines whether jitted methods' call reached to the limit or not. The default value is -1 when security restriction is applied, or 50 when no security restriction exists. This value can be set by jruby.jit.threshold System property.
| |
| setKCode | back to summary |
|---|---|
| public void setKCode(KCode kcode) Changes a value of KCode to a given value. The default value is KCode.NONE.
| |
| setLoadPaths | back to summary |
|---|---|
| public void setLoadPaths(List<String> paths) Changes a list of load paths Ruby scripts/libraries. The default value is an empty array. If no paths is given, the list is created from java.class.path System property. This value can be set by org.jruby.embed.class.path System property. | |
| setLoadServiceCreator | back to summary |
|---|---|
| public void setLoadServiceCreator(RubyInstanceConfig. Changes a LoadServiceCreator to a given one.
| |
| setObjectSpaceEnabled | back to summary |
|---|---|
| public void setObjectSpaceEnabled(boolean enable) Changes the value to determine whether the Object Space is enabled or not. The default value is false. This value can be set by jruby.objectspace.enabled system property.
| |
| setOutput | back to summary |
|---|---|
| public void setOutput(PrintStream pstream) Changes STDOUT and $stdout to a given output stream. The default standard output is java.lang.System.out.
| |
| setOutput | back to summary |
|---|---|
| public void setOutput(Writer writer) Changes STDOUT and $stdout to a given writer. No writer is set by default.
| |
| setProfile | back to summary |
|---|---|
| public void setProfile(Profile profile) Changes a profiler to a given one.
| |
| setRecordSeparator | back to summary |
|---|---|
| public void setRecordSeparator(String separator) Changes a record separator to a given value. If "0" is given, the record separator goes to "\n\n", "777" goes to "", otherwise, an octal value of the given number.
| |
| setRunRubyInProcess | back to summary |
|---|---|
| public void setRunRubyInProcess(boolean inprocess) Changes the value to determine whether Ruby runs in a process or not. The default value is true.
| |
| setScriptFilename | back to summary |
|---|---|
| public void setScriptFilename(String filename) Changes a script filename to run. The default value is null.
| |