| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| pack-priv static class | Ruby.
Because RubyString.equals does not consider encoding, and MRI's logic for deduplication does need to consider encoding, we use a wrapper object as the key. |
| public static interface | |
| private class | |
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private static final Pattern | |
| private final ConcurrentWeakHashMap | |
| private volatile IRubyObject | |
| private RubyClass | |
| private final RubyClass | |
| private final RubyClass | |
| private static final VarHandle | |
| private volatile int | |
| private DynamicMethod | baseNewMethod
The built-in Class#new method, so we can bind more directly to allocate and initialize. |
| private final RubyClass | basicObjectClass
All the core classes we keep hard references to. |
| private final BeanManager | |
| private final RubyClass | |
| private final Map | |
| private RubyClass | |
| private RubyClass | |
| private RubyClass | |
| private RubyClass | |
| private RubyClass | |
| private final Caches | |
| private static final VarHandle | |
| private volatile int | |
| private final RubyClass | |
| private RubyThread | |
| private RubyStackTraceElement | |
| private final Invalidator | |
| private final RubyClass | |
| private final RubyClass | |
| private final RubyModule | |
| private final RubyClass | |
| private RubyClass | |
| private final RubyClass | |
| pack-priv final RubyInstanceConfig | |
| private final Config | |
| private final Object | constant
A representation of this runtime as a JIT-optimizable constant. |
| private final ConcurrentHashMap | |
| private final RubyClass | |
| private final RubyClass | |
| private RubyClass | |
| private final boolean | |
| private static final VarHandle | |
| private volatile CoverageData | |
| private volatile String | |
| private volatile int | |
| private final RubyClass | |
| private RubyClass | |
| private boolean | |
| private final ThreadLocal | |
| private final Map | dedupMap
A map from Ruby string data to a pre-frozen global version of that string. |
| private DynamicMethod | |
| private DynamicMethod | |
| private RubyRandom | defaultRandom
The default Ruby Random object for this runtime |
| private RubyThreadGroup | |
| private final EnumMap | |
| private final RubyClass | |
| private static final Ruby. | |
| private boolean | |
| private final RubyClass | |
| private final AtomicLong | |
| private final RubyArray | |
| private final RubyString | |
| private static final Ruby. | |
| private final RubyClass | |
| private RubyClass | |
| private RubyClass | |
| private final EncodingService | |
| private final RubyModule | |
| private final RubyClass | |
| private final RubyHash | |
| private RubyClass | |
| private PrintStream | |
| public static final String | |
| private RubyModule | |
| private final Map | |
| private RubyModule | |
| private static final VarHandle | |
| private final RubyClass | |
| private volatile int | |
| private final ExecutorService | |
| private final List | exitBlocks
Reserved for userland at_exit logic that runs before internal services start shutting down. |
| private final RubyClass | |
| private final RubyBoolean | |
| private final RubyString | |
| private RubyClass | |
| private FFI | |
| private final RubyClass | |
| private RubyClass | |
| private final ExecutorService | |
| private final RubyClass | |
| private final FilenoUtil | |
| private final RubyClass | |
| private final RubyModule | |
| private final Map | finalizers
A list of "external" finalizers (the ones, registered via ObjectSpace), weakly referenced, to be executed on tearDown. |
| private final ReentrantLock | |
| pack-priv final RubyFixnum[] | |
| private final RubyClass | |
| pack-priv final Object[] | |
| private final RubyClass | |
| private RubyClass | |
| private RubyClass | |
| private final RubyModule | |
| private final RubyClass | |
| private static volatile Ruby | globalRuntime
The "global" runtime. |
| private final GlobalVariables | |
| private RubyClass | |
| private final RubyClass | |
| private final long | hashSeedK0
The runtime-local seed for hash randomization |
| private final long | |
| private final Object | |
| private InputStream | |
| private RubyClass | |
| private final InlineStats | |
| private final ThreadLocal | |
| private final RubyClass | |
| private final Map | internalFinalizers
A list of JRuby-internal finalizers, weakly referenced, to be executed on tearDown. |
| private final ReentrantLock | |
| private final Interpreter | |
| private RubyClass | |
| private RubyClass | |
| private RubyClass | |
| private final RubyClass | |
| private final RubyClass | |
| private RubyClass | |
| private RubyClass | |
| private final IRManager | |
| private final Map | |
| private JavaSupport | |
| private final JITCompiler | |
| private final JRubyClassLoader | |
| private KCode | |
| private final RubyModule | kernelModule
All the core modules we keep direct references to, for quick access and to ensure they remain available. |
| private RubyClass | |
| private RubyClass | |
| private final LoadService | |
| private RubyClass | |
| private RubyClass | |
| private static final Logger | LOG
The logger used to log relevant bits. |
| private final RubyModule | |
| private final RubyClass | |
| private RubyClass | |
| private final RubyModule | |
| private final RubyClass | |
| private static final VarHandle | |
| private final RubyClass | |
| private volatile int | |
| private final AtomicInteger | |
| private final RubyClass | |
| private RubyClass | |
| private RubyClass | |
| private RubyClass | |
| private POSIX | |
| public static final int | |
| private final RubyClass | |
| private final RubyString | |
| private final RubyNil | |
| private final IRubyObject[] | |
| private final RubyString | |
| private RubyClass | |
| private RubyClass | |
| private RubyClass | |
| private RubyClass | |
| private DynamicMethod | |
| private RubyClass | |
| private MethodHandle | nullToNil
The nullToNil filter for this runtime. |
| private MethodHandle | |
| private final RubyClass | |
| private final RubyClass | |
| private final ObjectSpace | |
| private volatile boolean | |
| private final RubyModule | |
| private final Ruby. | |
| private final RubyObjectSpecializer | |
| private IRubyObject | |
| private PrintStream | |
| pack-priv ParserManager | |
| private RubyClass | |
| public final ClassValue | |
| private final POSIX | |
| private final List | postExitBlocks
Registry of shutdown operations that should happen after all user code has been run (e.g. at_exit hooks). |
| private RubyModule | |
| private DynamicMethod | |
| private final RubyClass | |
| private final RubyModule | |
| private RubyModule | |
| private RubyClass | |
| private RubyModule | |
| private RubyModule | |
| private final RubyClass | |
| private Profile | |
| private final ProfilingServiceLookup | profilingServiceLookup
Used to find the ProfilingService implementation to use. |
| private DynamicMethod | |
| private final RubyClass | |
| pack-priv final Random | random
The runtime-local random number generator. |
| private final RubyClass | |
| private final RubyClass | |
| private RubyClass | |
| private final RubyClass | |
| private GlobalVariable | |
| private final RubyClass | |
| private final RubyClass | |
| private RubyClass | |
| private IRubyObject | |
| private RubyClass | |
| private final WarnCallback | |
| private boolean | |
| private DynamicMethod | |
| private DynamicMethod | |
| pack-priv static final String | |
| private static final AtomicInteger | |
| private final Runtime | |
| private final RuntimeCache | |
| private RubyClass | |
| private final boolean | |
| private final int | |
| private RubyClass | |
| private RubyClass | |
| private static volatile boolean | |
| private final SelectorPool | |
| private RubyClass | |
| private final IRubyObject[] | |
| private boolean | |
| public final JavaSites | |
| private final RubyClass | |
| private RubyClass | |
| private final long | |
| private final StaticScopeFactory | |
| public static final String | |
| private RubyClass | |
| private final RubyClass | |
| private final Map | |
| private final RubyClass | |
| private DynamicMethod | |
| private final RubyClass | |
| private final AtomicInteger | |
| private final RubySymbol. | |
| private RubyClass | |
| private RubyClass | |
| private RubyClass | |
| private RubyClass | |
| private final RubyClass | |
| private RubyClass | |
| private final RubyClass | |
| private static final ThreadLocal | threadLocalRuntime
The "thread local" runtime. |
| private ThreadService | |
| private final EnumMap | |
| private final RubyClass | |
| private final Map | |
| private RubyClass | |
| private RubyBinding | |
| private final IRubyObject | |
| private final TraceEventManager | |
| private final RubyClass | |
| private final RubyBoolean | |
| private final RubyString | |
| private RubyClass | |
| pack-priv transient RubyString | |
| private final RubyClass | |
| private RubyClass | |
| private RubyClass | |
| private DynamicMethod | |
| private boolean | |
| private IRubyObject | |
| private boolean | |
| private static final VarHandle | |
| private final Set | |
| private volatile int | |
| private final RubyModule | |
| private final RubyWarnings | |
| private boolean | |
| private final RubyClass | |
| private RubyClass |
| Access | Constructor and Description |
|---|---|
| private | Ruby(RubyInstanceConfig
The configuration to use for the new instance config)Create and initialize a new JRuby runtime. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| private Invalidator | |
| public synchronized void | |
| public void | |
| public void | |
| public void | addModule(RubyModule
the true module to add to the allModules collection module)A collection of all natural Module instances in the system. |
| pack-priv void | addProfiledMethod(final String
raw name String of the method to be profiled id, final DynamicMethod method)Add a method, so it can be printed out later. |
| public void | |
| public int | |
| public int | |
| private boolean | |
| private RubyString. | Returns: the deduped version of the fstringthe fstring to dedup if an equivalent does not already exist candidateInsert the given FString into the deduplicated FString cache, or retrieve the equivalent FString from the cache. |
| public void | callEventHooks(ThreadContext context, RubyEvent event, String file, int line, String name, IRubyObject type)
Deprecated
|
| public static void | |
| public void | |
| public Object | |
| private void | createSysErr(ThreadContext context, int
the error code (will probably use a java exception instead) i, String of the error to define. name)Creates a system error. |
| public RubyClass | Returns: The new classThe name for the new class name, RubyClass The super class for the new class superClass, ObjectAllocator An ObjectAllocator instance that can construct
instances of the new class. allocator, CallSite[] callSites)
Deprecated
since 10.0.
A variation of defineClass that allows passing in an array of supplementary call sites for improving dynamic invocation performance. |
| public RubyClass | |
| public RubyClass | Returns: The new classThe name for the new class name, RubyClass The super class for the new class superClass, ObjectAllocator An ObjectAllocator instance that can construct
instances of the new class. allocator, RubyModule The namespace under which to define the new class parent)
Deprecated
since 10.0.
Define a new class with the given name under the given module or class namespace. |
| public RubyClass | defineClassUnder(String id, RubyClass superClass, ObjectAllocator allocator, RubyModule parent, CallSite[] callSites)
Deprecated
since 10.0.
|
| public RubyClass | Returns: The new classthe current thread context context, String The name for the new class as an ISO-8859_1 String (id-value) id, RubyClass The super class for the new class superClass, ObjectAllocator An ObjectAllocator instance that can construct
instances of the new class. allocator, RubyModule The namespace under which to define the new class parent, CallSite[] The array of call sites to add callSites)A variation of defineClassUnder that allows passing in an array of supplementary call sites to improve dynamic invocation. |
| public void | |
| public void | defineGlobalConstant(String
the name name, IRubyObject the value value)
Deprecated
since 10.0. Use
RubyModule#defineConstant(ThreadContext, String, IRubyObject) with a reference
to Object.
rb_define_global_const Define a constant on the global namespace (i.e. Object) with the given name and value. |
| public RubyModule | Returns: The new moduleThe name of the new module name)
Deprecated
since 10.0.
Define a new module under the Object namespace. |
| public RubyModule | Returns: The new moduleThe name for the new class name)This is only for defining kernel. |
| public RubyModule | |
| public RubyModule | Returns: The new moduleThe name of the new module name, RubyModule The class or module namespace under which to define the
module parent)Define a new module with the given name under the given module or class namespace. |
| public void | defineReadonlyVariable(String name, IRubyObject value, GlobalVariable.
defines a readonly global variable |
| public void | |
| private RubyClass | |
| private IRubyObject | |
| private boolean | |
| public void | eachModule(Consumer<RubyModule>
the consumer to call for each module func)Walk all natural Module instances in the system. |
| private byte[] | |
| public IRubyObject | Returns: The result of the evalThe scriptlet to run script)Evaluates a script under the current scope (perhaps the top-level scope) and returns the result (generally the last value calculated). |
| public IRubyObject | Returns: The result of the evalThe scriptlet to run script, DynamicScope The scope to execute against (ManyVarsDynamicScope is
recommended, so it can grow as needed) scope)Evaluates a script under the current scope (perhaps the top-level scope) and returns the result (generally the last value calculated). |
| public IRubyObject | Returns: The last value of the scriptThe contents of the script to run as a normal, root script script, String filename)Parse and execute the specified script This differs from the other methods in that it accepts a string-based script and parses and runs it as though it were loaded at a command-line. |
| public RubyClass | fastGetClass(String
the name of the class; must be an interned String! internedName)
Deprecated
Retrieve the class with the given name from the Object namespace. |
| public RubySymbol | Returns: the symbol for namethe symbol name, must be interned! if in
doubt, call internedName)newSymbol(String) instead.Faster than |
| public IRubyObject | Returns: the valuethe name name)
Deprecated
since 10.0.
Fetch a constant from the global namespace (i.e. Object) with the given name. |
| private RubyClass | foundExistingClass(ThreadContext context, String id, RubyClass superClass, ObjectAllocator allocator, IRubyObject obj)
|
| private RubyModule | foundExistingModule(ThreadContext context, RubyModule parent, IRubyObject moduleObj, boolean parentIsObject)
|
| public RubyString | Returns: the deduplicated FString version of the stringthe string to deduplicate if an equivalent does not already exist string)Given a Ruby string, cache a deduplicated FString version of it, or find an existing copy already prepared. |
| public RubyString | Returns: the deduplicated FString version of the ByteListthe ByteList to deduplicate if an equivalent does not already exist bytes)Given a ByteList, cache a deduplicated FString version of it, or find an existing copy already prepared. |
| public IRubyObject | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public int | |
| public DynamicMethod | |
| public RubyClass | |
| public BeanManager | |
| public RubyClass | |
| public RubyClass | |
| public Map | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public List | |
| public Caches | |
| public int | |
| public RubyClass | |
| public RubyStackTraceElement | |
| public RubyThread | |
| public Invalidator | |
| public RubyClass | |
| public RubyClass | |
| public RubyModule | |
| public RubyModule | Returns: the module or null when flexible search is false and a constant cannot be found.the path to be searched. path, RubyClass exception type to be thrown when it cannot be found. undefinedExceptionClass, boolean use getConstant vs getConstantAt (former will find inherited constants from parents and fire const_missing). flexibleSearch)Find module from a string (e.g. Foo, Foo::Bar::Car). |
| public static ClassLoader | |
| public RubyClass | |
| public RubyModule | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public Invalidator | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public CoverageData | |
| public ThreadContext | |
| public String | |
| public int | |
| public RubyClass | |
| public RubyClass | |
| public IRubyObject | |
| public Charset | getDefaultCharset()
Get the default java.nio.charset.Charset for the current default internal encoding. |
| public Encoding | Returns: the default encoding used for new Ruby stringsReturn the default internal encoding, if set, or UTF-8 by default. |
| public Encoding | |
| public Encoding | |
| public Encoding | Returns: null or encodingThis is an internal encoding if actually specified via default_internal= or passed in via -E. |
| public DynamicMethod | |
| public RubyRandom | |
| public RubyThreadGroup | |
| public RubyString | |
| public RubyClass | |
| public RubyClass | |
| public RubyArray | |
| public RubyString | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public EncodingService | |
| public RubyModule | |
| public RubyClass | |
| public RubyHash | |
| public RubyClass | |
| public PrintStream | |
| public RubyClass | |
| public RubyModule | |
| public PrintStream | |
| public RubyModule | |
| public RubyClass | |
| public int | |
| public ExecutorService | |
| public RubyBoolean | |
| public RubyClass | |
| public RubyString | |
| public RubyClass | |
| public FFI | |
| public RubyClass | |
| public RubyClass | |
| public ExecutorService | |
| public RubyClass | |
| public FilenoUtil | |
| public RubyClass | |
| public RubyModule | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public RubyModule | |
| public RubyClass | |
| public static synchronized Ruby | |
| public GlobalVariables | |
| public IRubyObject | |
| public RubyClass | |
| public long | |
| public long | |
| public Object | Returns: The object to use for locking when modifying the hierarchyGet the global object used to synchronize class-hierarchy modifications like cache invalidation, subclass sets, and included hierarchy sets. |
| public InputStream | |
| public RubyClass | |
| public InlineStats | |
| public InputStream | |
| public RubyInstanceConfig | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public IRManager | |
| public Map | Returns: Class$ -> extension initializer mapNote Internal API, subject to change!
|
| public JavaSupport | |
| public JITCompiler | |
| public JRubyClassLoader | |
| public String | |
| public KCode | |
| public RubyModule | |
| public RubyClass | |
| public RubyClass | |
| public LoadService | |
| public RubyClass | |
| public RubyClass | |
| public RubyModule | |
| public RubyClass | |
| public RubyModule | |
| public RubyClass | |
| public RubyClass | |
| public RubyModule | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public POSIX | Returns: a native POSIX, or null if native is not supportedGet the native POSIX associated with this runtime. |
| public long | Returns: a new serial numberGet a new serial number for a new DynamicMethod instance |
| public int | Returns: a new generation numberGet a new generation number for a module or class. |
| public IRubyObject | |
| public RubyClass | |
| public RubyString | |
| public IRubyObject[] | |
| public RubyString | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public DynamicMethod | |
| public RubyClass | |
| public MethodHandle | Returns: a method handle suitable for filtering a single IRubyObject value from null to nilGet the "nullToNil" method handle filter for this runtime. |
| public MethodHandle | |
| public RubyClass | |
| public RubyClass | |
| public ObjectSpace | |
| public RubyModule | |
| public RubyObjectSpecializer | |
| public RubyModule | Returns: The existing or new moduleThe name of the module id)
Deprecated
since 10.0. Use
org. OR
org..
From Object, retrieve the named module. |
| public IRubyObject | Returns: the original stderr with which this runtime was initializedReturn the original stderr with which this runtime was initialized. |
| public PrintStream | |
| public PrintStream | |
| public Parser | |
| public ParserManager | |
| public IRubyObject | |
| public POSIX | |
| public RubyModule | |
| public DynamicMethod | |
| public RubyClass | |
| public RubyModule | |
| public RubyModule | |
| public RubyClass | |
| public RubyModule | |
| public RubyModule | |
| public RubyClass | |
| public Profile | |
| public ProfilingService | Returns: the, for this ruby instance, configured implementation of ProfilingService, or null
|
| private ProfilingServiceLookup | Returns: #profilingServiceLookupSimple getter for #profilingServiceLookup to avoid direct property access |
| public DynamicMethod | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public GlobalVariable | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| pack-priv WarnCallback | |
| public IRubyObject | |
| public DynamicMethod | |
| public DynamicMethod | |
| public IRubyObject | |
| public RuntimeCache | getRuntimeCache()
Get the core class RuntimeCache instance, for doing dynamic calls from core class methods. |
| public RubyClass | |
| public int | |
| public RubyClass | |
| public SelectorPool | Returns: a SelectorPool from which to getService Selector instancesGet the runtime-global selector pool |
| public RubyClass | |
| public IRubyObject[] | |
| public RubyClass | |
| public RubyClass | |
| public long | |
| public StaticScopeFactory | |
| public IRubyObject | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public DynamicMethod | |
| public RubyClass | |
| public RubySymbol. | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public static Ruby | Returns: the thread-local runtime, or null if unsetGet the thread-local runtime for the current thread, or null if unset. |
| public ThreadService | |
| public RubyString | |
| public RubyClass | |
| public Map | |
| public IRubyObject | |
| public RubyBinding | |
| public IRubyObject | |
| public TraceEventManager | |
| public RubyBoolean | |
| public RubyClass | |
| public RubyString | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public RubyClass | |
| public DynamicMethod | |
| public IRubyObject | |
| public RubyModule | |
| public Set | Returns: a set of the currently-enabled warning categoriesGet the current enabled warning categories. |
| public int | |
| public RubyWarnings | |
| public RubyClass | |
| public RubyClass | |
| public boolean | |
| private void | |
| public void | |
| public void | |
| public void | |
| public void | |
| private void | |
| private RubyClass | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private JRubyClassLoader | |
| private Ruby. | |
| private void | |
| private Random | |
| private void | |
| private void | |
| private void | |
| private static IRubyObject | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public static boolean | Returns: true if a global runtime is instantiated, false for other.Tests whether globalRuntime has been instantiated or not. |
| public boolean | |
| private static boolean | |
| public boolean | |
| public boolean | |
| public static boolean | |
| public boolean | |
| public boolean | |
| private void | |
| public < the enum type, which must implement C extends EnumConstant. | loadConstantSet(RubyModule
the module in which we want to define the constants module, Class<C> the enum class of the constants to define enumClass)
Deprecated
since 10.0. Use
org. instead.
Define all constants from the given jnr-constants enum which are defined on the current platform. |
| public void | loadConstantSet(RubyModule
the module in which we want to define the constants module, String the name of the constant set from which to get the constants constantSetName)
Deprecated
since 10.0.
Define all constants from the named jnr-constants set which are defined on the current platform. |
| public void | loadExtension(String
The name of the extension, to go on the frame wrapping it extName, BasicLibraryService The extension object to load extension, boolean Whether to use a new "self" for toplevel wrap)Load the given BasicLibraryService instance, wrapping it in Ruby framing to ensure it is isolated from any parent scope. |
| public void | |
| public JavaSupport | |
| private void | |
| public void | |
| public void | |
| public void | |
| public RaiseException | |
| public RaiseException | newArgumentError(int got, int expected)
Deprecated
since 10.0. Use
org. instead.
|
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RubyArray | |
| public RubyArray | |
| public RubyArray | |
| public RubyArray | |
| public RubyArray | |
| public RubyArray | |
| public RubyArray | |
| public RubyArray | |
| public RubyArray | |
| public RubyBinding | |
| public RubyBinding | |
| public RubyProc | |
| public RubyBoolean | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RubyObject. | |
| public RubyString | |
| public RubyArray | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RubyFileStat | |
| public RubyFileStat | |
| public RubyFixnum | |
| public RubyFixnum | |
| public RubyFixnum | |
| public RubyFloat | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public static Ruby | Returns: the JRuby runtimeReturns a new instance of the JRuby runtime configured with defaults. |
| public static Ruby | Returns: The JRuby runtimeThe instance configuration config)Returns a new instance of the JRuby runtime configured as specified. |
| public static Ruby | Returns: the JRuby runtimethe custom input stream in, PrintStream the custom output stream out, PrintStream the custom error stream err)Returns a new instance of the JRuby runtime configured with the given input, output and error streams and otherwise default configuration (except where specified system properties alter defaults). |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | Returns: a fully-prepared IOError throwablethe message for the new IOError message)Prepare a throwable IOError with the given message. |
| public RaiseException | newIOErrorFromException(final IOException ex)
Java does not give us enough information for specific error conditions so we are reduced to divining them through string matches... |
| public RaiseException | |
| private RaiseException | newLightweightErrnoException(RubyClass exceptionClass, String message)
Generate one of the ERRNO exceptions. |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | Returns: a new NameErroran sprintf format string for the message message, IRubyObject the receiver object recv, IRubyObject the name that failed name, boolean whether the failure was due to method visibility privateCall)Construct a NameError that formats its message with an sprintf format string. |
| public RaiseException | newNameError(String message, IRubyObject recv, String name)
Construct a NameError that formats its message with an sprintf format string. |
| public RaiseException | newNameError(String message, IRubyObject recv, String name, boolean privateCall)
Construct a NameError that formats its message with an sprintf format string and has private_call? |
| public RaiseException | Returns: a new NameErrorthe pre-formatted message for the NameError message, String the name that failed name, Throwable the original exception, or null exception, boolean whether to log this exception when verbose mode is enabled printWhenVerbose)Construct a NameError with the given pre-formatted message, name, and optional original exception. |
| public RaiseException | |
| public RaiseException | Returns: a new NameErrorthe pre-formatted message for the error message, String the name that failed name)
Deprecated
since 10.0. Use
org.
Construct a NameError with a pre-formatted message and name. |
| public RaiseException | newNameError(String message, IRubyObject name)
Deprecated
since 10.0. Use
org.
|
| public RaiseException | Returns: a new NameErrora formatted string message for the error message, String the name that failed name, Throwable the original exception, or null if none origException)
Deprecated
since 10.0. Use
org. instead.
Construct a NameError with an optional originating exception and a pre-formatted message. |
| public RaiseException | newNoMethodError(String message, IRubyObject recv, String name, RubyArray<T extends IRubyObject> args)
|
| public RaiseException | Returns: a new NoMethodErrorConstruct a NoMethodError that formats its message with an sprintf format string. |
| public RaiseException | Returns: a new NoMethodErrorthe pre-formatted message message, String the name that failed name, IRubyObject the original arguments to the call that failed args)Construct a NoMethodError with a pre-formatted message. |
| public RaiseException | |
| public RubyNumeric | |
| public RubyProc | |
| public RaiseException | Returns: a new RaiseException wrapping a new Ruby exceptionthe exception class from which to construct the exception object exceptionClass, String a simple message for the exception message)Construct a new RaiseException wrapping a new Ruby exception object appropriate to the given exception class. |
| public RaiseException | |
| public RubyRational | |
| public RubyRational | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | newStopIteration(IRubyObject result, String
the message for the exception message)Generate a StopIteration exception. |
| public RubyString | |
| public RubyString | |
| public RubyString | |
| public RubySymbol | |
| public RubySymbol | |
| public RubySymbol | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RubyTime | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public RaiseException | |
| public Node | parse(ByteList content, String file, DynamicScope scope, int lineNumber, boolean extraPositionInformation)
Deprecated
|
| public Node | |
| public ParseResult | |
| public Node | |
| public ParseResult | |
| public Node | |
| public ParseResult | |
| private Node | parseFileAndGetAST(InputStream in, String file, DynamicScope scope, int lineNumber, boolean isFromMain)
Deprecated
|
| public Node | |
| public ParseResult | |
| private Node | |
| public Node | Returns: The root node of the parsed scriptThe input stream from which to read the script inputStream, String The filename to use for parsing filename)
Deprecated
Parse the script contained in the given input stream, using the given filename as the name of the script, and return the root Node. |
| public ParseResult | |
| public Node | |
| private ScriptAndCode | |
| public void | printError(final RubyException ex)
Prints a Ruby exception with backtrace to the configured stderr stream. |
| public void | |
| public void | printErrorString(String
the string to print msg)Prints a string directly to the stderr channel, if default, or via dynamic dispatch otherwise. |
| public void | printErrorString(byte[]
the string to print msg)Prints a string directly to the stderr channel, if default, or via dynamic dispatch otherwise. |
| public synchronized void | |
| public void | pushEndBlock(RubyProc proc)
It is possible for looping or repeated execution to encounter the same END block multiple times. |
| public IRubyObject | Returns: the element that was pushed onto stackPush block onto exit stack. |
| public void | pushExitFunction(Ruby.
the function to be run funcAdd an exit function to be run on runtime exit. |
| public void | pushPostExitFunction(Ruby.
the postExitExitFunction to run after user exit hooks have completedAdd a post-termination exit function that should be run to shut down JRuby internal services. |
| public void | |
| public void | |
| pack-priv void | |
| public void | releaseClassLoader()
By default |
| public void | |
| public synchronized void | |
| public void | |
| public void | |
| public void | runFromMain(InputStream
The InputStream from which to read the script contents inputStream, String The filename to use when parsing, and for $PROGRAM_NAME
and $0 ruby global variables. filename)Run the script contained in the specified input stream, using the specified filename as the name of the script being executed. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | runInterpreterBody(Node scriptNode)
This is used for the "gets" loop, and we bypass 'load' to use an already-prepared, already-pushed scope for the script body. |
| public IRubyObject | Returns: The result of executing the scriptThe root node of the script to be executed
bytecode before execution scriptNode, boolean whether to wrap the execution in an anonymous module wrap)
Deprecated
Run the specified script without any of the loop-processing wrapper code. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | Returns: The result of executing the scriptThe root node of the script to be executed
bytecode before execution scriptNode)
Deprecated
Run the specified script without any of the loop-processing wrapper code. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | runScriptBody(Script script)
This is used for the "gets" loop, and we bypass 'load' to use an already-prepared, already-pushed scope for the script body. |
| public IRubyObject | Returns: The result of executing the specified scriptThe root node of the script to execute scriptNode, boolean Whether $_ should be printed after each loop (as in the
-p command-line flag) printing, boolean Whether line endings should be processed by
setting $\ to $/ and processLineEnds, boolean chop!ing every line readWhether to split each line read using split)String#split
bytecode before executing.Run the given script with a "while gets; end" loop wrapped around it. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| pack-priv void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| private static synchronized void | setGlobalRuntimeFirstTimeOnly(Ruby
the runtime to use for global runtime runtime)Set the global runtime to the given runtime only if it has no been set. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| pack-priv void | |
| public void | |
| pack-priv void | |
| public void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public static void | |
| public void | |
| public static void | setThreadLocalRuntime(Ruby
the new runtime for thread-local ruby)Set the thread-local runtime to the given runtime. |
| pack-priv void | |
| public void | |
| public void | |
| public void | |
| public Encoding | |
| public StaticScope | |
| public void | |
| public void | setVerbose(final IRubyObject
the verbose ruby value verbose)Sets the runtime verbosity ($VERBOSE global which usually gets set to nil/false or true). |
| public void | |
| public void | setWarningsEnabled(final boolean warningsEnabled)
Setter that enables/disabled warnings (without changing verbose mode). |
| private void | |
| public void | |
| public void | |
| public Script | |
| public Script | Returns: an instance of the successfully-compiled Script, or null.The result to attempt to compiled result)Try to compile the code associated with the given Node, returning an instance of the successfully-compiled Script or null if the script could not be compiled. |
| private ScriptAndCode | |
| private Script | |
| public void | |
| public void | useAsGlobalRuntime()
Convenience method for java integrators who may need to switch the notion of "global" runtime. |
| private int | |
| public boolean | Returns: whether warnings are enabledIf the user explicitly disabled warnings using: |
| private void |