public class RubyArrayTwoObject extends RubyArraySpecialized
RubyArray.ArgumentVisitor, RubyArray.RubyArrayConversionIteratorRubyObject.DataRubyBasicObject.FinalizerMAX_PACKED_SIZEARRAY_DEFAULT_SIZE, begin, CLOSE_BRACKET, COMMA_SPACE, DEFAULT_INSPECT_STR_SIZE, isShared, OPEN_BRACKET, realLength, valuesFIELD_ALLOCATED_CLASSES, FIELD_ALLOCATOR_SET, FIELD_ALLOCATORS, IVAR_INSPECTING_OBJECT_ALLOCATOR, OBJECT_ALLOCATOR, OBJECT_VAR0_ALLOCATOR, OBJECT_VAR1_ALLOCATOR, OBJECT_VAR2_ALLOCATOR, OBJECT_VAR3_ALLOCATOR, OBJECT_VAR4_ALLOCATOR, OBJECT_VAR5_ALLOCATOR, OBJECT_VAR6_ALLOCATOR, OBJECT_VAR7_ALLOCATOR, OBJECT_VAR8_ALLOCATOR, OBJECT_VAR9_ALLOCATOR, REIFYING_OBJECT_ALLOCATORALL_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, varTableStampNULL_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.
|
IRubyObject |
dup()
Overridden dup for fast-path logic.
|
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) |
IRubyObject |
store(long index,
IRubyObject value)
rb_ary_store
|
IRubyObject |
subseq(RubyClass metaClass,
long beg,
long len,
boolean light) |
IRubyObject[] |
toJavaArray() |
IRubyObject |
uniq(ThreadContext context)
rb_ary_uniq
|
packed, unpackadd, add, addAll, addAll, all_p, any_p, append, aref, aref, aref, aref19, aref19, aryDup19, 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, concat19, concurrentModification, contains, containsAll, convertToArray, count, count, create, createArrayClass, cycle, cycle, delete_at, delete_at, delete_if, delete, deleteIf, detectCommon, dig, drop_while, drop, each_index, each_slice, each, eachIndex, eachSlice, eltOk, eltSetOk, eltSetOk, empty_p, ensureCapacity, entry, entry, enumLengthFn, eql, 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, hash19, include_p, index, index, index, indexes, initialize_copy, initialize, initialize, initialize, initialize, initializeCommon, insert, insert, insert, insert, insert19, insert19, insert19, 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, 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, select_bang, select, selectCommon, set, shift, shift, shuffle_bang, shuffle_bang, shuffle, shuffle, size, slice_bang, slice_bang, slice_bang, sort_bang, sort_bang19, sort_by_bang, sort, sort19, subList, subseq, subseqLight, take_while, take, to_a, to_ary, to_s, toArray, toArray, toJava, toJavaArrayMaybeUnsafe, toJavaArrayUnsafe, transpose, try_convert, uniq_bang, uniq_bang19, uniq19, unmarshalFrom, unshift, unshift, unshift, unshift19, unshift19, unshift19, values_at, zipattachToObjectSpace, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, convertToType, createObjectClass, dig, eqlInternal, equalInternal, equals, hashCode, inspect, op_eqq, puts, specificEval, toStringaddFinalizer, 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, 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, getNativeHandle, getNativeTypeIndex, getObjectId, getRuntime, getSingletonClass, getSingletonClassClone, getSingletonClassCloneAndAttach, getType, getVariable, getVariableCount, getVariableList, getVariableNameList, hash, hashyInspect, hasInstanceVariable, hasInternalVariable, hasVariables, id, infectBy, initialize, 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, isTaint, isTrue, isUntrusted, kind_of_p, makeMetaClass, 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, 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_added19, singleton_method_removed19, singleton_method_undefined19, singleton_methods, specificEval, specificEval, specificEval, specificEval, syncVariables, syncVariables, taint, taint, tainted_p, testFrozen, testFrozen, trust, type_deprecated, type, untaint, untrust, untrusted_p, validateInstanceVariable, validateInstanceVariable, variableTableContains, variableTableFastContains, variableTableFastFetch, variableTableFastStore, variableTableFetch, variableTableRemove, variableTableStore, variableTableSync, yieldUnder, yieldUnderpublic RubyArrayTwoObject(Ruby runtime, IRubyObject car, IRubyObject cdr)
public RubyArrayTwoObject(RubyClass otherClass, IRubyObject car, IRubyObject cdr)
public final IRubyObject eltInternal(int index)
eltInternal in class RubyArraypublic final IRubyObject eltInternalSet(int index, IRubyObject value)
eltInternalSet in class RubyArrayprotected void finishUnpack(IRubyObject nil)
finishUnpack in class RubyArraySpecializedpublic IRubyObject rb_clear()
RubyArraypublic void copyInto(IRubyObject[] target, int start)
RubyArraypublic void copyInto(IRubyObject[] target, int start, int len)
RubyArraypublic IRubyObject dup()
RubyArraydup in interface IRubyObjectdup in class RubyArraypublic boolean includes(ThreadContext context, IRubyObject item)
public int indexOf(java.lang.Object element)
protected IRubyObject inspectAry(ThreadContext context)
RubyArrayinspectAry in class RubyArrayprotected IRubyObject internalRotate(ThreadContext context, int cnt)
internalRotate in class RubyArrayprotected IRubyObject internalRotateBang(ThreadContext context, int cnt)
internalRotateBang in class RubyArraypublic IRubyObject op_plus(IRubyObject obj)
RubyArraypublic IRubyObject replace(IRubyObject orig)
RubyArraypublic IRubyObject reverse_bang()
RubyArrayreverse_bang in class RubyArrayprotected RubyArray safeReverse()
safeReverse in class RubyArrayprotected IRubyObject sortInternal(ThreadContext context, Block block)
sortInternal in class RubyArrayprotected IRubyObject sortInternal(ThreadContext context, boolean honorOverride)
sortInternal in class RubyArraypublic IRubyObject store(long index, IRubyObject value)
RubyArraypublic IRubyObject subseq(RubyClass metaClass, long beg, long len, boolean light)
public IRubyObject[] toJavaArray()
toJavaArray in class RubyArraypublic IRubyObject uniq(ThreadContext context)
RubyArrayCopyright © 2001-2018 JRuby. All Rights Reserved.