jruby/docs BETA
Navigation
org.jruby.specialized 4
C RubyArrayOneObject
C RubyArraySpecialized
C RubyArrayTwoObject
C RubyObjectSpecializer
RubyArraySpecialized — members 4+
F MAX_PACKED_SIZE() int
C new(runtime, light)
C new(other_class, light)
C new(other_class)
from IRubyObject
F NULL_ARRAY IRubyObject[]
M check_string_type19() IRubyObject
M dup(context) IRubyObject
C marshal_live_variables(stream, context, out)
from Iterable
C for_each(arg0)
from RubyBasicObject
F ALL_F int
F BASICOBJECT_ALLOCATOR ObjectAllocator
F COMPARE_BY_IDENTITY_F int
F ERR_INSECURE_SET_INST_VAR String
F FALSE_F int
F FL_USHIFT int
F FROZEN_F int
F IS_OVERLAID_F int
F NEVER IRubyObject
F NIL_F int
F REFINED_MODULE_F int
F STAMP_OFFSET long
F TAINTED_F int
F UNDEF IRubyObject
F USER0_F int
F USER1_F int
F USER2_F int
F USER3_F int
F USER4_F int
F USER5_F int
F USER6_F int
F USER7_F int
F USER8_F int
F USER9_F int
F USERA_F int
F VAR_TABLE_OFFSET long
F varTable Object[]
F varTableStamp int
M __id__(context) RubyInteger
C add_finalizer(f)
M add_finalizer(context, f) IRubyObject
M any_to_string() IRubyObject
M as_java_string() String
M as_string() RubyString
M call_method(context, name) IRubyObject
M call_method(context, name, arg) IRubyObject
M call_method(context, name, args) IRubyObject
M call_method(name, args) IRubyObject
M call_method(name, arg) IRubyObject
M call_method(name) IRubyObject
M call_method(context, name, args, block) IRubyObject
M call_method(context, method_index, name) IRubyObject
M call_method(context, method_index, name, arg) IRubyObject
M call_super(context, args, block) IRubyObject
M check_call_method(context, name) IRubyObject
M check_call_method(context, sites) IRubyObject
C check_frozen()
M check_string_type() IRubyObject
M class?() boolean
M compare_to(other) int
M convert_to_float() RubyFloat
M convert_to_hash() RubyHash
M convert_to_integer() RubyInteger
M convert_to_integer(convert_method) RubyInteger
M convert_to_integer(method_index, convert_method) RubyInteger
M convert_to_string() RubyString
C copy_instance_variables_into(other)
C copy_special_instance_variables(clone)
M current_context() ThreadContext
M data_get_struct() Object
M data_get_struct_checked() Object
C data_wrap_struct(obj)
M decode(id) RubyString
M display(context, args) IRubyObject
C ensure_instance_variables_settable()
M eql(other) boolean
M eql_p(obj) IRubyObject
M eql_p(context, obj) IRubyObject
M equal_p(context, other) IRubyObject
M eval_under(context, under, src, file, line, eval_type) IRubyObject
M extend(args) IRubyObject
M false?() boolean
M fast_get_instance_variable(interned_name) IRubyObject
M fast_get_internal_variable(interned_name) Object
M fast_has_instance_variable(interned_name) boolean
M fast_has_internal_variable(interned_name) boolean
M fast_set_instance_variable(interned_name, value) IRubyObject
C fast_set_internal_variable(interned_name, value)
M ffi_handle() Object
C ffi_handle=(value)
C for_each_instance_variable(accessor)
C for_each_instance_variable_name(consumer)
M freeze(context) IRubyObject
C frozen=(frozen)
M frozen?() boolean
M get_flag(flag) boolean
M get_instance_variable(name) IRubyObject
M get_internal_variable(name) Object
M get_variable(index) Object
M has_instance_variable(name) boolean
M has_internal_variable(name) boolean
M has_variables?() boolean
M hash() RubyFixnum
M hashy_inspect() IRubyObject
M id() IRubyObject
M immediate?() boolean
M infect_by(obj) IRubyObject
M initialize(context) IRubyObject
M initialize_copy(original) IRubyObject
M inspect() IRubyObject
M instance_eval(context, block) IRubyObject
M instance_eval(context, arg0, block) IRubyObject
M instance_eval(context, arg0, arg1, block) IRubyObject
M instance_eval(context, arg0, arg1, arg2, block) IRubyObject
M instance_eval(context, args, block) IRubyObject
M instance_exec(context, args, block) IRubyObject
M instance_of_p(context, type) RubyBoolean
M instance_variable_defined_p(context, name) IRubyObject
M instance_variable_get(context, name) IRubyObject
M instance_variable_list() IRubyObject>>
M instance_variable_name_list() List<String>
M instance_variable_set(name, value) IRubyObject
M instance_variables() InstanceVariables
M instance_variables(context) RubyArray
M internal_variables() InternalVariables
M is_builtin(method_name) boolean
M kind_of_p(context, type) RubyBoolean
M make_meta_class(super_class) RubyClass
M make_meta_class(context, super_class) RubyClass
M make_meta_class_bootstrap(runtime, super_class, class) RubyClass
M marshal_variable_list() Variable<Object>>
M meta_class() RubyClass
C meta_class=(meta_class)
M method(name) IRubyObject
M method(name, refined_scope) IRubyObject
M method(context, name, refined_scope) IRubyObject
M methods(context, args) IRubyObject
M methods(context, args, use_symbols) IRubyObject
M module?() boolean
M native_handle() Object
C native_handle=(value)
M native_type_index() int
M nil?() boolean
M nil_p(context) IRubyObject
M op_match(context, arg) IRubyObject
M op_not(context) IRubyObject
M op_not_equal(context, other) IRubyObject
M op_not_match(context, arg) IRubyObject
M private_methods(context, args) IRubyObject
M protected_methods(context, args) IRubyObject
M public_methods(context, args) IRubyObject
M rb_clone() IRubyObject
M rb_clone(context, maybe_opts) IRubyObject
C remove_finalizers()
M remove_instance_variable(name) IRubyObject
M remove_instance_variable(context, name, block) IRubyObject
M remove_internal_variable(name) Object
M respond_to_p(mname) RubyBoolean
M respond_to_p(mname, include_private) RubyBoolean
M responds_to(name) boolean
M responds_to_missing(name) boolean
M responds_to_missing(name, inc_private) boolean
M runtime() Ruby
M send(context, block) IRubyObject
M send(context, arg0, block) IRubyObject
M send(context, arg0, arg1, block) IRubyObject
M send(context, arg0, arg1, arg2, block) IRubyObject
M send(context, args, block) IRubyObject
C set_flag(flag, set)
M set_instance_variable(name, value) IRubyObject
C set_internal_variable(name, value)
C set_variable(index, value)
M singleton_class() RubyClass
M singleton_class(context) RubyClass
M singleton_method(name) IRubyObject
M singleton_method(context, name) IRubyObject
M singleton_methods(context, args) RubyArray
M special_const?() boolean
M special_object?() boolean
M specific_eval(context, mod, block, eval_type) IRubyObject
M specific_eval(context, mod, arg, block, eval_type) IRubyObject
M specific_eval(context, mod, arg0, arg1, block, eval_type) IRubyObject
M specific_eval(context, mod, arg0, arg1, arg2, block, eval_type) IRubyObject
C sync_variables(other)
C sync_variables(variables)
M taint(context) IRubyObject
C taint=(taint)
M taint?() boolean
M tainted_p(context) RubyBoolean
M to_s() IRubyObject
M true?() boolean
M trust(context) IRubyObject
M type() RubyClass
M type() RubyClass
M untaint(context) IRubyObject
M untrust(context) IRubyObject
C untrusted=(untrusted)
M untrusted?() boolean
M untrusted_p(context) RubyBoolean
M variable_count() int
M variable_list() Variable<Object>>
M variable_name_list() List<String>
from Collection
M parallel_stream() Stream<E>
M remove_if(arg0) boolean
M stream() Stream<E>
M to_array(arg0) T[]
from RubyObject
F IVAR_INSPECTING_OBJECT_ALLOCATOR ObjectAllocator
F OBJECT_ALLOCATOR ObjectAllocator
F REIFYING_OBJECT_ALLOCATOR ObjectAllocator
C attach_to_object_space()
C call_init(args, block)
C call_init(block)
C call_init(arg0, block)
C call_init(arg0, arg1, block)
C call_init(arg0, arg1, arg2, block)
C call_init(context, args, block)
C call_init(context, block)
C call_init(context, arg0, block)
C call_init(context, arg0, arg1, block)
C call_init(context, arg0, arg1, arg2, block)
M convert_to_type(target, convert_method_index) IRubyObject
M hash_code() int
M op_eqq(context, other) IRubyObject
M specific_eval(context, mod, args, block, eval_type) IRubyObject
M to_ruby_string(context) RubyString
M to_string() String
from List
C add_first(arg0)
C add_last(arg0)
M first() E
M hash_code() int
M last() E
M remove_first() E
M remove_last() E
C replace_all(arg0)
M reversed() List<E>
C sort(arg0)
M spliterator() Spliterator<E>
from RubyArray
F ARRAY_DEFAULT_SIZE int
F DEFAULT_INSPECT_STR_SIZE int
M add(element) boolean
M add(context, element) boolean
C add(index, element)
M add_all(c) boolean
M add_all(index, c) boolean
M all_p(context, block) IRubyObject
M all_p(context, arg, block) IRubyObject
M all_p_common(context, arg, block) IRubyObject
M any_p(context, block) IRubyObject
M any_p(context, arg, block) IRubyObject
M any_p_common(context, arg, block) IRubyObject
M append(item) RubyArray<?>
M append(context, item) RubyArray
M aref(args) IRubyObject
M aref(arg0) IRubyObject
M aref(context, arg0) IRubyObject
M aref(arg0, arg1) IRubyObject
M aref(context, arg0, arg1) IRubyObject
M ary_append(y) RubyArray
M ary_append(context, y) RubyArray
M ary_dup() RubyArray
M aset(args) IRubyObject
M aset(arg0, arg1) IRubyObject
M aset(context, arg0, arg1) IRubyObject
M aset(arg0, arg1, arg2) IRubyObject
M aset(context, arg0, arg1, arg2) IRubyObject
M assoc(context, key) IRubyObject
M at(pos) IRubyObject
M at(context, pos) IRubyObject
M bsearch(context, block) IRubyObject
M bsearch_index(context, block) IRubyObject
M check_array_type() IRubyObject
C clear()
M collect(context, block) RubyArray
M collect_array(context, block) RubyArray
M collect_bang(context, block) RubyArray
M collect_bang(context, block) IRubyObject
M collect_enum(context) RubyEnumerator
M combination(context, num, block) IRubyObject
M compact() IRubyObject
M compact(context) IRubyObject
M compact_bang() IRubyObject
M compact_bang(context) IRubyObject
M compare(context, site, other) RubyBoolean
M concat(context, obj) RubyArray
M concat(context, objs) RubyArray
M concat(obj) RubyArray
M contains(element) boolean
M contains_all(c) boolean
M convert_to_array() RubyArray
C copy_into(target, start)
C copy_into(context, target, start)
C copy_into(target, start, len)
C copy_into(context, target, start, len)
M count(context, block) IRubyObject
M count(context, obj, block) IRubyObject
M cycle(context, block) IRubyObject
M cycle(context, arg, block) IRubyObject
M deconstruct(context) IRubyObject
M delete(context, item, block) IRubyObject
M delete_at(pos) IRubyObject
M delete_at(context, pos) IRubyObject
M delete_at(obj) IRubyObject
M delete_at(context, obj) IRubyObject
M delete_if(context, block) IRubyObject
M delete_if(context, block) IRubyObject
M detect_common(context, ifnone, block) IRubyObject
M difference(context, args) IRubyObject
M dig(context, arg0) IRubyObject
M dig(context, arg0, arg1) IRubyObject
M dig(context, arg0, arg1, arg2) IRubyObject
M dig(context, args) IRubyObject
M drop(context, n) IRubyObject
M drop_while(context, block) IRubyObject
M dup() IRubyObject
M each(context, block) IRubyObject
M each_index(context, block) IRubyObject
M each_index(context, block) IRubyObject
M each_slice(context, size, block) IRubyObject
M each_slice(context, arg, block) IRubyObject
M elt_internal(offset) T
M elt_internal_set(offset, item) T
M elt_ok(offset) T
M elt_set_ok(offset, value) T
M elt_set_ok(offset, value) T
M empty?() boolean
M empty_p() IRubyObject
M empty_p(context) IRubyObject
C ensure_capacity(min_capacity)
M entry(offset) IRubyObject
M entry(offset) IRubyObject
M eql(context, obj) IRubyObject
M equals(other) boolean
M fetch(context, args, block) IRubyObject
M fetch(context, arg0, block) IRubyObject
M fetch(context, arg0, arg1, block) IRubyObject
M fetch_values(context, args, block) IRubyObject
M fill(context, block) IRubyObject
M fill(context, arg, block) IRubyObject
M fill(context, arg1, arg2, block) IRubyObject
M fill(context, arg1, arg2, arg3, block) IRubyObject
M find(context, ifnone, block) IRubyObject
M find_index(context, block) IRubyObject
M find_index(context, cond) IRubyObject
M first(args) IRubyObject
M first() IRubyObject
M first(context) IRubyObject
M first(arg0) IRubyObject
M first(context, arg0) IRubyObject
M flatten(context) IRubyObject
M flatten(context, arg) IRubyObject
M flatten_bang(context) IRubyObject
M flatten_bang(context, arg) IRubyObject
M frozen_p(context) RubyBoolean
M get(index) Object
M hash(context) RubyFixnum
M include_p(context, item) RubyBoolean
M includes(context, item) boolean
M includes_by_eql(context, item) boolean
M index(context, obj) IRubyObject
M index(context, obj, unused) IRubyObject
M index(context, block) IRubyObject
M index_of(element) int
M indexes(args) IRubyObject
M indexes(context, args) IRubyObject
M initialize(context, args, block) IRubyObject
M initialize(context, block) IRubyObject
M initialize(context, arg0, block) IRubyObject
M initialize(context, arg0, arg1, block) IRubyObject
M initialize_copy(context, orig) IRubyObject
M insert() IRubyObject
M insert(arg) IRubyObject
M insert(context, arg) IRubyObject
M insert(arg1, arg2) IRubyObject
M insert(context, arg1, arg2) IRubyObject
M insert(args) IRubyObject
M insert(context, args) IRubyObject
M inspect(context) RubyString
M intersect_p(context, other) IRubyObject
M intersection(context, args) IRubyObject
M is_shared_java_array(other) boolean
M iterator() Iterator
M java_class() Class
M join(context, sep) IRubyObject
M join(context) IRubyObject
M join19(context, sep) IRubyObject
M join19(context) IRubyObject
M keep_if(context, block) IRubyObject
M last(args) IRubyObject
M last() IRubyObject
M last(context) IRubyObject
M last(arg0) IRubyObject
M last(context, arg0) IRubyObject
M last_index_of(element) int
M length() int
M length(context) RubyFixnum
M length() RubyFixnum
M list() IRubyObject>
M list_iterator() ListIterator
M list_iterator(index) ListIterator
M map(context, block) IRubyObject
M map_bang(context, block) IRubyObject
M max(context, block) IRubyObject
M max(context, num, block) IRubyObject
M min(context, block) IRubyObject
M min(context, num, block) IRubyObject
M minmax(context, block) IRubyObject
M native_class_index() ClassIndex
M nitems(context) IRubyObject
M nitems() IRubyObject
M none_p(context, block) IRubyObject
M none_p(context, arg, block) IRubyObject
M none_p_common(context, arg, block) IRubyObject
M one_p(context, block) IRubyObject
M one_p(context, arg, block) IRubyObject
M one_p_common(context, arg, block) IRubyObject
M op_and(other) IRubyObject
M op_and(context, other) IRubyObject
M op_cmp(context, obj) IRubyObject
M op_diff(other) IRubyObject
M op_diff(context, other) IRubyObject
M op_equal(context, obj) IRubyObject
M op_or(other) IRubyObject
M op_or(context, other) IRubyObject
M op_plus(obj) IRubyObject
M op_plus(context, obj) IRubyObject
M op_times(context, times) IRubyObject
M pack(context, obj) RubyString
M pack(context, obj, maybe_opts) RubyString
M permutation(context, num, block) IRubyObject
M permutation(context, block) IRubyObject
M pop(context) IRubyObject
M pop(context, num) IRubyObject
M product(context, args) IRubyObject
M product(context, args, block) IRubyObject
M push(item) RubyArray
M push(context, item) RubyArray
M push(items) RubyArray<?>
M push(context, items) RubyArray
M push_m(items) RubyArray<?>
M rassoc(context, value) IRubyObject
M rb_clear() IRubyObject
M rb_clear(context) IRubyObject
M rb_collect(context, block) IRubyObject
M reject(context, block) IRubyObject
M reject_bang(context, block) IRubyObject
M reject_bang(context, block) IRubyObject
M reject_common(context, block) IRubyObject
M remove(element) boolean
M remove(index) Object
M remove_all(c) boolean
M repeated_combination(context, num, block) IRubyObject
M repeated_permutation(context, num, block) IRubyObject
M replace(orig) IRubyObject
M replace(context, orig) IRubyObject
M retain_all(c) boolean
M reverse() IRubyObject
M reverse(context) IRubyObject
M reverse_bang() IRubyObject
M reverse_bang(context) IRubyObject
M reverse_each(context, block) IRubyObject
M reverse_each(context, block) IRubyObject
M rindex(context, obj) IRubyObject
M rindex(context, obj, unused) IRubyObject
M rindex(context, block) IRubyObject
M rotate(context) IRubyObject
M rotate(context, cnt) IRubyObject
M rotate_bang(context) IRubyObject
M rotate_bang(context, cnt) IRubyObject
M ruby_stream() IRubyObject>
M sample(context) IRubyObject
M sample(context, sample_or_opts) IRubyObject
M sample(context, sample, opts) IRubyObject
M sample(context, args) IRubyObject
M select(context, block) IRubyObject
M select_bang(context, block) IRubyObject
M select_common(context, block) IRubyObject
M set(index, element) Object
M shift(context) IRubyObject
M shift(context, num) IRubyObject
M shuffle(context) IRubyObject
M shuffle(context, opts) IRubyObject
M shuffle(context, args) IRubyObject
M shuffle_bang(context) IRubyObject
M shuffle_bang(context, opts) IRubyObject
M shuffle_bang(context, args) IRubyObject
M size() int
M slice_bang(args) IRubyObject
M slice_bang(arg0) IRubyObject
M slice_bang(context, arg0) IRubyObject
M slice_bang(arg0, arg1) IRubyObject
M slice_bang(context, arg0, arg1) IRubyObject
M sort(context, block) RubyArray
M sort_bang(context, block) IRubyObject
M sort_by_bang(context, block) IRubyObject
M store(index, value) IRubyObject
M store(context, index, value) IRubyObject
M sub_list(from_index, to_index) List
M subseq(beg, len) IRubyObject
M subseq(meta_class, beg, len, light) IRubyObject
M subseq_light(beg, len) IRubyObject
M subseq_step(context, arg0) IRubyObject
M sum(context, block) IRubyObject
M sum(context, init, block) IRubyObject
M sum_common(context, init, block) IRubyObject
M take(context, n) IRubyObject
M take_while(context, block) IRubyObject
M to_a(context) RubyArray
M to_a() RubyArray
M to_array() Object[]
M to_array(arg) Object[]
M to_ary() IRubyObject
M to_ary(context) IRubyObject
M to_h(context) IRubyObject
M to_h(context, block) IRubyObject
M to_java(target) T
M to_java_array() IRubyObject[]
M to_java_array(context) IRubyObject[]
M to_java_array_maybe_unsafe() IRubyObject[]
M to_java_array_unsafe() IRubyObject[]
M to_s(context) RubyString
M transpose() RubyArray
M transpose(context) RubyArray
M union(context, args) IRubyObject
M uniq(context) IRubyObject
M uniq(context, block) IRubyObject
M uniq_bang(context) IRubyObject
M uniq_bang(context, block) IRubyObject
M unshift() IRubyObject
M unshift(context) IRubyObject
M unshift(item) IRubyObject
M unshift(context, item) IRubyObject
M unshift(items) IRubyObject
M unshift(context, items) IRubyObject
M values_at(args) IRubyObject
M values_at(context, args) IRubyObject
M zip(context, args, block) IRubyObject

