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.- Author:
- Yoko Harada
- See Also:
-
Nested Class Summary
Nested 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
Fields 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, 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, Block block) any_p(ThreadContext context, IRubyObject[] args, Block block) Deprecated.any_p(ThreadContext context, IRubyObject arg0, 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(ThreadContext context, RubyClass _ConcreteJavaProxy) The binding of the JRuby methods in this class are done when the java Map's proxy is being constructed.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 arg0) dig(ThreadContext context, IRubyObject[] args) dig(ThreadContext context, IRubyObject arg0, IRubyObject arg1) dig(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) dup()RubyMethod dup.each(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) 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_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, initialize, splitInitialized, toJavaMethods inherited from class org.jruby.java.proxies.JavaProxy
asJavaObject, checkVariablesOnProxy, cloneObject, createJavaProxy, dataGetStruct, dataWrapStruct, equal_p, field_accessor, field_reader, field_writer, getJavaClass, getJavaClass, getObject, getVariable, inherited, inspectHashCode, installField, java_class, java_method, java_method, java_send, java_send, java_send, java_send, marshal_dump, marshal_dump, marshal_load, new_array, op_aref, persistent, persistent, setJavaClass, setJavaClass, setJavaClass, setObject, setVariable, singleton_class, singleton_class, singletonClass, unwrap, wrapMethods inherited from class org.jruby.RubyObject
attachToObjectSpace, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, convertToType, dig, dig1, dig2, eqlInternal, equalInternal, equals, finishObjectClass, getNativeClassIndex, hashCode, inspect, op_eqq, puts, specificEval, toRubyString, toStringMethods inherited from class org.jruby.RubyBasicObject
addFinalizer, addFinalizer, anyToString, asJavaString, asString, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callSuper, checkArrayType, checkCallMethod, checkCallMethod, checkFrozen, checkStringType, cloneSetup, compareTo, convertToArray, convertToFloat, convertToInteger, convertToInteger, convertToInteger, convertToString, copyInstanceVariablesInto, copySpecialInstanceVariables, dataGetStructChecked, decode, display, dupFinalizer, dupSetup, ensureInstanceVariablesSettable, eql, eql_p, eql_p, evalUnder, extend, fastGetInstanceVariable, fastGetInternalVariable, fastHasInstanceVariable, fastHasInternalVariable, fastSetInstanceVariable, fastSetInternalVariable, finishBasicObjectClass, forEachInstanceVariable, forEachInstanceVariableName, freeze, frozen_p, getCurrentContext, getFFIHandle, getFlag, getInstanceEvalClass, getInstanceEvalClass, getInstanceVariable, getInstanceVariableList, getInstanceVariableNameList, getInstanceVariables, getInternalVariable, getInternalVariables, getMarshalVariableList, getMetaClass, getMetaClass, getNativeHandle, getNativeTypeIndex, getObjectId, getRuntime, getSingletonClass, getSingletonClassClone, getSingletonClassCloneAndAttach, getSingletonClassCloneAndAttach, getType, getVariableCount, getVariableList, getVariableNameList, hash, hashyInspect, hasInstanceVariable, hasInstanceVariables, hasInternalVariable, hasVariables, infectBy, initialize, initialize_copy, inspect, instance_eval, instance_eval, instance_eval, instance_eval, instance_eval, instance_exec, instance_of_p, instance_variable_defined_p, instance_variable_get, instance_variable_set, instance_variables, isBuiltin, isClass, isFalse, isFrozen, isImmediate, isModule, isNil, isSpecialConst, isSpecialObject, isTaint, isTrue, isUntrusted, kind_of_p, makeMetaClass, makeMetaClass, makeMetaClassBootstrap, method, method, method, method_missing, methods, methods, nil_p, nonFixnumHashCode, nonFixnumHashCode, OBJ_INIT_COPY, objInitCopy, op_cmp, op_match, op_not, op_not_equal, op_not_match, private_methods, protected_methods, public_methods, rbClone, rbInspect, remove_instance_variable, removeFinalizers, removeInstanceVariable, removeInternalVariable, respond_to_p, respond_to_p, respondsTo, respondsToMissing, respondsToMissing, send, send, send, send, send, setFFIHandle, setFlag, setFrozen, setInstanceVariable, setInternalVariable, setMetaClass, setNativeHandle, setTaint, setUntrusted, singleton_method, singleton_method, singleton_method_added, singleton_method_removed, singleton_method_undefined, singleton_methods, specificEval, specificEval, specificEval, specificEval, syncVariables, syncVariables, taint, taint, tainted_p, testFrozen, testFrozen, to_a, to_s, trust, type, 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 org.jruby.runtime.builtin.IRubyObject
checkStringType19, dup, marshalLiveVariables
-
Constructor Details
-
MapJavaProxy
-
MapJavaProxy
-
-
Method Details
-
createMapJavaProxy
The binding of the JRuby methods in this class are done when the java Map's proxy is being constructed. see org.jruby.javasupport.Java#createProxyClass(ThreadContext, RubyClass, Class, RubyClass, boolean). -
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- Specified by:
inspectin interfaceIRubyObject- Overrides:
inspectin classRubyBasicObject
-
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
- Overrides:
to_sin classRubyBasicObject
-
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- Overrides:
hashin classRubyBasicObject- Parameters:
context- the current thread context- Returns:
- the hash value
-
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- Overrides:
initialize_copyin classJavaProxy- Parameters:
context- the thread contextother- the original- Returns:
- a copy unless the same thing
-
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
-
any_p
-
dig
-
dig
-
dig
-
dig
-
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
-
sort
Deprecated. -
any_p
Deprecated.
-