| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final RubyInstanceConfig | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| private boolean | |
| private Main. | |
| private static void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private static List | |
| private String | |
| private String | |
| private Main. | |
| private Main. | handleOutOfMemory(OutOfMemoryError ex)
Print a nicer memory error since Rubyists aren't used to seeing this. |
| protected static int | handleRaiseException(final RaiseException ex)
This is only used from the main(String[]) path, in which case the err for this run should be System.err. |
| private Main. | handleStackOverflow(StackOverflowError ex)
Print a nicer stack size error since Rubyists aren't used to seeing this. |
| private static int | |
| private Main. | |
| private Main. | |
| private static void | |
| public static void | |
| public static void | |
| public Main. | |
| public Main. |
| config | back to summary |
|---|---|
| private final RubyInstanceConfig config | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| Main | back to summary |
|---|---|
| public Main(RubyInstanceConfig config) | |
| Main | back to summary |
|---|---|
| public Main(final InputStream in, final PrintStream out, final PrintStream err) | |
| Main | back to summary |
|---|---|
| public Main() | |
| Main | back to summary |
|---|---|
| private Main(RubyInstanceConfig config, boolean hardExit) | |
| Main | back to summary |
|---|---|
| private Main(boolean hardExit) | |
| checkFileSyntax | back to summary |
|---|---|
| private boolean checkFileSyntax(Ruby runtime, String filename) | |
| checkStreamSyntax | back to summary |
|---|---|
| private boolean checkStreamSyntax(Ruby runtime, InputStream in, String filename) | |
| doCheckSyntax | back to summary |
|---|---|
| private Main. | |
| doGCJCheck | back to summary |
|---|---|
| private static void doGCJCheck() | |
| doPrintProperties | back to summary |
|---|---|
| private void doPrintProperties() | |
| doPrintUsage | back to summary |
|---|---|
| private void doPrintUsage(boolean force) | |
| doSetContextClassLoader | back to summary |
|---|---|
| private void doSetContextClassLoader(Ruby runtime) | |
| doShowCopyright | back to summary |
|---|---|
| private void doShowCopyright() | |
| doShowVersion | back to summary |
|---|---|
| private void doShowVersion() | |
| getDotfileDirectories | back to summary |
|---|---|
| private static List | |
| getRubyPagerEnv | back to summary |
|---|---|
| private String getRubyPagerEnv() | |
| getRuntimeFlagValue | back to summary |
|---|---|
| private String getRuntimeFlagValue(String prefix) | |
| handleMainExit | back to summary |
|---|---|
| private Main. | |
| handleOutOfMemory | back to summary |
|---|---|
| private Main. Print a nicer memory error since Rubyists aren't used to seeing this. | |
| handleRaiseException | back to summary |
|---|---|
| protected static int handleRaiseException(final RaiseException ex) This is only used from the main(String[]) path, in which case the err for this run should be System.err. In order to avoid the Ruby err being closed and unable to write, we use System.err unconditionally. | |
| handleStackOverflow | back to summary |
|---|---|
| private Main. Print a nicer stack size error since Rubyists aren't used to seeing this. | |
| handleUnexpectedJump | back to summary |
|---|---|
| private static int handleUnexpectedJump(final JumpException ex) | |
| handleUnsupportedClassVersion | back to summary |
|---|---|
| private Main. | |
| internalRun | back to summary |
|---|---|
| private Main. | |
| loadJRubyProperties | back to summary |
|---|---|
| private static void loadJRubyProperties(File dotfile) | |
| main | back to summary |
|---|---|
| public static void main(String[] args) This is the command-line entry point for JRuby, and should ONLY be used by Java when starting up JRuby from a command-line. Use other mechanisms when embedding JRuby into another application.
| |
| processDotfile | back to summary |
|---|---|
| public static void processDotfile() | |
| run | back to summary |
|---|---|
| public Main. | |
| run | back to summary |
|---|---|
| public Main. Deprecated
| |
| Access | Constructor and Description |
|---|---|
| pack-priv | Status(int
The status value. status)Creates a status object with the specified value and with explicit exit flag. |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public boolean |
| Status | back to summary |
|---|---|
| pack-priv Status(int status) Creates a status object with the specified value and with explicit exit flag. An exit flag means that Kernel.exit() has been explicitly invoked during the run.
| |
| Status | back to summary |
|---|---|
| pack-priv Status() Creates a status object with 0 value and no explicit exit flag. | |
| getStatus | back to summary |
|---|---|
| public int getStatus() | |
| isExit | back to summary |
|---|---|
| public boolean isExit() | |