org.jruby.specialized.RubyArraySpecialized

class abstract extends RubyArray 4 members

This is the base class for all specialized RubyArray.

Specialized RubyArray use fields rather than an IRubyObject[] to hold their values. When they need to grow or shrink, they unpack those values to a proper IRubyObject[] and fall back on RubyArray logic.

Subclasses should override all methods that would access the array directly to use the fields, with guards for the packed flag and access outside packed range. This includes the following methods (at the time of this writing...this list will evolve):

RubyArray#eltInternal(int) RubyArray#eltInternalSet(int index, IRubyObject value) RubyArraySpecialized#finishUnpack(IRubyObject nil) RubyArray#aryDup() RubyArray#rb_clear(org.jruby.runtime.ThreadContext) RubyArray#collect(org.jruby.runtime.ThreadContext, org.jruby.runtime.Block) RubyArray#copyInto(org.jruby.runtime.ThreadContext,IRubyObject[], int) RubyArray#copyInto(org.jruby.runtime.ThreadContext,IRubyObject[], int, int) RubyArray#dupImpl(Ruby, RubyClass) RubyArray#includes(org.jruby.runtime.ThreadContext, IRubyObject) RubyArray#indexOf(Object) RubyArray#inspectAry(org.jruby.runtime.ThreadContext) RubyArray#internalRotate(org.jruby.runtime.ThreadContext, int) RubyArray#internalRotateBang(org.jruby.runtime.ThreadContext, int) RubyArray#op_plus(org.jruby.runtime.ThreadContext, IRubyObject) RubyArray#reverse_bang(org.jruby.runtime.ThreadContext) RubyArray#safeReverse() RubyArray#sortInternal(org.jruby.runtime.ThreadContext, org.jruby.runtime.Block) RubyArray#sortInternal(org.jruby.runtime.ThreadContext, boolean) RubyArray#storeInternal(org.jruby.runtime.ThreadContext, int, IRubyObject) RubyArray#subseq(RubyClass, long, long, boolean) RubyArray#toJavaArray(ThreadContext) RubyArray#uniq(org.jruby.runtime.ThreadContext)

Constants

constanttypenote
MAX_PACKED_SIZE int

Constructors

new

new ( Ruby runtime, boolean light )
Java: <init>(org.jruby.Ruby runtime, boolean light)

new

new ( RubyClass other_class, boolean light )
Java: <init>(org.jruby.RubyClass otherClass, boolean light)

new

new ( RubyClass other_class )
Java: <init>(org.jruby.RubyClass otherClass)

Inherited

from IRubyObject

fieldtypenote
NULL_ARRAY IRubyObject[]

check_string_type19

IRubyObject check_string_type19 ( )
Java: checkStringType19()
Deprecated. Use #checkStringType() instead.

is this a string?

Returns: the string if so

dup

IRubyObject dup ( ThreadContext context )
Java: dup(org.jruby.runtime.ThreadContext context)

RubyMethod dup.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context

Returns: a dup-ed object

marshal_live_variables

marshal_live_variables ( MarshalDumper stream, ThreadContext context, RubyOutputStream out )
Java: marshalLiveVariables(org.jruby.runtime.marshal.MarshalDumper stream, org.jruby.runtime.ThreadContext context, org.jruby.util.io.RubyOutputStream out)

from Iterable

for_each

for_each ( Consumer<? super T> arg0 )
Java: forEach(java.util.function.Consumer<? super T> arg0)

from RubyBasicObject

fieldtypenote
ALL_F int
BASICOBJECT_ALLOCATOR ObjectAllocator Default allocator instance for all Ruby objects. The only reason to not use this allocator is if you actually need to have all instances of something be a subclass of RubyObject.
COMPARE_BY_IDENTITY_F int
ERR_INSECURE_SET_INST_VAR String The error message used when some one tries to modify an instance variable in a high security setting.
FALSE_F int
FL_USHIFT int
FROZEN_F int
IS_OVERLAID_F int
NEVER IRubyObject A value that is used as a null sentinel in among other places the RubyArray implementation. It will cause large problems to call any methods on this object.
NIL_F int This flag is a bit funny. It's used to denote that this value is nil. It's a bit counterintuitive for a Java programmer to not use subclassing to handle this case, since we have a RubyNil subclass anyway. Well, the reason for it being a flag is that the #isNil() method is called extremely often. So often that it gives a good speed boost to make it monomorphic and final. It turns out using a flag for this actually gives us better performance than having a polymorphic #isNil() method.
REFINED_MODULE_F int
STAMP_OFFSET long
TAINTED_F int
UNDEF IRubyObject A value that specifies an undefined value. This value is used as a sentinel for undefined constant values, and other places where neither null nor NEVER makes sense.
USER0_F int
USER1_F int
USER2_F int
USER3_F int
USER4_F int
USER5_F int
USER6_F int
USER7_F int
USER8_F int
USER9_F int
USERA_F int
VAR_TABLE_OFFSET long
varTable Object[] variable table, lazily allocated as needed (if needed)
varTableStamp int locking stamp for Unsafe ops updating the vartable

__id__

RubyInteger __id__ ( ThreadContext context )
Java: __id__(org.jruby.runtime.ThreadContext context)

rb_obj_id Return the internal id of an object.

add_finalizer

add_finalizer ( IRubyObject f )
Java: addFinalizer(org.jruby.runtime.builtin.IRubyObject f)

add_finalizer

IRubyObject add_finalizer ( ThreadContext context, IRubyObject f )
Java: addFinalizer(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject f)

Adds the specified object as a finalizer for this object.

any_to_string

IRubyObject any_to_string ( )
Java: anyToString()

Internal method that helps to convert any object into the format of a class name and a hex string inside of #<>.

as_java_string

String as_java_string ( )
Java: asJavaString()

rb_to_id Will try to convert this object to a String using the Ruby "to_str" if the object isn't already a String. If this still doesn't work, will throw a Ruby TypeError.

Returns: a (Java) string

