Package org.jruby.specialized
Class RubyArrayTwoObject
java.lang.Object
org.jruby.RubyBasicObject
org.jruby.RubyObject
org.jruby.RubyArray
org.jruby.specialized.RubyArraySpecialized
org.jruby.specialized.RubyArrayTwoObject
- All Implemented Interfaces:
Serializable,Cloneable,Comparable,Iterable,Collection,List,RandomAccess,InstanceVariables,InternalVariables,IRubyObject,CoreObjectType
Two object version of RubyArraySpecialized.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jruby.RubyArray
RubyArray.ArgumentVisitor, RubyArray.DefaultComparator, RubyArray.RubyArrayConversionIteratorNested classes/interfaces inherited from class org.jruby.RubyObject
RubyObject.DataNested classes/interfaces inherited from class org.jruby.RubyBasicObject
RubyBasicObject.Finalizer -
Field Summary
FieldsFields inherited from class org.jruby.specialized.RubyArraySpecialized
MAX_PACKED_SIZEFields inherited from class org.jruby.RubyArray
ARRAY_DEFAULT_SIZE, begin, DEFAULT_INSPECT_STR_SIZE, realLength, valuesFields inherited from class org.jruby.RubyObject
IVAR_INSPECTING_OBJECT_ALLOCATOR, OBJECT_ALLOCATOR, REIFYING_OBJECT_ALLOCATORFields inherited from class org.jruby.RubyBasicObject
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, varTableStampFields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionRubyArrayTwoObject(RubyClass otherClass, IRubyObject car, IRubyObject cdr) RubyArrayTwoObject(RubyClass metaClass, RubyArrayTwoObject other) RubyArrayTwoObject(Ruby runtime, IRubyObject car, IRubyObject cdr) -
Method Summary
Modifier and TypeMethodDescriptionaryDup()rb_ary_dupcollectArray(ThreadContext context, 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()).voidcopyInto(IRubyObject[] target, int start) Copy the values contained in this array into the target array at the specified offset.voidcopyInto(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 RubyArrayfinal IRubyObjecteltInternal(int index) final IRubyObjecteltInternalSet(int index, IRubyObject value) protected voidfinishUnpack(IRubyObject nil) booleanincludes(ThreadContext context, IRubyObject item) intprotected IRubyObjectinspectAry(ThreadContext context) inspect_aryprotected IRubyObjectinternalRotate(ThreadContext context, int cnt) protected IRubyObjectinternalRotateBang(ThreadContext context, int cnt) private booleanisFixnumBypass(Ruby runtime, JavaSites.Array2Sites sites, boolean honorOverride) private booleanisStringBypass(Ruby runtime, JavaSites.Array2Sites sites, boolean honorOverride) protected RubyArrayrb_ary_make_sharedop_plus(IRubyObject obj) rb_ary_plusrb_clear()rb_ary_clearreplace(IRubyObject orig) rb_ary_replacerb_ary_reverse_bangprotected RubyArrayprivate static final JavaSites.Array2Sitessites(ThreadContext context) protected IRubyObjectsortInternal(ThreadContext context, boolean honorOverride) protected IRubyObjectsortInternal(ThreadContext context, Block block) protected voidstoreInternal(int index, IRubyObject value) Return a Java array copy of the elements contained in this Array.uniq(ThreadContext context) rb_ary_uniqMethods inherited from class org.jruby.specialized.RubyArraySpecialized
packed, unpackMethods inherited from class org.jruby.RubyArray
add, add, addAll, addAll, all_p, all_p, all_pCommon, any_p, any_p, any_pCommon, append, aref, aref, aref, aref19, aref19, aryAppend, aryDup19, aryToAry, aryToAry, aset, aset, aset, aset19, aset19, assoc, at, bsearch, bsearch_index, checkArrayType, checkLength, choice, clear, collect, collect_bang, collect19, collectBang, collectEnum, combination, compact, compact_bang, compact19, compare, compareFixnums, compareOthers, compatc19, concat, concat, concat, concat19, concurrentModification, contains, containsAll, convertToArray, count, count, create, createArrayClass, cycle, cycle, delete, delete_at, delete_at, delete_if, deleteIf, detectCommon, difference, dig, dig, dig, dig, drop, drop_while, dup, each, each_index, each_slice, eachIndex, eachSlice, eltOk, eltSetOk, eltSetOk, empty_p, ensureCapacity, entry, entry, eql, equals, fetch, fetch, fetch, fill, fill, fill, fill, fillCommon, fillCommon, find, find_index, find_index, first, first, first, flatten, flatten, flatten, flatten_bang, flatten_bang, flatten_bang19, flatten_bang19, flatten19, flatten19, frozen_p, get, getJavaClass, getLength, getList, getNativeClassIndex, hash, hash, hash19, include_p, includesByEql, index, index, index, indexes, initialize, initialize, initialize, initialize, initialize_copy, initializeCommon, insert, insert, insert, insert, insert19, insert19, insert19, inspect, inspect, isEmpty, isSharedJavaArray, iterator, join, join, join19, join19, joinStrings, keep_if, last, last, last, lastIndexOf, length, listIterator, listIterator, map, 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, newEmptyArray, nitems, none_p, none_p, none_pCommon, one_p, one_p, one_pCommon, op_and, op_cmp, op_diff, op_equal, op_or, op_times, op_times19, pack, pack, permutation, permutation, pop, pop, product, product, product19, push, push, push_m, push_m19, rassoc, rbCollect, reject, reject_bang, rejectBang, rejectCommon, remove, remove, removeAll, repeated_permutation, repeatedCombination, retainAll, reverse, reverse_each, reverseEach, rindex, rindex, rindex, rotate, rotate, rotate_bang, rotate_bang, safeArraySet, sample, sample, sample, sample, select, select_bang, selectCommon, set, shift, shift, shuffle, shuffle, shuffle, shuffle_bang, shuffle_bang, shuffle_bang, size, size, slice_bang, slice_bang, slice_bang, sort, sort_bang, sort_bang19, sort_by_bang, sort19, store, subList, subseq, subseqLight, sum, sum, sumCommon, take, take_while, to_a, to_a, to_ary, to_h, to_h, to_s, to_s, toArray, toArray, toJava, toJavaArrayMaybeUnsafe, toJavaArrayUnsafe, transpose, try_convert, union, uniq, uniq_bang, uniq_bang, uniq_bang19, uniq19, unmarshalFrom, unshift, unshift, unshift, unshift19, unshift19, unshift19, values_at, zipMethods inherited from class org.jruby.RubyObject
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, toStringMethods inherited from class org.jruby.RubyBasicObject
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, eql_p, 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, hasInstanceVariables, 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, method_missing, method_missing19, method19, methods, methods, methods19, nil_p, nonFixnumHashCode, OBJ_INIT_COPY, objInitCopy, op_equal_19, op_match, op_match19, op_not, op_not_equal, op_not_match, 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, singleton_method_added, singleton_method_added19, singleton_method_removed, singleton_method_removed19, singleton_method_undefined, singleton_method_undefined19, singleton_methods, specificEval, specificEval, specificEval, specificEval, syncVariables, syncVariables, taint, taint, tainted_p, testFrozen, testFrozen, trust, type, type_deprecated, untaint, untrust, untrusted_p, validateInstanceVariable, validateInstanceVariable, validateInstanceVariable, variableTableContains, variableTableFastContains, variableTableFastFetch, variableTableFastStore, variableTableFetch, variableTableRemove, variableTableStore, variableTableSync, yieldUnder, yieldUnderMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
hashCode, replaceAll, sort, spliterator
-
Field Details
-
car
-
cdr
-
-
Constructor Details
-
RubyArrayTwoObject
-
RubyArrayTwoObject
-
RubyArrayTwoObject
RubyArrayTwoObject(RubyArrayTwoObject other) -
RubyArrayTwoObject
RubyArrayTwoObject(RubyClass metaClass, RubyArrayTwoObject other)
-
-
Method Details
-
eltInternal
- Overrides:
eltInternalin classRubyArray
-
eltInternalSet
- Overrides:
eltInternalSetin classRubyArray
-
finishUnpack
- Specified by:
finishUnpackin classRubyArraySpecialized
-
aryDup
Description copied from class:RubyArrayrb_ary_dup -
rb_clear
Description copied from class:RubyArrayrb_ary_clear -
copyInto
Description copied from class:RubyArrayCopy 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. -
copyInto
Description copied from class:RubyArrayCopy 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. -
dupImpl
-
includes
-
indexOf
-
inspectAry
Description copied from class:RubyArrayinspect_ary- Overrides:
inspectAryin classRubyArray
-
internalRotate
- Overrides:
internalRotatein classRubyArray
-
internalRotateBang
- Overrides:
internalRotateBangin classRubyArray
-
op_plus
Description copied from class:RubyArrayrb_ary_plus -
replace
Description copied from class:RubyArrayrb_ary_replace -
reverse_bang
Description copied from class:RubyArrayrb_ary_reverse_bang- Overrides:
reverse_bangin classRubyArray
-
safeReverse
- Overrides:
safeReversein classRubyArray
-
sortInternal
- Overrides:
sortInternalin classRubyArray
-
sortInternal
- Overrides:
sortInternalin classRubyArray
-
isStringBypass
-
isFixnumBypass
-
storeInternal
- Overrides:
storeInternalin classRubyArray
-
subseq
-
toJavaArray
Description copied from class:RubyArrayReturn 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.- Overrides:
toJavaArrayin classRubyArray- Returns:
- a Java array with exactly the size and contents of this RubyArray's elements
-
uniq
Description copied from class:RubyArrayrb_ary_uniq -
collectArray
Description copied from class:RubyArrayCollect the contents of this array after filtering through block, or return a new equivalent array if the block is not given (!isGiven()).- Overrides:
collectArrayin classRubyArray- Parameters:
context- the current contextblock- a block for filtering or NULL_BLOCK- Returns:
- an array of the filtered or unfiltered results
-
sites
-