Package org.jruby
Class RubyKernel
java.lang.Object
org.jruby.RubyKernel
Note: For CVS history, see KernelModule.java.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IRubyObject__dir__(ThreadContext context, IRubyObject recv) static IRubyObject__method__(ThreadContext context, IRubyObject recv) static IRubyObject_exec_internal(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectabort(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectat_exit(ThreadContext context, IRubyObject recv, Block block) static IRubyObjectautoload(IRubyObject recv, IRubyObject symbol, IRubyObject file) Deprecated.static IRubyObjectautoload(ThreadContext context, IRubyObject recv, IRubyObject symbol, IRubyObject file) static IRubyObjectautoload_p(ThreadContext context, IRubyObject recv, IRubyObject symbol) static IRubyObjectbackquote(ThreadContext context, IRubyObject recv, IRubyObject str) static RubyBindingbinding(ThreadContext context, IRubyObject recv, Block block) static RubyBindingbinding19(ThreadContext context, IRubyObject recv, Block block) Deprecated.static RubyBooleanblock_given_p(ThreadContext context, IRubyObject recv) private static RubyStringbuildWarnMessage(ThreadContext context, int uplevel, IRubyObject arg) static IRubyObjectcaller(ThreadContext context, IRubyObject recv) static IRubyObjectcaller(ThreadContext context, IRubyObject recv, IRubyObject level) private static IRubyObjectcaller(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) Deprecated.static IRubyObjectcaller(ThreadContext context, IRubyObject recv, IRubyObject level, IRubyObject length) static IRubyObjectcaller_locations(ThreadContext context, IRubyObject recv) static IRubyObjectcaller_locations(ThreadContext context, IRubyObject recv, IRubyObject level) static IRubyObjectcaller_locations(ThreadContext context, IRubyObject recv, IRubyObject[] args) Deprecated.static IRubyObjectcaller_locations(ThreadContext context, IRubyObject recv, IRubyObject level, IRubyObject length) static IRubyObjectcaller19(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) Deprecated.static IRubyObjectcaller20(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) Deprecated.private static IRubyObjectcallerInternal(ThreadContext context, IRubyObject recv, IRubyObject level, IRubyObject length) private static IRubyObjectcallerLocationsInternal(ThreadContext context, IRubyObject level, IRubyObject length) private static booleancheckExceptionOpt(ThreadContext context, IRubyObject opts) (package private) static voidcheckExecOptions(ThreadContext context, RubyHash opts) private static RubyExceptionconvertToException(ThreadContext context, IRubyObject obj, IRubyObject optionalMessage) static RubyModulecreateKernelModule(Ruby runtime) static IRubyObjectdefine_singleton_method(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) static IRubyObjectdisplay(ThreadContext context, IRubyObject self, IRubyObject[] args) private static IRubyObject[]dropLastArgIfOptions(Ruby runtime, IRubyObject[] args) static IRubyObjectdup(IRubyObject self) static IRubyObjecteql_p(IRubyObject self, IRubyObject obj) static IRubyObjecteval(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) static IRubyObjecteval19(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) Deprecated.private static IRubyObjectevalCommon(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectexec(ThreadContext context, IRubyObject recv, IRubyObject[] args) private static IRubyObjectexecCommon(ThreadContext context, IRubyObject env, IRubyObject prog, IRubyObject options, IRubyObject[] args) private static voidexit(Ruby runtime, IRubyObject[] args, boolean hard) static IRubyObjectexit(IRubyObject recv, IRubyObject[] args) static IRubyObjectexit_bang(IRubyObject recv, IRubyObject[] args) static IRubyObjectextend(IRubyObject self, IRubyObject[] args) static IRubyObjectfork(ThreadContext context, IRubyObject recv, Block block) static IRubyObjectfork19(ThreadContext context, IRubyObject recv, Block block) Deprecated.static IRubyObjectfreeze(ThreadContext context, IRubyObject self) static RubyBooleanfrozen_p(ThreadContext context, IRubyObject self) private static BindinggetBindingForEval(ThreadContext context, IRubyObject scope) static IRubyObjectgetc(ThreadContext context, IRubyObject recv) private static RubyStringgetLastlineString(ThreadContext context, Ruby runtime) Returns value of $_.private static StringgetMethodMissingFormat(Visibility visibility, CallType callType) static IRubyObjectgets(ThreadContext context, IRubyObject recv, IRubyObject[] args) static RubyArrayglobal_variables(ThreadContext context, IRubyObject recv) static RubyArrayglobal_variables19(ThreadContext context, IRubyObject recv) Deprecated.static IRubyObjectgsub(ThreadContext context, IRubyObject recv, IRubyObject arg0, Block block) static IRubyObjectgsub(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1, Block block) static RubyFixnumhash(IRubyObject self) static IRubyObjectinitialize_clone(ThreadContext context, IRubyObject self, IRubyObject original) static IRubyObjectinitialize_copy(IRubyObject self, IRubyObject original) static IRubyObjectinitialize_dup(ThreadContext context, IRubyObject self, IRubyObject original) static IRubyObjectinspect(IRubyObject self) static RubyBooleaninstance_of_p(ThreadContext context, IRubyObject self, IRubyObject type) static IRubyObjectinstance_variable_defined_p(ThreadContext context, IRubyObject self, IRubyObject name) static IRubyObjectinstance_variable_get(ThreadContext context, IRubyObject self, IRubyObject name) static IRubyObjectinstance_variable_set(IRubyObject self, IRubyObject name, IRubyObject value) static RubyArrayinstance_variables(ThreadContext context, IRubyObject self) static RubyArrayinstance_variables19(ThreadContext context, IRubyObject self) Deprecated.static IRubyObjectitself(IRubyObject self) static RubyBooleankind_of_p(ThreadContext context, IRubyObject self, IRubyObject type) static RubyProclambda(ThreadContext context, IRubyObject recv, Block block) static IRubyObjectload(IRubyObject recv, IRubyObject[] args, Block block) Deprecated.static IRubyObjectload(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) static IRubyObjectload(ThreadContext context, IRubyObject recv, IRubyObject path, Block block) static IRubyObjectload(ThreadContext context, IRubyObject recv, IRubyObject path, IRubyObject wrap, Block block) static IRubyObjectload19(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) Deprecated.private static IRubyObjectloadCommon(Ruby runtime, RubyString path, boolean wrap, Block block) static RubyArraylocal_variables(ThreadContext context, IRubyObject recv) static RubyArraylocal_variables19(ThreadContext context, IRubyObject recv) Deprecated.static IRubyObjectloop(ThreadContext context, IRubyObject recv, Block block) private static IRubyObjectloopSize(ThreadContext context, IRubyObject self, IRubyObject[] args) A loop size method suitable for lambda method reference implementation ofRubyEnumerator.SizeFn.size(ThreadContext, IRubyObject, IRubyObject[])private static voidmaybeRaiseJavaException(Ruby runtime, IRubyObject[] args, int argc, IRubyObject cause) static IRubyObjectmethod(IRubyObject self, IRubyObject symbol) static IRubyObjectmethod_missing(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) static IRubyObjectmethod19(IRubyObject self, IRubyObject symbol) Deprecated.static IRubyObjectmethodMissing(ThreadContext context, IRubyObject recv, String name, Visibility lastVis, CallType lastCallType, IRubyObject[] args) static IRubyObjectmethodMissing(ThreadContext context, IRubyObject recv, String name, Visibility lastVis, CallType lastCallType, IRubyObject[] args, boolean dropFirst) static IRubyObjectmethodMissing(ThreadContext context, IRubyObject recv, String name, Visibility lastVis, CallType lastCallType, IRubyObject[] args, Block block) Deprecated.protected static IRubyObjectmethodMissingDirect(ThreadContext context, IRubyObject recv, RubySymbol symbol, Visibility lastVis, CallType lastCallType, IRubyObject[] args) static IRubyObjectmethods(ThreadContext context, IRubyObject self, IRubyObject[] args) static IRubyObjectmethods19(ThreadContext context, IRubyObject self, IRubyObject[] args) Deprecated.static IRubyObjectnew_array(ThreadContext context, IRubyObject recv, IRubyObject object) static IRubyObjectnew_complex(ThreadContext context, IRubyObject recv) static IRubyObjectnew_complex(ThreadContext context, IRubyObject recv, IRubyObject arg0) static IRubyObjectnew_complex(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1) static IRubyObjectnew_complex(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) (package private) static RubyFloatnew_float(Ruby runtime, RubyInteger num) static RubyFloatnew_float(Ruby runtime, IRubyObject object) static RubyFloatnew_float(IRubyObject recv, IRubyObject object) static IRubyObjectnew_float(ThreadContext context, IRubyObject object, boolean exception) static IRubyObjectnew_float(ThreadContext context, IRubyObject recv, IRubyObject object) static IRubyObjectnew_float(ThreadContext context, IRubyObject recv, IRubyObject object, IRubyObject opts) static RubyFloatnew_float19(IRubyObject recv, IRubyObject object) Deprecated.static IRubyObjectnew_hash(ThreadContext context, IRubyObject recv, IRubyObject arg) static IRubyObjectnew_integer(ThreadContext context, IRubyObject recv, IRubyObject object) static IRubyObjectnew_integer(ThreadContext context, IRubyObject recv, IRubyObject object, IRubyObject baseOrOpts) static IRubyObjectnew_integer(ThreadContext context, IRubyObject recv, IRubyObject object, IRubyObject base, IRubyObject opts) static IRubyObjectnew_integer19(ThreadContext context, IRubyObject recv, IRubyObject object) Deprecated.static IRubyObjectnew_rational(ThreadContext context, IRubyObject recv, IRubyObject arg0) static IRubyObjectnew_rational(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1) static IRubyObjectnew_rational(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) static IRubyObjectnew_string(ThreadContext context, IRubyObject recv, IRubyObject object) static IRubyObjectnew_string19(ThreadContext context, IRubyObject recv, IRubyObject object) Deprecated.static IRubyObjectnil_p(ThreadContext context, IRubyObject self) static IRubyObjectobj_to_enum(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) static IRubyObjectobject_id(IRubyObject self) private static IRubyObjectobjectSize(ThreadContext context, IRubyObject self, IRubyObject[] args) An exactly-one size method suitable for lambda method reference implementation ofRubyEnumerator.SizeFn.size(ThreadContext, IRubyObject, IRubyObject[])static IRubyObjectop_cmp(ThreadContext context, IRubyObject self, IRubyObject other) static IRubyObjectop_eqq(ThreadContext context, IRubyObject self, IRubyObject other) static IRubyObjectop_match(ThreadContext context, IRubyObject self, IRubyObject arg) static IRubyObjectop_match19(ThreadContext context, IRubyObject self, IRubyObject arg) Deprecated.static IRubyObjectop_not_match(ThreadContext context, IRubyObject self, IRubyObject arg) static IRubyObjectopen(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) static IRubyObjectopen19(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) Deprecated.static IRubyObjectp(ThreadContext context, IRubyObject recv, IRubyObject[] args) private static IRubyObjectpBody(ThreadContext context, IRubyObject[] args) static IRubyObjectprint(ThreadContext context, IRubyObject recv, IRubyObject[] args) private static voidprintExceptionSummary(Ruby runtime, RubyException rEx) static IRubyObjectprintf(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectprivate_methods(ThreadContext context, IRubyObject self, IRubyObject[] args) static IRubyObjectprivate_methods19(ThreadContext context, IRubyObject self, IRubyObject[] args) Deprecated.static RubyProcproc(ThreadContext context, IRubyObject recv, Block block) static RubyProcproc_1_9(ThreadContext context, IRubyObject recv, Block block) Deprecated.static IRubyObjectprotected_methods(ThreadContext context, IRubyObject self, IRubyObject[] args) static IRubyObjectprotected_methods19(ThreadContext context, IRubyObject self, IRubyObject[] args) Deprecated.static IRubyObjectpublic_method(ThreadContext context, IRubyObject recv, IRubyObject symbol) static IRubyObjectpublic_methods(ThreadContext context, IRubyObject self, IRubyObject[] args) static IRubyObjectpublic_methods19(ThreadContext context, IRubyObject self, IRubyObject[] args) Deprecated.static IRubyObjectpublic_send(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) static IRubyObjectputc(ThreadContext context, IRubyObject recv, IRubyObject ch) rb_f_putcstatic IRubyObjectputs(ThreadContext context, IRubyObject recv) static IRubyObjectputs(ThreadContext context, IRubyObject recv, IRubyObject arg0) static IRubyObjectputs(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectputs(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1) static IRubyObjectputs(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) static IRubyObjectraise(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) static IRubyObjectrand(ThreadContext context, IRubyObject recv) static IRubyObjectrand(ThreadContext context, IRubyObject recv, IRubyObject arg) static IRubyObjectrand(ThreadContext context, IRubyObject recv, IRubyObject[] args) Deprecated.static IRubyObjectrand18(ThreadContext context, IRubyObject recv, IRubyObject[] arg) Deprecated.static IRubyObjectrand19(ThreadContext context, IRubyObject recv, IRubyObject[] arg) Deprecated.static IRubyObjectrbCatch(ThreadContext context, IRubyObject recv, Block block) static IRubyObjectrbCatch(ThreadContext context, IRubyObject recv, IRubyObject tag, Block block) static IRubyObjectrbCatch19(ThreadContext context, IRubyObject recv, Block block) Deprecated.static IRubyObjectrbCatch19(ThreadContext context, IRubyObject recv, IRubyObject tag, Block block) Deprecated.static IRubyObjectrbClone(IRubyObject self) static IRubyObjectrbClone(ThreadContext context, IRubyObject self) static IRubyObjectrbClone(ThreadContext context, IRubyObject self, IRubyObject opts) static IRubyObjectrbThrow(ThreadContext context, IRubyObject recv, IRubyObject tag, Block block) static IRubyObjectrbThrow(ThreadContext context, IRubyObject recv, IRubyObject tag, IRubyObject value, Block block) static IRubyObjectrbThrow19(ThreadContext context, IRubyObject recv, IRubyObject tag, Block block) Deprecated.static IRubyObjectrbThrow19(ThreadContext context, IRubyObject recv, IRubyObject tag, IRubyObject value, Block block) Deprecated.private static IRubyObjectrbThrowInternal(ThreadContext context, IRubyObject tag, IRubyObject arg) static IRubyObjectreadline(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectreadlines(ThreadContext context, IRubyObject recv, IRubyObject[] args) (package private) static voidrecacheBuiltinMethods(Ruby runtime, RubyModule kernelModule) Cache built-in versions of several core methods, to improve performance by using identity comparison (==) rather than going ahead with dynamic dispatch.static IRubyObjectremove_instance_variable(ThreadContext context, IRubyObject self, IRubyObject name, Block block) static IRubyObjectrequire(IRubyObject recv, IRubyObject name, Block block) Deprecated.static IRubyObjectrequire(ThreadContext context, IRubyObject recv, IRubyObject name, Block block) Require.static IRubyObjectrequire_relative(ThreadContext context, IRubyObject recv, IRubyObject name) static IRubyObjectrequire19(ThreadContext context, IRubyObject recv, IRubyObject name, Block block) Deprecated.private static IRubyObjectrequireCommon(Ruby runtime, RubyString name, Block block) static IRubyObjectrespond_to_missing_p(ThreadContext context, IRubyObject recv, IRubyObject symbol) static IRubyObjectrespond_to_missing_p(ThreadContext context, IRubyObject recv, IRubyObject symbol, IRubyObject isPrivate) static RubyBooleanrespond_to_p(IRubyObject self, IRubyObject mname) Deprecated.static RubyBooleanrespond_to_p(IRubyObject self, IRubyObject mname, IRubyObject includePrivate) Deprecated.static IRubyObjectrespond_to_p(ThreadContext context, IRubyObject self, IRubyObject name) static IRubyObjectrespond_to_p(ThreadContext context, IRubyObject self, IRubyObject name, IRubyObject includePrivate) static IRubyObjectrespond_to_p19(IRubyObject self, IRubyObject mname) Deprecated.static IRubyObjectrespond_to_p19(IRubyObject self, IRubyObject mname, IRubyObject includePrivate) Deprecated.static IRubyObjectselect(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectsend(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) static IRubyObjectsend(ThreadContext context, IRubyObject self, IRubyObject arg0, Block block) static IRubyObjectsend(ThreadContext context, IRubyObject self, IRubyObject arg0, IRubyObject arg1, Block block) static IRubyObjectsend(ThreadContext context, IRubyObject self, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) static IRubyObjectsend19(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) Deprecated.static IRubyObjectsend19(ThreadContext context, IRubyObject self, IRubyObject arg0, Block block) Deprecated.static IRubyObjectsend19(ThreadContext context, IRubyObject self, IRubyObject arg0, IRubyObject arg1, Block block) Deprecated.static IRubyObjectsend19(ThreadContext context, IRubyObject self, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) Deprecated.static IRubyObjectset_trace_func(ThreadContext context, IRubyObject recv, IRubyObject trace_func, Block block) static IRubyObjectsingleton_class(IRubyObject recv) static IRubyObjectsingleton_method(IRubyObject self, IRubyObject symbol) static RubyArraysingleton_methods(ThreadContext context, IRubyObject self, IRubyObject[] args) static RubyArraysingleton_methods19(ThreadContext context, IRubyObject self, IRubyObject[] args) Deprecated.private static JavaSites.KernelSitessites(ThreadContext context) static IRubyObjectsleep(ThreadContext context, IRubyObject recv, IRubyObject[] args) static RubyFixnumspawn(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectsprintf(IRubyObject recv, IRubyObject[] args) Deprecated.static IRubyObjectsprintf(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectsrand(ThreadContext context, IRubyObject recv) static IRubyObjectsrand(ThreadContext context, IRubyObject recv, IRubyObject arg) static IRubyObjectsyscall(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectsystem(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectsystem19(ThreadContext context, IRubyObject recv, IRubyObject[] args) Deprecated.private static intsystemCommon(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjecttaint(ThreadContext context, IRubyObject self) static RubyBooleantainted_p(ThreadContext context, IRubyObject self) static IRubyObjecttap(ThreadContext context, IRubyObject recv, Block block) static IRubyObjecttest(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectto_s(IRubyObject self) static IRubyObjecttrace_var(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) static RubyClasstype(IRubyObject self) private static RaiseExceptionuncaughtThrow(Ruby runtime, IRubyObject tag, IRubyObject value, RubyString message) static IRubyObjectuntaint(ThreadContext context, IRubyObject self) static IRubyObjectuntrace_var(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) static IRubyObjectwarn(ThreadContext context, IRubyObject recv, IRubyObject arg) static IRubyObjectwarn(ThreadContext context, IRubyObject recv, IRubyObject[] args) private static voidwarnObj(ThreadContext context, IRubyObject recv, IRubyObject arg) (package private) static voidwarnStr(ThreadContext context, IRubyObject recv, RubyString message) (package private) static <R> RwithLevelAndLength(ThreadContext context, IRubyObject level, IRubyObject length, int defaultLevel, ObjectIntIntFunction<ThreadContext, R> func) Retrieve the level and length from given args, if non-null.static IRubyObjectyield_self(ThreadContext context, IRubyObject recv, Block block)
-
Field Details
-
ZEROx
-
uncaught_throw_p
private static final byte[] uncaught_throw_p
-
-
Constructor Details
-
RubyKernel
public RubyKernel()
-
-
Method Details
-
createKernelModule
-
recacheBuiltinMethods
Cache built-in versions of several core methods, to improve performance by using identity comparison (==) rather than going ahead with dynamic dispatch.- Parameters:
runtime-
-
at_exit
-
autoload_p
-
autoload
public static IRubyObject autoload(ThreadContext context, IRubyObject recv, IRubyObject symbol, IRubyObject file) -
method_missing
public static IRubyObject method_missing(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) -
methodMissingDirect
protected static IRubyObject methodMissingDirect(ThreadContext context, IRubyObject recv, RubySymbol symbol, Visibility lastVis, CallType lastCallType, IRubyObject[] args) -
methodMissing
public static IRubyObject methodMissing(ThreadContext context, IRubyObject recv, String name, Visibility lastVis, CallType lastCallType, IRubyObject[] args) -
methodMissing
public static IRubyObject methodMissing(ThreadContext context, IRubyObject recv, String name, Visibility lastVis, CallType lastCallType, IRubyObject[] args, boolean dropFirst) -
getMethodMissingFormat
-
open19
@Deprecated public static IRubyObject open19(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) Deprecated. -
open
public static IRubyObject open(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) -
getc
-
gets
-
abort
-
new_array
-
new_complex
-
new_complex
-
new_complex
public static IRubyObject new_complex(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1) -
new_complex
public static IRubyObject new_complex(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) -
new_rational
-
new_rational
public static IRubyObject new_rational(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1) -
new_rational
public static IRubyObject new_rational(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) -
new_float
-
new_float
public static IRubyObject new_float(ThreadContext context, IRubyObject recv, IRubyObject object, IRubyObject opts) -
checkExceptionOpt
-
new_float
-
new_float
-
new_float
-
new_float
-
new_hash
-
new_integer
-
new_integer
public static IRubyObject new_integer(ThreadContext context, IRubyObject recv, IRubyObject object, IRubyObject baseOrOpts) -
new_integer
public static IRubyObject new_integer(ThreadContext context, IRubyObject recv, IRubyObject object, IRubyObject base, IRubyObject opts) -
new_string
-
new_string19
@Deprecated public static IRubyObject new_string19(ThreadContext context, IRubyObject recv, IRubyObject object) Deprecated. -
p
-
pBody
-
public_method
public static IRubyObject public_method(ThreadContext context, IRubyObject recv, IRubyObject symbol) -
putc
rb_f_putc -
puts
-
puts
-
puts
public static IRubyObject puts(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1) -
puts
public static IRubyObject puts(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) -
puts
-
print
-
printf
-
readline
-
readlines
-
respond_to_missing_p
public static IRubyObject respond_to_missing_p(ThreadContext context, IRubyObject recv, IRubyObject symbol) -
respond_to_missing_p
public static IRubyObject respond_to_missing_p(ThreadContext context, IRubyObject recv, IRubyObject symbol, IRubyObject isPrivate) -
getLastlineString
Returns value of $_.- Returns:
- value of $_ as String.
- Throws:
RaiseException- TypeError if $_ is not a String or nil.
-
select
-
sleep
-
exit
-
exit_bang
-
exit
-
global_variables
- Parameters:
context-recv-- Returns:
- an Array with the names of all global variables.
-
global_variables19
Deprecated. -
local_variables
- Parameters:
context-recv-- Returns:
- an Array with the names of all local variables.
-
local_variables19
Deprecated. -
binding
-
binding19
@Deprecated public static RubyBinding binding19(ThreadContext context, IRubyObject recv, Block block) Deprecated. -
block_given_p
-
sprintf
-
sprintf
Deprecated. -
raise
public static IRubyObject raise(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) -
maybeRaiseJavaException
private static void maybeRaiseJavaException(Ruby runtime, IRubyObject[] args, int argc, IRubyObject cause) -
convertToException
private static RubyException convertToException(ThreadContext context, IRubyObject obj, IRubyObject optionalMessage) -
printExceptionSummary
-
require
public static IRubyObject require(ThreadContext context, IRubyObject recv, IRubyObject name, Block block) Require. MRI allows to require ever .rb files or ruby extension dll (.so or .dll depending on system). we allow requiring either .rb files or jars.- Parameters:
recv- ruby object used to call require (any object will do and it won't be used anyway).name- the name of the file to require
-
requireCommon
-
require_relative
public static IRubyObject require_relative(ThreadContext context, IRubyObject recv, IRubyObject name) -
load
public static IRubyObject load(ThreadContext context, IRubyObject recv, IRubyObject path, Block block) -
load
public static IRubyObject load(ThreadContext context, IRubyObject recv, IRubyObject path, IRubyObject wrap, Block block) -
load
public static IRubyObject load(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) -
load
Deprecated. -
load19
@Deprecated public static IRubyObject load19(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) Deprecated. -
loadCommon
-
eval
public static IRubyObject eval(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) -
eval19
@Deprecated public static IRubyObject eval19(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) Deprecated. -
evalCommon
-
getBindingForEval
-
caller
-
caller
-
caller
public static IRubyObject caller(ThreadContext context, IRubyObject recv, IRubyObject level, IRubyObject length) -
callerInternal
private static IRubyObject callerInternal(ThreadContext context, IRubyObject recv, IRubyObject level, IRubyObject length) -
caller_locations
-
caller_locations
public static IRubyObject caller_locations(ThreadContext context, IRubyObject recv, IRubyObject level) -
caller_locations
public static IRubyObject caller_locations(ThreadContext context, IRubyObject recv, IRubyObject level, IRubyObject length) -
callerLocationsInternal
private static IRubyObject callerLocationsInternal(ThreadContext context, IRubyObject level, IRubyObject length) -
withLevelAndLength
static <R> R withLevelAndLength(ThreadContext context, IRubyObject level, IRubyObject length, int defaultLevel, ObjectIntIntFunction<ThreadContext, R> func) Retrieve the level and length from given args, if non-null. -
rbCatch
-
rbCatch
public static IRubyObject rbCatch(ThreadContext context, IRubyObject recv, IRubyObject tag, Block block) -
rbCatch19
@Deprecated public static IRubyObject rbCatch19(ThreadContext context, IRubyObject recv, Block block) Deprecated. -
rbCatch19
@Deprecated public static IRubyObject rbCatch19(ThreadContext context, IRubyObject recv, IRubyObject tag, Block block) Deprecated. -
rbThrow
public static IRubyObject rbThrow(ThreadContext context, IRubyObject recv, IRubyObject tag, Block block) -
rbThrow
public static IRubyObject rbThrow(ThreadContext context, IRubyObject recv, IRubyObject tag, IRubyObject value, Block block) -
rbThrow19
@Deprecated public static IRubyObject rbThrow19(ThreadContext context, IRubyObject recv, IRubyObject tag, Block block) Deprecated. -
rbThrow19
@Deprecated public static IRubyObject rbThrow19(ThreadContext context, IRubyObject recv, IRubyObject tag, IRubyObject value, Block block) Deprecated. -
rbThrowInternal
-
uncaughtThrow
private static RaiseException uncaughtThrow(Ruby runtime, IRubyObject tag, IRubyObject value, RubyString message) -
warn
-
warnObj
-
warnStr
-
warn
-
buildWarnMessage
-
yield_self
-
objectSize
An exactly-one size method suitable for lambda method reference implementation ofRubyEnumerator.SizeFn.size(ThreadContext, IRubyObject, IRubyObject[]) -
set_trace_func
public static IRubyObject set_trace_func(ThreadContext context, IRubyObject recv, IRubyObject trace_func, Block block) -
trace_var
public static IRubyObject trace_var(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) -
untrace_var
public static IRubyObject untrace_var(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) -
define_singleton_method
public static IRubyObject define_singleton_method(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) -
proc
-
lambda
-
proc_1_9
Deprecated. -
loop
-
loopSize
A loop size method suitable for lambda method reference implementation ofRubyEnumerator.SizeFn.size(ThreadContext, IRubyObject, IRubyObject[]) -
test
-
backquote
-
srand
-
srand
-
rand
-
rand
-
spawn
-
syscall
-
system
-
system19
@Deprecated public static IRubyObject system19(ThreadContext context, IRubyObject recv, IRubyObject[] args) Deprecated. -
systemCommon
-
dropLastArgIfOptions
-
exec
-
_exec_internal
public static IRubyObject _exec_internal(ThreadContext context, IRubyObject recv, IRubyObject[] args) -
checkExecOptions
-
execCommon
private static IRubyObject execCommon(ThreadContext context, IRubyObject env, IRubyObject prog, IRubyObject options, IRubyObject[] args) -
fork
-
fork19
Deprecated. -
tap
-
obj_to_enum
public static IRubyObject obj_to_enum(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) -
__method__
-
__dir__
-
singleton_class
-
public_send
public static IRubyObject public_send(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) -
eql_p
-
op_eqq
-
op_cmp
-
initialize_copy
-
initialize_clone
public static IRubyObject initialize_clone(ThreadContext context, IRubyObject self, IRubyObject original) -
initialize_dup
public static IRubyObject initialize_dup(ThreadContext context, IRubyObject self, IRubyObject original) -
respond_to_p
Deprecated. -
respond_to_p19
Deprecated. -
respond_to_p
@Deprecated public static RubyBoolean respond_to_p(IRubyObject self, IRubyObject mname, IRubyObject includePrivate) Deprecated. -
respond_to_p19
@Deprecated public static IRubyObject respond_to_p19(IRubyObject self, IRubyObject mname, IRubyObject includePrivate) Deprecated. -
respond_to_p
-
respond_to_p
public static IRubyObject respond_to_p(ThreadContext context, IRubyObject self, IRubyObject name, IRubyObject includePrivate) -
hash
-
type
-
rbClone
-
rbClone
-
dup
-
display
-
tainted_p
-
taint
-
untaint
-
freeze
-
frozen_p
-
inspect
-
instance_of_p
-
itself
-
kind_of_p
-
methods
-
methods19
@Deprecated public static IRubyObject methods19(ThreadContext context, IRubyObject self, IRubyObject[] args) Deprecated. -
object_id
-
public_methods
public static IRubyObject public_methods(ThreadContext context, IRubyObject self, IRubyObject[] args) -
public_methods19
@Deprecated public static IRubyObject public_methods19(ThreadContext context, IRubyObject self, IRubyObject[] args) Deprecated. -
protected_methods
public static IRubyObject protected_methods(ThreadContext context, IRubyObject self, IRubyObject[] args) -
protected_methods19
@Deprecated public static IRubyObject protected_methods19(ThreadContext context, IRubyObject self, IRubyObject[] args) Deprecated. -
private_methods
public static IRubyObject private_methods(ThreadContext context, IRubyObject self, IRubyObject[] args) -
private_methods19
@Deprecated public static IRubyObject private_methods19(ThreadContext context, IRubyObject self, IRubyObject[] args) Deprecated. -
singleton_methods
public static RubyArray singleton_methods(ThreadContext context, IRubyObject self, IRubyObject[] args) -
singleton_methods19
@Deprecated public static RubyArray singleton_methods19(ThreadContext context, IRubyObject self, IRubyObject[] args) Deprecated. -
singleton_method
-
method
-
method19
Deprecated. -
to_s
-
extend
-
send
public static IRubyObject send(ThreadContext context, IRubyObject self, IRubyObject arg0, Block block) -
send
public static IRubyObject send(ThreadContext context, IRubyObject self, IRubyObject arg0, IRubyObject arg1, Block block) -
send
public static IRubyObject send(ThreadContext context, IRubyObject self, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) -
send
public static IRubyObject send(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) -
send19
@Deprecated public static IRubyObject send19(ThreadContext context, IRubyObject self, IRubyObject arg0, Block block) Deprecated. -
send19
@Deprecated public static IRubyObject send19(ThreadContext context, IRubyObject self, IRubyObject arg0, IRubyObject arg1, Block block) Deprecated. -
send19
@Deprecated public static IRubyObject send19(ThreadContext context, IRubyObject self, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) Deprecated. -
send19
@Deprecated public static IRubyObject send19(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) Deprecated. -
nil_p
-
op_match
-
op_not_match
-
instance_variable_defined_p
public static IRubyObject instance_variable_defined_p(ThreadContext context, IRubyObject self, IRubyObject name) -
instance_variable_get
public static IRubyObject instance_variable_get(ThreadContext context, IRubyObject self, IRubyObject name) -
instance_variable_set
public static IRubyObject instance_variable_set(IRubyObject self, IRubyObject name, IRubyObject value) -
remove_instance_variable
public static IRubyObject remove_instance_variable(ThreadContext context, IRubyObject self, IRubyObject name, Block block) -
instance_variables
-
instance_variables19
Deprecated. -
gsub
public static IRubyObject gsub(ThreadContext context, IRubyObject recv, IRubyObject arg0, Block block) -
gsub
public static IRubyObject gsub(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1, Block block) -
rbClone
-
sites
-
methodMissing
@Deprecated public static IRubyObject methodMissing(ThreadContext context, IRubyObject recv, String name, Visibility lastVis, CallType lastCallType, IRubyObject[] args, Block block) Deprecated. -
caller20
@Deprecated public static IRubyObject caller20(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) Deprecated. -
caller19
@Deprecated public static IRubyObject caller19(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) Deprecated. -
caller
@Deprecated private static IRubyObject caller(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) Deprecated. -
caller_locations
@Deprecated public static IRubyObject caller_locations(ThreadContext context, IRubyObject recv, IRubyObject[] args) Deprecated. -
require
Deprecated. -
require19
@Deprecated public static IRubyObject require19(ThreadContext context, IRubyObject recv, IRubyObject name, Block block) Deprecated. -
op_match19
@Deprecated public static IRubyObject op_match19(ThreadContext context, IRubyObject self, IRubyObject arg) Deprecated. -
new_integer19
@Deprecated public static IRubyObject new_integer19(ThreadContext context, IRubyObject recv, IRubyObject object) Deprecated. -
new_float19
Deprecated. -
autoload
@Deprecated public static IRubyObject autoload(IRubyObject recv, IRubyObject symbol, IRubyObject file) Deprecated. -
rand18
@Deprecated public static IRubyObject rand18(ThreadContext context, IRubyObject recv, IRubyObject[] arg) Deprecated. -
rand19
@Deprecated public static IRubyObject rand19(ThreadContext context, IRubyObject recv, IRubyObject[] arg) Deprecated. -
rand
@Deprecated public static IRubyObject rand(ThreadContext context, IRubyObject recv, IRubyObject[] args) Deprecated.
-