as_string

RubyString as_string ( )
Java: asString()

rb_obj_as_string First converts this object into a String using the "to_s" method and returns it. If to_s doesn't return a Ruby String, Convert#anyToString is used instead.

call_method

IRubyObject call_method ( ThreadContext context, String name )
Java: callMethod(org.jruby.runtime.ThreadContext context, String name)

Will invoke a named method with no arguments and no block.

call_method

IRubyObject call_method ( ThreadContext context, String name, IRubyObject arg )
Java: callMethod(org.jruby.runtime.ThreadContext context, String name, org.jruby.runtime.builtin.IRubyObject arg)

Will invoke a named method with one argument and no block with functional invocation.

call_method

IRubyObject call_method ( ThreadContext context, String name, IRubyObject[] args )
Java: callMethod(org.jruby.runtime.ThreadContext context, String name, org.jruby.runtime.builtin.IRubyObject[] args)

Will invoke a named method with the supplied arguments and no block with functional invocation.

call_method

IRubyObject call_method ( String name, IRubyObject[] args )
Java: callMethod(String name, org.jruby.runtime.builtin.IRubyObject[] args)

call_method

IRubyObject call_method ( String name, IRubyObject arg )
Java: callMethod(String name, org.jruby.runtime.builtin.IRubyObject arg)

call_method

IRubyObject call_method ( String name )
Java: callMethod(String name)

call_method

IRubyObject call_method ( ThreadContext context, String name, IRubyObject[] args, Block block )
Java: callMethod(org.jruby.runtime.ThreadContext context, String name, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.Block block)

Will invoke a named method with the supplied arguments and supplied block with functional invocation.

call_method

IRubyObject call_method ( ThreadContext context, int method_index, String name )
Java: callMethod(org.jruby.runtime.ThreadContext context, int methodIndex, String name)

call_method

IRubyObject call_method ( ThreadContext context, int method_index, String name, IRubyObject arg )
Java: callMethod(org.jruby.runtime.ThreadContext context, int methodIndex, String name, org.jruby.runtime.builtin.IRubyObject arg)

call_super

IRubyObject call_super ( ThreadContext context, IRubyObject[] args, Block block )
Java: callSuper(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.Block block)

check_call_method

IRubyObject check_call_method ( ThreadContext context, String name )
Java: checkCallMethod(org.jruby.runtime.ThreadContext context, String name)

Will invoke a named method with no arguments and no block if that method or a custom method missing exists. Otherwise returns null. 1.9: rb_check_funcall

check_call_method

IRubyObject check_call_method ( ThreadContext context, JavaSites.CheckedSites sites )
Java: checkCallMethod(org.jruby.runtime.ThreadContext context, org.jruby.runtime.JavaSites.CheckedSites sites)

Will invoke a named method with no arguments and no block if that method or a custom method missing exists. Otherwise returns null. 1.9: rb_check_funcall

check_frozen

check_frozen ( )
Java: checkFrozen()

The actual method that checks frozen with the default frozen message from MRI. If possible, call this instead of #testFrozen.

check_string_type

IRubyObject check_string_type ( )
Java: checkStringType()

rb_check_string_type Tries to return a coerced string representation of this object, using "to_str". If that returns something other than a String or nil, an empty String will be returned.

class?

boolean class? ( )
Java: isClass() · also: is_class

Specifically polymorphic method that are meant to be overridden by classes to specify that they are classes in an easy way.

compare_to

int compare_to ( IRubyObject other )
Java: compareTo(org.jruby.runtime.builtin.IRubyObject other)

Compares this Ruby object with another.

nametypedescription
otherorg.jruby.runtime.builtin.IRubyObjectanother IRubyObject

Returns: 0 if equal, < 0 if this is less than other, > 0 if this is greater than other

convert_to_float

RubyFloat convert_to_float ( )
Java: convertToFloat()

Tries to convert this object to a Ruby Float using the "to_f" method.

Returns: float representation of this

convert_to_hash

RubyHash convert_to_hash ( )
Java: convertToHash()

Tries to convert this object to a Ruby Hash using the "to_hash" method.

Returns: hash representation of this

convert_to_integer

RubyInteger convert_to_integer ( )
Java: convertToInteger()

Tries to convert this object to a Ruby Integer using the "to_int" method.

Returns: an integer representation of this

convert_to_integer

RubyInteger convert_to_integer ( String convert_method )
Java: convertToInteger(String convertMethod)

Tries to convert this object to a Ruby Integer using the supplied conversion method.

nametypedescription
convert_methodStringconversion method to use e.g. "to_i"

Returns: an integer representation of this

convert_to_integer

RubyInteger convert_to_integer ( int method_index, String convert_method )
Java: convertToInteger(int methodIndex, String convertMethod)

convert_to_string

RubyString convert_to_string ( )
Java: convertToString()

Tries to convert this object to a Ruby String using the "to_str" method.

Returns: a string representation of this

copy_instance_variables_into

copy_instance_variables_into ( InstanceVariables other )
Java: copyInstanceVariablesInto(org.jruby.runtime.builtin.InstanceVariables other)

copy_special_instance_variables

copy_special_instance_variables ( IRubyObject clone )
Java: copySpecialInstanceVariables(org.jruby.runtime.builtin.IRubyObject clone)

Lots of MRI objects keep their state in non-lookupable ivars (e:g. Range, Struct, etc). This method is responsible for dupping our java field equivalents

current_context

ThreadContext current_context ( )
Java: getCurrentContext() · also: get_current_context

data_get_struct

Object data_get_struct ( )
Java: dataGetStruct()

data_get_struct_checked

Object data_get_struct_checked ( )
Java: dataGetStructChecked()

data_wrap_struct

data_wrap_struct ( Object obj )
Java: dataWrapStruct(Object obj)

decode

RubyString decode ( String id )
Java: decode(String id)

raw (id) strings are not properly encoded but in an iso_8859_1 form. This method will lookup properly encoded string from the symbol table.

nametypedescription
idStringthe id of the string

Returns: the string of the symbol found from id

display

IRubyObject display ( ThreadContext context, IRubyObject[] args )
Java: display(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

ensure_instance_variables_settable

ensure_instance_variables_settable ( )
Java: ensureInstanceVariablesSettable()

Makes sure that instance variables can be set on this object, including information about whether this object is frozen. Will throw a suitable exception in that case.

eql

boolean eql ( IRubyObject other )
Java: eql(org.jruby.runtime.builtin.IRubyObject other)

method used for Hash key comparison (specialized for String, Symbol and Fixnum)

Returns: Will by default just call the Ruby method "eql?"

eql_p

IRubyObject eql_p ( IRubyObject obj )
Java: eql_p(org.jruby.runtime.builtin.IRubyObject obj)

eql_p

IRubyObject eql_p ( ThreadContext context, IRubyObject obj )
Java: eql_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj)

equal_p

IRubyObject equal_p ( ThreadContext context, IRubyObject other )
Java: equal_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject other)

rb_obj_equal Will use Java identity equality.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
otherorg.jruby.runtime.builtin.IRubyObjectto compare with

Returns: are they equal?

eval_under

IRubyObject eval_under ( ThreadContext context, RubyModule under, RubyString src, String file, int line, EvalType eval_type )
Java: evalUnder(org.jruby.runtime.ThreadContext context, org.jruby.RubyModule under, org.jruby.RubyString src, String file, int line, org.jruby.EvalType evalType)

extend

IRubyObject extend ( IRubyObject[] args )
Java: extend(org.jruby.runtime.builtin.IRubyObject[] args)

rb_obj_extend call-seq: obj.extend(module, ...) => obj Adds to _obj_ the instance methods from each module given as a parameter. module Mod def hello "Hello from Mod.\n" end end class Klass def hello "Hello from Klass.\n" end end k = Klass.new k.hello #=> "Hello from Klass.\n" k.extend(Mod) #=> #<Klass:0x401b3bc8> k.hello #=> "Hello from Mod.\n"

nametypedescription
argsorg.jruby.runtime.builtin.IRubyObject[]to use as modules to extend

Returns: itself

false?

boolean false? ( )
Java: isFalse() · also: is_false

Is this value a falsey value or not? Based on the #FALSE_F flag.

Returns: true is false

fast_get_instance_variable

IRubyObject fast_get_instance_variable ( String interned_name )
Java: fastGetInstanceVariable(String internedName)

fast_get_internal_variable

Object fast_get_internal_variable ( String interned_name )
Java: fastGetInternalVariable(String internedName)

fast_has_instance_variable

boolean fast_has_instance_variable ( String interned_name )
Java: fastHasInstanceVariable(String internedName)

fast_has_internal_variable

boolean fast_has_internal_variable ( String interned_name )
Java: fastHasInternalVariable(String internedName)

fast_set_instance_variable

IRubyObject fast_set_instance_variable ( String interned_name, IRubyObject value )
Java: fastSetInstanceVariable(String internedName, org.jruby.runtime.builtin.IRubyObject value)

fast_set_internal_variable

fast_set_internal_variable ( String interned_name, Object value )
Java: fastSetInternalVariable(String internedName, Object value)

ffi_handle

Object ffi_handle ( )
Java: getFFIHandle() · also: get_ffi_handle

ffi_handle=

ffi_handle= ( Object value )
Java: setFFIHandle(Object value) · also: set_ffi_handle

for_each_instance_variable

for_each_instance_variable ( BiConsumer<String,IRubyObject> accessor )
Java: forEachInstanceVariable(java.util.function.BiConsumer<String,org.jruby.runtime.builtin.IRubyObject> accessor)

for_each_instance_variable_name

for_each_instance_variable_name ( Consumer<String> consumer )
Java: forEachInstanceVariableName(java.util.function.Consumer<String> consumer)

freeze

IRubyObject freeze ( ThreadContext context )
Java: freeze(org.jruby.runtime.ThreadContext context)

frozen=

frozen= ( boolean frozen )
Java: setFrozen(boolean frozen) · also: set_frozen

Sets whether this object is frozen or not. Shortcut for doing setFlag(FROZEN_F, frozen).

nametypedescription
frozenbooleanshould this object be frozen?

frozen?

boolean frozen? ( )
Java: isFrozen() · also: is_frozen

Is this value frozen or not? Shortcut for doing getFlag(FROZEN_F).

Returns: true if this object is frozen, false otherwise

get_flag

boolean get_flag ( int flag )
Java: getFlag(int flag)

Get the value of a custom flag on this object. The only guaranteed flags that can be sent in to this method is:

  • #FALSE_F
  • #NIL_F
  • #FROZEN_F

nametypedescription
flagintthe flag to get

Returns: true if the flag is set, false otherwise

get_instance_variable

IRubyObject get_instance_variable ( String name )
Java: getInstanceVariable(String name)

get_internal_variable

Object get_internal_variable ( String name )
Java: getInternalVariable(String name)

get_variable

Object get_variable ( int index )
Java: getVariable(int index)

has_instance_variable

boolean has_instance_variable ( String name )
Java: hasInstanceVariable(String name)

has_internal_variable

boolean has_internal_variable ( String name )
Java: hasInternalVariable(String name)

has_variables?

boolean has_variables? ( )
Java: hasVariables() · also: has_variables

Returns true if object has any variables

hash

RubyFixnum hash ( )
Java: hash()
Deprecated. Use RubyBasicObject#hash(ThreadContext) instead.

Will return the hash code of this object. In comparison to MRI, this method will use the Java identity hash code instead of using rb_obj_id, since the usage of id in JRuby will incur the cost of some. ObjectSpace maintenance.

Returns: hash value

hashy_inspect

IRubyObject hashy_inspect ( )
Java: hashyInspect()

id

IRubyObject id ( )
Java: id()

immediate?

boolean immediate? ( )
Java: isImmediate() · also: is_immediate

Is object immediate (def: Fixnum, Symbol, true, false, nil?).

infect_by

IRubyObject infect_by ( IRubyObject obj )
Java: infectBy(org.jruby.runtime.builtin.IRubyObject obj)

initialize

IRubyObject initialize ( ThreadContext context )
Java: initialize(org.jruby.runtime.ThreadContext context)

initialize_copy

IRubyObject initialize_copy ( IRubyObject original )
Java: initialize_copy(org.jruby.runtime.builtin.IRubyObject original)
Deprecated. Use org.jruby.RubyBasicObject#initialize_copy(ThreadContext, IRubyObject) instead.
nametypedescription
originalorg.jruby.runtime.builtin.IRubyObjectobject

Returns: a copy

inspect

IRubyObject inspect ( )
Java: inspect()

instance_eval

IRubyObject instance_eval ( ThreadContext context, Block block )
Java: instance_eval(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

instance_eval

IRubyObject instance_eval ( ThreadContext context, IRubyObject arg0, Block block )
Java: instance_eval(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.Block block)

instance_eval

IRubyObject instance_eval ( ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block )
Java: instance_eval(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.Block block)

instance_eval

IRubyObject instance_eval ( ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block )
Java: instance_eval(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.builtin.IRubyObject arg2, org.jruby.runtime.Block block)

instance_eval

IRubyObject instance_eval ( ThreadContext context, IRubyObject[] args, Block block )
Java: instance_eval(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.Block block)

instance_exec

IRubyObject instance_exec ( ThreadContext context, IRubyObject[] args, Block block )
Java: instance_exec(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.Block block)

rb_obj_instance_exec call-seq: obj.instance_exec(arg...) {|var...| block } => obj Executes the given block within the context of the receiver (_obj_). In order to set the context, the variable +self+ is set to _obj_ while the code is executing, giving the code access to _obj_'s instance variables. Arguments are passed as block parameters. class Klass def initialize @secret = 99 end end k = Klass.new k.instance_exec(5) {|x| @secret+x } #=> 104

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
argsorg.jruby.runtime.builtin.IRubyObject[]the args
blockorg.jruby.runtime.Blockblock

Returns: the result

instance_of_p

RubyBoolean instance_of_p ( ThreadContext context, IRubyObject type )
Java: instance_of_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject type)

