All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods
Modifier and Type |
Method and Description |
void |
add(int index,
Object element) |
boolean |
add(Object element) |
boolean |
addAll(Collection c) |
boolean |
addAll(int index,
Collection c) |
IRubyObject |
all_p(ThreadContext context,
Block block) |
IRubyObject |
any_p(ThreadContext context,
Block block) |
RubyArray |
append(IRubyObject item)
rb_ary_push - specialized rb_ary_store
|
IRubyObject |
aref(IRubyObject arg0)
rb_ary_aref
|
IRubyObject |
aref(IRubyObject[] args)
|
IRubyObject |
aref(IRubyObject arg0,
IRubyObject arg1) |
IRubyObject |
aref19(IRubyObject arg0)
Deprecated.
|
IRubyObject |
aref19(IRubyObject arg0,
IRubyObject arg1)
Deprecated.
|
RubyArray |
aryDup()
rb_ary_dup
|
RubyArray |
aryDup19()
Deprecated.
|
static RubyArray |
aryToAry(IRubyObject obj)
rb_ary_to_ary
|
IRubyObject |
aset(IRubyObject[] args)
|
IRubyObject |
aset(IRubyObject arg0,
IRubyObject arg1) |
IRubyObject |
aset(IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2)
rb_ary_aset
|
IRubyObject |
aset19(IRubyObject arg0,
IRubyObject arg1)
Deprecated.
|
IRubyObject |
aset19(IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2)
Deprecated.
|
IRubyObject |
assoc(ThreadContext context,
IRubyObject key)
rb_ary_assoc
|
IRubyObject |
at(IRubyObject pos)
rb_ary_at
|
IRubyObject |
bsearch_index(ThreadContext context,
Block block) |
IRubyObject |
bsearch(ThreadContext context,
Block block) |
IRubyObject |
checkArrayType()
rb_check_array_type
Returns the result of trying to convert this object to an Array
with "to_ary".
|
protected static void |
checkLength(Ruby runtime,
long length) |
IRubyObject |
choice(ThreadContext context)
Deprecated.
|
void |
clear() |
IRubyObject |
collect_bang(ThreadContext context,
Block block)
rb_ary_collect_bang
|
IRubyObject |
collect(ThreadContext context,
Block block)
rb_ary_collect
|
IRubyObject |
collect19(ThreadContext context,
Block block) |
RubyArray |
collectBang(ThreadContext context,
Block block)
rb_ary_collect_bang
|
IRubyObject |
combination(ThreadContext context,
IRubyObject num,
Block block)
rb_ary_combination
|
IRubyObject |
compact_bang()
rb_ary_compact_bang
|
IRubyObject |
compact()
rb_ary_compact
|
IRubyObject |
compact19()
Deprecated.
|
RubyBoolean |
compare(ThreadContext context,
CallSite site,
IRubyObject other) |
protected static int |
compareFixnums(RubyFixnum o1,
RubyFixnum o2) |
protected static int |
compareOthers(ThreadContext context,
IRubyObject o1,
IRubyObject o2) |
IRubyObject |
compatc19()
Deprecated.
|
RubyArray |
concat(IRubyObject obj)
rb_ary_concat
|
RubyArray |
concat19(IRubyObject obj)
Deprecated.
|
protected void |
concurrentModification() |
boolean |
contains(Object element) |
boolean |
containsAll(Collection c) |
RubyArray |
convertToArray()
Tries to convert this object to a Ruby Array using the "to_ary"
method.
|
void |
copyInto(IRubyObject[] target,
int start)
Copy the values contained in this array into the target array at the specified offset.
|
void |
copyInto(IRubyObject[] target,
int start,
int len)
Copy the specified number of values contained in this array into the target array at the specified offset.
|
IRubyObject |
count(ThreadContext context,
Block block) |
IRubyObject |
count(ThreadContext context,
IRubyObject obj,
Block block) |
static IRubyObject |
create(IRubyObject klass,
IRubyObject[] args,
Block block)
rb_ary_s_create
|
static RubyClass |
createArrayClass(Ruby runtime) |
IRubyObject |
cycle(ThreadContext context,
Block block)
rb_ary_cycle
|
IRubyObject |
cycle(ThreadContext context,
IRubyObject arg,
Block block)
rb_ary_cycle
|
IRubyObject |
delete_at(int pos)
rb_ary_delete_at
|
IRubyObject |
delete_at(IRubyObject obj)
rb_ary_delete_at_m
|
IRubyObject |
delete_if(ThreadContext context,
Block block) |
IRubyObject |
delete(ThreadContext context,
IRubyObject item,
Block block)
rb_ary_delete
|
IRubyObject |
deleteIf(ThreadContext context,
Block block)
rb_ary_delete_if
|
IRubyObject |
detectCommon(ThreadContext context,
IRubyObject ifnone,
Block block) |
IRubyObject |
dig(ThreadContext context,
IRubyObject[] args) |
IRubyObject |
drop_while(ThreadContext context,
Block block)
rb_ary_take_while
|
IRubyObject |
drop(ThreadContext context,
IRubyObject n)
rb_ary_take
|
IRubyObject |
dup()
Overridden dup for fast-path logic.
|
IRubyObject |
each_index(ThreadContext context,
Block block) |
IRubyObject |
each_slice(ThreadContext context,
IRubyObject arg,
Block block) |
IRubyObject |
each(ThreadContext context,
Block block)
mri: rb_ary_each
|
IRubyObject |
eachIndex(ThreadContext context,
Block block)
rb_ary_each_index
|
IRubyObject |
eachSlice(ThreadContext context,
int size,
Block block) |
IRubyObject |
eltInternal(int offset) |
IRubyObject |
eltInternalSet(int offset,
IRubyObject item) |
IRubyObject |
eltOk(long offset) |
IRubyObject |
eltSetOk(int offset,
IRubyObject value) |
IRubyObject |
eltSetOk(long offset,
IRubyObject value) |
IRubyObject |
empty_p()
rb_ary_empty_p
|
void |
ensureCapacity(int minCapacity)
Deprecated.
|
IRubyObject |
entry(int offset) |
IRubyObject |
entry(long offset)
rb_ary_entry
|
protected RubyEnumerator.SizeFn |
enumLengthFn() |
IRubyObject |
eql(ThreadContext context,
IRubyObject obj)
rb_ary_eql
|
IRubyObject |
fetch(ThreadContext context,
IRubyObject[] args,
Block block)
|
IRubyObject |
fetch(ThreadContext context,
IRubyObject arg0,
Block block)
rb_ary_fetch
|
IRubyObject |
fetch(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
Block block)
rb_ary_fetch
|
IRubyObject |
fill(ThreadContext context,
Block block) |
IRubyObject |
fill(ThreadContext context,
IRubyObject arg,
Block block) |
IRubyObject |
fill(ThreadContext context,
IRubyObject arg1,
IRubyObject arg2,
Block block) |
IRubyObject |
fill(ThreadContext context,
IRubyObject arg1,
IRubyObject arg2,
IRubyObject arg3,
Block block) |
protected IRubyObject |
fillCommon(ThreadContext context,
int beg,
long len,
Block block) |
protected IRubyObject |
fillCommon(ThreadContext context,
int beg,
long len,
IRubyObject item) |
IRubyObject |
find_index(ThreadContext context,
Block block) |
IRubyObject |
find_index(ThreadContext context,
IRubyObject cond) |
IRubyObject |
find(ThreadContext context,
IRubyObject ifnone,
Block block) |
IRubyObject |
first()
rb_ary_first
|
IRubyObject |
first(IRubyObject arg0)
rb_ary_first
|
IRubyObject |
first(IRubyObject[] args)
|
IRubyObject |
flatten_bang(ThreadContext context) |
IRubyObject |
flatten_bang(ThreadContext context,
IRubyObject arg) |
IRubyObject |
flatten_bang19(ThreadContext context)
Deprecated.
|
IRubyObject |
flatten_bang19(ThreadContext context,
IRubyObject arg)
Deprecated.
|
IRubyObject |
flatten(ThreadContext context) |
protected boolean |
flatten(ThreadContext context,
int level,
RubyArray result) |
IRubyObject |
flatten(ThreadContext context,
IRubyObject arg) |
IRubyObject |
flatten19(ThreadContext context)
Deprecated.
|
IRubyObject |
flatten19(ThreadContext context,
IRubyObject arg)
Deprecated.
|
RubyBoolean |
frozen_p(ThreadContext context)
rb_ary_frozen_p
|
Object |
get(int index) |
Class |
getJavaClass()
Will return the Java interface that most closely can represent
this object, when working through JAva integration
translations.
|
int |
getLength() |
List<IRubyObject> |
getList()
|
ClassIndex |
getNativeClassIndex()
This is overridden in the other concrete Java builtins to provide a fast way
to determine what type they are.
|
RubyFixnum |
hash(ThreadContext context)
rb_ary_hash
|
RubyFixnum |
hash19(ThreadContext context) |
RubyBoolean |
include_p(ThreadContext context,
IRubyObject item)
rb_ary_includes
|
boolean |
includes(ThreadContext context,
IRubyObject item) |
IRubyObject |
index(ThreadContext context,
Block block) |
IRubyObject |
index(ThreadContext context,
IRubyObject obj)
rb_ary_index
|
IRubyObject |
index(ThreadContext context,
IRubyObject obj,
Block unused) |
IRubyObject |
indexes(IRubyObject[] args)
rb_ary_indexes
|
int |
indexOf(Object element) |
IRubyObject |
initialize_copy(IRubyObject orig)
rb_ary_initialize_copy
|
IRubyObject |
initialize(ThreadContext context,
Block block)
rb_ary_initialize
|
IRubyObject |
initialize(ThreadContext context,
IRubyObject[] args,
Block block)
|
IRubyObject |
initialize(ThreadContext context,
IRubyObject arg0,
Block block)
rb_ary_initialize
|
IRubyObject |
initialize(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
Block block)
rb_ary_initialize
|
protected IRubyObject |
initializeCommon(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
Block block) |
IRubyObject |
insert() |
IRubyObject |
insert(IRubyObject arg)
rb_ary_insert
|
IRubyObject |
insert(IRubyObject[] args) |
IRubyObject |
insert(IRubyObject arg1,
IRubyObject arg2) |
IRubyObject |
insert19(IRubyObject arg)
Deprecated.
|
IRubyObject |
insert19(IRubyObject[] args)
Deprecated.
|
IRubyObject |
insert19(IRubyObject arg1,
IRubyObject arg2)
Deprecated.
|
IRubyObject |
inspect()
rb_ary_inspect
|
protected IRubyObject |
inspectAry(ThreadContext context)
inspect_ary
|
protected IRubyObject |
internalRotate(ThreadContext context,
int cnt) |
protected IRubyObject |
internalRotateBang(ThreadContext context,
int cnt) |
boolean |
isEmpty() |
Iterator |
iterator() |
IRubyObject |
join(ThreadContext context) |
IRubyObject |
join(ThreadContext context,
IRubyObject sep)
rb_ary_join
|
IRubyObject |
join19(ThreadContext context) |
IRubyObject |
join19(ThreadContext context,
IRubyObject sep)
rb_ary_join
|
protected RubyString |
joinStrings(RubyString sep,
int max,
RubyString result) |
IRubyObject |
keep_if(ThreadContext context,
Block block) |
IRubyObject |
last()
rb_ary_last
|
IRubyObject |
last(IRubyObject arg0)
rb_ary_last
|
IRubyObject |
last(IRubyObject[] args)
|
int |
lastIndexOf(Object element) |
RubyFixnum |
length()
rb_ary_length
|
ListIterator |
listIterator() |
ListIterator |
listIterator(int index) |
IRubyObject |
map_bang(ThreadContext context,
Block block)
rb_ary_collect_bang
|
IRubyObject |
map19(ThreadContext context,
Block block) |
static void |
marshalTo(RubyArray array,
MarshalStream output) |
IRubyObject |
max(ThreadContext context,
Block block) |
IRubyObject |
max(ThreadContext context,
IRubyObject num,
Block block) |
IRubyObject |
min(ThreadContext context,
Block block) |
IRubyObject |
min(ThreadContext context,
IRubyObject num,
Block block) |
protected void |
modify()
rb_ary_modify
|
protected void |
modifyCheck()
rb_ary_modify_check
|
static RubyArray |
newArray(Ruby runtime)
rb_ary_new
|
static RubyArray |
newArray(Ruby runtime,
Collection<? extends IRubyObject> collection) |
static RubyArray |
newArray(Ruby runtime,
int len) |
static RubyArray |
newArray(Ruby runtime,
IRubyObject obj) |
static RubyArray |
newArray(Ruby runtime,
IRubyObject[] args)
rb_ary_new4, rb_ary_new3
|
static RubyArray |
newArray(Ruby runtime,
IRubyObject car,
IRubyObject cdr)
rb_assoc_new
|
static RubyArray |
newArray(Ruby runtime,
IRubyObject first,
IRubyObject second,
IRubyObject third) |
static RubyArray |
newArray(Ruby runtime,
IRubyObject first,
IRubyObject second,
IRubyObject third,
IRubyObject fourth) |
static RubyArray |
newArray(Ruby runtime,
List<? extends IRubyObject> list) |
static RubyArray |
newArray(Ruby runtime,
long len)
rb_ary_new2
|
static RubyArray |
newArrayLight(Ruby runtime)
rb_ary_new
|
static RubyArray |
newArrayLight(Ruby runtime,
int len) |
static RubyArray |
newArrayLight(Ruby runtime,
IRubyObject... objs) |
static RubyArray |
newArrayLight(Ruby runtime,
IRubyObject obj) |
static RubyArray |
newArrayLight(Ruby runtime,
IRubyObject car,
IRubyObject cdr) |
static RubyArray |
newArrayLight(Ruby runtime,
long len) |
static RubyArray |
newArrayMayCopy(Ruby runtime,
IRubyObject... args) |
static RubyArray |
newArrayMayCopy(Ruby runtime,
IRubyObject[] args,
int start) |
static RubyArray |
newArrayMayCopy(Ruby runtime,
IRubyObject[] args,
int start,
int length)
Construct a new RubyArray given the specified range of elements in the source array.
|
static RubyArray |
newArrayNoCopy(Ruby runtime,
IRubyObject[] args) |
static RubyArray |
newArrayNoCopy(Ruby runtime,
IRubyObject[] args,
int begin) |
static RubyArray |
newArrayNoCopy(Ruby runtime,
IRubyObject[] args,
int begin,
int length) |
static RubyArray |
newArrayNoCopyLight(Ruby runtime,
IRubyObject[] args) |
static RubyArray |
newBlankArray(Ruby runtime,
int size)
Construct the most efficient array shape for the given size.
|
static RubyArray |
newEmptyArray(Ruby runtime) |
IRubyObject |
nitems()
rb_ary_nitems
|
IRubyObject |
op_and(IRubyObject other)
rb_ary_and
|
IRubyObject |
op_cmp(ThreadContext context,
IRubyObject obj)
rb_ary_cmp
|
IRubyObject |
op_diff(IRubyObject other)
rb_ary_diff
|
IRubyObject |
op_equal(ThreadContext context,
IRubyObject obj)
rb_ary_equal
|
IRubyObject |
op_or(IRubyObject other)
rb_ary_or
|
IRubyObject |
op_plus(IRubyObject obj)
rb_ary_plus
|
IRubyObject |
op_times(ThreadContext context,
IRubyObject times)
rb_ary_times
|
IRubyObject |
op_times19(ThreadContext context,
IRubyObject times)
Deprecated.
|
RubyString |
pack(ThreadContext context,
IRubyObject obj) |
IRubyObject |
permutation(ThreadContext context,
Block block) |
IRubyObject |
permutation(ThreadContext context,
IRubyObject num,
Block block)
rb_ary_permutation
|
IRubyObject |
pop(ThreadContext context)
rb_ary_pop
|
IRubyObject |
pop(ThreadContext context,
IRubyObject num) |
IRubyObject |
product(ThreadContext context,
IRubyObject[] args)
rb_ary_product
|
IRubyObject |
product(ThreadContext context,
IRubyObject[] args,
Block block) |
IRubyObject |
product19(ThreadContext context,
IRubyObject[] args,
Block block)
Deprecated.
|
RubyArray |
push_m(IRubyObject[] items)
rb_ary_push_m - instance method push
|
RubyArray |
push_m19(IRubyObject[] items)
Deprecated.
|
RubyArray |
push(IRubyObject item) |
RubyArray |
push(IRubyObject[] items) |
IRubyObject |
rassoc(ThreadContext context,
IRubyObject value)
rb_ary_rassoc
|
IRubyObject |
rb_clear()
rb_ary_clear
|
IRubyObject |
reject_bang(ThreadContext context,
Block block) |
IRubyObject |
reject(ThreadContext context,
Block block) |
IRubyObject |
rejectBang(ThreadContext context,
Block block) |
IRubyObject |
rejectCommon(ThreadContext context,
Block block)
rb_ary_reject_bang
|
Object |
remove(int index) |
boolean |
remove(Object element) |
boolean |
removeAll(Collection c) |
IRubyObject |
repeated_permutation(ThreadContext context,
IRubyObject num,
Block block) |
IRubyObject |
repeatedCombination(ThreadContext context,
IRubyObject num,
Block block) |
IRubyObject |
replace(IRubyObject orig)
rb_ary_replace
|
boolean |
retainAll(Collection c) |
IRubyObject |
reverse_bang()
rb_ary_reverse_bang
|
IRubyObject |
reverse_each(ThreadContext context,
Block block) |
IRubyObject |
reverse()
rb_ary_reverse_m
|
IRubyObject |
reverseEach(ThreadContext context,
Block block)
rb_ary_reverse_each
|
IRubyObject |
rindex(ThreadContext context,
Block block) |
IRubyObject |
rindex(ThreadContext context,
IRubyObject obj)
rb_ary_rindex
|
IRubyObject |
rindex(ThreadContext context,
IRubyObject obj,
Block unused) |
IRubyObject |
rotate_bang(ThreadContext context) |
IRubyObject |
rotate_bang(ThreadContext context,
IRubyObject cnt) |
IRubyObject |
rotate(ThreadContext context) |
IRubyObject |
rotate(ThreadContext context,
IRubyObject cnt) |
protected RubyArray |
safeReverse() |
IRubyObject |
sample(ThreadContext context,
IRubyObject[] args) |
IRubyObject |
select_bang(ThreadContext context,
Block block) |
IRubyObject |
select(ThreadContext context,
Block block) |
IRubyObject |
selectCommon(ThreadContext context,
Block block)
rb_ary_select
|
Object |
set(int index,
Object element) |
IRubyObject |
shift(ThreadContext context)
rb_ary_shift
|
IRubyObject |
shift(ThreadContext context,
IRubyObject num) |
IRubyObject |
shuffle_bang(ThreadContext context) |
IRubyObject |
shuffle_bang(ThreadContext context,
IRubyObject[] args) |
IRubyObject |
shuffle(ThreadContext context) |
IRubyObject |
shuffle(ThreadContext context,
IRubyObject[] args) |
int |
size() |
IRubyObject |
slice_bang(IRubyObject arg0)
rb_ary_slice_bang
|
IRubyObject |
slice_bang(IRubyObject[] args)
|
IRubyObject |
slice_bang(IRubyObject arg0,
IRubyObject arg1)
rb_ary_slice_bang
|
IRubyObject |
sort_bang(ThreadContext context,
Block block)
rb_ary_sort_bang
|
IRubyObject |
sort_bang19(ThreadContext context,
Block block)
Deprecated.
|
IRubyObject |
sort_by_bang(ThreadContext context,
Block block)
rb_ary_sort_by_bang
|
RubyArray |
sort(ThreadContext context,
Block block)
rb_ary_sort
|
RubyArray |
sort19(ThreadContext context,
Block block)
Deprecated.
|
protected IRubyObject |
sortInternal(ThreadContext context,
Block block) |
protected IRubyObject |
sortInternal(ThreadContext context,
boolean honorOverride) |
IRubyObject |
store(long index,
IRubyObject value)
rb_ary_store
|
List |
subList(int fromIndex,
int toIndex) |
IRubyObject |
subseq(long beg,
long len)
rb_ary_subseq
|
IRubyObject |
subseq(RubyClass metaClass,
long beg,
long len,
boolean light) |
IRubyObject |
subseqLight(long beg,
long len)
rb_ary_subseq
|
IRubyObject |
take_while(ThreadContext context,
Block block)
rb_ary_take_while
|
IRubyObject |
take(ThreadContext context,
IRubyObject n)
rb_ary_take
|
RubyArray |
to_a()
rb_ary_to_a
|
IRubyObject |
to_ary() |
IRubyObject |
to_s()
rb_ary_to_s
|
Object[] |
toArray() |
Object[] |
toArray(Object[] arg) |
Object |
toJava(Class target)
Convert the object to the specified Java class, if possible.
|
IRubyObject[] |
toJavaArray() |
IRubyObject[] |
toJavaArrayMaybeUnsafe() |
IRubyObject[] |
toJavaArrayUnsafe() |
RubyArray |
transpose()
rb_ary_transpose
|
static IRubyObject |
try_convert(ThreadContext context,
IRubyObject self,
IRubyObject arg) |
IRubyObject |
uniq_bang(ThreadContext context)
rb_ary_uniq_bang
|
IRubyObject |
uniq_bang19(ThreadContext context,
Block block) |
IRubyObject |
uniq(ThreadContext context)
rb_ary_uniq
|
IRubyObject |
uniq19(ThreadContext context,
Block block) |
static RubyArray |
unmarshalFrom(UnmarshalStream input) |
protected void |
unpack()
Overridden by specialized arrays to fall back to IRubyObject[].
|
IRubyObject |
unshift() |
IRubyObject |
unshift(IRubyObject item)
rb_ary_unshift
|
IRubyObject |
unshift(IRubyObject[] items) |
IRubyObject |
unshift19()
Deprecated.
|
IRubyObject |
unshift19(IRubyObject item)
Deprecated.
|
IRubyObject |
unshift19(IRubyObject[] items)
Deprecated.
|
IRubyObject |
values_at(IRubyObject[] args)
rb_values_at
|
IRubyObject |
zip(ThreadContext context,
IRubyObject[] args,
Block block)
rb_ary_zip
|