Package org.jruby.java.proxies
Class MapJavaProxy
java.lang.Object
org.jruby.RubyBasicObject
org.jruby.RubyObject
org.jruby.java.proxies.JavaProxy
org.jruby.java.proxies.ConcreteJavaProxy
org.jruby.java.proxies.MapJavaProxy
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<IRubyObject>,InstanceVariables,InternalVariables,IRubyObject,CoreObjectType
A proxy for wrapping
java.util.Map instances.- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.jruby.java.proxies.ConcreteJavaProxy
ConcreteJavaProxy.NewMethodReified, ConcreteJavaProxy.SplitCtorData, ConcreteJavaProxy.StaticJCreateMethodNested classes/interfaces inherited from class org.jruby.java.proxies.JavaProxy
JavaProxy.ClassMethodsNested 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.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
ConstructorsConstructorDescriptionMapJavaProxy(Ruby runtime, RubyClass klazz) MapJavaProxy(Ruby runtime, RubyClass klazz, Map map) -
Method Summary
Modifier and TypeMethodDescriptionany_p(ThreadContext context, IRubyObject[] args, Block block) assoc(ThreadContext context, IRubyObject obj) compare_by_identity(ThreadContext context) compare_by_identity_p(ThreadContext context) final RubyHashTries to convert this object to a Ruby Hash using the "to_hash" method.static RubyClasscreateMapJavaProxy(Ruby runtime) default_proc(ThreadContext context) rb_hash_default_procdefault_value_get(ThreadContext context) default_value_get(ThreadContext context, IRubyObject arg) default_value_set(ThreadContext context, IRubyObject defaultValue) rb_hash_set_defaultdelete(ThreadContext context, IRubyObject key, Block block) rb_hash_deletedelete_if(ThreadContext context, Block block) rb_hash_delete_ifdig(ThreadContext context, IRubyObject[] args) dup()RubyMethod dup.private MapJavaProxyeach(ThreadContext context, Block block) rb_hash_eacheach_key(ThreadContext context, Block block) rb_hash_each_keyeach_value(ThreadContext context, Block block) rb_hash_each_valueempty_p(ThreadContext context) rb_hash_empty_pfetch(ThreadContext context, IRubyObject key, Block block) rb_hash_fetchfetch(ThreadContext context, IRubyObject key, IRubyObject _default, Block block) fetch_values(ThreadContext context, IRubyObject[] args, Block block) flatten(ThreadContext context) flatten(ThreadContext context, IRubyObject level) (package private) final Mapprivate MapJavaProxy.RubyHashMapgetOrCreateRubyHashMap(Ruby runtime) has_key_p(ThreadContext context, IRubyObject key) rb_hash_has_key_phas_value_p(ThreadContext context, IRubyObject expected) rb_hash_has_valuehash(ThreadContext context) rb_hash_hashindex(ThreadContext context, IRubyObject expected) rb_hash_indexinitialize_copy(ThreadContext context, IRubyObject other) rb_hash_initialize_copyinspect(ThreadContext context) rb_hash_inspectinvert(ThreadContext context) rb_hash_invertkeep_if(ThreadContext context, Block block) rb_hash_keep_ifkey(ThreadContext context, IRubyObject expected) rb_hash_keykeys(ThreadContext context) rb_hash_keysmerge(ThreadContext context, IRubyObject[] others, Block block) rb_hash_mergemerge(ThreadContext context, IRubyObject other, Block block) Deprecated.merge_bang(ThreadContext context, IRubyObject[] others, Block block) rb_hash_merge_bangmerge_bang(ThreadContext context, IRubyObject other, Block block) Deprecated.op_aref(ThreadContext context, IRubyObject key) rb_hash_arefop_aset(ThreadContext context, IRubyObject key, IRubyObject value) rb_hash_asetop_aset19(ThreadContext context, IRubyObject key, IRubyObject value) Deprecated.op_eql(ThreadContext context, IRubyObject other) rb_hash_eqlop_equal(ThreadContext context, IRubyObject other) rb_hash_equalop_ge(ThreadContext context, IRubyObject other) op_gt(ThreadContext context, IRubyObject other) op_le(ThreadContext context, IRubyObject other) op_lt(ThreadContext context, IRubyObject other) rassoc(ThreadContext context, IRubyObject obj) rb_clear(ThreadContext context) rb_hash_clearrb_size(ThreadContext context) rb_hash_sizerb_values(ThreadContext context) rb_hash_valuesrbClone()RubyMethod clone.rehash(ThreadContext context) rb_hash_rehashreject(ThreadContext context, Block block) rb_hash_rejectreject_bang(ThreadContext context, Block block) rb_hash_reject_bangreplace(ThreadContext context, IRubyObject other) rb_hash_replaceselect(ThreadContext context, Block block) rb_hash_selectselect_bang(ThreadContext context, Block block) rb_hash_select_bangset_default_proc(ThreadContext context, IRubyObject proc) rb_hash_set_default_procshift(ThreadContext context) rb_hash_shiftsort(ThreadContext context, Block block) Deprecated.to_a(ThreadContext context) rb_hash_to_ato_hash(ThreadContext context) rb_hash_to_hashto_proc(ThreadContext context) to_s(ThreadContext context) values_at(ThreadContext context, IRubyObject[] args) rb_hash_values_atMethods inherited from class org.jruby.java.proxies.ConcreteJavaProxy
createConcreteJavaProxy, ensureThis, findSuperLine, finishInitialize, id, initialize, splitInitialized, toJavaMethods inherited from class org.jruby.java.proxies.JavaProxy
asJavaObject, cloneObject, createJavaProxy, dataGetStruct, dataWrapStruct, equal_p, field_accessor, field_reader, field_writer, getJavaClass, getJavaClass, getObject, getSingletonClass, getVariable, inherited, initialize_copy, inspectHashCode, installField, java_class, java_method, java_method, java_send, java_send, java_send, java_send, marshal_dump, marshal_load, new_array, op_aref, persistent, persistent, setJavaClass, setJavaClass, setJavaClass, setObject, setVariable, singleton_class, unwrapMethods inherited from class org.jruby.RubyObject
attachToObjectSpace, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, convertToType, createObjectClass, dig, dig1, dig2, eqlInternal, equalInternal, equals, getNativeClassIndex, 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, dataGetStructChecked, decode, display, ensureInstanceVariablesSettable, eql, eql_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, getSingletonClassClone, getSingletonClassCloneAndAttach, getType, getVariableCount, getVariableList, getVariableNameList, hash, hashyInspect, hasInstanceVariable, hasInstanceVariables, hasInternalVariable, hasVariables, infectBy, initialize, initialize19, inspect, 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, 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, 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_a, to_s, trust, type, type_deprecated, untaint, untrust, untrusted_p, validateInstanceVariable, validateInstanceVariable, validateInstanceVariable, variableTableContains, variableTableFastContains, variableTableFastFetch, variableTableFastStore, variableTableFetch, variableTableRemove, variableTableStore, variableTableSync, yieldUnder, yieldUnder
-
Field Details
-
wrappedMap
-
-
Constructor Details
-
MapJavaProxy
-
MapJavaProxy
-
-
Method Details
-
createMapJavaProxy
-
getOrCreateRubyHashMap
-
default_value_get
-
default_value_get
-
default_value_set
rb_hash_set_default -
default_proc
rb_hash_default_proc -
set_default_proc
rb_hash_set_default_proc -
inspect
rb_hash_inspect -
rb_size
rb_hash_size -
empty_p
rb_hash_empty_p -
to_a
rb_hash_to_a- Overrides:
to_ain classRubyBasicObject
-
to_proc
-
to_s
-
rehash
rb_hash_rehash -
to_hash
rb_hash_to_hash -
op_aset
rb_hash_aset -
op_equal
rb_hash_equal- Specified by:
op_equalin interfaceIRubyObject- Overrides:
op_equalin classRubyBasicObject
-
op_eql
rb_hash_eql -
op_aref
rb_hash_aref -
op_lt
-
op_le
-
op_gt
-
op_ge
-
hash
rb_hash_hash -
fetch
rb_hash_fetch -
fetch
-
has_key_p
rb_hash_has_key_p -
has_value_p
rb_hash_has_value -
each
rb_hash_each -
each_value
rb_hash_each_value -
each_key
rb_hash_each_key -
select_bang
rb_hash_select_bang -
keep_if
rb_hash_keep_if -
index
rb_hash_index -
key
rb_hash_key -
keys
rb_hash_keys -
rb_values
rb_hash_values -
shift
rb_hash_shift -
delete
rb_hash_delete -
select
rb_hash_select -
delete_if
rb_hash_delete_if -
reject
rb_hash_reject -
reject_bang
rb_hash_reject_bang -
rb_clear
rb_hash_clear -
invert
rb_hash_invert -
merge_bang
Deprecated. -
merge_bang
rb_hash_merge_bang -
merge
Deprecated. -
merge
rb_hash_merge -
initialize_copy
rb_hash_initialize_copy -
replace
rb_hash_replace -
values_at
rb_hash_values_at -
fetch_values
-
assoc
-
rassoc
-
flatten
-
flatten
-
compare_by_identity
-
compare_by_identity_p
-
dup
Description copied from interface:IRubyObjectRubyMethod dup.- Specified by:
dupin interfaceIRubyObject- Overrides:
dupin classRubyBasicObject- Returns:
- a dup-ed object
-
rbClone
Description copied from interface:IRubyObjectRubyMethod clone.- Specified by:
rbClonein interfaceIRubyObject- Overrides:
rbClonein classRubyBasicObject- Returns:
- a cloned object
-
any_p
-
dig
-
dupImpl
-
getMapObject
-
convertToHash
Description copied from class:RubyBasicObjectTries to convert this object to a Ruby Hash using the "to_hash" method.- Specified by:
convertToHashin interfaceIRubyObject- Overrides:
convertToHashin classRubyBasicObject- Returns:
- hash representation of this
-
op_aset19
Deprecated. -
sort
Deprecated.
-