public class RubyArrayTwoObject extends RubyArraySpecialized
RubyArray.ArgumentVisitor, RubyArray.DefaultComparator, RubyArray.RubyArrayConversionIterator
RubyObject.Data
RubyBasicObject.Finalizer
MAX_PACKED_SIZE
ARRAY_DEFAULT_SIZE, begin, DEFAULT_INSPECT_STR_SIZE, realLength, values
IVAR_INSPECTING_OBJECT_ALLOCATOR, OBJECT_ALLOCATOR, REIFYING_OBJECT_ALLOCATOR
ALL_F, BASICOBJECT_ALLOCATOR, COMPARE_BY_IDENTITY_F, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, IS_OVERLAID_F, metaClass, NEVER, NIL_F, REFINED_MODULE_F, STAMP_OFFSET, TAINTED_F, UNDEF, UNTRUST_F, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F, USER8_F, USER9_F, USERA_F, VAR_TABLE_OFFSET, varTable, varTableStamp
NULL_ARRAY
Constructor and Description |
---|
RubyArrayTwoObject(RubyClass otherClass,
IRubyObject car,
IRubyObject cdr) |
RubyArrayTwoObject(Ruby runtime,
IRubyObject car,
IRubyObject cdr) |
Modifier and Type | Method and Description |
---|---|
RubyArray |
aryDup()
rb_ary_dup
|
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.
|
protected RubyArray |
dupImpl(Ruby runtime,
RubyClass metaClass) |
IRubyObject |
eltInternal(int index) |
IRubyObject |
eltInternalSet(int index,
IRubyObject value) |
protected void |
finishUnpack(IRubyObject nil) |
boolean |
includes(ThreadContext context,
IRubyObject item) |
int |
indexOf(java.lang.Object element) |
protected IRubyObject |
inspectAry(ThreadContext context)
inspect_ary
|
protected IRubyObject |
internalRotate(ThreadContext context,
int cnt) |
protected IRubyObject |
internalRotateBang(ThreadContext context,
int cnt) |
IRubyObject |
op_plus(IRubyObject obj)
rb_ary_plus
|
IRubyObject |
rb_clear()
rb_ary_clear
|
IRubyObject |
replace(IRubyObject orig)
rb_ary_replace
|
IRubyObject |
reverse_bang()
rb_ary_reverse_bang
|
protected RubyArray |
safeReverse() |
protected IRubyObject |
sortInternal(ThreadContext context,
Block block) |
protected IRubyObject |
sortInternal(ThreadContext context,
boolean honorOverride) |
protected void |
storeInternal(int index,
IRubyObject value) |
IRubyObject |
subseq(RubyClass metaClass,
long beg,
long len,
boolean light) |
IRubyObject[] |
toJavaArray() |
IRubyObject |
uniq(ThreadContext context)
rb_ary_uniq
|
packed, unpack
add, add, addAll, addAll, all_p, any_p, append, aref, aref, aref, aref19, aref19, aryAppend, aryDup19, aryToAry, aryToAry, aset, aset, aset, aset19, aset19, assoc, at, bsearch_index, bsearch, checkArrayType, checkLength, choice, clear, collect_bang, collect, collect19, collectBang, combination, compact_bang, compact, compact19, compare, compareFixnums, compareOthers, compatc19, concat, concat, concat, concat19, concurrentModification, contains, containsAll, convertToArray, count, count, create, createArrayClass, cycle, cycle, delete_at, delete_at, delete_if, delete, deleteIf, detectCommon, dig, dig, dig, dig, drop_while, drop, dup, each_index, each_slice, each, eachIndex, eachSlice, eltOk, eltSetOk, eltSetOk, empty_p, ensureCapacity, entry, entry, enumLengthFn, eql, equals, fetch, fetch, fetch, fill, fill, fill, fill, fillCommon, fillCommon, find_index, find_index, find, first, first, first, flatten_bang, flatten_bang, flatten_bang19, flatten_bang19, flatten, flatten, flatten, flatten19, flatten19, frozen_p, get, getJavaClass, getLength, getList, getNativeClassIndex, hash, hash, hash19, include_p, index, index, index, indexes, initialize_copy, initialize, initialize, initialize, initialize, initializeCommon, insert, insert, insert, insert, insert19, insert19, insert19, inspect, inspect, isEmpty, iterator, join, join, join19, join19, joinStrings, keep_if, last, last, last, lastIndexOf, length, listIterator, listIterator, map_bang, map19, marshalTo, max, max, min, min, modify, modifyCheck, newArray, newArray, newArray, newArray, newArray, newArray, newArray, newArray, newArray, newArray, newArrayLight, newArrayLight, newArrayLight, newArrayLight, newArrayLight, newArrayLight, newArrayMayCopy, newArrayMayCopy, newArrayMayCopy, newArrayNoCopy, newArrayNoCopy, newArrayNoCopy, newArrayNoCopyLight, newBlankArray, newEmptyArray, nitems, op_and, op_cmp, op_diff, op_equal, op_or, op_times, op_times19, pack, pack, permutation, permutation, pop, pop, product, product, product19, push_m, push_m19, push, push, rassoc, reject_bang, reject, rejectBang, rejectCommon, remove, remove, removeAll, repeated_permutation, repeatedCombination, retainAll, reverse_each, reverse, reverseEach, rindex, rindex, rindex, rotate_bang, rotate_bang, rotate, rotate, sample, sample, sample, sample, select_bang, select, selectCommon, set, shift, shift, shuffle_bang, shuffle_bang, shuffle_bang, shuffle, shuffle, shuffle, size, slice_bang, slice_bang, slice_bang, sort_bang, sort_bang19, sort_by_bang, sort, sort19, store, subList, subseq, subseqLight, sum, sum, sumCommon, take_while, take, to_a, to_a, to_ary, to_h, to_s, to_s, toArray, toArray, toJava, toJavaArrayMaybeUnsafe, toJavaArrayUnsafe, transpose, try_convert, uniq_bang, uniq_bang, uniq_bang19, uniq, uniq19, unmarshalFrom, unshift, unshift, unshift, unshift19, unshift19, unshift19, values_at, zip
attachToObjectSpace, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, convertToType, createObjectClass, dig, dig1, dig2, eqlInternal, equalInternal, hashCode, inspect, op_eqq, puts, specificEval, toRubyString, toString
addFinalizer, anyToString, asJavaString, asString, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callSuper, checkCallMethod, checkCallMethod, checkFrozen, checkStringType, checkStringType19, compareTo, convertToFloat, convertToHash, convertToInteger, convertToInteger, convertToInteger, convertToString, copyInstanceVariablesInto, copySpecialInstanceVariables, createBasicObjectClass, dataGetStruct, dataGetStructChecked, dataWrapStruct, decode, display, ensureInstanceVariablesSettable, eql_p, eql, equal_p, equal_p19, evalUnder, extend, fastGetInstanceVariable, fastGetInternalVariable, fastHasInstanceVariable, fastHasInternalVariable, fastSetInstanceVariable, fastSetInternalVariable, freeze, getFFIHandle, getFlag, getInstanceEvalClass, getInstanceVariable, getInstanceVariableList, getInstanceVariableNameList, getInstanceVariables, getInternalVariable, getInternalVariables, getMetaClass, getMetaClass, getNativeHandle, getNativeTypeIndex, getObjectId, getRuntime, getSingletonClass, getSingletonClassClone, getSingletonClassCloneAndAttach, getType, getVariable, getVariableCount, getVariableList, getVariableNameList, hashyInspect, hasInstanceVariable, hasInternalVariable, hasVariables, id, infectBy, initialize, initialize19, inspectHashCode, instance_eval, instance_eval, instance_eval, instance_eval, instance_eval19, instance_eval19, instance_eval19, instance_eval19, instance_exec, instance_exec19, instance_of_p, instance_variable_defined_p, instance_variable_get, instance_variable_set, instance_variables, instance_variables19, isBuiltin, isClass, isFalse, isFrozen, isImmediate, isModule, isNil, isSpecialConst, isSpecialObject, isTaint, isTrue, isUntrusted, kind_of_p, makeMetaClass, method_missing, method_missing19, method, method19, methods, methods, methods19, nil_p, nonFixnumHashCode, OBJ_INIT_COPY, objInitCopy, op_equal_19, op_match, op_match19, op_not_equal, op_not_match, op_not, private_methods, private_methods19, protected_methods, protected_methods19, public_methods, public_methods19, rbClone, rbClone, rbInspect, remove_instance_variable, removeFinalizers, removeInstanceVariable, removeInternalVariable, respond_to_p, respond_to_p, respond_to_p19, respond_to_p19, respondsTo, respondsToMissing, respondsToMissing, send, send, send, send, send, send19, send19, send19, send19, setFFIHandle, setFlag, setFrozen, setInstanceVariable, setInternalVariable, setMetaClass, setNativeHandle, setTaint, setUntrusted, setVariable, singleton_method_added, singleton_method_added19, singleton_method_removed, singleton_method_removed19, singleton_method_undefined, singleton_method_undefined19, singleton_method, singleton_methods, specificEval, specificEval, specificEval, specificEval, syncVariables, syncVariables, taint, taint, tainted_p, testFrozen, testFrozen, trust, type_deprecated, type, untaint, untrust, untrusted_p, validateInstanceVariable, validateInstanceVariable, validateInstanceVariable, variableTableContains, variableTableFastContains, variableTableFastFetch, variableTableFastStore, variableTableFetch, variableTableRemove, variableTableStore, variableTableSync, yieldUnder, yieldUnder
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
array
public RubyArrayTwoObject(Ruby runtime, IRubyObject car, IRubyObject cdr)
public RubyArrayTwoObject(RubyClass otherClass, IRubyObject car, IRubyObject cdr)
public final IRubyObject eltInternal(int index)
eltInternal
in class RubyArray
public final IRubyObject eltInternalSet(int index, IRubyObject value)
eltInternalSet
in class RubyArray
protected void finishUnpack(IRubyObject nil)
finishUnpack
in class RubyArraySpecialized
public IRubyObject rb_clear()
RubyArray
public void copyInto(IRubyObject[] target, int start)
RubyArray
public void copyInto(IRubyObject[] target, int start, int len)
RubyArray
public boolean includes(ThreadContext context, IRubyObject item)
public int indexOf(java.lang.Object element)
protected IRubyObject inspectAry(ThreadContext context)
RubyArray
inspectAry
in class RubyArray
protected IRubyObject internalRotate(ThreadContext context, int cnt)
internalRotate
in class RubyArray
protected IRubyObject internalRotateBang(ThreadContext context, int cnt)
internalRotateBang
in class RubyArray
public IRubyObject op_plus(IRubyObject obj)
RubyArray
public IRubyObject replace(IRubyObject orig)
RubyArray
public IRubyObject reverse_bang()
RubyArray
reverse_bang
in class RubyArray
protected RubyArray safeReverse()
safeReverse
in class RubyArray
protected IRubyObject sortInternal(ThreadContext context, Block block)
sortInternal
in class RubyArray
protected IRubyObject sortInternal(ThreadContext context, boolean honorOverride)
sortInternal
in class RubyArray
protected void storeInternal(int index, IRubyObject value)
storeInternal
in class RubyArray
public IRubyObject subseq(RubyClass metaClass, long beg, long len, boolean light)
public IRubyObject[] toJavaArray()
toJavaArray
in class RubyArray
public IRubyObject uniq(ThreadContext context)
RubyArray
Copyright © 2001-2021 JRuby. All Rights Reserved.