rb_obj_is_instance_of call-seq: obj.instance_of?(class) => true or false Returns true if obj is an instance of the given class. See also Object#kind_of?.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
typeorg.jruby.runtime.builtin.IRubyObjectthe type

Returns: true if this is instance of type

instance_variable_defined_p

IRubyObject instance_variable_defined_p ( ThreadContext context, IRubyObject name )
Java: instance_variable_defined_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject name)

rb_obj_ivar_defined call-seq: obj.instance_variable_defined?(symbol) => true or false Returns true if the given instance variable is defined in obj. class Fred def initialize(p1, p2) @a, @b = p1, p2 end end fred = Fred.new('cat', 99) fred.instance_variable_defined?(:@a) #=> true fred.instance_variable_defined?("@b") #=> true fred.instance_variable_defined?("@c") #=> false

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
nameorg.jruby.runtime.builtin.IRubyObjectof ivar

Returns: true if defined

instance_variable_get

IRubyObject instance_variable_get ( ThreadContext context, IRubyObject name )
Java: instance_variable_get(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject name)

rb_obj_ivar_get call-seq: obj.instance_variable_get(symbol) => obj Returns the value of the given instance variable, or nil if the instance variable is not set. The @ part of the variable name should be included for regular instance variables. Throws a NameError exception if the supplied symbol is not valid as an instance variable name. class Fred def initialize(p1, p2) @a, @b = p1, p2 end end fred = Fred.new('cat', 99) fred.instance_variable_get(:@a) #=> "cat" fred.instance_variable_get("@b") #=> 99

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
nameorg.jruby.runtime.builtin.IRubyObjectof ivar

Returns: value of ivar

instance_variable_list

List<Variable<IRubyObject>> instance_variable_list ( )
Java: getInstanceVariableList() · also: get_instance_variable_list

Gets a list of all variables in this object.

instance_variable_name_list

List<String> instance_variable_name_list ( )
Java: getInstanceVariableNameList() · also: get_instance_variable_name_list

Gets a name list of all variables in this object.

instance_variable_set

IRubyObject instance_variable_set ( IRubyObject name, IRubyObject value )
Java: instance_variable_set(org.jruby.runtime.builtin.IRubyObject name, org.jruby.runtime.builtin.IRubyObject value)

rb_obj_ivar_set call-seq: obj.instance_variable_set(symbol, obj) => obj Sets the instance variable names by symbol to object, thereby frustrating the efforts of the class's author to attempt to provide proper encapsulation. The variable did not have to exist prior to this call. class Fred def initialize(p1, p2) @a, @b = p1, p2 end end fred = Fred.new('cat', 99) fred.instance_variable_set(:@a, 'dog') #=> "dog" fred.instance_variable_set(:@c, 'cat') #=> "cat" fred.inspect #=> "#<Fred:0x401b3da8 @a=\"dog\", @b=99, @c=\"cat\">"

nametypedescription
nameorg.jruby.runtime.builtin.IRubyObjectof ivar
valueorg.jruby.runtime.builtin.IRubyObjectto set

Returns: value of old set ivar

instance_variables

InstanceVariables instance_variables ( )
Java: getInstanceVariables() · also: get_instance_variables

Dummy method to avoid a cast, and to avoid polluting the IRubyObject interface with all the instance variable management methods.

instance_variables

RubyArray instance_variables ( ThreadContext context )
Java: instance_variables(org.jruby.runtime.ThreadContext context)

rb_obj_instance_variables call-seq: obj.instance_variables => array Returns an array of instance variable names for the receiver. Note that simply defining an accessor does not create the corresponding instance variable. class Fred attr_accessor :a1 def initialize @iv = 3 end end Fred.new.instance_variables #=> [:"@iv"]

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context

Returns: list of ivars

internal_variables

InternalVariables internal_variables ( )
Java: getInternalVariables() · also: get_internal_variables

Dummy method to avoid a cast, and to avoid polluting the IRubyObject interface with all the instance variable management methods.

is_builtin

boolean is_builtin ( String method_name )
Java: isBuiltin(String methodName)

A method to determine whether the method named by methodName is a builtin method, i.e. a method built-in to JRuby and loaded during its core boot process.

nametypedescription
method_nameStringto look for.

Returns: true if so

kind_of_p

RubyBoolean kind_of_p ( ThreadContext context, IRubyObject type )
Java: kind_of_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject type)

rb_obj_is_kind_of call-seq: obj.is_a?(class) => true or false obj.kind_of?(class) => true or false Returns true if class is the class of obj, or if class is one of the superclasses of obj or modules included in obj. module M; end class A include M end class B < A; end class C < B; end b = B.new b.instance_of? A #=> false b.instance_of? B #=> true b.instance_of? C #=> false b.instance_of? M #=> false b.kind_of? A #=> true b.kind_of? B #=> true b.kind_of? C #=> false b.kind_of? M #=> true

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
typeorg.jruby.runtime.builtin.IRubyObjectthe type

Returns: true if this is kind of type

make_meta_class

RubyClass make_meta_class ( RubyClass super_class )
Java: makeMetaClass(org.jruby.RubyClass superClass)

make_meta_class

RubyClass make_meta_class ( ThreadContext context, RubyClass super_class )
Java: makeMetaClass(org.jruby.runtime.ThreadContext context, org.jruby.RubyClass superClass)

rb_make_metaclass Will create a new meta class, insert this in the chain of classes for this specific object, and return the generated meta class.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
super_classorg.jruby.RubyClassthe super class

Returns: the new meta class

make_meta_class_bootstrap

RubyClass make_meta_class_bootstrap ( Ruby runtime, RubyClass super_class, RubyClass class )
Java: makeMetaClassBootstrap(org.jruby.Ruby runtime, org.jruby.RubyClass superClass, org.jruby.RubyClass Class)

This will create a new metaclass. This is only used during bootstrapping before the initial ThreadContext is defined. Normal needs of making a metaclass should use RubyBasicObject#makeMetaClass(ThreadContext, RubyClass)

nametypedescription
runtimeorg.jruby.Rubythe runtime
super_classorg.jruby.RubyClassof the metaclass
classorg.jruby.RubyClassa reference to Ruby Class

Returns: the new metaclass

marshal_variable_list

List<Variable<Object>> marshal_variable_list ( )
Java: getMarshalVariableList() · also: get_marshal_variable_list

meta_class

RubyClass meta_class ( )
Java: getMetaClass() · also: get_meta_class

if exist return the meta-class else return the type of the object.

meta_class=

meta_class= ( RubyClass meta_class )
Java: setMetaClass(org.jruby.RubyClass metaClass) · also: set_meta_class

Makes it possible to change the metaclass of an object. In practice, this is a simple version of Smalltalks Become, except that it doesn't work when we're dealing with subclasses. In practice it's used to change the singleton/meta class used, without changing the "real" inheritance chain.

nametypedescription
meta_classorg.jruby.RubyClassthe meta class to set

method

IRubyObject method ( IRubyObject name )
Java: method(org.jruby.runtime.builtin.IRubyObject name)

method

IRubyObject method ( IRubyObject name, StaticScope refined_scope )
Java: method(org.jruby.runtime.builtin.IRubyObject name, org.jruby.parser.StaticScope refinedScope)

method

IRubyObject method ( ThreadContext context, IRubyObject name, StaticScope refined_scope )
Java: method(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject name, org.jruby.parser.StaticScope refinedScope)

Like #method(IRubyObject) but using the given refinement scope to search for the method.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
nameorg.jruby.runtime.builtin.IRubyObjectthe name of the method
refined_scopeorg.jruby.parser.StaticScopethe static scope for the caller method

Returns: method instance

methods

