| Modifier and Type | Class and Description |
|---|---|
| public static class | JRubyUtilLibrary.
Deprecated
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static IRubyObject | cache_stats(ThreadContext context, IRubyObject self)
Provide stats on how many method and constant invalidations have occurred globally. |
| public static IRubyObject | Returns: an enumerable of class-loader resources(name, raw: false, path: false) args)Note class_loader_resources alias exists since 9.2 |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| private static Object | |
| public static RubyArray | internal_libraries(ThreadContext context, IRubyObject self)
Deprecated
since 9.4-.
Return a list of files and extensions that JRuby treats as internal (or "built-in"), skipping load path and filesystem search. |
| public void | |
| public static IRubyObject | Returns: loading outcomePrefered way to boot-up JRuby extensions (available as |
| public static IRubyObject | Returns: Java class (wrapper) or raises a NameError if loading fails or class is not foundthe class name name)Loads a (Java) class. |
| private static boolean | |
| public static IRubyObject | |
| public static IRubyObject | Returns: the object giventhe current context context, IRubyObject the JRuby module recv, IRubyObject the object to notify arg)Notify one waiter on a locked object, as in Object |
| public static IRubyObject | Returns: the object giventhe current context context, IRubyObject the JRuby module recv, IRubyObject the object to notify arg)Notify all waiters on a locked object, as in Object |
| public static IRubyObject | Returns: the return value of the blockthe current context context, IRubyObject the JRuby module recv, IRubyObject the object against which to synchronize arg, Block the block to execute block)Invoke the given block under synchronized lock, using standard Java synchronization. |
| public static IRubyObject | safe_recurse(ThreadContext context, IRubyObject utilModule, IRubyObject state, IRubyObject obj, IRubyObject name, Block block)
|
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | Returns: the object giventhe current context context, IRubyObject the JRuby module recv, IRubyObject the object to wait for arg)Wait for a locked object to notify, as in Object |
| public static IRubyObject | Returns: the object giventhe current context context, IRubyObject the JRuby module recv, IRubyObject the object to wait for arg, IRubyObject the time in millis to wait (converted using #to_int) timeoutMillis)Wait for a locked object to notify, as in Object |
| public static IRubyObject | Returns: the object giventhe current context context, IRubyObject the JRuby module recv, IRubyObject the object to wait for arg, IRubyObject the time in millis to wait (converted using #to_int) timeoutMillis, IRubyObject the time in nanos to wait (converted using #to_int, and truncated to a signed 32-bit integer) timeoutNanos)Wait for a locked object to notify, as in Object |
| JRubyUtilLibrary | back to summary |
|---|---|
| public JRubyUtilLibrary() | |
| cache_stats | back to summary |
|---|---|
| public static IRubyObject cache_stats(ThreadContext context, IRubyObject self) Provide stats on how many method and constant invalidations have occurred globally. This was added for Pry in https://github.com/jruby/jruby/issues/4384
| |
| class_loader_resources | back to summary |
|---|---|
| public static IRubyObject class_loader_resources(ThreadContext context, IRubyObject recv, IRubyObject... args) Note class_loader_resources alias exists since 9.2
| |
| classpath_launcher | back to summary |
|---|---|
public static IRubyObject classpath_launcher(ThreadContext context, IRubyObject recv)
| |
| current_directory | back to summary |
|---|---|
public static IRubyObject current_directory(ThreadContext context, IRubyObject recv)
| |
| extra_gem_paths | back to summary |
|---|---|
public static IRubyObject extra_gem_paths(ThreadContext context, IRubyObject recv)
| |
| gc | back to summary |
|---|---|
public static IRubyObject gc(ThreadContext context, IRubyObject recv)
| |
| getClassLoaderResources | back to summary |
|---|---|
| public static IRubyObject getClassLoaderResources(IRubyObject recv, IRubyObject name)
Deprecated
| |
| getObjectSpaceEnabled | back to summary |
|---|---|
public static IRubyObject getObjectSpaceEnabled(ThreadContext context, IRubyObject recv)
| |
| getObjectSpaceEnabled | back to summary |
|---|---|
| public static IRubyObject getObjectSpaceEnabled(IRubyObject recv)
Deprecated since 9.4-.
| |
| getSyncObject | back to summary |
|---|---|
| private static Object getSyncObject(IRubyObject arg) | |
| internal_libraries | back to summary |
|---|---|
| public static RubyArray Deprecated since 9.4-. Return a list of files and extensions that JRuby treats as internal (or "built-in"), skipping load path and filesystem search. This was added for Bootsnap
| |
| load | back to summary |
|---|---|
| public void load(Ruby runtime, boolean wrap) Implements org. | |
| load_ext | back to summary |
|---|---|
| public static IRubyObject load_ext(ThreadContext context, IRubyObject recv, IRubyObject klass) Prefered way to boot-up JRuby extensions (available as
| |
| load_java_class | back to summary |
|---|---|
| public static IRubyObject load_java_class(ThreadContext context, IRubyObject recv, IRubyObject name) Loads a (Java) class.
| |
| loadExtension | back to summary |
|---|---|
| private static boolean loadExtension(ThreadContext context, final String className) | |
| native_posix_p | back to summary |
|---|---|
public static IRubyObject native_posix_p(ThreadContext context, IRubyObject self)
| |
| notify | back to summary |
|---|---|
| public static IRubyObject notify(ThreadContext context, IRubyObject recv, IRubyObject arg) Notify one waiter on a locked object, as in Object
| |
| notifyAll | back to summary |
|---|---|
| public static IRubyObject notifyAll(ThreadContext context, IRubyObject recv, IRubyObject arg) Notify all waiters on a locked object, as in Object
| |
| rbSynchronized | back to summary |
|---|---|
| public static IRubyObject rbSynchronized(ThreadContext context, IRubyObject recv, IRubyObject arg, Block block) Invoke the given block under synchronized lock, using standard Java synchronization.
| |
| safe_recurse | back to summary |
|---|---|
public static IRubyObject safe_recurse(ThreadContext context, IRubyObject utilModule, IRubyObject state, IRubyObject obj, IRubyObject name, Block block)
| |
| set_last_exit_status | back to summary |
|---|---|
public static IRubyObject set_last_exit_status(ThreadContext context, IRubyObject recv, IRubyObject status, IRubyObject pid)
| |
| set_meta_class | back to summary |
|---|---|
public static IRubyObject set_meta_class(ThreadContext context, IRubyObject recv, IRubyObject obj, IRubyObject klass)
| |
| setObjectSpaceEnabled | back to summary |
|---|---|
| public static IRubyObject setObjectSpaceEnabled(IRubyObject recv, IRubyObject arg)
Deprecated since 10.0.
| |
| setObjectSpaceEnabled | back to summary |
|---|---|
public static IRubyObject setObjectSpaceEnabled(ThreadContext context, IRubyObject recv, IRubyObject arg)
| |
| wait | back to summary |
|---|---|
| public static IRubyObject wait(ThreadContext context, IRubyObject recv, IRubyObject arg) throws InterruptedException Wait for a locked object to notify, as in Object
| |
| wait | back to summary |
|---|---|
| public static IRubyObject wait(ThreadContext context, IRubyObject recv, IRubyObject arg, IRubyObject timeoutMillis) throws InterruptedException Wait for a locked object to notify, as in Object
| |
| wait | back to summary |
|---|---|
| public static IRubyObject wait(ThreadContext context, IRubyObject recv, IRubyObject arg, IRubyObject timeoutMillis, IRubyObject timeoutNanos) throws InterruptedException Wait for a locked object to notify, as in Object
| |
Deprecated
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static IRubyObject |
| StringUtils | back to summary |
|---|---|
| public StringUtils() | |
| unseeded_hash | back to summary |
|---|---|
| public static IRubyObject unseeded_hash(ThreadContext context, IRubyObject recv) | |