public class JRubyLibrary extends java.lang.Object implements Library
require 'jruby'
, those live under JRuby::Util.
JRubyUtilLibrary
Modifier and Type | Class and Description |
---|---|
static class |
JRubyLibrary.JRubyConfig
JRuby::CONFIG
|
Constructor and Description |
---|
JRubyLibrary() |
Modifier and Type | Method and Description |
---|---|
static IRubyObject |
compile_ir(ThreadContext context,
IRubyObject recv,
IRubyObject[] args,
Block block) |
static IRubyObject |
compile(ThreadContext context,
IRubyObject recv,
IRubyObject[] args,
Block block) |
static IRubyObject |
dereference(ThreadContext context,
IRubyObject recv,
IRubyObject obj)
Unwrap the given Java-integration-wrapped object, returning the unwrapped
object.
|
static IRubyObject |
identity_hash(ThreadContext context,
IRubyObject recv,
IRubyObject obj)
Provide the "identity" hash code that System.identityHashCode would produce.
|
static RubyBoolean |
is_security_restricted(IRubyObject recv) |
static IRubyObject |
load_string_ext(ThreadContext context,
IRubyObject recv)
Deprecated.
|
void |
load(Ruby runtime,
boolean wrap) |
static IRubyObject |
parse(ThreadContext context,
IRubyObject recv,
IRubyObject[] args,
Block block) |
static IRubyObject |
reference(ThreadContext context,
IRubyObject recv,
IRubyObject obj)
Wrap the given object as in Java integration and return the wrapper.
|
static IRubyObject |
reference0(ThreadContext context,
IRubyObject recv,
IRubyObject obj)
Wrap the given object as in Java integration and return the wrapper.
|
static IRubyObject |
runtime(ThreadContext context,
IRubyObject recv) |
static IRubyObject |
set_context_class_loader(ThreadContext context,
IRubyObject recv,
IRubyObject[] args) |
static IRubyObject |
set_security_restricted(IRubyObject recv,
IRubyObject arg) |
static IRubyObject |
subclasses(ThreadContext context,
IRubyObject recv,
IRubyObject arg) |
static IRubyObject |
subclasses(ThreadContext context,
IRubyObject recv,
IRubyObject arg,
IRubyObject opts) |
static IRubyObject |
with_current_runtime_as_global(ThreadContext context,
IRubyObject recv,
Block block)
Run the provided (required) block with the "global runtime" set to the current runtime,
for libraries that expect to operate against the global runtime.
|
public static IRubyObject reference(ThreadContext context, IRubyObject recv, IRubyObject obj)
public static IRubyObject reference0(ThreadContext context, IRubyObject recv, IRubyObject obj)
public static IRubyObject runtime(ThreadContext context, IRubyObject recv)
public static IRubyObject dereference(ThreadContext context, IRubyObject recv, IRubyObject obj)
public static IRubyObject with_current_runtime_as_global(ThreadContext context, IRubyObject recv, Block block)
public static IRubyObject set_context_class_loader(ThreadContext context, IRubyObject recv, IRubyObject[] args)
public static RubyBoolean is_security_restricted(IRubyObject recv)
public static IRubyObject set_security_restricted(IRubyObject recv, IRubyObject arg)
public static IRubyObject identity_hash(ThreadContext context, IRubyObject recv, IRubyObject obj)
public static IRubyObject parse(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block)
public static IRubyObject compile_ir(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block)
public static IRubyObject compile(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block)
@Deprecated public static IRubyObject load_string_ext(ThreadContext context, IRubyObject recv)
public static IRubyObject subclasses(ThreadContext context, IRubyObject recv, IRubyObject arg)
public static IRubyObject subclasses(ThreadContext context, IRubyObject recv, IRubyObject arg, IRubyObject opts)
Copyright © 2001-2021 JRuby. All Rights Reserved.