public class JRubyUtilLibrary extends java.lang.Object implements Library
| Modifier and Type | Class and Description |
|---|---|
static class |
JRubyUtilLibrary.StringUtils
Deprecated.
|
| Constructor and Description |
|---|
JRubyUtilLibrary() |
| Modifier and Type | Method and Description |
|---|---|
static IRubyObject |
cache_stats(ThreadContext context,
IRubyObject self)
Provide stats on how many method and constant invalidations have occurred globally.
|
static IRubyObject |
class_loader_resources(ThreadContext context,
IRubyObject recv,
IRubyObject... args) |
static IRubyObject |
classpath_launcher(ThreadContext context,
IRubyObject recv) |
static IRubyObject |
current_directory(ThreadContext context,
IRubyObject recv) |
static IRubyObject |
extra_gem_paths(ThreadContext context,
IRubyObject recv) |
static IRubyObject |
gc(ThreadContext context,
IRubyObject recv) |
static IRubyObject |
getClassLoaderResources(IRubyObject recv,
IRubyObject name)
Deprecated.
|
static IRubyObject |
getObjectSpaceEnabled(IRubyObject recv) |
static RubyArray |
internal_libraries(ThreadContext context,
IRubyObject self)
Deprecated.
|
static IRubyObject |
load_ext(ThreadContext context,
IRubyObject recv,
IRubyObject klass)
Preffered way to boot-up JRuby extensions (available as
>JRuby.load_ext). |
static IRubyObject |
load_java_class(ThreadContext context,
IRubyObject recv,
IRubyObject name)
Loads a (Java) class.
|
void |
load(Ruby runtime,
boolean wrap) |
static IRubyObject |
native_posix_p(ThreadContext context,
IRubyObject self) |
static IRubyObject |
notify(ThreadContext context,
IRubyObject recv,
IRubyObject arg)
Notify one waiter on a locked object, as in Object
Object.notify()
The object given must be locked using JRuby.synchronized or a similar Java monitor-based locking mechanism. |
static IRubyObject |
notifyAll(ThreadContext context,
IRubyObject recv,
IRubyObject arg)
Notify all waiters on a locked object, as in Object
Object.notifyAll()
The object given must be locked using JRuby.synchronized or a similar Java monitor-based locking mechanism. |
static IRubyObject |
rbSynchronized(ThreadContext context,
IRubyObject recv,
IRubyObject arg,
Block block)
Invoke the given block under synchronized lock, using standard Java synchronization.
|
static IRubyObject |
set_last_exit_status(ThreadContext context,
IRubyObject recv,
IRubyObject status,
IRubyObject pid) |
static IRubyObject |
set_meta_class(ThreadContext context,
IRubyObject recv,
IRubyObject obj,
IRubyObject klass) |
static IRubyObject |
setObjectSpaceEnabled(IRubyObject recv,
IRubyObject arg) |
static IRubyObject |
wait(ThreadContext context,
IRubyObject recv,
IRubyObject arg)
Wait for a locked object to notify, as in Object
Object.wait(). |
static IRubyObject |
wait(ThreadContext context,
IRubyObject recv,
IRubyObject arg,
IRubyObject timeoutMillis)
Wait for a locked object to notify, as in Object
Object.wait(long). |
static IRubyObject |
wait(ThreadContext context,
IRubyObject recv,
IRubyObject arg,
IRubyObject timeoutMillis,
IRubyObject timeoutNanos)
Wait for a locked object to notify, as in Object
Object.wait(long, int). |
public static IRubyObject gc(ThreadContext context, IRubyObject recv)
public static IRubyObject getObjectSpaceEnabled(IRubyObject recv)
public static IRubyObject setObjectSpaceEnabled(IRubyObject recv, IRubyObject arg)
public static IRubyObject native_posix_p(ThreadContext context, IRubyObject self)
@Deprecated public static IRubyObject getClassLoaderResources(IRubyObject recv, IRubyObject name)
public static IRubyObject load_java_class(ThreadContext context, IRubyObject recv, IRubyObject name)
context - recv - name - the class namepublic static IRubyObject class_loader_resources(ThreadContext context, IRubyObject recv, IRubyObject... args)
context - recv - args - (name, raw: false, path: false)public static IRubyObject classpath_launcher(ThreadContext context, IRubyObject recv)
public static IRubyObject extra_gem_paths(ThreadContext context, IRubyObject recv)
public static IRubyObject current_directory(ThreadContext context, IRubyObject recv)
public static IRubyObject set_last_exit_status(ThreadContext context, IRubyObject recv, IRubyObject status, IRubyObject pid)
public static IRubyObject set_meta_class(ThreadContext context, IRubyObject recv, IRubyObject obj, IRubyObject klass)
public static IRubyObject load_ext(ThreadContext context, IRubyObject recv, IRubyObject klass)
>JRuby.load_ext).context - recv - klass - public static IRubyObject rbSynchronized(ThreadContext context, IRubyObject recv, IRubyObject arg, Block block)
context - the current contextrecv - the JRuby modulearg - the object against which to synchronizeblock - the block to executepublic static IRubyObject wait(ThreadContext context, IRubyObject recv, IRubyObject arg) throws java.lang.InterruptedException
Object.wait().context - the current contextrecv - the JRuby modulearg - the object to wait forjava.lang.InterruptedException - if interruptedpublic static IRubyObject wait(ThreadContext context, IRubyObject recv, IRubyObject arg, IRubyObject timeoutMillis) throws java.lang.InterruptedException
Object.wait(long).
The object given must be locked using JRuby.synchronized or a similar Java monitor-based locking mechanism.context - the current contextrecv - the JRuby modulearg - the object to wait fortimeoutMillis - the time in millis to wait (converted using #to_int)java.lang.InterruptedException - if interruptedpublic static IRubyObject wait(ThreadContext context, IRubyObject recv, IRubyObject arg, IRubyObject timeoutMillis, IRubyObject timeoutNanos) throws java.lang.InterruptedException
Object.wait(long, int).
The object given must be locked using JRuby.synchronized or a similar Java monitor-based locking mechanism.context - the current contextrecv - the JRuby modulearg - the object to wait fortimeoutMillis - the time in millis to wait (converted using #to_int)timeoutNanos - the time in nanos to wait (converted using #to_int, and truncated to a signed 32-bit integer)java.lang.InterruptedException - if interruptedpublic static IRubyObject notify(ThreadContext context, IRubyObject recv, IRubyObject arg)
Object.notify()
The object given must be locked using JRuby.synchronized or a similar Java monitor-based locking mechanism.context - the current contextrecv - the JRuby modulearg - the object to notifypublic static IRubyObject notifyAll(ThreadContext context, IRubyObject recv, IRubyObject arg)
Object.notifyAll()
The object given must be locked using JRuby.synchronized or a similar Java monitor-based locking mechanism.context - the current contextrecv - the JRuby modulearg - the object to notifypublic static IRubyObject cache_stats(ThreadContext context, IRubyObject self)
@Deprecated public static RubyArray internal_libraries(ThreadContext context, IRubyObject self)
Copyright © 2001-2022 JRuby. All Rights Reserved.