Package org.jruby.java.proxies
Class MapJavaProxy.RubyHashMap
java.lang.Object
org.jruby.RubyBasicObject
org.jruby.RubyObject
org.jruby.RubyHash
org.jruby.java.proxies.MapJavaProxy.RubyHashMap
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<IRubyObject>,Map,InstanceVariables,InternalVariables,IRubyObject,CoreObjectType
- Enclosing class:
- MapJavaProxy
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jruby.RubyHash
RubyHash.RubyHashEntry, RubyHash.Visitor, RubyHash.VisitorWithState<T>Nested classes/interfaces inherited from class org.jruby.RubyObject
RubyObject.DataNested classes/interfaces inherited from class org.jruby.RubyBasicObject
RubyBasicObject.Finalizer -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final RubyHash.RubyHashEntry[]private static final Map.Entry[]private final MapJavaProxyFields inherited from class org.jruby.RubyHash
COMPARE_BY_IDENTITY_F, DEFAULT_INSPECT_STR_SIZE, KEYWORD_REST_ARGUMENTS_F, MRI_PRIMES, NO_ENTRY, size, StoreValueVisitorFields 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, 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionany_p(ThreadContext context, IRubyObject[] args, Block block) private RubyBooleanany_p_i(ThreadContext context, Block block) private RubyBooleanany_p_i_fast(ThreadContext context, Block block) private RubyBooleanany_p_p(ThreadContext context, IRubyObject pattern) compare_by_identity_p(ThreadContext context) delete(ThreadContext context, IRubyObject key, Block block) rb_hash_deletefinal Setfinal Setfinal Collectionempty_p(ThreadContext context) rb_hash_empty_pentrySet()has_key_p(IRubyObject key) has_value_p(ThreadContext context, IRubyObject val) rb_hash_has_valuehash(ThreadContext context) inspect(ThreadContext context) rb_hash_inspectinternalGet(IRubyObject key) internalPut(IRubyObject key, IRubyObject value) protected final IRubyObjectinternalPutNoResize(IRubyObject key, IRubyObject value, boolean checkForExisting) final SetkeySet()private Mapprotected final voidop_asetForString(Ruby runtime, RubyString key, IRubyObject value) protected final voidop_asetSmallForString(Ruby runtime, RubyString key, IRubyObject value) rb_clear(ThreadContext context) rb_hash_clearrb_size(ThreadContext context) rb_hash_sizerehash(ThreadContext context) rb_hash_rehashshift(ThreadContext context) rb_hash_shiftintsize()to_a(ThreadContext context) rb_hash_to_ato_hash(ThreadContext context) rb_hash_to_hashfinal Collectionvalues()<T> voidvisitAll(ThreadContext context, RubyHash.VisitorWithState visitor, T state) Methods inherited from class org.jruby.RubyHash
allSymbols, aref, aset, assoc, checkIterating, clear, compact, compact_bang, compare, compare_by_identity, containsKey, containsValue, convertToHash, create, createHashClass, default_proc, default_proc, default_value_get, default_value_get, default_value_get, default_value_set, default_value_set, delete, delete_if, delete_ifInternal, dig, dig, dig, dig, dup, dupFast, each, each_key, each_keyCommon, each_pair, each_pairCommon, each_pairCommon, each_value, each_valueCommon, each19, eachCommon, empty_p, equals, fastARef, fastASet, fastASet, fastASetCheckString, fastASetCheckString19, fastASetSmall, fastASetSmall, fastASetSmallCheckString, fastASetSmallCheckString19, fastDelete, fetch, fetch, fetch, fetch_values, flatten, flatten, get, getIfNone, getJavaClass, getNativeClassIndex, has_key_p, hasDefaultProc, hash, hash19, hashValue, index, index19, initialize, initialize_copy, initialize_copy19, inspect, inspect19, inspectHash, internalJavaPut, internalPutSmall, invert, isComparedByIdentity, isEmpty, isKeywordRestArguments, keep_if, keep_ifCommon, key, keys, keys, marshalTo, merge, merge, merge_bang, merge_bang, merge_bang19, modify, newHash, newHash, newHash, newKwargs, newSmallHash, op_aref, op_aset, op_aset, op_aset19, op_eql, op_eql19, op_equal, op_ge, op_gt, op_le, op_lt, put, putAll, rassoc, rb_clear, rb_size, rb_values, rb_values, rbClone, rehash, reject, reject_bang, reject_bangInternal, rejectInternal, remove, replace, replace19, select, select_bang, select19, set_default_proc, set_default_proc, set_default_proc20, setComparedByIdentity, setKeywordRestArguments, slice, sort, to_a, to_h, to_h, to_h_block, to_hash, to_proc, to_s, to_s19, transform_keys, transform_keys_bang, transform_values, transform_values_bang, try_convert, unmarshalFrom, values, values_at, visitAllMethods 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, checkArrayType, checkCallMethod, checkCallMethod, checkFrozen, checkStringType, checkStringType19, compareTo, convertToArray, convertToFloat, convertToInteger, convertToInteger, convertToInteger, convertToString, copyInstanceVariablesInto, copySpecialInstanceVariables, createBasicObjectClass, dataGetStruct, dataGetStructChecked, dataWrapStruct, decode, display, dup, ensureInstanceVariablesSettable, eql, eql_p, equal_p, equal_p19, evalUnder, extend, fastGetInstanceVariable, fastGetInternalVariable, fastHasInstanceVariable, fastHasInternalVariable, fastSetInstanceVariable, fastSetInternalVariable, freeze, frozen_p, 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, initialize_copy, 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_cmp, 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, to_s, toJava, 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.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
EMPTY_TABLE
-
NULL_MAP_ENTRY
-
receiver
-
-
Constructor Details
-
RubyHashMap
RubyHashMap(Ruby runtime, MapJavaProxy receiver)
-
-
Method Details
-
mapDelegate
-
size
public int size() -
rb_size
Description copied from class:RubyHashrb_hash_size -
empty_p
Description copied from class:RubyHashrb_hash_empty_p -
inspect
Description copied from class:RubyHashrb_hash_inspect -
to_a
Description copied from class:RubyHashrb_hash_to_a -
hash
-
delete
Description copied from class:RubyHashrb_hash_delete -
internalPut
- Overrides:
internalPutin classRubyHash
-
internalPutNoResize
protected final IRubyObject internalPutNoResize(IRubyObject key, IRubyObject value, boolean checkForExisting) - Overrides:
internalPutNoResizein classRubyHash
-
op_asetForString
- Overrides:
op_asetForStringin classRubyHash
-
op_asetSmallForString
- Overrides:
op_asetSmallForStringin classRubyHash
-
internalGet
- Overrides:
internalGetin classRubyHash
-
internalGetEntry
- Overrides:
internalGetEntryin classRubyHash
-
internalDelete
- Overrides:
internalDeletein classRubyHash
-
internalDeleteEntry
- Overrides:
internalDeleteEntryin classRubyHash
-
visitAll
-
has_key_p
-
has_value_p
Description copied from class:RubyHashrb_hash_has_value- Overrides:
has_value_pin classRubyHash
-
rehash
Description copied from class:RubyHashrb_hash_rehash -
compare_by_identity_p
- Overrides:
compare_by_identity_pin classRubyHash
-
any_p
-
any_p_i
-
any_p_i_fast
-
any_p_p
-
rb_clear
Description copied from class:RubyHashrb_hash_clear -
shift
Description copied from class:RubyHashrb_hash_shift -
to_hash
Description copied from class:RubyHashrb_hash_to_hash -
keySet
-
directKeySet
- Overrides:
directKeySetin classRubyHash
-
values
-
directValues
- Overrides:
directValuesin classRubyHash
-
entrySet
-
directEntrySet
- Overrides:
directEntrySetin classRubyHash
-