IRubyObject methods ( ThreadContext context, IRubyObject[] args )
Java: methods(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

rb_obj_methods call-seq: obj.methods => array Returns a list of the names of methods publicly accessible in obj. This will include all the methods accessible in obj's ancestors. class Klass def kMethod() end end k = Klass.new k.methods[0..9] #=> ["kMethod", "freeze", "nil?", "is_a?", "class", "instance_variable_set", "methods", "extend", "__send__", "instance_eval"] k.methods.length #=> 42

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
argsorg.jruby.runtime.builtin.IRubyObject[]include ancestors

Returns: methods

methods

IRubyObject methods ( ThreadContext context, IRubyObject[] args, boolean use_symbols )
Java: methods(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args, boolean useSymbols)

module?

boolean module? ( )
Java: isModule() · also: is_module

Specifically polymorphic method that are meant to be overridden by modules to specify that they are modules in an easy way.

native_handle

Object native_handle ( )
Java: getNativeHandle() · also: get_native_handle

native_handle=

native_handle= ( Object value )
Java: setNativeHandle(Object value) · also: set_native_handle

native_type_index

int native_type_index ( )
Java: getNativeTypeIndex() · also: get_native_type_index

nil?

boolean nil? ( )
Java: isNil() · also: is_nil

Does this object represent nil? See the docs for the #NIL_F flag for more information.

nil_p

IRubyObject nil_p ( ThreadContext context )
Java: nil_p(org.jruby.runtime.ThreadContext context)

rb_false call_seq: nil.nil? => true <anything_else>.nil? => false Only the object nil responds true to nil?.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context

Returns: true if nil

op_match

IRubyObject op_match ( ThreadContext context, IRubyObject arg )
Java: op_match(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg)

rb_obj_pattern_match call-seq: obj =~ other => nil Pattern Match---Overridden by descendents (notably Regexp and String) to provide meaningful pattern-match semantics.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
argorg.jruby.runtime.builtin.IRubyObjectarg

Returns: true if matches (always nil)

op_not

IRubyObject op_not ( ThreadContext context )
Java: op_not(org.jruby.runtime.ThreadContext context)

op_not_equal

IRubyObject op_not_equal ( ThreadContext context, IRubyObject other )
Java: op_not_equal(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject other)

The != method implemented for BasicObject.

nametypedescription
contextorg.jruby.runtime.ThreadContextthread context
otherorg.jruby.runtime.builtin.IRubyObjectother object

Returns: false if this == other, true otherwise

op_not_match

IRubyObject op_not_match ( ThreadContext context, IRubyObject arg )
Java: op_not_match(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg)

Invert the match operator.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
argorg.jruby.runtime.builtin.IRubyObjectarg

Returns: true if they do not match

private_methods

IRubyObject private_methods ( ThreadContext context, IRubyObject[] args )
Java: private_methods(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

protected_methods

IRubyObject protected_methods ( ThreadContext context, IRubyObject[] args )
Java: protected_methods(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

public_methods

IRubyObject public_methods ( ThreadContext context, IRubyObject[] args )
Java: public_methods(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

rb_clone

IRubyObject rb_clone ( )
Java: rbClone()

rb_clone

IRubyObject rb_clone ( ThreadContext context, IRubyObject maybe_opts )
Java: rbClone(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject maybeOpts)

remove_finalizers

remove_finalizers ( )
Java: removeFinalizers()

Remove all the finalizers for this object.

remove_instance_variable

IRubyObject remove_instance_variable ( String name )
Java: removeInstanceVariable(String name)

remove_instance_variable

IRubyObject remove_instance_variable ( ThreadContext context, IRubyObject name, Block block )
Java: remove_instance_variable(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject name, org.jruby.runtime.Block block)

rb_obj_remove_instance_variable call-seq: obj.remove_instance_variable(symbol) => obj Removes the named instance variable from obj, returning that variable's value. class Dummy attr_reader :var def initialize @var = 99 end def remove remove_instance_variable(:@var) end end d = Dummy.new d.var #=> 99 d.remove #=> 99 d.var #=> nil

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
nameorg.jruby.runtime.builtin.IRubyObjectof ivar
blockorg.jruby.runtime.Blockthe block (not used)

Returns: value of removed ivar

remove_internal_variable

Object remove_internal_variable ( String name )
Java: removeInternalVariable(String name)

respond_to_p

RubyBoolean respond_to_p ( IRubyObject mname )
Java: respond_to_p(org.jruby.runtime.builtin.IRubyObject mname)

respond_to_p

RubyBoolean respond_to_p ( IRubyObject mname, IRubyObject include_private )
Java: respond_to_p(org.jruby.runtime.builtin.IRubyObject mname, org.jruby.runtime.builtin.IRubyObject includePrivate)

responds_to

boolean responds_to ( String name )
Java: respondsTo(String name)

Does this object respond to the specified message? Uses a shortcut if it can be proved that respond_to? and respond_to_missing? haven't been overridden.

responds_to_missing

boolean responds_to_missing ( String name )
Java: respondsToMissing(String name)

Does this object respond to the specified message via "method_missing?"

responds_to_missing

boolean responds_to_missing ( String name, boolean inc_private )
Java: respondsToMissing(String name, boolean incPrivate)

Does this object respond to the specified message via "method_missing?"

runtime

Ruby runtime ( )
Java: getRuntime() · also: get_runtime

Will return the runtime that this object is associated with.

Returns: current runtime

send

IRubyObject send ( ThreadContext context, Block block )
Java: send(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

send

IRubyObject send ( ThreadContext context, IRubyObject arg0, Block block )
Java: send(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.Block block)

send

IRubyObject send ( ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block )
Java: send(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.Block block)

send

IRubyObject send ( ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block )
Java: send(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.builtin.IRubyObject arg2, org.jruby.runtime.Block block)

send

IRubyObject send ( ThreadContext context, IRubyObject[] args, Block block )
Java: send(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.Block block)

set_flag

set_flag ( int flag, boolean set )
Java: setFlag(int flag, boolean set)

Sets or unsets a flag on this object. The only flags that are guaranteed to be valid to use as the first argument is:

  • #FALSE_F
  • #NIL_F
  • #FROZEN_F

nametypedescription
flagintthe actual flag to set or unset.
setbooleanif true, the flag will be set, if false, the flag will be unset.

set_instance_variable

IRubyObject set_instance_variable ( String name, IRubyObject value )
Java: setInstanceVariable(String name, org.jruby.runtime.builtin.IRubyObject value)

rb_iv_set / rb_ivar_set

set_internal_variable

set_internal_variable ( String name, Object value )
Java: setInternalVariable(String name, Object value)

set_variable

set_variable ( int index, Object value )
Java: setVariable(int index, Object value)

singleton_class

RubyClass singleton_class ( )
Java: getSingletonClass() · also: get_singleton_class

singleton_class

RubyClass singleton_class ( ThreadContext context )
Java: singletonClass(org.jruby.runtime.ThreadContext context)

Will either return the existing singleton class for this object, or create a new one and return that. For a few types a singleton class is not possible so it will throw an error.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe current thread context

Returns: the singleton of this type

singleton_method

IRubyObject singleton_method ( IRubyObject name )
Java: singleton_method(org.jruby.runtime.builtin.IRubyObject name)

singleton_method

IRubyObject singleton_method ( ThreadContext context, IRubyObject name )
Java: singleton_method(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject name)

singleton_methods

RubyArray singleton_methods ( ThreadContext context, IRubyObject[] args )
Java: singleton_methods(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

special_const?

boolean special_const? ( )
Java: isSpecialConst() · also: is_special_const

special_object?

boolean special_object? ( )
Java: isSpecialObject() · also: is_special_object

specific_eval

IRubyObject specific_eval ( ThreadContext context, RubyModule mod, Block block, EvalType eval_type )
Java: specificEval(org.jruby.runtime.ThreadContext context, org.jruby.RubyModule mod, org.jruby.runtime.Block block, org.jruby.EvalType evalType)

specific_eval Evaluates the block or string inside of the context of this object, using the supplied arguments. If a block is given, this will be yielded in the specific context of this object. If no block is given then a String-like object needs to be the first argument, and this string will be evaluated. Second and third arguments in the args-array is optional, but can contain the filename and line of the string under evaluation.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
modorg.jruby.RubyModulemodule to yield in
blockorg.jruby.runtime.Blockto call
eval_typeorg.jruby.EvalTypetype of evaal to perform

Returns: the result

specific_eval

IRubyObject specific_eval ( ThreadContext context, RubyModule mod, IRubyObject arg, Block block, EvalType eval_type )
Java: specificEval(org.jruby.runtime.ThreadContext context, org.jruby.RubyModule mod, org.jruby.runtime.builtin.IRubyObject arg, org.jruby.runtime.Block block, org.jruby.EvalType evalType)

specific_eval Evaluates the block or string inside of the context of this object, using the supplied arguments. If a block is given, this will be yielded in the specific context of this object. If no block is given then a String-like object needs to be the first argument, and this string will be evaluated. Second and third arguments in the args-array is optional, but can contain the filename and line of the string under evaluation.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
modorg.jruby.RubyModulemodule to yield in
argorg.jruby.runtime.builtin.IRubyObjectto pass to block
blockorg.jruby.runtime.Blockto call
eval_typeorg.jruby.EvalTypetype of evaal to perform

Returns: the result

specific_eval

IRubyObject specific_eval ( ThreadContext context, RubyModule mod, IRubyObject arg0, IRubyObject arg1, Block block, EvalType eval_type )
Java: specificEval(org.jruby.runtime.ThreadContext context, org.jruby.RubyModule mod, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.Block block, org.jruby.EvalType evalType)

specific_eval Evaluates the block or string inside of the context of this object, using the supplied arguments. If a block is given, this will be yielded in the specific context of this object. If no block is given then a String-like object needs to be the first argument, and this string will be evaluated. Second and third arguments in the args-array is optional, but can contain the filename and line of the string under evaluation.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
modorg.jruby.RubyModulemodule to yield in
arg0org.jruby.runtime.builtin.IRubyObjectto pass to block
arg1org.jruby.runtime.builtin.IRubyObjectto pass to block
blockorg.jruby.runtime.Blockto call
eval_typeorg.jruby.EvalTypetype of evaal to perform

Returns: the result

specific_eval

IRubyObject specific_eval ( ThreadContext context, RubyModule mod, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block, EvalType eval_type )
Java: specificEval(org.jruby.runtime.ThreadContext context, org.jruby.RubyModule mod, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.builtin.IRubyObject arg2, org.jruby.runtime.Block block, org.jruby.EvalType evalType)

specific_eval Evaluates the block or string inside of the context of this object, using the supplied arguments. If a block is given, this will be yielded in the specific context of this object. If no block is given then a String-like object needs to be the first argument, and this string will be evaluated. Second and third arguments in the args-array is optional, but can contain the filename and line of the string under evaluation.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
modorg.jruby.RubyModulemodule to yield in
arg0org.jruby.runtime.builtin.IRubyObjectto pass to block
arg1org.jruby.runtime.builtin.IRubyObjectto pass to block
arg2org.jruby.runtime.builtin.IRubyObjectto pass to block
blockorg.jruby.runtime.Blockto call
eval_typeorg.jruby.EvalTypetype of evaal to perform

Returns: the result

sync_variables

sync_variables ( IRubyObject other )
Java: syncVariables(org.jruby.runtime.builtin.IRubyObject other)

Sync one this object's variables with other's - this is used to make rbClone work correctly.

sync_variables

sync_variables ( List<Variable<Object>> variables )
Java: syncVariables(List<org.jruby.runtime.builtin.Variable<Object>> variables)

taint

IRubyObject taint ( ThreadContext context )
Java: taint(org.jruby.runtime.ThreadContext context)

taint=

taint= ( boolean taint )
Java: setTaint(boolean taint) · also: set_taint

taint?

boolean taint? ( )
Java: isTaint() · also: is_taint

tainted_p

RubyBoolean tainted_p ( ThreadContext context )
Java: tainted_p(org.jruby.runtime.ThreadContext context)

to_s

IRubyObject to_s ( )
Java: to_s()
Deprecated. Use RubyBasicObject#to_s(ThreadContext) instead.

Returns: ""

true?

boolean true? ( )
Java: isTrue() · also: is_true

Is this value a truthy value or not? Based on the #FALSE_F flag.

Returns: true it truthy

trust

IRubyObject trust ( ThreadContext context )
Java: trust(org.jruby.runtime.ThreadContext context)

type

RubyClass type ( )
Java: getType() · also: get_type

type

RubyClass type ( )
Java: type()

rb_obj_class Returns the real class of this object, excluding any singleton/meta class in the inheritance chain.

Returns: the real class

untaint

IRubyObject untaint ( ThreadContext context )
Java: untaint(org.jruby.runtime.ThreadContext context)

untrust

IRubyObject untrust ( ThreadContext context )
Java: untrust(org.jruby.runtime.ThreadContext context)

untrusted=

untrusted= ( boolean untrusted )
Java: setUntrusted(boolean untrusted) · also: set_untrusted

untrusted?

boolean untrusted? ( )
Java: isUntrusted() · also: is_untrusted

untrusted_p

RubyBoolean untrusted_p ( ThreadContext context )
Java: untrusted_p(org.jruby.runtime.ThreadContext context)

variable_count

int variable_count ( )
Java: getVariableCount() · also: get_variable_count

variable_list

List<Variable<Object>> variable_list ( )
Java: getVariableList() · also: get_variable_list

Gets a list of all variables in this object.

variable_name_list

List<String> variable_name_list ( )
Java: getVariableNameList() · also: get_variable_name_list

Gets a name list of all variables in this object.

from Collection

parallel_stream

Stream<E> parallel_stream ( )
Java: parallelStream()

remove_if

boolean remove_if ( Predicate<? super E> arg0 )
Java: removeIf(java.util.function.Predicate<? super E> arg0)

stream

Stream<E> stream ( )
Java: stream()

to_array

T[] to_array ( IntFunction<T[]> arg0 )
Java: toArray(java.util.function.IntFunction<T[]> arg0)

from RubyObject

fieldtypenote
IVAR_INSPECTING_OBJECT_ALLOCATOR ObjectAllocator Allocator that inspects all methods for instance variables and chooses a concrete class to construct based on that. This allows using specialized subclasses to hold instance variables in fields rather than always holding them in an array.
OBJECT_ALLOCATOR ObjectAllocator Default allocator instance for all Ruby objects. The only reason to not use this allocator is if you actually need to have all instances of something be a subclass of RubyObject.
REIFYING_OBJECT_ALLOCATOR ObjectAllocator

attach_to_object_space

attach_to_object_space ( )
Java: attachToObjectSpace()

Will make sure that this object is added to the current object space.

call_init

call_init ( IRubyObject[] args, Block block )
Java: callInit(org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.Block block)

Call the Ruby initialize method with the supplied arguments and block.

nametypedescription
argsorg.jruby.runtime.builtin.IRubyObject[]args
blockorg.jruby.runtime.Blockblock

call_init

call_init ( Block block )
Java: callInit(org.jruby.runtime.Block block)

Call the Ruby initialize method with the supplied arguments and block.

nametypedescription
blockorg.jruby.runtime.Blockblock

call_init

call_init ( IRubyObject arg0, Block block )
Java: callInit(org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.Block block)

Call the Ruby initialize method with the supplied arguments and block.

nametypedescription
arg0org.jruby.runtime.builtin.IRubyObjectarg0
blockorg.jruby.runtime.Blockblock

call_init

call_init ( IRubyObject arg0, IRubyObject arg1, Block block )
Java: callInit(org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.Block block)

Call the Ruby initialize method with the supplied arguments and block.

nametypedescription
arg0org.jruby.runtime.builtin.IRubyObjectarg0
arg1org.jruby.runtime.builtin.IRubyObjectarg1
blockorg.jruby.runtime.Blockblock

call_init

call_init ( IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block )
Java: callInit(org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.builtin.IRubyObject arg2, org.jruby.runtime.Block block)

call_init

call_init ( ThreadContext context, IRubyObject[] args, Block block )
Java: callInit(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.Block block)

call_init

call_init ( ThreadContext context, Block block )
Java: callInit(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

call_init

call_init ( ThreadContext context, IRubyObject arg0, Block block )
Java: callInit(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.Block block)

call_init

call_init ( ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block )
Java: callInit(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.Block block)

call_init

call_init ( ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block )
Java: callInit(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.builtin.IRubyObject arg2, org.jruby.runtime.Block block)

convert_to_type

IRubyObject convert_to_type ( RubyClass target, int convert_method_index )
Java: convertToType(org.jruby.RubyClass target, int convertMethodIndex)

hash_code

int hash_code ( )
Java: hashCode()

This override does not do "checked" dispatch since Object usually has #hash defined.

Returns: the hash code

op_eqq

IRubyObject op_eqq ( ThreadContext context, IRubyObject other )
Java: op_eqq(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject other)

rb_equal The Ruby "===" method is used by default in case/when statements. The Object implementation first checks Java identity equality and then calls the "==" method too.

specific_eval

IRubyObject specific_eval ( ThreadContext context, RubyModule mod, IRubyObject[] args, Block block, EvalType eval_type )
Java: specificEval(org.jruby.runtime.ThreadContext context, org.jruby.RubyModule mod, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.Block block, org.jruby.EvalType evalType)

to_ruby_string

RubyString to_ruby_string ( ThreadContext context )
Java: toRubyString(org.jruby.runtime.ThreadContext context)

The default toString method is just a wrapper that calls the Ruby "to_s" method. This will raise if it is not actually a Ruby String.

nametypedescription
contextorg.jruby.runtime.ThreadContextthread context this is executing on.

Returns: the string.

to_string

String to_string ( )
Java: toString()

The default toString method is just a wrapper that calls the Ruby "to_s" method.

Returns: string representation

from List

add_first

add_first ( E arg0 )
Java: addFirst(E arg0)

add_last

add_last ( E arg0 )
Java: addLast(E arg0)

first

E first ( )
Java: getFirst() · also: get_first

hash_code

int hash_code ( )
Java: hashCode()

last

E last ( )
Java: getLast() · also: get_last

remove_first

E remove_first ( )
Java: removeFirst()

remove_last

E remove_last ( )
Java: removeLast()

replace_all

replace_all ( UnaryOperator<E> arg0 )
Java: replaceAll(java.util.function.UnaryOperator<E> arg0)

reversed

List<E> reversed ( )
Java: reversed()

sort

sort ( Comparator<? super E> arg0 )
Java: sort(Comparator<? super E> arg0)

spliterator

Spliterator<E> spliterator ( )
Java: spliterator()

from RubyArray

fieldtypenote
ARRAY_DEFAULT_SIZE int
DEFAULT_INSPECT_STR_SIZE int

add

boolean add ( Object element )
Java: add(Object element)

add

boolean add ( ThreadContext context, Object element )
Java: add(org.jruby.runtime.ThreadContext context, Object element)

add

add ( int index, Object element )
Java: add(int index, Object element)

add_all

boolean add_all ( Collection c )
Java: addAll(Collection c)

add_all

boolean add_all ( int index, Collection c )
Java: addAll(int index, Collection c)

all_p

IRubyObject all_p ( ThreadContext context, Block block )
Java: all_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

all_p

IRubyObject all_p ( ThreadContext context, IRubyObject arg, Block block )
Java: all_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg, org.jruby.runtime.Block block)

all_p_common

IRubyObject all_p_common ( ThreadContext context, IRubyObject arg, Block block )
Java: all_pCommon(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg, org.jruby.runtime.Block block)

any_p

IRubyObject any_p ( ThreadContext context, Block block )
Java: any_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

any_p

IRubyObject any_p ( ThreadContext context, IRubyObject arg, Block block )
Java: any_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg, org.jruby.runtime.Block block)

any_p_common

IRubyObject any_p_common ( ThreadContext context, IRubyObject arg, Block block )
Java: any_pCommon(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg, org.jruby.runtime.Block block)

append

RubyArray<?> append ( IRubyObject item )
Java: append(org.jruby.runtime.builtin.IRubyObject item)

append

RubyArray append ( ThreadContext context, IRubyObject item )
Java: append(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject item)

rb_ary_push - specialized rb_ary_store

aref

IRubyObject aref ( IRubyObject[] args )
Java: aref(org.jruby.runtime.builtin.IRubyObject[] args)
Deprecated. Use the versions with zero, one, or two args.

Variable arity version for compatibility. Not bound to a Ruby method.

aref

IRubyObject aref ( IRubyObject arg0 )
Java: aref(org.jruby.runtime.builtin.IRubyObject arg0)

aref

IRubyObject aref ( ThreadContext context, IRubyObject arg0 )
Java: aref(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0)

rb_ary_aref

aref

IRubyObject aref ( IRubyObject arg0, IRubyObject arg1 )
Java: aref(org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1)

aref

IRubyObject aref ( ThreadContext context, IRubyObject arg0, IRubyObject arg1 )
Java: aref(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1)

ary_append

RubyArray ary_append ( RubyArray y )
Java: aryAppend(org.jruby.RubyArray y)

ary_append

RubyArray ary_append ( ThreadContext context, RubyArray<?> y )
Java: aryAppend(org.jruby.runtime.ThreadContext context, org.jruby.RubyArray<?> y)

ary_dup

RubyArray ary_dup ( )
Java: aryDup()

rb_ary_dup

aset

IRubyObject aset ( IRubyObject[] args )
Java: aset(org.jruby.runtime.builtin.IRubyObject[] args)
Deprecated. Use the versions with zero, one, or two args.

Variable arity version for compatibility. Not bound to a Ruby method.

aset

IRubyObject aset ( IRubyObject arg0, IRubyObject arg1 )
Java: aset(org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1)

aset

IRubyObject aset ( ThreadContext context, IRubyObject arg0, IRubyObject arg1 )
Java: aset(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1)

aset

IRubyObject aset ( IRubyObject arg0, IRubyObject arg1, IRubyObject arg2 )
Java: aset(org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.builtin.IRubyObject arg2)
Deprecated. Use RubyArray#aset(ThreadContext, IRubyObject, IRubyObject, IRubyObject) instead.

Returns: ""

aset

IRubyObject aset ( ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2 )
Java: aset(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.builtin.IRubyObject arg2)

rb_ary_aset

assoc

IRubyObject assoc ( ThreadContext context, IRubyObject key )
Java: assoc(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject key)

rb_ary_assoc

at

IRubyObject at ( IRubyObject pos )
Java: at(org.jruby.runtime.builtin.IRubyObject pos)
Deprecated. Use RubyArray#at(ThreadContext, IRubyObject) instead.

Returns: ""

at

IRubyObject at ( ThreadContext context, IRubyObject pos )
Java: at(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject pos)

rb_ary_at

bsearch

IRubyObject bsearch ( ThreadContext context, Block block )
Java: bsearch(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

bsearch_index

IRubyObject bsearch_index ( ThreadContext context, Block block )
Java: bsearch_index(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

check_array_type

IRubyObject check_array_type ( )
Java: checkArrayType()

clear

clear ( )
Java: clear()

collect

RubyArray collect ( ThreadContext context, Block block )
Java: collect(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

collect_array

RubyArray collect_array ( ThreadContext context, Block block )
Java: collectArray(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

Collect the contents of this array after filtering through block, or return a new equivalent array if the block is not given (!isGiven()).

nametypedescription
contextorg.jruby.runtime.ThreadContextthe current context
blockorg.jruby.runtime.Blocka block for filtering or NULL_BLOCK

Returns: an array of the filtered or unfiltered results

collect_bang

RubyArray collect_bang ( ThreadContext context, Block block )
Java: collectBang(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

rb_ary_collect_bang

collect_bang

IRubyObject collect_bang ( ThreadContext context, Block block )
Java: collect_bang(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

rb_ary_collect_bang

collect_enum

RubyEnumerator collect_enum ( ThreadContext context )
Java: collectEnum(org.jruby.runtime.ThreadContext context)

Produce a new enumerator that will filter the contents of this array using #collectArray(ThreadContext, Block).

nametypedescription
contextorg.jruby.runtime.ThreadContextthe current context

Returns: an enumerator that will filter results

combination

IRubyObject combination ( ThreadContext context, IRubyObject num, Block block )
Java: combination(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject num, org.jruby.runtime.Block block)

rb_ary_combination

compact

IRubyObject compact ( )
Java: compact()

compact

IRubyObject compact ( ThreadContext context )
Java: compact(org.jruby.runtime.ThreadContext context)

compact_bang

IRubyObject compact_bang ( )
Java: compact_bang()
Deprecated. Use RubyArray#compact_bang(ThreadContext)

Returns: ""

compact_bang

IRubyObject compact_bang ( ThreadContext context )
Java: compact_bang(org.jruby.runtime.ThreadContext context)

rb_ary_compact_bang

compare

RubyBoolean compare ( ThreadContext context, CallSite site, IRubyObject other )
Java: compare(org.jruby.runtime.ThreadContext context, org.jruby.runtime.CallSite site, org.jruby.runtime.builtin.IRubyObject other)

concat

RubyArray concat ( ThreadContext context, IRubyObject obj )
Java: concat(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj)

rb_ary_concat

concat

RubyArray concat ( ThreadContext context, IRubyObject[] objs )
Java: concat(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] objs)

rb_ary_concat_multi

concat

RubyArray concat ( IRubyObject obj )
Java: concat(org.jruby.runtime.builtin.IRubyObject obj)

contains

boolean contains ( Object element )
Java: contains(Object element)

contains_all

boolean contains_all ( Collection c )
Java: containsAll(Collection c)

convert_to_array

RubyArray convert_to_array ( )
Java: convertToArray()

copy_into

copy_into ( IRubyObject[] target, int start )
Java: copyInto(org.jruby.runtime.builtin.IRubyObject[] target, int start)

copy_into

copy_into ( ThreadContext context, IRubyObject[] target, int start )
Java: copyInto(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] target, int start)

Copy the values contained in this array into the target array at the specified offset. It is expected that the target array is large enough to hold all necessary values.

copy_into

copy_into ( IRubyObject[] target, int start, int len )
Java: copyInto(org.jruby.runtime.builtin.IRubyObject[] target, int start, int len)

copy_into

copy_into ( ThreadContext context, IRubyObject[] target, int start, int len )
Java: copyInto(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] target, int start, int len)

Copy the specified number of values contained in this array into the target array at the specified offset. It is expected that the target array is large enough to hold all necessary values.

count

IRubyObject count ( ThreadContext context, Block block )
Java: count(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

count

IRubyObject count ( ThreadContext context, IRubyObject obj, Block block )
Java: count(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj, org.jruby.runtime.Block block)

cycle

IRubyObject cycle ( ThreadContext context, Block block )
Java: cycle(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

rb_ary_cycle

cycle

IRubyObject cycle ( ThreadContext context, IRubyObject arg, Block block )
Java: cycle(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg, org.jruby.runtime.Block block)

rb_ary_cycle

deconstruct

IRubyObject deconstruct ( ThreadContext context )
Java: deconstruct(org.jruby.runtime.ThreadContext context)

delete

IRubyObject delete ( ThreadContext context, IRubyObject item, Block block )
Java: delete(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject item, org.jruby.runtime.Block block)

rb_ary_delete

delete_at

IRubyObject delete_at ( int pos )
Java: delete_at(int pos)

delete_at

IRubyObject delete_at ( ThreadContext context, int pos )
Java: delete_at(org.jruby.runtime.ThreadContext context, int pos)

rb_ary_delete_at

delete_at

IRubyObject delete_at ( IRubyObject obj )
Java: delete_at(org.jruby.runtime.builtin.IRubyObject obj)

delete_at

IRubyObject delete_at ( ThreadContext context, IRubyObject obj )
Java: delete_at(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj)

rb_ary_delete_at_m

delete_if

IRubyObject delete_if ( ThreadContext context, Block block )
Java: deleteIf(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

rb_ary_delete_if

delete_if

IRubyObject delete_if ( ThreadContext context, Block block )
Java: delete_if(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

detect_common

IRubyObject detect_common ( ThreadContext context, IRubyObject ifnone, Block block )
Java: detectCommon(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject ifnone, org.jruby.runtime.Block block)

difference

IRubyObject difference ( ThreadContext context, IRubyObject[] args )
Java: difference(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

rb_ary_difference_multi

dig

IRubyObject dig ( ThreadContext context, IRubyObject arg0 )
Java: dig(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0)

dig

IRubyObject dig ( ThreadContext context, IRubyObject arg0, IRubyObject arg1 )
Java: dig(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1)

dig

IRubyObject dig ( ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2 )
Java: dig(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.builtin.IRubyObject arg2)

dig

IRubyObject dig ( ThreadContext context, IRubyObject[] args )
Java: dig(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

drop

IRubyObject drop ( ThreadContext context, IRubyObject n )
Java: drop(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject n)

rb_ary_take

drop_while

IRubyObject drop_while ( ThreadContext context, Block block )
Java: drop_while(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

rb_ary_take_while

dup

IRubyObject dup ( )
Java: dup()

Overridden dup for fast-path logic.

Returns: A new RubyArray sharing the original backing store.

each

IRubyObject each ( ThreadContext context, Block block )
Java: each(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

mri: rb_ary_each

each_index

IRubyObject each_index ( ThreadContext context, Block block )
Java: eachIndex(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

rb_ary_each_index

each_index

IRubyObject each_index ( ThreadContext context, Block block )
Java: each_index(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

each_slice

IRubyObject each_slice ( ThreadContext context, int size, Block block )
Java: eachSlice(org.jruby.runtime.ThreadContext context, int size, org.jruby.runtime.Block block)

each_slice

IRubyObject each_slice ( ThreadContext context, IRubyObject arg, Block block )
Java: each_slice(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg, org.jruby.runtime.Block block)

elt_internal

T elt_internal ( int offset )
Java: eltInternal(int offset)

elt_internal_set

T elt_internal_set ( int offset, T item )
Java: eltInternalSet(int offset, T item)

elt_ok

T elt_ok ( long offset )
Java: eltOk(long offset)

elt_set_ok

T elt_set_ok ( long offset, T value )
Java: eltSetOk(long offset, T value)

elt_set_ok

T elt_set_ok ( int offset, T value )
Java: eltSetOk(int offset, T value)

empty?

boolean empty? ( )
Java: isEmpty() · also: is_empty

empty_p

IRubyObject empty_p ( )
Java: empty_p()

empty_p

IRubyObject empty_p ( ThreadContext context )
Java: empty_p(org.jruby.runtime.ThreadContext context)

rb_ary_empty_p

ensure_capacity

ensure_capacity ( int min_capacity )
Java: ensureCapacity(int minCapacity)

Increases the capacity of this Array, if necessary.

nametypedescription
min_capacityintthe desired minimum capacity of the internal array

entry

IRubyObject entry ( long offset )
Java: entry(long offset)

rb_ary_entry

entry

IRubyObject entry ( int offset )
Java: entry(int offset)

eql

IRubyObject eql ( ThreadContext context, IRubyObject obj )
Java: eql(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj)

rb_ary_eql

equals

boolean equals ( Object other )
Java: equals(Object other)

fetch

IRubyObject fetch ( ThreadContext context, IRubyObject[] args, Block block )
Java: fetch(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.Block block)
Deprecated. Use the versions with zero, one, or two args.

Variable arity version for compatibility. Not bound to a Ruby method.

fetch

IRubyObject fetch ( ThreadContext context, IRubyObject arg0, Block block )
Java: fetch(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.Block block)

rb_ary_fetch

fetch

IRubyObject fetch ( ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block )
Java: fetch(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.Block block)

rb_ary_fetch

fetch_values

IRubyObject fetch_values ( ThreadContext context, IRubyObject[] args, Block block )
Java: fetch_values(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.Block block)

fill

IRubyObject fill ( ThreadContext context, Block block )
Java: fill(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

fill

IRubyObject fill ( ThreadContext context, IRubyObject arg, Block block )
Java: fill(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg, org.jruby.runtime.Block block)

fill

IRubyObject fill ( ThreadContext context, IRubyObject arg1, IRubyObject arg2, Block block )
Java: fill(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.builtin.IRubyObject arg2, org.jruby.runtime.Block block)

fill

IRubyObject fill ( ThreadContext context, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3, Block block )
Java: fill(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.builtin.IRubyObject arg2, org.jruby.runtime.builtin.IRubyObject arg3, org.jruby.runtime.Block block)

find

IRubyObject find ( ThreadContext context, IRubyObject ifnone, Block block )
Java: find(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject ifnone, org.jruby.runtime.Block block)

find_index

IRubyObject find_index ( ThreadContext context, Block block )
Java: find_index(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

find_index

IRubyObject find_index ( ThreadContext context, IRubyObject cond )
Java: find_index(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject cond)

first

IRubyObject first ( IRubyObject[] args )
Java: first(org.jruby.runtime.builtin.IRubyObject[] args)
Deprecated. Use the versions with zero, one, or two args.

Variable arity version for compatibility. Not bound to a Ruby method.

first

IRubyObject first ( )
Java: first()

first

IRubyObject first ( ThreadContext context )
Java: first(org.jruby.runtime.ThreadContext context)

first

IRubyObject first ( IRubyObject arg0 )
Java: first(org.jruby.runtime.builtin.IRubyObject arg0)

first

IRubyObject first ( ThreadContext context, IRubyObject arg0 )
Java: first(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0)

flatten

IRubyObject flatten ( ThreadContext context )
Java: flatten(org.jruby.runtime.ThreadContext context)

flatten

IRubyObject flatten ( ThreadContext context, IRubyObject arg )
Java: flatten(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg)

flatten_bang

IRubyObject flatten_bang ( ThreadContext context )
Java: flatten_bang(org.jruby.runtime.ThreadContext context)

flatten_bang

IRubyObject flatten_bang ( ThreadContext context, IRubyObject arg )
Java: flatten_bang(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg)

frozen_p

RubyBoolean frozen_p ( ThreadContext context )
Java: frozen_p(org.jruby.runtime.ThreadContext context)

rb_ary_frozen_p

get

Object get ( int index )
Java: get(int index)

hash

RubyFixnum hash ( ThreadContext context )
Java: hash(org.jruby.runtime.ThreadContext context)

rb_ary_hash

include_p

RubyBoolean include_p ( ThreadContext context, IRubyObject item )
Java: include_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject item)

rb_ary_includes

includes

boolean includes ( ThreadContext context, IRubyObject item )
Java: includes(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject item)

includes_by_eql

boolean includes_by_eql ( ThreadContext context, IRubyObject item )
Java: includesByEql(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject item)

index

IRubyObject index ( ThreadContext context, IRubyObject obj )
Java: index(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj)

rb_ary_index

index

IRubyObject index ( ThreadContext context, IRubyObject obj, Block unused )
Java: index(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj, org.jruby.runtime.Block unused)

index

IRubyObject index ( ThreadContext context, Block block )
Java: index(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

index_of

int index_of ( Object element )
Java: indexOf(Object element)

indexes

IRubyObject indexes ( IRubyObject[] args )
Java: indexes(org.jruby.runtime.builtin.IRubyObject[] args)

indexes

IRubyObject indexes ( ThreadContext context, IRubyObject[] args )
Java: indexes(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

initialize

IRubyObject initialize ( ThreadContext context, IRubyObject[] args, Block block )
Java: initialize(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.Block block)
Deprecated. Use the versions with zero, one, or two args.

Variable arity version for compatibility. Not bound to a Ruby method.

initialize

IRubyObject initialize ( ThreadContext context, Block block )
Java: initialize(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

rb_ary_initialize

initialize

IRubyObject initialize ( ThreadContext context, IRubyObject arg0, Block block )
Java: initialize(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.Block block)

rb_ary_initialize

initialize

IRubyObject initialize ( ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block )
Java: initialize(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.Block block)

rb_ary_initialize

initialize_copy

IRubyObject initialize_copy ( ThreadContext context, IRubyObject orig )
Java: initialize_copy(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject orig)

rb_ary_initialize_copy

insert

IRubyObject insert ( )
Java: insert()

insert

IRubyObject insert ( IRubyObject arg )
Java: insert(org.jruby.runtime.builtin.IRubyObject arg)

insert

IRubyObject insert ( ThreadContext context, IRubyObject arg )
Java: insert(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg)

rb_ary_insert

insert

IRubyObject insert ( IRubyObject arg1, IRubyObject arg2 )
Java: insert(org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.builtin.IRubyObject arg2)

insert

IRubyObject insert ( ThreadContext context, IRubyObject arg1, IRubyObject arg2 )
Java: insert(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.builtin.IRubyObject arg2)

insert

IRubyObject insert ( IRubyObject[] args )
Java: insert(org.jruby.runtime.builtin.IRubyObject[] args)

insert

IRubyObject insert ( ThreadContext context, IRubyObject[] args )
Java: insert(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

inspect

RubyString inspect ( ThreadContext context )
Java: inspect(org.jruby.runtime.ThreadContext context)

rb_ary_inspect

intersect_p

IRubyObject intersect_p ( ThreadContext context, IRubyObject other )
Java: intersect_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject other)

MRI: rb_ary_intersect_p

intersection

IRubyObject intersection ( ThreadContext context, IRubyObject[] args )
Java: intersection(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

is_shared_java_array

boolean is_shared_java_array ( RubyArray other )
Java: isSharedJavaArray(org.jruby.RubyArray other)

iterator

Iterator iterator ( )
Java: iterator()

java_class

Class java_class ( )
Java: getJavaClass() · also: get_java_class

join

IRubyObject join ( ThreadContext context, IRubyObject sep )
Java: join(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject sep)

rb_ary_join

join

IRubyObject join ( ThreadContext context )
Java: join(org.jruby.runtime.ThreadContext context)

join19

IRubyObject join19 ( ThreadContext context, IRubyObject sep )
Java: join19(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject sep)

join19

IRubyObject join19 ( ThreadContext context )
Java: join19(org.jruby.runtime.ThreadContext context)

keep_if

IRubyObject keep_if ( ThreadContext context, Block block )
Java: keep_if(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

last

IRubyObject last ( IRubyObject[] args )
Java: last(org.jruby.runtime.builtin.IRubyObject[] args)
Deprecated. Use the versions with zero, one, or two args.

Variable arity version for compatibility. Not bound to a Ruby method.

last

IRubyObject last ( )
Java: last()

last

IRubyObject last ( ThreadContext context )
Java: last(org.jruby.runtime.ThreadContext context)

last

IRubyObject last ( IRubyObject arg0 )
Java: last(org.jruby.runtime.builtin.IRubyObject arg0)

last

IRubyObject last ( ThreadContext context, IRubyObject arg0 )
Java: last(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0)

rb_ary_last

last_index_of

int last_index_of ( Object element )
Java: lastIndexOf(Object element)

length

int length ( )
Java: getLength() · also: get_length

length

RubyFixnum length ( ThreadContext context )
Java: length(org.jruby.runtime.ThreadContext context)

rb_ary_length

length

RubyFixnum length ( )
Java: length()

list

List<IRubyObject> list ( )
Java: getList() · also: get_list
Deprecated. RubyArray implements List, use it directly

Returns: a read-only copy of this list

list_iterator

ListIterator list_iterator ( )
Java: listIterator()

list_iterator

ListIterator list_iterator ( int index )
Java: listIterator(int index)

map

IRubyObject map ( ThreadContext context, Block block )
Java: map(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

map_bang

IRubyObject map_bang ( ThreadContext context, Block block )
Java: map_bang(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

rb_ary_collect_bang

max

IRubyObject max ( ThreadContext context, Block block )
Java: max(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

max

IRubyObject max ( ThreadContext context, IRubyObject num, Block block )
Java: max(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject num, org.jruby.runtime.Block block)

min

IRubyObject min ( ThreadContext context, Block block )
Java: min(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

min

IRubyObject min ( ThreadContext context, IRubyObject num, Block block )
Java: min(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject num, org.jruby.runtime.Block block)

minmax

IRubyObject minmax ( ThreadContext context, Block block )
Java: minmax(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

native_class_index

ClassIndex native_class_index ( )
Java: getNativeClassIndex() · also: get_native_class_index

nitems

IRubyObject nitems ( ThreadContext context )
Java: nitems(org.jruby.runtime.ThreadContext context)

rb_ary_nitems

nitems

IRubyObject nitems ( )
Java: nitems()

none_p

IRubyObject none_p ( ThreadContext context, Block block )
Java: none_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

none_p

IRubyObject none_p ( ThreadContext context, IRubyObject arg, Block block )
Java: none_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg, org.jruby.runtime.Block block)

none_p_common

IRubyObject none_p_common ( ThreadContext context, IRubyObject arg, Block block )
Java: none_pCommon(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg, org.jruby.runtime.Block block)

one_p

IRubyObject one_p ( ThreadContext context, Block block )
Java: one_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

one_p

IRubyObject one_p ( ThreadContext context, IRubyObject arg, Block block )
Java: one_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg, org.jruby.runtime.Block block)

one_p_common

IRubyObject one_p_common ( ThreadContext context, IRubyObject arg, Block block )
Java: one_pCommon(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg, org.jruby.runtime.Block block)

op_and

IRubyObject op_and ( IRubyObject other )
Java: op_and(org.jruby.runtime.builtin.IRubyObject other)

op_and

IRubyObject op_and ( ThreadContext context, IRubyObject other )
Java: op_and(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject other)

MRI: rb_ary_and

op_cmp

IRubyObject op_cmp ( ThreadContext context, IRubyObject obj )
Java: op_cmp(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj)

rb_ary_cmp

op_diff

IRubyObject op_diff ( IRubyObject other )
Java: op_diff(org.jruby.runtime.builtin.IRubyObject other)

op_diff

IRubyObject op_diff ( ThreadContext context, IRubyObject other )
Java: op_diff(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject other)

rb_ary_diff

op_equal

IRubyObject op_equal ( ThreadContext context, IRubyObject obj )
Java: op_equal(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj)

rb_ary_equal

op_or

IRubyObject op_or ( IRubyObject other )
Java: op_or(org.jruby.runtime.builtin.IRubyObject other)

op_or

IRubyObject op_or ( ThreadContext context, IRubyObject other )
Java: op_or(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject other)

rb_ary_or

op_plus

IRubyObject op_plus ( IRubyObject obj )
Java: op_plus(org.jruby.runtime.builtin.IRubyObject obj)

op_plus

IRubyObject op_plus ( ThreadContext context, IRubyObject obj )
Java: op_plus(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj)

rb_ary_plus

op_times

IRubyObject op_times ( ThreadContext context, IRubyObject times )
Java: op_times(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject times)

rb_ary_times

pack

RubyString pack ( ThreadContext context, IRubyObject obj )
Java: pack(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj)

pack

RubyString pack ( ThreadContext context, IRubyObject obj, IRubyObject maybe_opts )
Java: pack(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj, org.jruby.runtime.builtin.IRubyObject maybeOpts)

permutation

IRubyObject permutation ( ThreadContext context, IRubyObject num, Block block )
Java: permutation(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject num, org.jruby.runtime.Block block)

rb_ary_permutation

permutation

IRubyObject permutation ( ThreadContext context, Block block )
Java: permutation(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

pop

IRubyObject pop ( ThreadContext context )
Java: pop(org.jruby.runtime.ThreadContext context)

rb_ary_pop

pop

IRubyObject pop ( ThreadContext context, IRubyObject num )
Java: pop(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject num)

product

IRubyObject product ( ThreadContext context, IRubyObject[] args )
Java: product(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

rb_ary_product

product

IRubyObject product ( ThreadContext context, IRubyObject[] args, Block block )
Java: product(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.Block block)

push

RubyArray push ( IRubyObject item )
Java: push(org.jruby.runtime.builtin.IRubyObject item)

push

RubyArray push ( ThreadContext context, IRubyObject item )
Java: push(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject item)

push

RubyArray<?> push ( IRubyObject[] items )
Java: push(org.jruby.runtime.builtin.IRubyObject[] items)

push

RubyArray push ( ThreadContext context, IRubyObject[] items )
Java: push(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] items)

push_m

RubyArray<?> push_m ( IRubyObject[] items )
Java: push_m(org.jruby.runtime.builtin.IRubyObject[] items)

rb_ary_push_m - instance method push

rassoc

IRubyObject rassoc ( ThreadContext context, IRubyObject value )
Java: rassoc(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject value)

rb_ary_rassoc

rb_clear

IRubyObject rb_clear ( )
Java: rb_clear()

rb_clear

IRubyObject rb_clear ( ThreadContext context )
Java: rb_clear(org.jruby.runtime.ThreadContext context)

rb_ary_clear

rb_collect

IRubyObject rb_collect ( ThreadContext context, Block block )
Java: rbCollect(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

rb_ary_collect

reject

IRubyObject reject ( ThreadContext context, Block block )
Java: reject(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

reject_bang

IRubyObject reject_bang ( ThreadContext context, Block block )
Java: rejectBang(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

reject_bang

IRubyObject reject_bang ( ThreadContext context, Block block )
Java: reject_bang(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

reject_common

IRubyObject reject_common ( ThreadContext context, Block block )
Java: rejectCommon(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

rb_ary_reject_bang

remove

boolean remove ( Object element )
Java: remove(Object element)

remove

Object remove ( int index )
Java: remove(int index)

remove_all

boolean remove_all ( Collection c )
Java: removeAll(Collection c)

repeated_combination

IRubyObject repeated_combination ( ThreadContext context, IRubyObject num, Block block )
Java: repeatedCombination(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject num, org.jruby.runtime.Block block)

repeated_permutation

IRubyObject repeated_permutation ( ThreadContext context, IRubyObject num, Block block )
Java: repeated_permutation(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject num, org.jruby.runtime.Block block)

replace

IRubyObject replace ( IRubyObject orig )
Java: replace(org.jruby.runtime.builtin.IRubyObject orig)

replace

IRubyObject replace ( ThreadContext context, IRubyObject orig )
Java: replace(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject orig)

rb_ary_replace

retain_all

boolean retain_all ( Collection c )
Java: retainAll(Collection c)

reverse

IRubyObject reverse ( )
Java: reverse()

reverse

IRubyObject reverse ( ThreadContext context )
Java: reverse(org.jruby.runtime.ThreadContext context)

reverse_bang

IRubyObject reverse_bang ( )
Java: reverse_bang()

reverse_bang

IRubyObject reverse_bang ( ThreadContext context )
Java: reverse_bang(org.jruby.runtime.ThreadContext context)

rb_ary_reverse_bang

reverse_each

IRubyObject reverse_each ( ThreadContext context, Block block )
Java: reverseEach(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

rb_ary_reverse_each

reverse_each

IRubyObject reverse_each ( ThreadContext context, Block block )
Java: reverse_each(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

rindex

IRubyObject rindex ( ThreadContext context, IRubyObject obj )
Java: rindex(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj)

rb_ary_rindex

rindex

IRubyObject rindex ( ThreadContext context, IRubyObject obj, Block unused )
Java: rindex(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj, org.jruby.runtime.Block unused)

rindex

IRubyObject rindex ( ThreadContext context, Block block )
Java: rindex(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

rotate

IRubyObject rotate ( ThreadContext context )
Java: rotate(org.jruby.runtime.ThreadContext context)

rotate

IRubyObject rotate ( ThreadContext context, IRubyObject cnt )
Java: rotate(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject cnt)

rotate_bang

IRubyObject rotate_bang ( ThreadContext context )
Java: rotate_bang(org.jruby.runtime.ThreadContext context)

rotate_bang

IRubyObject rotate_bang ( ThreadContext context, IRubyObject cnt )
Java: rotate_bang(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject cnt)

ruby_stream

Stream<IRubyObject> ruby_stream ( )
Java: rubyStream()

Returns a stream of each IRubyObject

sample

IRubyObject sample ( ThreadContext context )
Java: sample(org.jruby.runtime.ThreadContext context)

sample

IRubyObject sample ( ThreadContext context, IRubyObject sample_or_opts )
Java: sample(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject sampleOrOpts)

sample

IRubyObject sample ( ThreadContext context, IRubyObject sample, IRubyObject opts )
Java: sample(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject sample, org.jruby.runtime.builtin.IRubyObject opts)

sample

IRubyObject sample ( ThreadContext context, IRubyObject[] args )
Java: sample(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

select

IRubyObject select ( ThreadContext context, Block block )
Java: select(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

select_bang

IRubyObject select_bang ( ThreadContext context, Block block )
Java: select_bang(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

select_common

IRubyObject select_common ( ThreadContext context, Block block )
Java: selectCommon(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

rb_ary_select

set

Object set ( int index, Object element )
Java: set(int index, Object element)

shift

IRubyObject shift ( ThreadContext context )
Java: shift(org.jruby.runtime.ThreadContext context)

rb_ary_shift

shift

IRubyObject shift ( ThreadContext context, IRubyObject num )
Java: shift(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject num)

shuffle

IRubyObject shuffle ( ThreadContext context )
Java: shuffle(org.jruby.runtime.ThreadContext context)

shuffle

IRubyObject shuffle ( ThreadContext context, IRubyObject opts )
Java: shuffle(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject opts)

shuffle

IRubyObject shuffle ( ThreadContext context, IRubyObject[] args )
Java: shuffle(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

shuffle_bang

IRubyObject shuffle_bang ( ThreadContext context )
Java: shuffle_bang(org.jruby.runtime.ThreadContext context)

shuffle_bang

IRubyObject shuffle_bang ( ThreadContext context, IRubyObject opts )
Java: shuffle_bang(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject opts)

shuffle_bang

IRubyObject shuffle_bang ( ThreadContext context, IRubyObject[] args )
Java: shuffle_bang(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

size

int size ( )
Java: size()

slice_bang

IRubyObject slice_bang ( IRubyObject[] args )
Java: slice_bang(org.jruby.runtime.builtin.IRubyObject[] args)
Deprecated. Use the versions with zero, one, or two args.

Variable arity version for compatibility. Not bound to a Ruby method.

slice_bang

IRubyObject slice_bang ( IRubyObject arg0 )
Java: slice_bang(org.jruby.runtime.builtin.IRubyObject arg0)

slice_bang

IRubyObject slice_bang ( ThreadContext context, IRubyObject arg0 )
Java: slice_bang(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0)

rb_ary_slice_bang

slice_bang

IRubyObject slice_bang ( IRubyObject arg0, IRubyObject arg1 )
Java: slice_bang(org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1)

slice_bang

IRubyObject slice_bang ( ThreadContext context, IRubyObject arg0, IRubyObject arg1 )
Java: slice_bang(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1)

rb_ary_slice_bang

sort

RubyArray sort ( ThreadContext context, Block block )
Java: sort(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

rb_ary_sort

sort_bang

IRubyObject sort_bang ( ThreadContext context, Block block )
Java: sort_bang(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

rb_ary_sort_bang

sort_by_bang

IRubyObject sort_by_bang ( ThreadContext context, Block block )
Java: sort_by_bang(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

rb_ary_sort_by_bang

store

IRubyObject store ( long index, IRubyObject value )
Java: store(long index, org.jruby.runtime.builtin.IRubyObject value)

store

IRubyObject store ( ThreadContext context, long index, IRubyObject value )
Java: store(org.jruby.runtime.ThreadContext context, long index, org.jruby.runtime.builtin.IRubyObject value)

Store an element at the specified index or throw if the index is invalid.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe current thread context
indexlongthe offset to store the value
valueorg.jruby.runtime.builtin.IRubyObjectthe value to be stored

Returns: the value set

sub_list

List sub_list ( int from_index, int to_index )
Java: subList(int fromIndex, int toIndex)

subseq

IRubyObject subseq ( long beg, long len )
Java: subseq(long beg, long len)

rb_ary_subseq

subseq

IRubyObject subseq ( RubyClass meta_class, long beg, long len, boolean light )
Java: subseq(org.jruby.RubyClass metaClass, long beg, long len, boolean light)

subseq_light

IRubyObject subseq_light ( long beg, long len )
Java: subseqLight(long beg, long len)

rb_ary_subseq

subseq_step

IRubyObject subseq_step ( ThreadContext context, RubyArithmeticSequence arg0 )
Java: subseq_step(org.jruby.runtime.ThreadContext context, org.jruby.RubyArithmeticSequence arg0)

rb_ary_subseq_step

sum

IRubyObject sum ( ThreadContext context, Block block )
Java: sum(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

sum

IRubyObject sum ( ThreadContext context, IRubyObject init, Block block )
Java: sum(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject init, org.jruby.runtime.Block block)

sum_common

IRubyObject sum_common ( ThreadContext context, IRubyObject init, Block block )
Java: sumCommon(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject init, org.jruby.runtime.Block block)

take

IRubyObject take ( ThreadContext context, IRubyObject n )
Java: take(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject n)

rb_ary_take

take_while

IRubyObject take_while ( ThreadContext context, Block block )
Java: take_while(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

rb_ary_take_while

to_a

RubyArray to_a ( ThreadContext context )
Java: to_a(org.jruby.runtime.ThreadContext context)

rb_ary_to_a

to_a

RubyArray to_a ( )
Java: to_a()

to_array

Object[] to_array ( )
Java: toArray()

to_array

Object[] to_array ( Object[] arg )
Java: toArray(Object[] arg)

to_ary

IRubyObject to_ary ( )
Java: to_ary()

to_ary

IRubyObject to_ary ( ThreadContext context )
Java: to_ary(org.jruby.runtime.ThreadContext context)

to_h

IRubyObject to_h ( ThreadContext context )
Java: to_h(org.jruby.runtime.ThreadContext context)

to_h

IRubyObject to_h ( ThreadContext context, Block block )
Java: to_h(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

to_java

T to_java ( Class<T> target )
Java: toJava(Class<T> target)

to_java_array

IRubyObject[] to_java_array ( )
Java: toJavaArray()
Deprecated. Use RubyArray#toJavaArray(ThreadContext) instead.

Returns: ""

to_java_array

IRubyObject[] to_java_array ( ThreadContext context )
Java: toJavaArray(org.jruby.runtime.ThreadContext context)

Return a Java array copy of the elements contained in this Array. This version always creates a new Java array that is exactly the length of the Array's elements.

Returns: a Java array with exactly the size and contents of this RubyArray's elements

to_java_array_maybe_unsafe

IRubyObject[] to_java_array_maybe_unsafe ( )
Java: toJavaArrayMaybeUnsafe()

Return a Java array of the elements contained in this array, possibly a new array object. Use this method to potentially avoid making a new array and copying elements when the Array does not view a subset of the underlying Java array.

Returns: a Java array with exactly the size and contents of this RubyArray's elements, possibly the actual underlying array.

to_java_array_unsafe

IRubyObject[] to_java_array_unsafe ( )
Java: toJavaArrayUnsafe()

Return a reference to this RubyArray's underlying Java array, if it is not shared with another RubyArray, or an exact copy of the relevant range otherwise. This method is typically used to work with the underlying array directly, knowing that it is not shared and that all accesses must consider the begin offset.

Returns: The underlying Java array for this RubyArray, or a copy if that array is shared.

to_s

RubyString to_s ( ThreadContext context )
Java: to_s(org.jruby.runtime.ThreadContext context)

rb_ary_to_s

transpose

RubyArray transpose ( )
Java: transpose()

transpose

RubyArray transpose ( ThreadContext context )
Java: transpose(org.jruby.runtime.ThreadContext context)

rb_ary_transpose

union

IRubyObject union ( ThreadContext context, IRubyObject[] args )
Java: union(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

rb_ary_union_multi

uniq

IRubyObject uniq ( ThreadContext context )
Java: uniq(org.jruby.runtime.ThreadContext context)

rb_ary_uniq

uniq

IRubyObject uniq ( ThreadContext context, Block block )
Java: uniq(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

uniq_bang

IRubyObject uniq_bang ( ThreadContext context )
Java: uniq_bang(org.jruby.runtime.ThreadContext context)

rb_ary_uniq_bang

uniq_bang

IRubyObject uniq_bang ( ThreadContext context, Block block )
Java: uniq_bang(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

unshift

IRubyObject unshift ( )
Java: unshift()
Deprecated. Use RubyArray#unshift(ThreadContext) instead

Returns: ""

unshift

IRubyObject unshift ( ThreadContext context )
Java: unshift(org.jruby.runtime.ThreadContext context)

unshift

IRubyObject unshift ( IRubyObject item )
Java: unshift(org.jruby.runtime.builtin.IRubyObject item)

unshift

IRubyObject unshift ( ThreadContext context, IRubyObject item )
Java: unshift(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject item)

rb_ary_unshift

unshift

IRubyObject unshift ( IRubyObject[] items )
Java: unshift(org.jruby.runtime.builtin.IRubyObject[] items)

unshift

IRubyObject unshift ( ThreadContext context, IRubyObject[] items )
Java: unshift(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] items)

values_at

IRubyObject values_at ( IRubyObject[] args )
Java: values_at(org.jruby.runtime.builtin.IRubyObject[] args)

values_at

IRubyObject values_at ( ThreadContext context, IRubyObject[] args )
Java: values_at(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

rb_values_at

zip

IRubyObject zip ( ThreadContext context, IRubyObject[] args, Block block )
Java: zip(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.Block block)

rb_ary_zip